1
0
mirror of https://github.com/ipdb/website.git synced 2024-09-23 17:48:51 +02:00
website/_src/_assets/scss/_mixins/_buttons.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;
}