Slide 81
Slide 81 text
// Nesting
// ------------------------------------------------------------------
button, input[type="button"], input[type="submit"], input[type="reset"], .btn {
display: inline-block;
padding: 4px 10px 4px;
font-family: $buttonFontFamily;
font-size: $baseFontSize;
line-height: $baseLineHeight;
color: $grayDarker !important;
text-align: center;
text-decoration: none !important;
text-shadow: 0 1px 1px rgba(255,255,255,.75);
@include gradient-vertical-three-colors($white, $white, 25%, darken($white, 10%));
// Don't use .gradientbar() here since it does a three-color gradient
border: 1px solid $grayLighter;
border-bottom-color: $grayLight;
@include border-radius(4px);
$shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
@include box-shadow($shadow);
cursor: pointer;
// Hover state
&:hover {
@include transition(background-position .1s linear);
color: $grayDarker;
text-decoration: none;
background-color: darken($white, 10%);
background-position: 0 -15px;
}
&.warning {
@include buttonBackground(lighten($orange, 15%), $orange);
~ ul.dropdown-menu li a:hover {
@include buttonBackground(lighten($orange, 15%), $orange);
}
}
}
Tuesday, March 27, 12