Created
July 16, 2014 14:27
-
-
Save Guilh/21bfd8e4f489ad56de7a 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.3.10) | |
// Compass (v1.0.0.alpha.20) | |
// ---- | |
%button { | |
background: #45beff; | |
border: none; | |
padding: 1em 2em; | |
font-size: 16px; | |
&:hover { | |
opacity: 0.75; | |
} | |
} | |
%button--green { | |
background: #3efa95; | |
} | |
%button--red { | |
background: #ff3a6a; | |
} | |
%button--large { | |
font-size:20px; | |
} | |
%button--rounded { | |
border-radius: 10px; | |
} | |
.button { | |
@extend %button; | |
&.-green { | |
@extend %button--green; | |
} | |
&.-large { | |
@extend %button--large; | |
} | |
} | |
.button--save { | |
@extend %button; | |
@extend %button--large; | |
@extend %button--rounded; | |
@extend %button--green; | |
} | |
.button--delete { | |
@extend %button; | |
@extend %button--large; | |
@extend %button--rounded; | |
@extend %button--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, .button--save, .button--delete { | |
background: #45beff; | |
border: none; | |
padding: 1em 2em; | |
font-size: 16px; | |
} | |
.button:hover, .button--save:hover, .button--delete:hover { | |
opacity: 0.75; | |
} | |
.button.-green, .button--save { | |
background: #3efa95; | |
} | |
.button--delete { | |
background: #ff3a6a; | |
} | |
.button.-large, .button--save, .button--delete { | |
font-size: 20px; | |
} | |
.button--save, .button--delete { | |
border-radius: 10px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment