From dc6ba8d6883c2038d624cd35f28ce78a3c9117d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 18 Feb 2020 20:34:01 +0100 Subject: [PATCH] Adwaita: Leave .circular .osd buttons alone! .osd suggests a particular color/background/hover style, while .circular only suggests roundness. So for buttons that use both classes, make sure the former takes precedence with regard to background/hover. --- gtk/theme/Adwaita/_common.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index e6d0f5a407..03a94d2c63 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -920,14 +920,14 @@ button { $_border_bg: linear-gradient(to top, $alt-borders-color 25%, $borders-color 50%); - &:not(.flat):not(:checked):not(:active):not(:disabled):not(:backdrop) { + &:not(.flat):not(.osd):not(:checked):not(:active):not(:disabled):not(:backdrop) { @include button(normal); background-image: $button_fill, $_border_bg; border-color: transparent; } - &:hover:not(:checked):not(:active):not(:disabled):not(:backdrop) { + &:hover:not(.osd):not(:checked):not(:active):not(:disabled):not(:backdrop) { @include button(hover); background-image: $button_fill, $_border_bg;