Last active
December 21, 2015 09:19
-
-
Save KatieK2/6284603 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.2.10) | |
// Compass (v0.13.alpha.4) | |
// ---- | |
@mixin button($type: normal) { | |
border: 1px solid orange; | |
background: orange; | |
color: white; | |
display: block; | |
@if $type == anchor { | |
padding: 10px 10px 0 10px; | |
} @else { | |
padding: 0; | |
} | |
} | |
button.my_button { | |
@include button; | |
} | |
a.my_button { | |
@include button($type: anchor); | |
} |
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
button.my_button { | |
border: 1px solid orange; | |
background: orange; | |
color: white; | |
display: block; | |
padding: 0; | |
} | |
a.my_button { | |
border: 1px solid orange; | |
background: orange; | |
color: white; | |
display: block; | |
padding: 10px 10px 0 10px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment