aboutsummaryrefslogtreecommitdiff
path: root/common/gtk-3.0/3.20/sass
diff options
context:
space:
mode:
authorHorst31802016-02-19 11:06:17 +0100
committerHorst31802016-02-19 11:06:17 +0100
commitc361a65cc27b0ebab7f388517135d4201bd16bd2 (patch)
treec6f76d22e269b3374d2ddefb304512c5f9a1d862 /common/gtk-3.0/3.20/sass
parenta4be52f1a58bf0802e061bb3e17377f30c288f71 (diff)
downloadsolarc-theme-c361a65cc27b0ebab7f388517135d4201bd16bd2.tar.gz
solarc-theme-c361a65cc27b0ebab7f388517135d4201bd16bd2.tar.xz
solarc-theme-c361a65cc27b0ebab7f388517135d4201bd16bd2.zip
simplify comboboxes
Diffstat (limited to 'common/gtk-3.0/3.20/sass')
-rw-r--r--common/gtk-3.0/3.20/sass/_common.scss69
1 files changed, 18 insertions, 51 deletions
diff --git a/common/gtk-3.0/3.20/sass/_common.scss b/common/gtk-3.0/3.20/sass/_common.scss
index a148fba..ae3a0a8 100644
--- a/common/gtk-3.0/3.20/sass/_common.scss
+++ b/common/gtk-3.0/3.20/sass/_common.scss
@@ -890,68 +890,35 @@ spinbutton {
//
combobox {
- > button.combo {
- padding-left: 8px;
- padding-right: 8px;
- }
-
- &:disabled {
- color: $insensitive_fg_color;
- }
arrow {
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
min-height: 16px;
min-width: 16px;
}
- > entry.combo {
- &:dir(ltr) {
- border-top-right-radius: 0;
- border-bottom-right-radius: 0;
- border-right-style: none;
-
- @if $variant=='light' { &:focus { box-shadow: 1px 0 $selected_bg_color; } }
- }
- &:dir(rtl) {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
- border-left-style: none;
- @if $variant=='light' { &:focus { box-shadow: -1px 0 $selected_bg_color; } }
+ &.linked {
+ button:nth-child(2) {
+ &:dir(ltr) { @extend %linked:last-child; }
+ &:dir(rtl) { @extend %linked:first-child; }
}
}
- > button.combo:not(:only-child) {
- &:dir(ltr) {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
- }
- &:dir(rtl) {
- border-top-right-radius: 0;
- border-bottom-right-radius: 0;
- }
+
+ .linked > & > button.combo {
+ // the combobox is a composite widget so the way we do button linking doesn't
+ // work, special case needed.
+ &:dir(ltr),
+ &:dir(rtl) { @extend %linked_middle; } // specificity bump
}
-}
-.linked > combobox > button.combo {
- // the combo is a composite widget so the way we do button linkind doesn't
- // work, special case needed. See
- // https://bugzilla.gnome.org/show_bug.cgi?id=733979
- &:dir(ltr),
- &:dir(rtl) { @extend %linked_middle; } // specificity bump
-}
-.linked > combobox:first-child > button.combo {
- @extend %linked:first-child;
-}
-.linked > combobox:last-child > button.combo {
- @extend %linked:last-child;
-}
-.linked > combobox:only-child > button.combo {
- @extend %linked:only-child;
-}
+ .linked:not(.vertical) > &:first-child > button.combo { @extend %linked:first-child; }
+ .linked:not(.vertical) > &:last-child > button.combo { @extend %linked:last-child; }
+ .linked:not(.vertical) > &:only-child > button.combo { @extend %linked:only-child; }
-.linked.vertical > combobox > button.combo { @extend %linked_vertical_middle; }
-.linked.vertical > combobox:first-child > button.combo { @extend %linked_vertical:first-child; }
-.linked.vertical > combobox:last-child > button.combo { @extend %linked_vertical:last-child; }
-.linked.vertical > combobox:only-child > button.combo { @extend %linked_vertical:only-child; }
+ .linked.vertical > & > button.combo { @extend %linked_vertical_middle; }
+ .linked.vertical > &:first-child > button.combo { @extend %linked_vertical:first-child; }
+ .linked.vertical > &:last-child > button.combo { @extend %linked_vertical:last-child; }
+ .linked.vertical > &:only-child > button.combo { @extend %linked_vertical:only-child; }
+}
//
// Toolbars