Skip to content

Instantly share code, notes, and snippets.

@Stanton
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Stanton/6dfc574dbe8fea6ebd8e to your computer and use it in GitHub Desktop.
Save Stanton/6dfc574dbe8fea6ebd8e to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<nav>
<ul class="nav">
<li class="nav__item"><a href="#" class="nav__link">The workshop</a></li><!--
--><li class="nav__item nav__item--current"><a href="#" class="nav__link">2013 schedule</a></li><!--
--><li class="nav__item"><a href="#" class="nav__link">About CSSWizardry</a></li><!--
--><li class="nav__item"><a href="#" class="nav__link">Contact</a></li>
</ul>
</nav>
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
nav {
font-family: 'helvetica neue';
font-size: 14px;
}
.nav {
background: -webkit-linear-gradient(top, #fff 0%, #efefef 100%);
border: 1px solid #ccc;
border-radius: 2px;
display: inline-block;
list-style-type: none;
padding: 0;
}
.nav__item {
display: inline-block;
text-transform: uppercase;
&:hover {
position: relative;
top: 1px;
}
&:not(:last-of-type) {
border-right: 1px solid #ccc;
}
}
// running out of time...
.nav__item--current {
font-weight: bold;
}
.nav__link {
color: black;
display: block;
padding: .5em 1em;
text-decoration: none;
}
nav {
font-family: 'helvetica neue';
font-size: 14px;
}
.nav {
background: -webkit-linear-gradient(top, #fff 0%, #efefef 100%);
border: 1px solid #ccc;
border-radius: 2px;
display: inline-block;
list-style-type: none;
padding: 0;
}
.nav__item {
display: inline-block;
text-transform: uppercase;
}
.nav__item:hover {
position: relative;
top: 1px;
}
.nav__item:not(:last-of-type) {
border-right: 1px solid #ccc;
}
.nav__item--current {
font-weight: bold;
}
.nav__link {
color: black;
display: block;
padding: .5em 1em;
text-decoration: none;
}
<nav>
<ul class="nav">
<li class="nav__item"><a href="#" class="nav__link">The workshop</a></li><!--
--><li class="nav__item nav__item--current"><a href="#" class="nav__link">2013 schedule</a></li><!--
--><li class="nav__item"><a href="#" class="nav__link">About CSSWizardry</a></li><!--
--><li class="nav__item"><a href="#" class="nav__link">Contact</a></li>
</ul>
</nav>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment