Created
February 27, 2024 10:23
-
-
Save modos/2565a8037fbecad5b853756410d2d625 to your computer and use it in GitHub Desktop.
نوبار
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
font-size: 16px; | |
font-family: "Open Sans"; | |
--text-primary: #b6b6b6; | |
--text-secondary: #ececec; | |
--bg-primary: #23232e; | |
--bg-secondary: #141418; | |
--transition-speed: 400ms; | |
} | |
.dark { | |
--text-primary: #b6b6b6; | |
--text-secondary: #ececec; | |
--bg-primary: #23232e; | |
--bg-secondary: #141418; | |
} | |
.light { | |
--text-primary: #1f1f1f; | |
--text-secondary: #000000; | |
--bg-primary: #ffffff; | |
--bg-secondary: #e4e4e4; | |
} | |
.solar { | |
--text-primary: #576e75; | |
--text-secondary: #35535c; | |
--bg-primary: #fdf6e3; | |
--bg-secondary: #f5e5b8; | |
} | |
.theme-icon { | |
display: none; | |
} | |
.dark #darkIcon { | |
display: block; | |
} | |
.light #lightIcon { | |
display: block; | |
} | |
.solar #solarIcon { | |
display: block; | |
} | |
body { | |
color: black; | |
background-color: white; | |
margin: 0; | |
padding: 0; | |
} | |
body::-webkit-scrollbar { | |
width: 0.25rem; | |
} | |
body::-webkit-scrollbar-track { | |
background: #1e1e24; | |
} | |
body::-webkit-scrollbar-thumb { | |
background: #6649b8; | |
} | |
main { | |
margin-left: 5rem; | |
padding: 1rem; | |
} | |
.navbar-nav { | |
list-style: none; | |
padding: 0; | |
margin: 0; | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
height: 100%; | |
} | |
.nav-item { | |
width: 100%; | |
} | |
.nav-item:last-child { | |
margin-top: auto; | |
} | |
.nav-link { | |
display: flex; | |
align-items: center; | |
height: 5rem; | |
color: var(--text-primary); | |
text-decoration: none; | |
filter: grayscale(100%) opacity(0.7); | |
transition: var(--transition-speed); | |
} | |
.nav-link:hover { | |
filter: grayscale(0%) opacity(1); | |
background: var(--bg-secondary); | |
color: var(--text-secondary); | |
} | |
.nav-link svg { | |
width: 2rem; | |
min-width: 2rem; | |
margin: 0 1.5rem; | |
} | |
.fa-primary { | |
color: #ff7eee; | |
} | |
.fa-secondary { | |
color: #df49a6; | |
} | |
.fa-primary, | |
.fa-secondary { | |
transition: var(--transition-speed); | |
} | |
.logo { | |
font-weight: bold; | |
text-transform: uppercase; | |
margin-bottom: 1rem; | |
text-align: center; | |
color: var(--text-secondary); | |
background: var(--bg-secondary); | |
font-size: 1.5rem; | |
letter-spacing: 0.3ch; | |
width: 100%; | |
} | |
.logo-text { | |
display: inline; | |
position: absolute; | |
left: -999px; | |
transition: var(--transition-speed); | |
} | |
.navbar:hover .logo-text { | |
left: 0px; | |
} | |
.logo svg { | |
transform: rotate(0deg); | |
transition: var(--transition-speed); | |
} | |
.navbar { | |
transition: width var(--transition-speed) ease; | |
overflow: scroll; | |
height: 100vh; | |
width: 5rem; | |
background-color: var(--bg-primary); | |
position: fixed; | |
left: 0; | |
top: 0; | |
} | |
.navbar:hover { | |
width: 16rem; | |
} | |
.navbar:hover .logo svg { | |
transform: rotate(-180deg); | |
margin-left: 11rem; | |
} | |
.navbar:hover .link-text { | |
display: block; | |
} | |
.link-text { | |
margin-left: 1rem; | |
display: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment