| 1 | /************** |
| 2 | * ComboBoxes * |
| 3 | **************/ |
| 4 | combobox { |
| 5 | arrow { |
| 6 | -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); |
| 7 | min-height: 16px; |
| 8 | min-width: 16px; |
| 9 | } |
| 10 | |
| 11 | &.linked { |
| 12 | button:nth-child(2) { |
| 13 | &:dir(ltr) { @extend %linked:last-child; } |
| 14 | &:dir(rtl) { @extend %linked:first-child; } |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | &:drop(active) { // FIXME: untested |
| 19 | box-shadow: none; |
| 20 | |
| 21 | button.combo { @extend %button_basic:drop(active); } |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | .linked > combobox > box > button.combo { |
| 26 | // the combo is a composite widget so the way we do button linking doesn't |
| 27 | // work, special case needed. See |
| 28 | // https://bugzilla.gnome.org/show_bug.cgi?id=733979 |
| 29 | |
| 30 | &:dir(ltr), |
| 31 | &:dir(rtl) { @extend %linked_middle; } // specificity bump |
| 32 | } |
| 33 | |
| 34 | .linked:not(.vertical) > combobox:first-child > box > button.combo { @extend %linked:first-child; } |
| 35 | .linked:not(.vertical) > combobox:last-child > box > button.combo { @extend %linked:last-child; } |
| 36 | .linked:not(.vertical) > combobox:only-child > box > button.combo {@extend %linked:only-child; } |
| 37 | |
| 38 | .linked.vertical > combobox > box > button.combo { @extend %linked_vertical_middle; } |
| 39 | .linked.vertical > combobox:first-child > box > button.combo { @extend %linked_vertical:first-child;} |
| 40 | .linked.vertical > combobox:last-child > box > button.combo { @extend %linked_vertical:last-child; } |
| 41 | .linked.vertical > combobox:only-child > box > button.combo { @extend %linked_vertical:only-child; } |