Skip to content

Instantly share code, notes, and snippets.

@paulaleite
Last active July 19, 2020 02:20
Show Gist options
  • Save paulaleite/c8a6ef68a9841659a6de9b5d93eacba2 to your computer and use it in GitHub Desktop.
Save paulaleite/c8a6ef68a9841659a6de9b5d93eacba2 to your computer and use it in GitHub Desktop.
/* --- HEADER --- */
/* 1 */
header {
height: 100vh; /* 2 */
background-color: #1A5275;
}
/* NAV */
/* 3 */
.main-nav {
display: block;
float: right;
list-style: none;
margin-top: 50px;
}
.main-nav li {
display: inline-block;
margin-left: 40px;
}
/* 4 */
.main-nav li span {
padding: 8px 0;
color: #1A5275;
font-size: 90%;
border-bottom: 2px solid transparent; /* 5 */
-webkit-transition: border-bottom 0.2; /* 5 */
transition: border-bottom 0.2; /* 5 */
}
/* 6 */
.main-nav li span:hover {
cursor: pointer;
border-bottom: 2px solid #ffb510;
}
/* NAV GRUDENTA */
/* 7 */
.grudenta {
z-index: 1000;
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: #ffffff;
font-size: 80%;
margin: auto 0;
}
/* 8 */
.grudenta ul {
margin-top: 25px;
font-size: 135%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment