mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
19 lines
605 B
SCSS
19 lines
605 B
SCSS
|
|
// Button backgrounds
|
|
// ------------------
|
|
@mixin buttonBackground($startColor, $endColor, $textColor: #fff, $textShadow: 0 -1px 0 rgba(0,0,0,.25)) {
|
|
// gradientBar will set the background to a pleasing blend of these, to support IE<=9
|
|
@include gradientBar($startColor, $endColor, $textColor, $textShadow);
|
|
|
|
box-shadow: inset 0 -4px rgba(0,0,0,0.3);
|
|
|
|
// in these cases the gradient won't cover the background, so we override
|
|
&:hover, &:focus, &:active, &.active, &.disabled, &[disabled] {
|
|
color: $textColor;
|
|
background-image: none;
|
|
background-color: darken($endColor, 2%);
|
|
}
|
|
}
|
|
|
|
|