Created
July 27, 2012 19:29
-
-
Save dennisschipper/3190037 to your computer and use it in GitHub Desktop.
reusable css 1
This file contains 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
//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; | |
} |
This file contains 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="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> |
This file contains 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
.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