Created
January 19, 2011 22:12
-
-
Save adrusi/786996 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
$button-top-left-border: #cccccc | |
$button-bottom-right-border: #bbbbbb | |
$button-top-background: #f9f9f9 | |
$button-bottom-background: #e3e3e3 | |
$button-text-color: #000000 | |
$button-active-top-left-border: #555555 | |
$button-active-bottom-right-border: #444444 | |
$button-active-top-background: #666666 | |
$button-active-bottom-background: #7c7c7c | |
$button-active-text-color: #ffffff | |
$button-selector: ".button" | |
$button-set-selector: ".buttonset" | |
// OPTIONS | |
// ===================================== | |
// "unround" : suppress rounded corners | |
// for IE on active buttons | |
// in buttonsets | |
// | |
// "uncolor" : keep the border color | |
// the same for active | |
// buttons in buttons sets | |
// in IE | |
$button-set-ie-compenstation: "unround" |
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
@import vars | |
#{$button-selector}:focus | |
outline: 0 | |
#{$button-set-selector} | |
*zoom: 1 | |
*display: inline | |
@if $button-set-ie-compenstation == "uncolor" | |
#{$button-selector}:active | |
z-index: 1 | |
border: | |
top: 1px solid $button-top-left-border | |
bottom: 1px solid $button-bottom-right-border | |
&:after | |
border: | |
left: 1px solid $button-top-left-border | |
right: 1px solid $button-bottom-right-border | |
@if $button-set-ie-compenstation == "unround" | |
#{$button-selector}:active:after | |
left: 0 | |
right: 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment