annotate gtk-4.4/_drawing.scss @ 98:9da64f7bb19c

Add support for GTK4 Includes `gtk-minimal.css`, which can be used to override Adwaita colours by running `ln -s ~/.themes/Adwaita-Dark-Green/gtk-4.4/gtk-minimal.css ~/.config/gtk-4.0/gtk.css`
author IBBoard <dev@ibboard.co.uk>
date Sat, 26 Mar 2022 20:03:44 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
98
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 // Drawing mixins
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 // generic drawing of more complex things
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 // Helper mixin for drawing visible focus rings
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 // If $target is specified, the focus ring is applied to the specified child element.
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 // If $outer is true, the focus ring extends outward. Otherwise, it extends inward.
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 // If $within is true, use focus-within instead of focus:focus-visible
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 @mixin focus-ring($target: null, $width: 2px, $offset: -$width, $outer: false, $focus-state: 'focus:focus-visible', $fc: $focus_border_color) {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 transition-property: outline, outline-width, outline-offset, outline-color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 transition-duration: 300ms;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 animation-timing-function: ease-in-out;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 & #{$target} {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 outline: 0 solid transparent;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 outline-offset: if($outer, $offset + 4px, $offset + $width + 4px);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
21 &:#{$focus-state} #{$target} {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
22 outline-color: $fc;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
23 outline-width: $width;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24 outline-offset: $offset;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28 @mixin _shadows($list...) {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
29 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
30 // Helper mixin to stack up to box-shadows;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
31 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
32 $shadows: null;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
33
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
34 @each $shadow in $list {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
35 @if $shadow!=none { $shadows: $shadows, $shadow; }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
36 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
37
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
38 box-shadow: $shadows;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
39 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
40
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
41 // entries
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
42
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
43 @mixin entry($t, $fc:$focus_border_color) {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
44 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
45 // Entries drawing function
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
46 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
47 // $t: entry type
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
48 // $fc: focus color
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
49 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
50 // possible $t values:
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
51 // normal, focus, insensitive, backdrop, backdrop-insensitive, osd, osd-focus, osd-backdrop, block_cursor;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
52 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
53
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
54 @if $t==normal {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
55 color: $text_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
56 border-color: $borders_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
57 background-color: $base_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
58 // for the transition to work the number of shadows in different states needs to match, hence the transparent shadow here.
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
59 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
60 @if $t==insensitive {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
61 color: $insensitive_fg_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
62 border-color: $borders_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
63 background-color: $insensitive_bg_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
64 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
65 @if $t==backdrop {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
66 color: $backdrop_text_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
67 border-color: $backdrop_borders_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
68 background-color: $backdrop_base_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
69 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
70 @if $t==backdrop-insensitive {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
71 color: $backdrop_insensitive_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
72 border-color: $backdrop_borders_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
73 background-color: $insensitive_bg_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
74 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
75 @if $t==osd {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
76 color: $osd_text_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
77 border-color: $osd_borders_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
78 background-color: transparentize(opacify($osd_borders_color, 1), 0.5);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
79 background-clip: padding-box;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
80 box-shadow: none;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
81 -gtk-icon-shadow: 0 1px black;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
82 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
83 @if $t==osd-focus {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
84 color: $osd_text_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
85 border-color: $selected_bg_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
86 background-color: transparentize(opacify($osd_borders_color, 1), 0.5);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
87 background-clip: padding-box;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
88 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
89 @if $t==osd-insensitive {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
90 color: $osd_insensitive_fg_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
91 border-color: $osd_borders_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
92 background-color: $osd_insensitive_bg_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
93 background-clip: padding-box;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
94 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
95 @if $t==osd-backdrop {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
96 color: $osd_text_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
97 border-color: $osd_borders_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
98 background-color: transparentize(opacify($osd_borders_color, 1), 0.5);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
99 background-clip: padding-box;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
100 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
101 @if $t==block_cursor {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
102 color: $base_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
103 background-color: $text_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
104 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
105 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
106
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
107 // buttons
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
108
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
109 @function _border_color($c, $darker: false) {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
110 @if $darker == true { @return darken($c, 20%); }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
111 @else { @return darken($c, 15%); }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
112 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
113
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
114 $_default_button_c: lighten($bg_color,2%);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
115 @mixin button($t, $c:$_default_button_c, $tc:$fg_color) {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
116 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
117 // Button drawing function
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
118 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
119 // $t: button type,
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
120 // $c: base button color for colored* types
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
121 // $tc: optional text color for colored* types
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
122 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
123 // possible $t values:
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
124 // normal, hover, active, checked-hover, checked-active, insensitive, insensitive-active,
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
125 // backdrop, backdrop-active, backdrop-insensitive, backdrop-insensitive-active,
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
126 // osd, osd-hover, osd-active, osd-insensitive, osd-backdrop, undecorated
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
127 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
128 $_button_shadow: 0 1px 2px transparentize($shadow_color, 0.03);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
129
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
130 @if $t==normal {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
131 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
132 // normal button
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
133 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
134 color: $tc;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
135 outline-color: if($c != $_default_button_c, $alt_focus_border_color, $focus_border_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
136 border-color: if($c!=$_default_button_c, _border_color($c, true), $borders_color); //tint if not default button color
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
137 background-image: if($variant == 'light', linear-gradient(to top, darken($c, 2%) 2px, $c),
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
138 linear-gradient(to top, darken($c,1%) 2px, $c));
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
139 @include _shadows($_button_shadow);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
140 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
141
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
142 @else if $t==hover {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
143 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
144 // hovered button
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
145 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
146 color: $tc;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
147 border-color: if($c != $_default_button_c, _border_color($c), $borders_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
148 @if $variant == 'light' {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
149 background-image: linear-gradient(to top, darken($c,16%), darken($c,8%) 1px);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
150 @include _shadows($_button_shadow);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
151 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
152 @else {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
153 background-image: linear-gradient(to top, darken($c,4%) 20%, darken($c, 3%) 90%);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
154 @include _shadows($_button_shadow);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
155 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
156 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
157
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
158 @else if $t==active {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
159 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
160 // pushed button
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
161 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
162 color: $tc;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
163 border-color: if($c != $_default_button_c, _border_color($c), $borders_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
164 background-image: if($variant == 'light', image(darken($c, 14%)), image(darken($c, 9%)));
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
165 box-shadow: none;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
166 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
167
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
168 @else if $t==checked-hover {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
169 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
170 // pushed togglebutton hover
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
171 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
172 color: $tc;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
173 border-color: if($c != $_default_button_c, _border_color($c), $borders_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
174 background-image: if($variant == 'light', image(darken($c, 18%)), image(darken($c, 12%)));
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
175 box-shadow: none;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
176 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
177
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
178 @else if $t==checked-active {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
179 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
180 // pushed togglebutton pushed further :)
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
181 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
182 color: $tc;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
183 border-color: if($c != $_default_button_c, _border_color($c), $borders_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
184 background-image: if($variant == 'light', image(darken($c, 22%)), image(darken($c, 14%)));
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
185 box-shadow: none;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
186 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
187
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
188 @else if $t==insensitive {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
189 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
190 // insensitive button
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
191 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
192 $_bg: if($c != $_default_button_c, mix($c, $base_color, 85%), $insensitive_bg_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
193
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
194 color: if($tc != $fg_color, mix($tc, $_bg, 50%), $insensitive_fg_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
195 border-color: if($c != $_default_button_c, _border_color($c), $insensitive_borders_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
196 background-image: image($_bg);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
197 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
198
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
199 @else if $t==insensitive-active {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
200 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
201 // insensitive pushed button
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
202 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
203 $_bg: if($variant == 'light', darken(mix($c, $base_color, 85%), 8%), darken(mix($c, $base_color, 85%), 6%));
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
204 $_bc: if($c != $_default_button_c, _border_color($c), $insensitive_borders_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
205
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
206 color: if($c != $_default_button_c, mix($tc, $_bg, 60%), $insensitive_fg_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
207 border-color: $_bc;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
208 background-image: image($_bg);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
209 box-shadow: none;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
210 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
211
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
212 @else if $t==backdrop {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
213 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
214 // backdrop button
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
215 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
216 $_bg: if($c != $_default_button_c, $c, $backdrop_bg_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
217 $_bc: if($variant == 'light', $c, _border_color($c));
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
218
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
219 color: if($tc != $fg_color, mix($tc, $_bg, 80%), $backdrop_fg_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
220 border-color: if($c != $_default_button_c, $_bc, $backdrop_borders_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
221 background-image: image($_bg);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
222 box-shadow: none;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
223 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
224
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
225 @else if $t==backdrop-active {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
226 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
227 // backdrop pushed button
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
228 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
229 $_bg: if($variant == 'light', darken(mix($c, $base_color, 85%), 8%), darken(mix($c, $base_color, 85%), 4%));
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
230 $_bc: if($variant == 'light', $_bg ,_border_color($c));
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
231
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
232 color: if($tc != $fg_color, mix($tc, $_bg, 80%), $backdrop_fg_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
233 border-color: if($c != $_default_button_c, $_bc, $backdrop_borders_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
234 background-image: image($_bg);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
235 box-shadow: none;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
236 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
237
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
238 @else if $t==backdrop-insensitive {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
239 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
240 // backdrop insensitive button
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
241 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
242
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
243 $_bg: if($c != $_default_button_c, mix($c, $base_color, 85%), $insensitive_bg_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
244 $_bc: if($variant == 'light', $_bg,_border_color($c));
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
245
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
246 color: if($c != $_default_button_c, mix($tc, $_bg, 35%), $backdrop_insensitive_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
247 border-color: if($c != $_default_button_c, $_bc, $backdrop_borders_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
248 background-image: image($_bg);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
249 box-shadow: none;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
250 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
251
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
252 @else if $t==backdrop-insensitive-active {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
253 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
254 // backdrop insensitive pushed button
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
255 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
256
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
257 $_bg: if($variant == 'light', darken(mix($c, $base_color, 85%), 8%), darken(mix($c, $base_color, 85%), 4%));
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
258 $_bc: if($variant == 'light', $_bg, _border_color($c));
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
259
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
260 color: if($c != $_default_button_c, mix($tc, $_bg, 35%), $backdrop_insensitive_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
261 border-color: if($c != $_default_button_c, $_bc, $backdrop_borders_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
262 background-image: image($_bg);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
263 box-shadow: none;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
264 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
265
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
266 @else if $t==osd {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
267 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
268 // normal osd button
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
269 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
270 $_bg: if($c != $_default_button_c, transparentize($c, 0.5), $osd_bg_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
271
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
272 color: $osd_fg_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
273 outline-color: if($c != $_default_button_c, $alt_focus_border_color, $focus_border_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
274 border-color: $osd_borders_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
275 background-color: transparent;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
276 background-image: image($_bg);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
277 background-clip: padding-box;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
278 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
279
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
280 @else if $t==osd-hover {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
281 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
282 // active osd button
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
283 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
284 $_bg: if($c != $_default_button_c, transparentize($c, 0.3), darken($osd_bg_color, 10%));
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
285
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
286 color: white;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
287 border-color: $osd_borders_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
288 background-color: transparent;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
289 background-image: image($_bg);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
290 background-clip: padding-box;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
291 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
292
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
293 @else if $t==osd-active {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
294 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
295 // active osd button
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
296 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
297 $_bg: if($c != $_default_button_c, $c, darken($osd_bg_color, 20%));
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
298
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
299 color: white;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
300 border-color: $osd_borders_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
301 background-color: transparent;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
302 background-image: image($_bg);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
303 background-clip: padding-box;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
304 box-shadow: none;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
305 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
306
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
307 @else if $t==osd-insensitive {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
308 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
309 // insensitive osd button
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
310 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
311 color: $osd_insensitive_fg_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
312 border-color: $osd_borders_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
313 background-color: transparent;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
314 background-image: image($osd_insensitive_bg_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
315 background-clip: padding-box;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
316 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
317
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
318 @else if $t==osd-backdrop {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
319 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
320 // backdrop osd button
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
321 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
322 $_bg: if($c != $_default_button_c, transparentize($c, 0.5), $osd_bg_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
323
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
324 color: $osd_fg_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
325 border-color: $osd_borders_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
326 background-color: transparent;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
327 background-image: image($_bg);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
328 background-clip: padding-box;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
329 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
330
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
331 @else if $t==undecorated {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
332 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
333 // reset
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
334 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
335 border-color: transparent;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
336 background-color: transparent;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
337 background-image: none;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
338 box-shadow: none;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
339 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
340 @else if $t==undecorated-hover {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
341 border-color: transparent;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
342 background-image: none;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
343 box-shadow: none;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
344 @if $variant == 'light' {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
345 background-color: darken($c,14%);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
346 } @else {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
347 background-color: darken($c,1%);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
348 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
349 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
350 @else if $t==undecorated-active {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
351 border-color: transparent;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
352 background-image: none;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
353 box-shadow: none;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
354 @if $variant == 'light' {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
355 background-color: darken($c,20%);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
356 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
357 @else {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
358 background-color: darken($c,5%);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
359 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
360 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
361 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
362
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
363 @mixin headerbar_fill($c:$headerbar_bg_color, $ov: none) {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
364 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
365 // headerbar fill
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
366 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
367 // $c: base color
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
368 // $ov: a background layer for background shorthand (hence no commas!)
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
369 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
370 $gradient: linear-gradient(to top, darken($c, 2%), lighten($c, 1%));
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
371
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
372 @if $variant == 'dark' { $gradient: linear-gradient(to top, lighten($c, 4%), lighten($c, 6%)); }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
373
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
374 @if $ov != none { background: $c $ov, $gradient; }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
375 @else { background: $c $gradient; }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
376
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
377 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
378
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
379 @mixin overshoot($p, $t:normal, $c:$fg_color) {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
380 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
381 // overshoot
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
382 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
383 // $p: position
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
384 // $t: type
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
385 // $c: base color
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
386 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
387 // possible $p values:
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
388 // top, bottom, right, left
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
389 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
390 // possible $t values:
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
391 // normal, backdrop
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
392 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
393
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
394 $_small_gradient_length: 3%;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
395 $_big_gradient_length: 50%;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
396
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
397 $_small_gradient_size: 100% $_small_gradient_length;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
398 $_big_gradient_size: 100% $_big_gradient_length;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
399
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
400 @if $p==right or $p==left {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
401 $_small_gradient_size: $_small_gradient_length 100%;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
402 $_big_gradient_size: $_big_gradient_length 100%;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
403 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
404
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
405 $_small_gradient_color: $c;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
406 $_big_gradient_color: transparentize($c, 0.93);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
407
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
408 @if $c==$fg_color {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
409 $_small_gradient_color: darken($borders_color, 10%);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
410 $_big_gradient_color: transparentize($fg_color, 0.93);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
411
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
412 @if $t==backdrop { $_small_gradient_color: $backdrop_borders_color; }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
413 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
414
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
415 $_small_gradient: radial-gradient(farthest-side at $p,
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
416 $_small_gradient_color 85%,
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
417 transparentize($_small_gradient_color, 1));
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
418
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
419 $_big_gradient: radial-gradient(farthest-side at $p,
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
420 $_big_gradient_color,
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
421 transparentize($_big_gradient_color, 1));
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
422
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
423 @if $t==normal {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
424 background-image: $_small_gradient, $_big_gradient;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
425 background-size: $_small_gradient_size, $_big_gradient_size;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
426 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
427
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
428 @else if $t==backdrop {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
429 background-image: $_small_gradient;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
430 background-size: $_small_gradient_size;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
431 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
432
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
433 background-repeat: no-repeat;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
434 background-position: $p;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
435
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
436 background-color: transparent; // reset some properties to be sure to not inherit them somehow
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
437 border: none; //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
438 box-shadow: none; //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
439 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
440
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
441 /***************************
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
442 * Check and Radio buttons *
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
443 ***************************/
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
444
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
445 @mixin check($t, $c:$checkradio_bg_color, $tc:$checkradio_fg_color, $checked: false) {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
446 // Check/Radio drawing function
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
447 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
448 // $t: check/radio type,
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
449 // $c: base button color for colored* types
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
450 // $tc: optional text color for colored* types
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
451 // $checked: bool to chose between checked/unchecked
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
452 //
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
453 // possible $t values:
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
454 // normal, hover, active, insensitive, backdrop, backdrop-insensitive, menu
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
455
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
456 $_border_color: if($c==$checkradio_bg_color, $checkradio_borders_color, $alt_borders_color);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
457 $_dim_border_color: transparentize($_border_color, if($variant == 'light', 0.3, 0.7));
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
458
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
459 @if $t==normal {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
460 background-clip: if($checked, border-box, padding-box);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
461 background-image: linear-gradient(to bottom, lighten($c, 5%) 20%, $c 90%);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
462 border-color: $_border_color;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
463 box-shadow: 0 1px transparentize(black, 0.95);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
464 color: $tc;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
465 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
466
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
467 @if $t==hover {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
468 background-image: if($c == white, image(darken($c, 5%)), linear-gradient(to bottom, lighten($c, 9%) 10%, lighten($c, 4%) 90%));
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
469 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
470
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
471 @if $t==active {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
472 box-shadow: inset 0 1px if($variant == 'light', rgba(0, 0, 0, 0.2), black);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
473 background-image: if($c == white, image(darken($c, 15%)), image(darken($c, 5%)));
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
474 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
475
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
476 @if $t==insensitive {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
477 box-shadow: none;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
478 color: transparentize($tc, 0.3);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
479 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
480
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
481 @if $t==backdrop {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
482 background-image: image($c);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
483 box-shadow: none;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
484 color: $tc;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
485 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
486
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
487 @if $t==backdrop-insensitive {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
488 box-shadow: none;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
489 color: transparentize($tc, 0.3);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
490 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
491
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
492 @if $t==menu {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
493 transform: scale(0.8);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
494 border-width: 1.2px;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
495 border-color: transparent;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
496 box-shadow: none;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
497 background-image: image(transparent);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
498 color: $tc;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
499 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
500
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
501 @if $t==menu-active {
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
502 transform: scale(0.8);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
503 border-width: 1.2px;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
504 color: $tc;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
505 box-shadow: none;
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
506 background-image: image(transparent);
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
507 }
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
508 }