A Pen by Anon Ymous on CodePen.
Created
August 19, 2021 15:56
-
-
Save ancientstraits/8b6be02c60abbced3e85588ac0790c2e to your computer and use it in GitHub Desktop.
NavBar
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
<nav> | |
<ul id="links"> | |
<li><a href="#">Lorem.</a></li> | |
<li><a href="#">Consequuntur.</a></li> | |
<li><a href="#">Reiciendis.</a></li> | |
<li><a href="#">Qui.</a></li> | |
<li><a href="#">Necessitatibus!</a></li> | |
</ul> | |
</nav> |
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
@import url("https://fonts.googleapis.com/css2?family=Georama&display=swap"); | |
@import url("https://fonts.googleapis.com/css2?family=Georama:wght@700&display=swap"); | |
* { | |
font-family: Georama; | |
font-weight: 400; | |
} | |
body { | |
margin: 0; | |
} | |
b, | |
strong { | |
font-weight: 700; | |
} | |
#links a { | |
display: block; | |
} | |
#links { | |
background: linear-gradient(360deg, rgba(2,0,36,1) 0%, rgba(82,97,159,1) 36%, rgba(0,212,255,1) 100%); | |
list-style-type: none; | |
margin: 0; | |
padding: 0; | |
overflow: hidden; | |
background-color: #333; | |
border-top-style: solid; | |
border-bottom-style: solid; | |
border-color: gray; | |
} | |
#links li { | |
float: left; | |
} | |
#links li a { | |
display: block; | |
color: white; | |
text-align: center; | |
padding: 14px 16px; | |
text-decoration: none; | |
border-right-style: solid; | |
border-width: 2px; | |
border-color: gray; | |
font-weight: 700; | |
} | |
#links li a:hover { | |
background: linear-gradient(180deg, rgba(2,0,36,1) 0%, rgba(82,98,159,1) 75%, rgba(0,212,255,1) 100%); | |
/* background-color: #111; */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment