Last active
December 27, 2015 12:49
-
-
Save elyseholladay/7328616 to your computer and use it in GitHub Desktop.
button example 4: with mixin
Get Sassy talk examples for Thunder Plains Conf 11/7/13
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
.button_primary, .button_calltoaction, .button_secondary, .button_tertiary, .button_disabled, .button_textonly { | |
box-sizing: border-box; | |
border: 0; | |
border-radius: 4px; | |
cursor: pointer; | |
display: inline-block; | |
font-family: "Pluto Sans", sans-serif; | |
font-size: 24px; | |
line-height: 2.6; | |
font-weight: normal; | |
letter-spacing: 1px; | |
margin: 0 20px 0 0; | |
padding: .25em 1em; | |
text-align: center; | |
text-transform: uppercase; | |
text-decoration: none !important; | |
} | |
/* Button Types */ | |
.button_primary { | |
color: #c6eff0; | |
background-color: #2ba2a6; | |
box-shadow: 0px 8px 0px 0px rgba(43, 162, 166, 0.25); | |
border-right: 1px solid #217a7d; | |
border-bottom: 1px solid #217a7d; | |
text-shadow: 0px 1px 1px #0c2b2c; | |
} | |
.button_primary:active, .button_primary:hover { | |
background-color: #217a7d; | |
} | |
.button_calltoaction { | |
color: white; | |
background-color: #237cbe; | |
box-shadow: 0px 8px 0px 0px rgba(35, 124, 190, 0.25); | |
border-right: 1px solid #1b6093; | |
border-bottom: 1px solid #1b6093; | |
text-shadow: 0px 1px 1px #0b283d; | |
font-size: 32px; | |
} | |
.button_calltoaction:active, .button_calltoaction:hover { | |
background-color: #1b6093; | |
} | |
.button_secondary { | |
color: #d579cc; | |
background-color: #993399; | |
box-shadow: 0px 8px 0px 0px rgba(153, 51, 153, 0.25); | |
border-right: 1px solid #732673; | |
border-bottom: 1px solid #732673; | |
text-shadow: 0px 1px 1px #260d26; | |
} | |
.button_secondary:active, .button_secondary:hover { | |
background-color: #732673; | |
} | |
.button_tertiary { | |
color: white; | |
background-color: #e6475b; | |
box-shadow: 0px 8px 0px 0px rgba(230, 71, 91, 0.25); | |
border-right: 1px solid #dc1e36; | |
border-bottom: 1px solid #dc1e36; | |
text-shadow: 0px 1px 1px #821220; | |
} | |
.button_tertiary:active, .button_tertiary:hover { | |
background-color: #dc1e36; | |
} | |
.button_disabled { | |
color: grey; | |
background-color: #cccccc; | |
box-shadow: none; | |
border: 0; | |
text-shadow: none; | |
cursor: default; | |
} | |
.button_disabled:active, .button_disabled:hover { | |
background-color: #b3b3b3; | |
} | |
.button_textonly { | |
color: grey; | |
background-color: transparent; | |
box-shadow: none; | |
border: 0; | |
text-shadow: none; | |
font-size: 16px; | |
text-transform: none; | |
} | |
.button_textonly:active, .button_textonly:hover { | |
background-color: transparent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment