| 1 | /********************** |
| 2 | * Touch Copy & Paste * |
| 3 | *********************/ |
| 4 | //touch selection handlebars for the Popover.osd above |
| 5 | cursor-handle { |
| 6 | background-color: transparent; |
| 7 | background-image: none; |
| 8 | box-shadow: none; |
| 9 | border-style: none; |
| 10 | |
| 11 | @each $s,$as in ('',''), |
| 12 | (':hover','-hover'), |
| 13 | (':active','-active') { //no need for insensitive and backdrop |
| 14 | &.top#{$s}:dir(ltr), &.bottom#{$s}:dir(rtl) { |
| 15 | $_url: 'assets/text-select-start#{$as}#{$asset_suffix}'; |
| 16 | -gtk-icon-source: -gtk-scaled(url('#{$_url}.png'), |
| 17 | url('#{$_url}@2.png')); |
| 18 | padding-left: 10px; |
| 19 | } |
| 20 | |
| 21 | &.bottom#{$s}:dir(ltr), &.top#{$s}:dir(rtl) { |
| 22 | $_url: 'assets/text-select-end#{$as}#{$asset_suffix}'; |
| 23 | -gtk-icon-source: -gtk-scaled(url('#{$_url}.png'), |
| 24 | url('#{$_url}@2.png')); |
| 25 | padding-right: 10px; |
| 26 | } |
| 27 | |
| 28 | &.insertion-cursor#{$s}:dir(ltr), &.insertion-cursor#{$s}:dir(rtl) { |
| 29 | $_url: 'assets/slider-horz-scale-has-marks-above#{$as}#{$asset_suffix}'; |
| 30 | -gtk-icon-source: -gtk-scaled(url('#{$_url}.png'), |
| 31 | url('#{$_url}@2.png')); |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | .context-menu { font: initial; } // Decouple the font of context menus from their entry/textview |
| 37 | |
| 38 | button.circular { // FIXME: aggregate to buttons |
| 39 | border-radius: 20px; |
| 40 | -gtk-outline-radius: 20px; |
| 41 | |
| 42 | label { padding: 0; } |
| 43 | } |
| 44 | |
| 45 | // shortcut window keys |
| 46 | .keycap { |
| 47 | min-width: 20px; |
| 48 | min-height: 25px; |
| 49 | margin-top: 2px; |
| 50 | padding-bottom: 3px; |
| 51 | padding-left: 6px; |
| 52 | padding-right: 6px; |
| 53 | |
| 54 | color: $fg_color; |
| 55 | background-color: $base_color; |
| 56 | border: 1px solid; |
| 57 | border-color: if($variant == 'light', mix($borders_color, $bg_color, 50%), $borders_color); |
| 58 | border-radius: 5px; |
| 59 | box-shadow: if($variant == 'light', inset 0 -3px mix($base_color, $bg_color, 20%), inset 0 -3px mix($borders_color, $base_color, 60%)); |
| 60 | font-size: smaller; |
| 61 | |
| 62 | &:backdrop { |
| 63 | background-color: $backdrop_base_color; |
| 64 | color: $backdrop_fg_color; |
| 65 | transition: $backdrop_transition; |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | *:drop(active):focus, |
| 70 | *:drop(active) { // FIXME needs to be done widget by widget, this wildcard should really die |
| 71 | border-color: $drop_target_color; |
| 72 | box-shadow: inset 0 0 0 1px $drop_target_color; |
| 73 | } |
| 74 | |
| 75 | stackswitcher button.text-button { min-width: 100px; } // FIXME aggregate with buttons |
| 76 | |
| 77 | stackswitcher button.circular, |
| 78 | stackswitcher button.text-button.circular { // FIXME aggregate with buttons |
| 79 | min-width: 32px; |
| 80 | min-height: 32px; |
| 81 | padding: 0; |
| 82 | } |