diff options
author | Daniel Boles <dboles.src@gmail.com> | 2018-06-20 19:24:39 +0100 |
---|---|---|
committer | Daniel Boles <dboles.src@gmail.com> | 2018-06-20 19:26:29 +0100 |
commit | 7f91af251699f1fc1ad7deece235ce827c725bd7 (patch) | |
tree | 35b72bec72133be93587ee777c898090d9c1a013 | |
parent | 3f48bba79b9a5e87b6a08e827c96766d0a906e9c (diff) | |
download | gtk+-7f91af251699f1fc1ad7deece235ce827c725bd7.tar.gz |
HC: Avoid excessive selectors from prev commit
The new rule does not need to affect all those other pseudoclasses. I
just put it in the wrong scope.
-rw-r--r-- | gtk/theme/HighContrast/_common.scss | 6 | ||||
-rw-r--r-- | gtk/theme/HighContrast/gtk-contained-inverse.css | 2 | ||||
-rw-r--r-- | gtk/theme/HighContrast/gtk-contained.css | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/gtk/theme/HighContrast/_common.scss b/gtk/theme/HighContrast/_common.scss index 397a317937..200c9497ea 100644 --- a/gtk/theme/HighContrast/_common.scss +++ b/gtk/theme/HighContrast/_common.scss @@ -215,10 +215,10 @@ entry { border-color: transparent; border-radius: 0; box-shadow: none; - - // Dodge transparency in selected treeview row, else bg & fg end up same - treeview &:focus { background-color: $base_color; } } + + // Dodge transparency in selected treeview row, else bg & fg end up same + treeview &:focus { background-color: $base_color; } } &:focus { @include entry(focus); } diff --git a/gtk/theme/HighContrast/gtk-contained-inverse.css b/gtk/theme/HighContrast/gtk-contained-inverse.css index dc0365ee01..5ced7557b7 100644 --- a/gtk/theme/HighContrast/gtk-contained-inverse.css +++ b/gtk/theme/HighContrast/gtk-contained-inverse.css @@ -92,7 +92,7 @@ spinbutton:not(.vertical) undershoot.right, entry undershoot.right { background- spinbutton.flat:focus:not(.vertical), spinbutton.flat:backdrop:not(.vertical), spinbutton.flat:disabled:not(.vertical), spinbutton.flat:not(.vertical), entry.flat:focus, entry.flat:backdrop, entry.flat:disabled, entry.flat { min-height: 0; padding: 2px; background-image: none; border-color: transparent; border-radius: 0; box-shadow: none; } -treeview spinbutton.flat:focus:focus:not(.vertical), treeview spinbutton.flat:backdrop:focus:not(.vertical), treeview spinbutton.flat:disabled:focus:not(.vertical), treeview spinbutton.flat:focus:not(.vertical), treeview entry.flat:focus:focus, treeview entry.flat:backdrop:focus, treeview entry.flat:disabled:focus, treeview entry.flat:focus { background-color: #111; } +treeview spinbutton.flat:focus:not(.vertical), treeview entry.flat:focus { background-color: #111; } spinbutton:focus:not(.vertical), entry:focus { background-color: transparent; border-style: solid; background-image: linear-gradient(to bottom, #090909, #111 90%); border-color: #ddd; box-shadow: inset 0 2px 2px -2px #090909, inset 0 0 0 1px #ddd; } diff --git a/gtk/theme/HighContrast/gtk-contained.css b/gtk/theme/HighContrast/gtk-contained.css index 98ab363c39..379fea90ce 100644 --- a/gtk/theme/HighContrast/gtk-contained.css +++ b/gtk/theme/HighContrast/gtk-contained.css @@ -92,7 +92,7 @@ spinbutton:not(.vertical) undershoot.right, entry undershoot.right { background- spinbutton.flat:focus:not(.vertical), spinbutton.flat:backdrop:not(.vertical), spinbutton.flat:disabled:not(.vertical), spinbutton.flat:not(.vertical), entry.flat:focus, entry.flat:backdrop, entry.flat:disabled, entry.flat { min-height: 0; padding: 2px; background-image: none; border-color: transparent; border-radius: 0; box-shadow: none; } -treeview spinbutton.flat:focus:focus:not(.vertical), treeview spinbutton.flat:backdrop:focus:not(.vertical), treeview spinbutton.flat:disabled:focus:not(.vertical), treeview spinbutton.flat:focus:not(.vertical), treeview entry.flat:focus:focus, treeview entry.flat:backdrop:focus, treeview entry.flat:disabled:focus, treeview entry.flat:focus { background-color: #fff; } +treeview spinbutton.flat:focus:not(.vertical), treeview entry.flat:focus { background-color: #fff; } spinbutton:focus:not(.vertical), entry:focus { background-color: transparent; border-style: solid; background-image: linear-gradient(to bottom, #f7f7f7, #fff 90%); border-color: #000; box-shadow: inset 0 2px 2px -2px gray, inset 0 0 0 1px #000; } |