Created
January 8, 2015 15:08
-
-
Save realph/f1079496e74af06ff5f1 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
<a class="button-pri">Primary Button</a> | |
<a class="button-sec">Secondary Button</a> |
This file contains hidden or 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.4.9) | |
// Compass (v1.0.1) | |
// ---- | |
$null: null; | |
@mixin button-style($bg: $null, $color: white) { | |
background-color: $bg; | |
color: $color; | |
@if $bg == $null { | |
box-shadow: inset 0 0 0 1px $color; | |
} | |
} | |
.button-pri { | |
@include button-style($bg: red); | |
} | |
.button-sec { | |
@include button-style($color: red); | |
} | |
This file contains hidden or 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-pri { | |
background-color: red; | |
color: white; | |
} | |
.button-sec { | |
color: red; | |
box-shadow: inset 0 0 0 1px red; | |
} |
This file contains hidden or 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
<a class="button-pri">Primary Button</a> | |
<a class="button-sec">Secondary Button</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment