diff options
author | nana-4 <hnmaigo@gmail.com> | 2020-01-17 19:57:42 +0900 |
---|---|---|
committer | Florian Müllner <fmuellner@gnome.org> | 2020-02-06 21:48:46 +0100 |
commit | c11bc4edefc9fecd098ea8ab2720657ed9f2df7c (patch) | |
tree | fd068374493d01232e17081c10727d459500e07e /_common.scss | |
parent | 2586e431d083b1a93d948aa8be85fc713ee716e9 (diff) | |
download | gnome-shell-sass-c11bc4edefc9fecd098ea8ab2720657ed9f2df7c.tar.gz |
theme: Regain focus ring in %bubble_button
Instead of removing all button shadows forcibly with
`box-shadow: none !important`, remove only the drop shadows selectively
with button(). This allows %bubble_button to preserve the focus ring
while eliminating the drop shadows.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/2088
Diffstat (limited to '_common.scss')
-rw-r--r-- | _common.scss | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/_common.scss b/_common.scss index d014283..aea0dbb 100644 --- a/_common.scss +++ b/_common.scss @@ -156,19 +156,18 @@ stage { // buttons in dialogs %bubble_button { - @include button(normal); + @include button(normal, $shadow: none); padding: $base_padding * 2; border-color: $bubble_borders_color; border-style: solid; border-width: 1px; border-left-width: 0; border-bottom-width: 0; - box-shadow:none !important; - &:insensitive { @include button(insensitive);} - &:hover { @include button(hover);} - &:focus { @include button(focus);} - &:active { @include button(active);} + &:insensitive { @include button(insensitive, $shadow: none); } + &:hover { @include button(hover, $shadow: none); } + &:focus { @include button(focus, $shadow: none); } + &:active { @include button(active, $shadow: none); } // radius is 2 pixel less to fit in bubble &:first-child { |