HTML
<nav class="pa3 pa4-ns">
<a class="link dim black b f6 f5-ns dib mr3" href="#" title="Home">Site Name</a>
<a class="link dim gray f6 f5-ns dib mr3" href="#" title="Home">Home</a>
<a class="link dim gray f6 f5-ns dib mr3" href="#" title="About">About</a>
<a class="link dim gray f6 f5-ns dib mr3" href="#" title="Store">Store</a>
<a class="link dim gray f6 f5-ns dib" href="#" title="Contact">Contact</a>
</nav>
css
.dib {
display: inline-block;
}
.b {
font-weight: bold;
}
.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;
}
.black {
color: #000;
}
.gray {
color: #777;
}
.pa3 {
padding: 1rem;
}
.mr3 {
margin-right: 1rem;
}
.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) {
.pa4-ns {
padding: 2rem;
}
.f5-ns {
font-size: 1rem;
}
}