Skip to content

Instantly share code, notes, and snippets.

@patrick-wc
Created November 20, 2015 09:40
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 patrick-wc/5bad421fbf1db233a526 to your computer and use it in GitHub Desktop.
Save patrick-wc/5bad421fbf1db233a526 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<nav class="nav">
<a class="nav__link" href="">The Workshop</a><!--
--><a class="nav__link" href="">2013 Schedule</a><!--
--><a class="nav__link nav__link--active" href="">About Csswizardry</a><!--
--><a class="nav__link" href="contact">Contact</a>
</nav>
// ----
// libsass (v3.2.5)
// ----
body {
text-align: center;
}
.nav {
background: #f4f4f4;
// gradient stuff
/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,eeeeee+100&amp;0.65+0,1+100 */
background: -moz-linear-gradient(top, rgba(255,255,255,0.65) 0%, rgba(238,238,238,1) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, rgba(255,255,255,0.65) 0%,rgba(238,238,238,1) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgba(255,255,255,0.65) 0%,rgba(238,238,238,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6ffffff', endColorstr='#eeeeee',GradientType=0 ); /* IE6-9 */
// gradient stuff
display: inline-block;
border: 1px solid #ccc;
}
.nav__link {
text-decoration: none;
display: inline-block;
padding: 20px 30px;
font-family: Verdana, sans-serif;
font-weight: 700;
text-transform: uppercase;
border-right: 1px solid #ccc;
color: #232323;
&:hover,
&:focus {
text-decoration: underline;
}
&:last-child {
border-right: 0;
}
}
.nav__link--active {
text-decoration: underline;
}
body {
text-align: center;
}
.nav {
background: #f4f4f4;
/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,eeeeee+100&amp;0.65+0,1+100 */
background: -moz-linear-gradient(top, rgba(255, 255, 255, 0.65) 0%, #eeeeee 100%);
/* FF3.6-15 */
background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.65) 0%, #eeeeee 100%);
/* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgba(255, 255, 255, 0.65) 0%, #eeeeee 100%);
/* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6ffffff', endColorstr='#eeeeee',GradientType=0 );
/* IE6-9 */
display: inline-block;
border: 1px solid #ccc;
}
.nav__link {
text-decoration: none;
display: inline-block;
padding: 20px 30px;
font-family: Verdana, sans-serif;
font-weight: 700;
text-transform: uppercase;
border-right: 1px solid #ccc;
color: #232323;
}
.nav__link:hover,
.nav__link:focus {
text-decoration: underline;
}
.nav__link:last-child {
border-right: 0;
}
.nav__link--active {
text-decoration: underline;
}
<nav class="nav">
<a class="nav__link" href="">The Workshop</a><!--
--><a class="nav__link" href="">2013 Schedule</a><!--
--><a class="nav__link nav__link--active" href="">About Csswizardry</a><!--
--><a class="nav__link" href="contact">Contact</a>
</nav>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment