Skip to content

Instantly share code, notes, and snippets.

@dennisschipper
Created July 27, 2012 19:29
Show Gist options
  • Save dennisschipper/3190037 to your computer and use it in GitHub Desktop.
Save dennisschipper/3190037 to your computer and use it in GitHub Desktop.
reusable css 1
//generic color variables
$color : #595959; // Text Color
$background : #fff; // Page abckground
$border-color : #cecece; // Border color
$text-focus : #404040; // Alternate text color for spans etc
$font : helvetica, arial, verdana, sans-serif; // Font Stack
body {
color: $color;
font-family: $font;
font-size: 1em;
}
hr {
height: 0px;
border: 0px;
border-bottom: 1px solid $border-color;
margin: 20px 0px;
}
<nav>
<ul class="main-menu">
<li>
<a href="#">Item 1</a>
</li>
<li>
<a href="#">Item 2</a>
<ul>
<li>
<a href="#">Dropdown Item 1</a>
</li>
<li>
<a href="#">Dropdown Item 2</a>
</li>
</ul>
</li>
<li>
<a href="#">Item 3</a>
</li>
<li>
<a href="#">Item 4</a>
</li>
</ul>
</nav>
.navigation {
display: block;
list-style: none;
padding: 0px;
margin: 0px;
li {
display: inline;
a {
text-decoration: none;
}
ul {
display: none;
}
}
}
.main-menu {
@extend .navigation;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment