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

View File

@ -1,5 +1,8 @@
* {
all: unset;
margin: 0;
padding: 0;
box-sizing: border-box;
}
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-hover-bg-color: #333;
$repo-home-header-border-color: #444;
$repo-home-header-nav-hover-bg-color: #444;
// Header Styles
header {
background-color: $repo-home-header-bg-color;
padding: 0.3em 1em;
padding: 1px 1em;
display: flex;
justify-content: space-between;
align-items: center;
@ -21,6 +22,7 @@ header {
display: flex;
align-items: center;
gap: 1em;
font-family: "Noto Sans", "Liberation Sans";
}
// Logo
@ -44,6 +46,7 @@ header {
&:hover {
color: $repo-home-header-nav-hover-text-color;
background-color: $repo-home-header-nav-hover-bg-color;
}
}
@ -53,23 +56,36 @@ header {
display: flex;
align-items: center;
text-decoration: none;
border-radius: 50%;
padding: 0.5em;
img {
width: 30px;
height: 30px;
width: 24px;
height: 24px;
border-radius: 50%;
object-fit: cover;
}
&:hover {
background-color: $repo-home-header-nav-right-hover-bg-color;
}
}
// Profile Icon
.profile-icon {
// Profile Icon Wrapper
&.profile-icon {
width: 30px;
height: 30px;
border-radius: 50%;
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%;
}
}