summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLapo Calamandrei <calamandrei@gmail.com>2014-06-11 03:36:19 +0200
committerLapo Calamandrei <calamandrei@gmail.com>2014-06-11 03:36:19 +0200
commit35809a1116f33e69f3f19ac1e2285c238650bb74 (patch)
tree155241acb110bdc65c7389bc9dc168084f8aa8f5
parentd399bd42f86f0a8efbcc3b43c81caaa606a56ded (diff)
downloadgnome-themes-standard-35809a1116f33e69f3f19ac1e2285c238650bb74.tar.gz
fix GtkLinkButton blinking borders on hover in backdrop
- shouldn't be needed, but explicitelly setting no borders and background for backdrop state fixes the weird transition
-rw-r--r--themes/Adwaita/gtk-3.0/_common.scss3
-rw-r--r--themes/Adwaita/gtk-3.0/gtk-contained-dark.css2
-rw-r--r--themes/Adwaita/gtk-3.0/gtk-contained.css2
3 files changed, 5 insertions, 2 deletions
diff --git a/themes/Adwaita/gtk-3.0/_common.scss b/themes/Adwaita/gtk-3.0/_common.scss
index 799c8e6d..864b2bd3 100644
--- a/themes/Adwaita/gtk-3.0/_common.scss
+++ b/themes/Adwaita/gtk-3.0/_common.scss
@@ -379,6 +379,9 @@ GtkLinkButton.button {
}
&:backdrop {
color: $selected_bg_color;
+ @extend %undecorated_button; //This shouldn't be needed but avoids
+ //a weird transition which for some reason
+ //makes borders blink on hover
}
}
diff --git a/themes/Adwaita/gtk-3.0/gtk-contained-dark.css b/themes/Adwaita/gtk-3.0/gtk-contained-dark.css
index d37a1a30..222a9500 100644
--- a/themes/Adwaita/gtk-3.0/gtk-contained-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-contained-dark.css
@@ -419,7 +419,7 @@
border-radius: 3px;
border-style: solid; }
-GtkLinkButton.button, GtkLinkButton.button:hover, GtkLinkButton.button:active {
+GtkLinkButton.button, GtkLinkButton.button:hover, GtkLinkButton.button:active, GtkLinkButton.button:backdrop {
border-color: transparent;
background-color: transparent;
background-image: none;
diff --git a/themes/Adwaita/gtk-3.0/gtk-contained.css b/themes/Adwaita/gtk-3.0/gtk-contained.css
index 195d98e4..687b27ad 100644
--- a/themes/Adwaita/gtk-3.0/gtk-contained.css
+++ b/themes/Adwaita/gtk-3.0/gtk-contained.css
@@ -419,7 +419,7 @@
border-radius: 3px;
border-style: solid; }
-GtkLinkButton.button, GtkLinkButton.button:hover, GtkLinkButton.button:active {
+GtkLinkButton.button, GtkLinkButton.button:hover, GtkLinkButton.button:active, GtkLinkButton.button:backdrop {
border-color: transparent;
background-color: transparent;
background-image: none;