Last active
August 29, 2015 14:18
-
-
Save Stanton/6dfc574dbe8fea6ebd8e to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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 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> |
This file contains hidden or 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
// ---- | |
// 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; | |
} |
This file contains hidden or 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 { | |
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; | |
} |
This file contains hidden or 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 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