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