| 1 | /********* |
| 2 | * Common * |
| 3 | *********/ |
| 4 | |
| 5 | @function gtkalpha($c,$a) { |
| 6 | @return unquote("alpha(#{$c},#{$a})"); |
| 7 | } |
| 8 | |
| 9 | $ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94); |
| 10 | $asset_suffix: if($variant=='dark', '-dark', ''); |
| 11 | $backdrop_transition: 200ms ease-out; |
| 12 | $button_transition: all 200ms $ease-out-quad; |
| 13 | |
| 14 | * { |
| 15 | padding: 0; |
| 16 | -GtkToolButton-icon-spacing: 4; |
| 17 | -GtkTextView-error-underline-color: $error_color; |
| 18 | |
| 19 | // The size for scrollbars. The slider is 2px smaller, but we keep it |
| 20 | // up so that the whole area is sensitive to button presses for the |
| 21 | // slider. The stepper button is larger in both directions, the slider |
| 22 | // only in the width |
| 23 | |
| 24 | -GtkScrolledWindow-scrollbar-spacing: 0; |
| 25 | |
| 26 | -GtkToolItemGroup-expander-size: 11; |
| 27 | |
| 28 | -GtkWidget-text-handle-width: 20; |
| 29 | -GtkWidget-text-handle-height: 24; |
| 30 | |
| 31 | -GtkDialog-button-spacing: 4; |
| 32 | -GtkDialog-action-area-border: 0; |
| 33 | |
| 34 | // We use the outline properties to signal the focus properties |
| 35 | // to the adwaita engine: using real CSS properties is faster, |
| 36 | // and we don't use any outlines for now. |
| 37 | |
| 38 | outline-color: transparentize($fg_color, 0.7); |
| 39 | outline-style: dashed; |
| 40 | outline-offset: -3px; |
| 41 | outline-width: 1px; |
| 42 | -gtk-outline-radius: 2px; |
| 43 | |
| 44 | -gtk-secondary-caret-color: $selected_bg_color; |
| 45 | } |