summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLapo Calamandrei <calamandrei@gmail.com>2016-03-19 18:09:22 +0100
committerLapo Calamandrei <calamandrei@gmail.com>2016-03-19 18:09:22 +0100
commit20a8ac5542736e7f96c916982ac969b160a59e2d (patch)
treefe8e995e1afd8008fe3a499c06deff757035d157
parent8f2213836cb6b85ac70d9fa340f481a2d9d2a636 (diff)
downloadgtk+-20a8ac5542736e7f96c916982ac969b160a59e2d.tar.gz
Adwaita: reset entry props on horizontal spinbuttons
the spinbutton node is where the styling is applied, the leftover properties on the entry node make a backdrop transition bad.
-rw-r--r--gtk/theme/Adwaita/_common.scss3
-rw-r--r--gtk/theme/Adwaita/gtk-contained-dark.css2
-rw-r--r--gtk/theme/Adwaita/gtk-contained.css2
3 files changed, 7 insertions, 0 deletions
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 1da27c183a..6036bc71b1 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -987,9 +987,12 @@ spinbutton {
entry {
min-width: 28px;
+ // reset all the other props since the spinbutton node is styled here
margin: 0;
background: none;
+ background-color: transparent;
border: none;
+ border-radius: 0;
box-shadow: none;
}
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index ab6fbdefa3..e4495ed5df 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -1215,7 +1215,9 @@ spinbutton:not(.vertical) {
min-width: 28px;
margin: 0;
background: none;
+ background-color: transparent;
border: none;
+ border-radius: 0;
box-shadow: none; }
spinbutton:not(.vertical) button {
min-height: 16px;
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 33e08fbcf6..ccdac89616 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -1221,7 +1221,9 @@ spinbutton:not(.vertical) {
min-width: 28px;
margin: 0;
background: none;
+ background-color: transparent;
border: none;
+ border-radius: 0;
box-shadow: none; }
spinbutton:not(.vertical) button {
min-height: 16px;