Debian Codegraph @

common/gtk-3.0/sass/_budgie.scss

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 // main container
2 .budgie-container { background-color: transparent; }
3
4 $menuitem_size: 28px;
5 $medium_size: 32px;
6 $large_size: 44px;
7 $container_padding: 6px;
8 $z-depth-2: rgba(0, 0, 0, 0.28);
9 $z-depth-4: rgba(0, 0, 0, 0.34);
10
11 *:drop(active):focus,
12 *:drop(active) {
13 box-shadow: inset 0 0 0 1px $selected_bg_color
14 }
15
16 .budgie-panel {
17 // solid-mode
18 // always use dark-color of dark variant
19 background-color: $panel_bg;
20 color: white;
21 font-weight: normal;
22
23 // used to indicate unread notifications
24 .alert { color: $suggested_color; }
25
26 &:backdrop {
27 color: white;
28 background-color: $panel_bg;
29 }
30
31 // transparent-mode
32 &.transparent {
33 background-color: transparentize($panel_bg, 0.6);
34 color: white;
35
36 }
37
38 button {
39 min-height: 16px;
40 min-width: 16px;
41 padding: 0;
42 border-radius: 0;
43 }
44
45 &.horizontal button { padding: 0 4px; }
46
47 &.vertical button { padding: 4px 0; }
48
49 separator { background-color: transparentize($fg_color, 0.6); }
50
51 &.vertical #tasklist-button { min-height: 32px; }
52
53 .end-region {
54 background-color: rgba(0,0,0,0.3);
55 border-radius: 0px;
56 separator { background-color: transparentize(white, 0.85); }
57 label {
58 font-weight: 700;
59 color: white;
60 }
61 }
62 }
63
64 .budgie-panel {
65 button.flat.launcher {
66 padding: 0;
67 border-radius: 0;
68 border: none;
69 background-image: radial-gradient(circle farthest-corner at center,
70 gtkalpha($fg_color, 0) 100%,
71 transparent 0%),
72 image(gtkalpha($fg_color, 0));
73 background-position: center center;
74
75 > image {
76 opacity: 0.87;
77 }
78
79 &:hover {
80 -gtk-icon-effect: highlight;
81
82 > image { opacity: 1.0; }
83 }
84 &:active {
85 > image { opacity: 1.0; }
86 }
87 &:checked {
88 background-color: transparent;
89 &:hover { -gtk-icon-effect: highlight; }
90
91 > image { opacity: 1.0; }
92 }
93 }
94
95 .unpinned button.flat.launcher,
96 .pinned button.flat.launcher.running {
97 &:hover { -gtk-icon-effect: highlight; }
98
99 > image {
100 background-size: 2px 2px;
101 background-repeat: no-repeat;
102 opacity: 1.0;
103 }
104
105 &:hover,
106 &:active,
107 &:checked {
108 > image { background-image: none; }
109 }
110 }
111 }
112
113 // draw underscores and dots
114 @each $position, $_line in (top, 0 2px),
115 (bottom, 0 -2px),
116 (left, 2px 0),
117 (right, -2px 0) {
118 .#{$position} .budgie-panel {
119 button#tasklist-button,
120 button.flat.launcher {
121 &:hover {
122 box-shadow: inset #{$_line} gtkalpha($fg_color, 0.4);
123 background-color: transparentize($fg_color, 0.6);
124 border: none;
125 }
126 &:active,
127 &:checked {
128 box-shadow: inset #{$_line} $selected_bg_color;
129 }
130 }
131
132 .unpinned button.flat.launcher,
133 .pinned button.flat.launcher.running {
134 > image {
135 background-image: image($selected_bg_color);
136 background-position: #{$position} center;
137 }
138
139 &:hover,
140 &:active,
141 &:checked {
142 box-shadow: inset #{$_line} $selected_bg_color;
143 }
144 }
145 }
146 }
147
148 @each $along_side, $opp_side in (top, bottom),
149 (bottom, top),
150 (left, right),
151 (right, left) {
152 // panel shadow styling
153 .#{$along_side} .shadow-block {
154 background-color: transparent;
155 background-image: linear-gradient(to #{$opp_side},
156 gtkalpha(#000000, 0.23),
157 gtkalpha(#000000, 0.08),
158 transparent);
159 }
160 }
161
162 // budgie specific popover widgets
163 .budgie-popover {
164 border-style: none;
165 border-width: 1px;
166 border-color: $z-depth-2;
167 border-radius: 1px;
168 box-shadow: 0 3px 4px rgba(0, 0, 0, 0.28);
169 background-color: $bg_color;
170
171 .container { padding: 2px; }
172
173 border { border: none; }
174
175 list { background-color: transparent; }
176
177 row {
178 padding: 0;
179
180 &:hover { box-shadow: none; }
181 }
182
183 &:not(.budgie-menu) button.flat:not(.image-button) {
184 min-height: $menuitem_size;
185 padding: 0 8px;
186 color: $fg_color;
187 font-weight: normal;
188
189 &:disabled { color: $insensitive_fg_color; }
190 }
191
192 &.budgie-menu {
193 .container { padding: 0; }
194 }
195
196 &.user-menu {
197 .container { padding: 8px; }
198
199 separator { margin: 4px 0; }
200 }
201
202 &.sound-popover {
203 separator { margin: 3px 0; }
204 }
205
206 &.night-light-indicator {
207 .container { padding: 8px; }
208 }
209
210 &.places-menu {
211 .container { padding: 8px; }
212
213 .places-list:not(.always-expand) {
214 margin-top: 4px;
215 padding-top: 4px;
216 border-top: 1px solid $borders_color;
217 }
218
219 // I guess this really should be hard-coded as well as other dim-labels.
220 .alternative-label {
221 padding: 3px;
222 font-size: 15px;
223 }
224 }
225
226 &.workspace-popover {
227 .container { padding: 2px 8px 8px; }
228
229 separator { margin: 4px 0; }
230
231 flowboxchild { padding: 0; }
232 }
233 }
234
235 // main menu styling
236 .workspace-switcher {
237 .workspace-layout {
238 border: 0 solid $panel_bg;
239
240 .top &,
241 .bottom & {
242 &:dir(ltr) { border-left-width: 1px; }
243
244 &:dir(rtl) { border-right-width: 1px; }
245 }
246
247 .left &,
248 .right & { border-top-width: 1px; }
249 }
250
251 .workspace-item,
252 .workspace-add-button {
253 border: 0 solid darken($panel_bg, 5%);
254
255 .top &,
256 .bottom & {
257 &:dir(ltr) { border-right-width: 1px; }
258
259 &:dir(rtl) { border-left-width: 1px; }
260 }
261
262 .left &,
263 .right & { border-bottom-width: 1px; }
264 }
265
266 .workspace-item {
267
268 &.current-workspace { background-color: darken($panel_bg, 5%); }
269 }
270
271 .workspace-add-button {
272 &:hover { box-shadow: none; }
273
274 &:active { background-image: none; }
275
276 &:active image { margin: 1px 0 -1px; }
277 }
278
279 .workspace-icon-button {
280 .budgie-panel & { // to overwrite the .budgie-panel button style below
281 min-height: 24px;
282 min-width: 24px;
283 padding: 0;
284 border-radius: 2px;
285 }
286 }
287 }
288
289 // Budgie Menu
290 .budgie-menu {
291 &.background {
292 padding: 0;
293 background-color: $base_color;
294 }
295
296 scrollbar,
297 entry.search { background-color: transparent; }
298
299 entry.search {
300 border-style: none;
301 border-bottom: 1px solid $borders_color;
302 border-radius: 1px;
303 box-shadow: none;
304 font-size: 120%;
305 padding-top: 6px;
306 padding-bottom: 6px;
307 }
308
309 button {
310 min-height: 32px;
311 padding: 0 8px;
312 border-radius: 0;
313 color: $fg_color;
314 font-weight: normal;
315 }
316
317 row {
318 padding: 0;
319
320 &:hover { box-shadow: none; }
321 }
322 }
323
324 // Menu Button
325 button.budgie-menu-launcher {
326 // padding: 0 2px;
327 color: white;
328 border: none;
329
330 &:hover {
331 background-color: transparentize($fg_color, 0.6);
332 border: none;
333 }
334 }
335
336 // User Menu
337 popover.background.user-menu {
338 padding: 8px;
339
340 .content-box { background-color: transparent; }
341
342 separator { margin: 4px 0; }
343
344 row {
345 padding: 0;
346 box-shadow: none;
347 background-image: none;
348 }
349 }
350
351 // Raven Trigger
352 button.raven-trigger {
353 color: white;
354 border: none;
355
356 &:hover {
357 background-color: transparentize($fg_color, 0.6);
358 border: none;
359 }
360 }
361
362 // Places Menu
363 popover.background.places-menu {
364 padding: 8px;
365
366 // FIXME: untested
367 .message-bar {
368 // margin-bottom: 4px;
369 }
370
371 .name-button.text-button {
372 // padding: 4px 8px;
373 padding-left: 8px;
374 padding-right: 8px;
375
376 image {
377 &:dir(ltr) { margin-right: 8px - 5px; }
378 &:dir(rtl) { margin-left: 8px - 5px; }
379 }
380 }
381
382 // FIXME: untested
383 .unmount-button {
384 // padding: ($medium_size - 24px) / 2;
385 }
386
387 .places-section-header > image {
388 &:dir(ltr) { margin: 0 8px - 10px 0 8px - 3px; }
389 &:dir(rtl) { margin: 0 8px - 3px 0 8px - 10px; }
390 }
391
392 .places-list {
393 margin-top: 4px;
394 padding-top: 4px;
395 border-top: 1px solid $borders_color;
396 background-color: transparent;
397 }
398
399 row {
400 padding: 0;
401 box-shadow: none;
402 background-image: none;
403 }
404
405 // FIXME: untested
406 .unlock-area {
407 entry {
408 }
409
410 button {
411 }
412 }
413 }
414
415 frame.raven-frame > border {
416 border-style: none;
417 box-shadow: none;
418 }
419
420 // Raven
421 .raven {
422 background-color: $bg_color;
423 color: $fg_color;
424 padding: $container_padding 0 0 0;
425 border: none;
426
427 .raven-header {
428 min-height: $medium_size;
429 padding: 3px;
430
431 &.top {
432 padding: 2px 0;
433 background-color: $bg_color;
434 color: $fg_color;
435
436 stackswitcher button {
437 margin: -$container_padding 0;
438 min-height: $medium_size;
439 }
440
441 }
442
443 &.bottom { border-top: 1px solid $borders_color; }
444 }
445
446 viewport.frame .raven-header { margin-top: -8px; }
447
448 .raven-background {
449 border-style: solid none;
450 border-width: 1px;
451 border-color: $borders_color;
452 background-color: $base_color;
453
454 // &.middle { border-bottom-style: none; } // applet background between two headers
455
456 }
457
458 scrolledwindow.raven-background { border-bottom-style: none; }
459
460 .powerstrip button {
461 margin: 2px 0 1px;
462 padding: ($large_size - 24px) / 2;
463 }
464
465 .option-subtitle { font-size: smaller; }
466 }
467
468 // Calendar
469 calendar.raven-calendar {
470 // padding: 3px;
471 border-style: none;
472 background-color: transparent;
473
474 &:selected {
475 border-radius: 2px;
476 background-color: $bg_color;
477 }
478 }
479
480 // MPRIS Applet
481 .raven-mpris {
482 background-color: rgba($bg_color, 0.8);
483 color: $fg_color;
484
485 label { min-height: 24px; }
486
487 }
488
489 // Notifications
490 .budgie-notification-window {
491 background-color: transparent;
492 color: $osd_fg_color;
493 border-radius: 2px;
494 // draw actual backgrounds
495 .drop-shadow { background-color: $osd_bg_color; }
496 }
497
498 .budgie-notification {
499 .notification-title { font-size: 110%; color: $osd_fg_color; }
500 .notification-body { @extend .dim-label; color: $osd_fg_color; }
501 background-color: $osd_bg_color;
502 color: $osd_fg_color;
503 }
504
505 // On Screen Display in Budgie
506 .budgie-osd-window {
507 @extend .budgie-notification-window;
508 }
509
510 // Internal part of the OSD
511 .budgie-osd {
512 @extend .budgie-notification;
513 .budgie-osd-text { font-size: 120%; }
514 }
515
516 // Alt+tab switcher in Budgie
517 .budgie-switcher-window {
518 @extend .budgie-notification;
519
520 .drop-shadow {
521 margin: 8px 8px 16px; // reserve area for shadows
522 border-radius: 2px;
523 background-color: $osd_bg_color;
524 box-shadow: $z-depth-2;
525 label.budgie-switcher-title {
526 color: $osd_fg_color;
527 &:dir(ltr) { padding: 0 0 0 6px; }
528 &:dir(rtl) { padding: 0 6px 0 0; }
529 }
530 }
531 }
532
533 // Internal part of the Switcher
534 .budgie-switcher {
535 @extend .budgie-notification;
536 }
537
538 .drop-shadow {
539 margin: 5px 9px;
540 padding: 3px;
541 border-radius: 2px;
542 box-shadow: none;
543 background-color: $bg_color;
544
545 .linked > button { border-radius: 2px; }
546 }
547
548 %budgie_dialog {
549 border-radius: 2px;
550 background-color: $bg_color;
551
552 decoration { border-radius: 2px; }
553 }
554
555 // Session Dialog
556 .budgie-session-dialog {
557 @extend %budgie_dialog;
558
559 label:not(:last-child),
560 .dialog-title { font-size: 120%; }
561
562 .linked.horizontal > button {
563 padding: 8px 16px;
564 border-top: 1px solid $borders_color;
565 border-radius: 0;
566
567 &:first-child { border-bottom-left-radius: 2px; }
568
569 &:last-child { border-bottom-right-radius: 2px; }
570 }
571 }
572
573 // PolKit Dialog
574 .budgie-polkit-dialog {
575 @extend %budgie_dialog;
576
577 .message { color: $fg_color; }
578
579 .failure { color: $destructive_color; }
580 }
581
582 // Run Dialog
583 .budgie-run-dialog {
584 @extend %budgie_dialog;
585
586 background-color: $base_color;
587 border-style: none;
588
589 entry.search {
590 font-size: 120%;
591 box-shadow: none;
592 background-color: transparent;
593 border-style: none;
594 border-bottom: 1px solid $borders_color;
595 border-radius: 1px;
596 padding-top: 6px;
597 padding-bottom: 6px;
598 }
599
600 list .dim-label { opacity: 1; }
601
602 scrolledwindow { border-top: 1px solid $borders_color; }
603 }