Created
January 10, 2012 15:28
-
-
Save laustdeleuran/1589605 to your computer and use it in GitHub Desktop.
CSS Object/Module
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
/** | |
* Long description. | |
* | |
* Short description. | |
* | |
* @section 2.1.3 Form Buttons | |
* @pseudo :hover Highlights when hovering. | |
* @pseudo :disabled Dims the button when disabled. | |
* @modifier .primary Indicates the button is the primary action. | |
* @modifier .smaller A smaller version of the button. | |
* @author Joony | |
* @version 1.2 | |
* @since 1.0 | |
* @markup <button class="button">Default Button</button> | |
*/ | |
.button { | |
padding: 5px 15px; | |
line-height: normal; | |
font-family: "Helvetica Neue", Helvetica; | |
font-size: 12px; | |
font-weight: bold; | |
color: #666; | |
text-shadow: 0 1px rgba(255, 255, 255, 0.9); | |
border-radius: 3px; | |
border: 1px solid #ddd; | |
border-bottom-color: #bbb; | |
background: #f5f5f5; | |
background: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e5e5e5)); | |
background: -moz-linear-gradient(top, #f5f5f5, #e5e5e5); | |
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); | |
cursor: pointer; | |
} | |
.button:hover { | |
color: #337797; | |
background: #f0f7fa; | |
background: -webkit-gradient(linear, left top, left bottom, from(#f0f7fa), to(#d8eaf2)); | |
background: -moz-linear-gradient(top, #f0f7fa, #d8eaf2); | |
border-color: #cbe3ee; | |
border-bottom-color: #97c7dd; | |
} | |
.button:disabled { | |
opacity: 0.5; | |
} | |
.button.primary { | |
color: #fff; | |
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4); | |
border-color: #74bb5a; | |
border-bottom-color: #509338; | |
background: #8add6d; | |
background: -webkit-gradient(linear, left top, left bottom, from(#8add6d), to(#60b044)); | |
background: -moz-linear-gradient(top, #8add6d, #60b044); | |
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); | |
} | |
.button.smaller { | |
font-size: 8px; | |
padding: 4px 7px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment