| 1 |
@charset "UTF-8"; |
| 2 |
|
| 3 |
/********* |
| 4 |
* Menus * |
| 5 |
*********/ |
| 6 |
|
| 7 |
menubar, |
| 8 |
.menubar { |
| 9 |
-GtkWidget-window-dragging: true; |
| 10 |
padding: 0px; |
| 11 |
box-shadow: none; |
| 12 |
border-style: none; |
| 13 |
background-color: gtk("@theme_header_background"); |
| 14 |
|
| 15 |
&:backdrop { |
| 16 |
background-color: gtk("@theme_header_background_backdrop"); |
| 17 |
} |
| 18 |
|
| 19 |
> menuitem { |
| 20 |
min-height: 4.5mm; |
| 21 |
padding: 1.25mm 2.5mm; |
| 22 |
@if $new-highlight { |
| 23 |
border-bottom: 3px solid transparent; |
| 24 |
} |
| 25 |
|
| 26 |
&:hover { |
| 27 |
//Seems like it :hover even with keyboard focus |
| 28 |
@if $new-highlight { |
| 29 |
background-color: gtkalpha( |
| 30 |
gtk("@theme_button_decoration_focus"), |
| 31 |
0.3 |
| 32 |
); |
| 33 |
color: gtk("@theme_button_foreground_active"); |
| 34 |
border-bottom: 3px |
| 35 |
solid |
| 36 |
gtk("@theme_button_decoration_focus"); |
| 37 |
} @else { |
| 38 |
background-color: gtk( |
| 39 |
"@theme_button_decoration_focus" |
| 40 |
); |
| 41 |
color: gtk("@theme_button_foreground_active"); |
| 42 |
} |
| 43 |
} |
| 44 |
|
| 45 |
&:disabled { |
| 46 |
color: gtk("@insensitive_fg_color"); |
| 47 |
box-shadow: none; |
| 48 |
|
| 49 |
&:backdrop { |
| 50 |
background-color: gtk("@theme_unfocused_bg_color"); |
| 51 |
color: gtk("@insensitive_unfocused_fg_color"); |
| 52 |
} |
| 53 |
} |
| 54 |
|
| 55 |
&:backdrop { |
| 56 |
background-color: gtk("@theme_unfocused_bg_color"); |
| 57 |
color: gtk("@theme_unfocused_fg_color"); |
| 58 |
} |
| 59 |
} |
| 60 |
} |
| 61 |
|
| 62 |
.popup.background { |
| 63 |
// needed for transparent menu corners |
| 64 |
background: none; |
| 65 |
} |
| 66 |
|
| 67 |
menu, |
| 68 |
.menu { |
| 69 |
padding: 1mm; |
| 70 |
background-color: gtkmix(gtk("@theme_bg_color"), gtk("@theme_base_color"), 0.3); |
| 71 |
|
| 72 |
border-radius: $r; |
| 73 |
|
| 74 |
// axes borders in a composited env |
| 75 |
separator { |
| 76 |
color: gtk("@borders"); |
| 77 |
margin: 0.75mm 0; |
| 78 |
} |
| 79 |
|
| 80 |
menuitem { |
| 81 |
text-shadow: none; |
| 82 |
min-height: 4.5mm; |
| 83 |
min-width: 10mm; |
| 84 |
padding: 0.75mm 2mm; |
| 85 |
border: 1px solid transparent; |
| 86 |
|
| 87 |
&:hover { |
| 88 |
background-color: gtkalpha(gtk("@theme_selected_bg_color"), 0.3); |
| 89 |
border: 1px solid gtk("@theme_button_decoration_focus"); |
| 90 |
border-radius: $r; |
| 91 |
} |
| 92 |
|
| 93 |
&:disabled { |
| 94 |
color: gtk("@insensitive_fg_color"); |
| 95 |
|
| 96 |
&:backdrop { |
| 97 |
color: gtk("@insensitive_unfocused_fg_color"); |
| 98 |
} |
| 99 |
} |
| 100 |
|
| 101 |
&:backdrop, |
| 102 |
&:backdrop:hover { |
| 103 |
color: gtk("@theme_unfocused_fg_color"); |
| 104 |
background-color: gtk("@theme_unfocused_bg_color"); |
| 105 |
} |
| 106 |
|
| 107 |
// submenu indicators |
| 108 |
arrow { |
| 109 |
min-height: 4mm; |
| 110 |
min-width: 4mm; |
| 111 |
|
| 112 |
&:dir(ltr) { |
| 113 |
-gtk-icon-source: -gtk-icontheme($arrow_right); |
| 114 |
margin-left: 2.5mm; |
| 115 |
} |
| 116 |
|
| 117 |
&:dir(rtl) { |
| 118 |
-gtk-icon-source: -gtk-icontheme( |
| 119 |
"go-next-rtl-symbolic" |
| 120 |
); |
| 121 |
margin-right: 2.5mm; |
| 122 |
} |
| 123 |
} |
| 124 |
} |
| 125 |
|
| 126 |
// overflow arrows |
| 127 |
> arrow { |
| 128 |
min-height: 4mm; |
| 129 |
min-width: 4mm; |
| 130 |
padding: 1mm; |
| 131 |
background-color: transparent; |
| 132 |
border-radius: 0; |
| 133 |
|
| 134 |
&.top { |
| 135 |
margin-top: -1.5mm; |
| 136 |
border: none; |
| 137 |
-gtk-icon-source: -gtk-icontheme($arrow_up); |
| 138 |
} |
| 139 |
|
| 140 |
&.bottom { |
| 141 |
margin-bottom: -1.5mm; |
| 142 |
border: none; |
| 143 |
-gtk-icon-source: -gtk-icontheme($arrow_down); |
| 144 |
} |
| 145 |
|
| 146 |
&:hover { |
| 147 |
color: gtk("@theme_button_decoration_hover"); |
| 148 |
} |
| 149 |
&:active { |
| 150 |
color: gtk("@theme_button_decoration_focus"); |
| 151 |
} |
| 152 |
|
| 153 |
&:backdrop { |
| 154 |
background-color: gtk("@theme_unfocused_bg_color"); |
| 155 |
} |
| 156 |
|
| 157 |
&:disabled { |
| 158 |
color: transparent; |
| 159 |
background-color: transparent; |
| 160 |
border-color: transparent; |
| 161 |
} |
| 162 |
} |
| 163 |
} |
| 164 |
|
| 165 |
menuitem { |
| 166 |
accelerator { |
| 167 |
color: gtkalpha(currentColor, 0.55); |
| 168 |
} |
| 169 |
check, |
| 170 |
radio { |
| 171 |
&:dir(ltr) { |
| 172 |
margin-right: 1.5mm; |
| 173 |
} |
| 174 |
&:dir(rtl) { |
| 175 |
margin-left: 1.5mm; |
| 176 |
} |
| 177 |
} |
| 178 |
} |
| 179 |
/*************** |
| 180 |
* Popovers * |
| 181 |
***************/ |
| 182 |
popover { |
| 183 |
padding: 1mm; |
| 184 |
} |
| 185 |
/* menu buttons */ |
| 186 |
modelbutton.flat, |
| 187 |
.menuitem.button.flat { |
| 188 |
min-height: 4mm; |
| 189 |
padding: 1.75mm 2mm; |
| 190 |
border: 1px solid transparent; |
| 191 |
|
| 192 |
@extend %undecorated_button; |
| 193 |
color: gtk("@theme_fg_color"); |
| 194 |
&:hover { |
| 195 |
background-color: gtkalpha(gtk("@theme_selected_bg_color"), 0.3); |
| 196 |
border: 1px solid gtk("@theme_button_decoration_focus"); |
| 197 |
border-radius: 4px; |
| 198 |
} |
| 199 |
&:selected { |
| 200 |
background-color: gtk("@theme_button_decoration_focus"); |
| 201 |
color: gtk("@theme_button_foreground_active"); |
| 202 |
} |
| 203 |
&:backdrop, |
| 204 |
&:backdrop:hover { |
| 205 |
@extend %undecorated_button; |
| 206 |
color: gtk("@theme_unfocused_fg_color"); |
| 207 |
} |
| 208 |
|
| 209 |
// FIXME: remove the following when the checks/radios rewrite lands |
| 210 |
check:last-child, |
| 211 |
radio:last-child { |
| 212 |
margin-right: 0px; |
| 213 |
} |
| 214 |
|
| 215 |
check:first-child, |
| 216 |
radio:first-child { |
| 217 |
margin-left: 0px; |
| 218 |
} |
| 219 |
|
| 220 |
} |
| 221 |
|
| 222 |
modelbutton.flat arrow { |
| 223 |
background: none; |
| 224 |
|
| 225 |
&:hover { |
| 226 |
background: none; |
| 227 |
} |
| 228 |
|
| 229 |
&.left { |
| 230 |
-gtk-icon-source: -gtk-icontheme($arrow_left); |
| 231 |
} |
| 232 |
|
| 233 |
&.right { |
| 234 |
-gtk-icon-source: -gtk-icontheme($arrow_right); |
| 235 |
} |
| 236 |
} |
| 237 |
|
| 238 |
popover, |
| 239 |
menu { |
| 240 |
border: 1px solid gtk("@borders"); |
| 241 |
} |
| 242 |
|
| 243 |
popover.background { |
| 244 |
$shadow: rgba(0, 0, 0, 0.25); |
| 245 |
|
| 246 |
padding: 0px; |
| 247 |
border-radius: $r; |
| 248 |
background-color: gtk("@theme_bg_color"); |
| 249 |
|
| 250 |
box-shadow: 0px 0px 2mm $shadow, |
| 251 |
0px 0.25mm 1mm scale-color($shadow, $alpha: -40%); |
| 252 |
|
| 253 |
&:backdrop { |
| 254 |
box-shadow: none; |
| 255 |
} |
| 256 |
|
| 257 |
> list, |
| 258 |
> .view, |
| 259 |
> toolbar { |
| 260 |
border-style: none; |
| 261 |
background-color: transparent; |
| 262 |
} |
| 263 |
.csd &, |
| 264 |
& { |
| 265 |
&.touch-selection, |
| 266 |
&.magnifier { |
| 267 |
@extend %osd; |
| 268 |
|
| 269 |
border: 1px solid gtk("@borders"); |
| 270 |
|
| 271 |
button { |
| 272 |
@extend %button; |
| 273 |
} |
| 274 |
} |
| 275 |
|
| 276 |
&.osd { |
| 277 |
@extend %osd; |
| 278 |
} |
| 279 |
} |
| 280 |
|
| 281 |
separator { |
| 282 |
margin: 0.75mm 0; |
| 283 |
} |
| 284 |
|
| 285 |
list separator { |
| 286 |
margin: 0px; |
| 287 |
} |
| 288 |
|
| 289 |
checkbutton, |
| 290 |
radiobutton { |
| 291 |
@extend modelbutton, .flat; |
| 292 |
} |
| 293 |
} |
| 294 |
|
| 295 |
// .scale-popup .button, |
| 296 |
// .scale-popup .button.flat { // +/- buttons on GtkVolumeButton popup |
| 297 |
// @extend %undecorated_button; |
| 298 |
// background-color: transparent; |
| 299 |
// padding: 5px; |
| 300 |
// color: w_color(text); |
| 301 |
// &:hover { |
| 302 |
// @extend %undecorated_button; |
| 303 |
// color: b_color(hover); |
| 304 |
// } |
| 305 |
// &:active { |
| 306 |
// color: b_color(active); |
| 307 |
// } |
| 308 |
// &:insensitive { |
| 309 |
// color: insensitive(w_color(text)); |
| 310 |
// } |
| 311 |
// &:backdrop { |
| 312 |
// color: backdrop(w_color(text)); |
| 313 |
// &:insensitive { |
| 314 |
// color: backdrop(insensitive(w_color(text))); |
| 315 |
// } |
| 316 |
// } |
| 317 |
// } |
| 318 |
|
| 319 |
GtkVolumeButton.button { |
| 320 |
padding: 1.25mm; |
| 321 |
} |