header begins

This commit is contained in:
Candifloss 2024-11-09 00:02:45 +05:30
parent 5aaf9d5198
commit ccb711f549
3 changed files with 54 additions and 20 deletions

View File

@ -1,5 +1,8 @@
* { * {
all: unset; all: unset;
margin: 0;
padding: 0;
box-sizing: border-box;
} }
title { title {
@ -8,7 +11,7 @@ title {
header { header {
background-color: #1a1a1a; background-color: #1a1a1a;
padding: 0.3em 1em; padding: 1px 1em;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
@ -20,6 +23,7 @@ header {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 1em; gap: 1em;
font-family: "Noto Sans", "Liberation Sans";
} }
.logo { .logo {
@ -40,6 +44,7 @@ header {
} }
.header-left a:hover { .header-left a:hover {
color: #bfbfbf; color: #bfbfbf;
background-color: #444;
} }
.header-right a { .header-right a {
@ -47,22 +52,32 @@ header {
display: flex; display: flex;
align-items: center; align-items: center;
text-decoration: none; text-decoration: none;
border-radius: 50%;
padding: 0.5em; padding: 0.5em;
} }
.header-right a img { .header-right a img {
width: 30px; width: 24px;
height: 30px; height: 24px;
border-radius: 50%;
object-fit: cover;
} }
.header-right a:hover { .header-right a.profile-icon {
background-color: #333;
}
.profile-icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
border-radius: 50%; border-radius: 50%;
overflow: hidden; overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
/*.header-left {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 50%;
}*/
}
.header-right a:hover {
background-color: #333;
border-radius: 50%;
} }
body { body {

View File

@ -1,5 +1,8 @@
* { * {
all: unset; all: unset;
margin: 0;
padding: 0;
box-sizing: border-box;
} }
title { title {

View File

@ -5,11 +5,12 @@ $repo-home-header-nav-hover-text-color: #bfbfbf;
$repo-home-header-nav-right-text-color: #f0f0f0; $repo-home-header-nav-right-text-color: #f0f0f0;
$repo-home-header-nav-right-hover-bg-color: #333; $repo-home-header-nav-right-hover-bg-color: #333;
$repo-home-header-border-color: #444; $repo-home-header-border-color: #444;
$repo-home-header-nav-hover-bg-color: #444;
// Header Styles // Header Styles
header { header {
background-color: $repo-home-header-bg-color; background-color: $repo-home-header-bg-color;
padding: 0.3em 1em; padding: 1px 1em;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
@ -21,6 +22,7 @@ header {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 1em; gap: 1em;
font-family: "Noto Sans", "Liberation Sans";
} }
// Logo // Logo
@ -44,6 +46,7 @@ header {
&:hover { &:hover {
color: $repo-home-header-nav-hover-text-color; color: $repo-home-header-nav-hover-text-color;
background-color: $repo-home-header-nav-hover-bg-color;
} }
} }
@ -53,23 +56,36 @@ header {
display: flex; display: flex;
align-items: center; align-items: center;
text-decoration: none; text-decoration: none;
border-radius: 50%;
padding: 0.5em; padding: 0.5em;
img { img {
width: 30px; width: 24px;
height: 30px; height: 24px;
border-radius: 50%;
object-fit: cover;
} }
// Profile Icon Wrapper
&:hover { &.profile-icon {
background-color: $repo-home-header-nav-right-hover-bg-color;
}
}
// Profile Icon
.profile-icon {
width: 30px; width: 30px;
height: 30px; height: 30px;
border-radius: 50%; border-radius: 50%;
overflow: hidden; overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
/*.header-left {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 50%;
}*/
}
&:hover {
background-color: $repo-home-header-nav-right-hover-bg-color;
border-radius: 50%;
}
} }