From 1bfbd23a0c692cf8b19dd86448eaa9ba8e6cb8af Mon Sep 17 00:00:00 2001 From: Lapo Calamandrei Date: Sun, 14 Feb 2016 14:44:57 +0100 Subject: [PATCH] Adwaita: don't set a border for drop targets to avoid active drop targets to grow. --- gtk/theme/Adwaita/_common.scss | 5 ++++- gtk/theme/Adwaita/gtk-contained-dark.css | 3 ++- gtk/theme/Adwaita/gtk-contained.css | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 495dc3cc45..723a057796 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -3757,7 +3757,10 @@ button.circular { // FIXME: aggregate to buttons } *:drop(active):focus, -*:drop(active) { border: 1px solid black; } // FIXME this makes boxes grow and looks pretty bad, needs to be handled differently +*:drop(active) { // FIXME figure out a proper color + border-color: black; + box-shadow: inset 0 0 0 1px black; +} stackswitcher button.text-button { min-width: 100px; } // FIXME aggregate with buttons diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css index bf7ad2c9c1..929872665a 100644 --- a/gtk/theme/Adwaita/gtk-contained-dark.css +++ b/gtk/theme/Adwaita/gtk-contained-dark.css @@ -4459,7 +4459,8 @@ button.circular { *:drop(active):focus, *:drop(active) { - border: 1px solid black; } + border-color: black; + box-shadow: inset 0 0 0 1px black; } stackswitcher button.text-button { min-width: 100px; } diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css index 770534ec39..f79b0d8dc0 100644 --- a/gtk/theme/Adwaita/gtk-contained.css +++ b/gtk/theme/Adwaita/gtk-contained.css @@ -4601,7 +4601,8 @@ button.circular { *:drop(active):focus, *:drop(active) { - border: 1px solid black; } + border-color: black; + box-shadow: inset 0 0 0 1px black; } stackswitcher button.text-button { min-width: 100px; }