mirror of
https://github.com/ipdb/website.git
synced 2024-11-12 00:04:48 +01:00
38 lines
764 B
SCSS
38 lines
764 B
SCSS
|
//
|
||
|
// Button variants
|
||
|
//
|
||
|
@mixin button-variant($color, $background) {
|
||
|
$active-background: lighten($background, 5%);
|
||
|
color: $color;
|
||
|
background: $background;
|
||
|
|
||
|
&:hover,
|
||
|
&:focus {
|
||
|
color: $color;
|
||
|
background-color: $active-background;
|
||
|
}
|
||
|
|
||
|
&:active {
|
||
|
color: $color;
|
||
|
background: darken($background, 2%);
|
||
|
transition: none;
|
||
|
}
|
||
|
|
||
|
&.disabled,
|
||
|
&:disabled {
|
||
|
&:focus {
|
||
|
background-color: $background;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.icon { fill: $color; }
|
||
|
}
|
||
|
|
||
|
// Button sizes
|
||
|
@mixin button-size($padding-y, $padding-x, $font-size, $line-height, $border-radius) {
|
||
|
padding: $padding-y $padding-x;
|
||
|
font-size: $font-size;
|
||
|
line-height: $line-height;
|
||
|
border-radius: $border-radius;
|
||
|
}
|