Created
August 8, 2014 19:00
-
-
Save laras126/e22487f52db9cdcff165 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
<div class="hello"> | |
<a class="btn-main" href="#">Hi there!</a> | |
<a class="btn btn-secondary" href="#">Ok bye!</a> | |
</div> |
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.14) | |
// Compass (v1.0.0.rc.1) | |
// ---- | |
body { margin-top: 30px; } | |
$primary-color: #4A8BBD; | |
$secondary-color: #61CE3C; | |
@mixin button($color) { | |
background: $color; | |
@extend %btn; | |
&:hover { | |
background: darken($color, 20%); | |
} | |
&:active { | |
background: darken($color, 40%); | |
} | |
} | |
.btn-main { | |
@include button($primary-color); | |
} | |
.btn-secondary { | |
@include button($secondary-color); | |
} | |
%btn { | |
padding: 1em 2em; | |
border-radius: 10px; | |
border: 0; | |
text-decoration: none; | |
color: #fff; | |
font-family: Helvetica; | |
} |
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
body { | |
margin-top: 30px; | |
} | |
.btn-main { | |
background: #4a8bbd; | |
} | |
.btn-main:hover { | |
background: #2b5576; | |
} | |
.btn-main:active { | |
background: #101f2b; | |
} | |
.btn-secondary { | |
background: #61ce3c; | |
} | |
.btn-secondary:hover { | |
background: #3a8321; | |
} | |
.btn-secondary:active { | |
background: #16320c; | |
} | |
.btn-main, .btn-secondary { | |
padding: 1em 2em; | |
border-radius: 10px; | |
border: 0; | |
text-decoration: none; | |
color: #fff; | |
font-family: Helvetica; | |
} |
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
<div class="hello"> | |
<a class="btn-main" href="#">Hi there!</a> | |
<a class="btn btn-secondary" href="#">Ok bye!</a> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment