Created
July 24, 2014 16:03
-
-
Save MichaelArestad/9e777a74c0b71572fc7a 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
| // ---- | |
| // Sass (v3.3.10) | |
| // Compass (v1.0.0.alpha.20) | |
| // ---- | |
| $π:( | |
| π : tomato, | |
| π: brown, | |
| π: SaddleBrown, | |
| πΊ: DarkGoldenRod | |
| ); | |
| $π»:( | |
| πΊ:(), | |
| π :( | |
| π¨: map-get($π, π ), | |
| ), | |
| π©:( | |
| π¨: map-get($π,π), | |
| β‘οΈ: map-get($π,π) | |
| ), | |
| ); | |
| // Base button styles via an extend | |
| %πΊ { | |
| display: inline-block; | |
| margin: 0; | |
| padding: .4em .9em; | |
| border-width: 1px 1px 2px; | |
| border-style: solid; | |
| border-radius: em(3); | |
| text-decoration: none; | |
| white-space: nowrap; | |
| cursor: pointer; | |
| appearance: none; | |
| box-shadow: 0 -1px 0 rgba(255,255,255,0.15) inset; | |
| &:active { | |
| border-width: 2px 1px 1px | |
| } | |
| } | |
| // The Mixin | |
| @mixin πΊ($map...) { | |
| @extend %πΊ; | |
| @each $π in $map { | |
| // Defaults | |
| $πΈ: #fff; | |
| @if map-has-key($π, π¨) { | |
| $πΈ: map-get($π, π¨); | |
| } | |
| $π: #fff; | |
| @if map-has-key($π, β‘οΈ) { | |
| $π: map-get($π, β‘οΈ); | |
| } | |
| background: $πΈ; | |
| color: $π; | |
| } | |
| } | |
| // Magic | |
| @each $π in map-keys($π») { | |
| .π#{$π} { | |
| @include πΊ(map-get($π», $π)); | |
| } | |
| } |
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
| @charset "UTF-8"; | |
| .ππΊ, .ππ , .ππ© { | |
| display: inline-block; | |
| margin: 0; | |
| padding: .4em .9em; | |
| border-width: 1px 1px 2px; | |
| border-style: solid; | |
| border-radius: em(3); | |
| text-decoration: none; | |
| white-space: nowrap; | |
| cursor: pointer; | |
| appearance: none; | |
| box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.15) inset; | |
| } | |
| .ππΊ:active, .ππ :active, .ππ©:active { | |
| border-width: 2px 1px 1px; | |
| } | |
| .ππΊ { | |
| background: white; | |
| color: white; | |
| } | |
| .ππ { | |
| background: tomato; | |
| color: white; | |
| } | |
| .ππ© { | |
| background: brown; | |
| color: saddlebrown; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment