HTML
<header class="bg-black-90 fixed w-100 ph3 pv3 pv4-ns ph4-m ph5-l">
<nav class="f6 fw6 ttu tracked">
<a class="link dim white dib mr3" href="#" title="Home">Home</a>
<a class="link dim white dib mr3" href="#" title="About">About</a>
<a class="link dim white dib mr3" href="#" title="Store">Store</a>
<a class="link dim white dib" href="#" title="Contact">Contact</a>
</nav>
</header>
css
.dib {
display: inline-block;
}
.fw6 {
font-weight: 600;
}
.tracked {
letter-spacing: .1em;
}
.link {
text-decoration: none;
transition: color .15s ease-in;
}
.link:link, .link:visited {
transition: color .15s ease-in;
}
.link:hover {
transition: color .15s ease-in;
}
.link:active {
transition: color .15s ease-in;
}
.link:focus {
transition: color .15s ease-in;
outline: 1px dotted currentColor;
}
.w-100 {
width: 100%;
}
.fixed {
position: fixed;
}
.white {
color: #fff;
}
.bg-black-90 {
background-color: rgba(0, 0, 0, .9);
}
.pv3 {
padding-top: 1rem;
padding-bottom: 1rem;
}
.ph3 {
padding-left: 1rem;
padding-right: 1rem;
}
.mr3 {
margin-right: 1rem;
}
.ttu {
text-transform: uppercase;
}
.f6 {
font-size: .875rem;
}
.dim {
opacity: 1;
transition: opacity .15s ease-in;
}
.dim:hover, .dim:focus {
opacity: .5;
transition: opacity .15s ease-in;
}
.dim:active {
opacity: .8;
transition: opacity .15s ease-out;
}
@media screen and (min-width: 30em) {
.pv4-ns {
padding-top: 2rem;
padding-bottom: 2rem;
}
}
@media screen and (min-width: 30em) and (max-width: 60em) {
.ph4-m {
padding-left: 2rem;
padding-right: 2rem;
}
}
@media screen and (min-width: 60em) {
.ph5-l {
padding-left: 4rem;
padding-right: 4rem;
}
}