GTK3: theme flat buttons
This commit is contained in:
parent
1db8c6a02c
commit
62e299b648
@ -5088,12 +5088,16 @@ window.csd.unified:not(.solid-csd):not(.fullscreen):not(.tiled):not(.tiled-top):
|
||||
headerbar stackswitcher button:checked:active,
|
||||
headerbar stackswitcher button:checked:checked,
|
||||
headerbar button.toggle:active,
|
||||
headerbar button.toggle:checked,
|
||||
button:active,
|
||||
button:checked {
|
||||
headerbar button.toggle:checked, button.flat:hover, button:active, button:checked {
|
||||
background: #1b1d24;
|
||||
box-shadow: inset 0 3px 5px -4px rgba(0, 0, 0, 0.3); }
|
||||
|
||||
button.flat {
|
||||
border-color: transparent;
|
||||
transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94); }
|
||||
button.flat:hover {
|
||||
transition: none; }
|
||||
|
||||
/**********
|
||||
* Entry *
|
||||
**********/
|
||||
|
||||
@ -5088,12 +5088,16 @@ window.csd.unified:not(.solid-csd):not(.fullscreen):not(.tiled):not(.tiled-top):
|
||||
headerbar stackswitcher button:checked:active,
|
||||
headerbar stackswitcher button:checked:checked,
|
||||
headerbar button.toggle:active,
|
||||
headerbar button.toggle:checked,
|
||||
button:active,
|
||||
button:checked {
|
||||
headerbar button.toggle:checked, button.flat:hover, button:active, button:checked {
|
||||
background: #1b1d24;
|
||||
box-shadow: inset 0 3px 5px -4px rgba(0, 0, 0, 0.3); }
|
||||
|
||||
button.flat {
|
||||
border-color: transparent;
|
||||
transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94); }
|
||||
button.flat:hover {
|
||||
transition: none; }
|
||||
|
||||
/**********
|
||||
* Entry *
|
||||
**********/
|
||||
|
||||
@ -5110,12 +5110,16 @@ window.csd.unified:not(.solid-csd):not(.fullscreen):not(.tiled):not(.tiled-top):
|
||||
headerbar stackswitcher button:checked:active,
|
||||
headerbar stackswitcher button:checked:checked,
|
||||
headerbar button.toggle:active,
|
||||
headerbar button.toggle:checked,
|
||||
button:active,
|
||||
button:checked {
|
||||
headerbar button.toggle:checked, button.flat:hover, button:active, button:checked {
|
||||
background: #f2f2f2;
|
||||
box-shadow: inset 0 3px 5px -4px rgba(0, 0, 0, 0.1); }
|
||||
|
||||
button.flat {
|
||||
border-color: transparent;
|
||||
transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94); }
|
||||
button.flat:hover {
|
||||
transition: none; }
|
||||
|
||||
/**********
|
||||
* Entry *
|
||||
**********/
|
||||
|
||||
@ -19,11 +19,23 @@ $_wm_border: if($variant=='light', transparentize(black, 0.9), transparentize($b
|
||||
/**********
|
||||
* Button *
|
||||
**********/
|
||||
%button_active,
|
||||
button:active,
|
||||
button:checked, {
|
||||
background: $dark_fill;
|
||||
box-shadow: $_widget_inset_shadow;
|
||||
button {
|
||||
@at-root %button_active,
|
||||
&:active,
|
||||
&:checked, {
|
||||
background: $dark_fill;
|
||||
box-shadow: $_widget_inset_shadow;
|
||||
}
|
||||
|
||||
&.flat {
|
||||
border-color: transparent;
|
||||
transition: $button_transition;
|
||||
|
||||
&:hover {
|
||||
@extend %button_active;
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**********
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user