Last active
August 29, 2015 14:13
-
-
Save realph/bc403c4880cf6a07c52e 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
<a class="button-pri">Primary Button</a> | |
<a class="button-sec">Secondary Button</a> |
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.4.9) | |
// Compass (v1.0.1) | |
// ---- | |
$transparent: transparent; | |
@mixin button-style($bg: $transparent, $color: white) { | |
background-color: $bg; | |
color: $color; | |
@if $bg == $transparent { | |
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 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 { | |
background-color: transparent; | |
color: red; | |
box-shadow: inset 0 0 0 1px red; | |
} |
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
<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