Created
July 29, 2014 00:18
-
-
Save Guilh/888e864bb4716f6a160d 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
<nav class="main-nav"> | |
<a href="#">Link 1</a> | |
<a href="#">Link 2</a> | |
<a href="#">Link 3</a> | |
<a href="#">Link 4</a> | |
</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
// ---- | |
// Sass (v3.3.10) | |
// Compass (v1.0.0.alpha.20) | |
// ---- | |
@mixin display ( | |
$display, | |
$padding: null, | |
$r-margin: null, | |
$l-margin: null) { | |
display: $display; | |
padding: $padding; | |
margin-left: $l-margin; | |
margin-right: $r-margin; | |
} | |
.main-nav a { | |
@include display(inline-block, 10px, 20px); | |
color: white; | |
background: tomato; | |
text-decoration: none; | |
} | |
$text: cheese; | |
div:before { | |
content: "I like #{$text} pizza!"; | |
} | |
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 a { | |
display: inline-block; | |
padding: 10px; | |
margin-right: 20px; | |
color: white; | |
background: tomato; | |
text-decoration: none; | |
} | |
div:before { | |
content: "I like cheese pizza!"; | |
} |
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 class="main-nav"> | |
<a href="#">Link 1</a> | |
<a href="#">Link 2</a> | |
<a href="#">Link 3</a> | |
<a href="#">Link 4</a> | |
</nav> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment