Created
September 1, 2014 09:13
-
-
Save chao-xian/bfeaa051739cc2aba394 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
// Using Sass' ability to nest selectors, tidy up this code. | |
.main-nav { | |
background-color: white; | |
left: 0; | |
position: fixed; | |
top: 0; | |
width: 100%; | |
&__list { | |
padding-left: 3.14%; | |
li { | |
border-left: 1px solid red; | |
display: block; | |
float: left; | |
padding: 4px 1em; | |
} | |
&__list a { | |
color: red; | |
font-size: 1.4em; | |
text-align: center; | |
} | |
} | |
} |
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
.main-nav { | |
background-color: white; | |
left: 0; | |
position: fixed; | |
top: 0; | |
width: 100%; | |
} | |
.main-nav__list { | |
padding-left: 3.14%; | |
} | |
.main-nav__list li { | |
border-left: 1px solid red; | |
display: block; | |
float: left; | |
padding: 4px 1em; | |
} | |
.main-nav__list__list a { | |
color: red; | |
font-size: 1.4em; | |
text-align: center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment