Created
August 24, 2016 21:50
-
-
Save tjinauyeung/2552e38cff0b80098b7c9f46653da77b to your computer and use it in GitHub Desktop.
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
/* PLACEHOLDER | |
============================================= */ | |
%btn { | |
padding: 10px; | |
color:#fff; | |
curser: pointer; | |
border: none; | |
shadow: none; | |
font-size: 14px; | |
width: 150px; | |
margin: 5px 0; | |
text-align: center; | |
display: block; | |
} | |
/* BUTTON MIXIN | |
============================================= */ | |
@mixin btn-background($btn-background) { | |
@extend %btn; | |
background-color: $btn-background; | |
&:hover { | |
background-color: lighten($btn-background,10%); | |
} | |
} | |
/* BUTTONS | |
============================================= */ | |
.cta-btn { | |
@include btn-background(green); | |
} | |
.main-btn { | |
@include btn-background(orange); | |
} | |
.info-btn { | |
@include btn-background(blue); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment