scss: introduce %inverted-button & $cancel-button-style (#51789)
This commit is contained in:
parent
5c9dae0b41
commit
ec1ddb68ac
|
@ -23,6 +23,7 @@ $widget-focus-box-shadow: none !default;
|
|||
|
||||
$button-focus-outline: $widget-focus-outline !default;
|
||||
$button-focus-outline-offset: $widget-focus-outline-offset !default;
|
||||
$cancel-button-style: "%button" !default; // "%button" || "%inverted-button" || .custom-selector
|
||||
|
||||
$widget-custom-radio-checkbox: false !default;
|
||||
$widget-custom-radio-checkbox-color: $button-background !default;
|
||||
|
@ -216,8 +217,24 @@ div.buttons div {
|
|||
}
|
||||
}
|
||||
|
||||
%cancel-button {
|
||||
%inverted-button {
|
||||
@extend %button;
|
||||
background-color: $button-color;
|
||||
color: $button-background;
|
||||
@if (extract-color($button-border) == transparent)
|
||||
and (lightness($button-color) > 90%) {
|
||||
border: 1px solid $button-background;
|
||||
} @else {
|
||||
border: $button-border;
|
||||
}
|
||||
&:hover {
|
||||
background: $button-hover-color;
|
||||
color: $button-hover-background;
|
||||
}
|
||||
}
|
||||
|
||||
%cancel-button {
|
||||
@extend #{$cancel-button-style};
|
||||
}
|
||||
|
||||
.fargo-pick-popup button,
|
||||
|
|
Loading…
Reference in New Issue