_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 Menu
12
.budgie-menu {
13
&.background {
14
padding: 0;
15
background-color: $base_color;
16
}
17
18
scrollbar,
19
entry.search { background-color: transparent; }
20
21
entry.search {
22
border-bottom: 1px solid $border_color;
23
border-radius: 0;
24
box-shadow: none;
25
font-size: 120%;
26
}
27
28
.categories {
29
&:dir(ltr) { border-bottom-left-radius: $material_radius; }
30
31
&:dir(rtl) { border-bottom-right-radius: $material_radius; }
32
}
33
34
button {
35
@extend row.activatable;
36
37
min-height: 32px;
38
padding: 0 8px;
39
border-radius: 0;
40
color: $fg_color;
41
font-weight: normal;
42
43
&:disabled { color: $disabled_fg_color; }
44
45
&:checked { @extend %selected_items; }
46
47
&:checked:disabled { background-color: $primary_color; } // overriding
48
}
49
50
row {
51
padding: 0;
52
53
&:hover { box-shadow: none; }
54
}
55
}
56
57
// Menu Button
58
button.budgie-menu-launcher {
59
padding: 0 2px;
60
}
61
62
// User Menu
63
popover.background.user-menu {
64
padding: 8px;
65
66
.content-box { background-color: transparent; }
67
68
separator { margin: 4px 0; }
69
70
row {
71
padding: 0;
72
box-shadow: none;
73
background-image: none;
74
}
75
}
76
77
// Raven Trigger
78
button.raven-trigger {
79
padding: 0 4px;
80
}
81
82
// Places Menu
83
popover.background.places-menu {
84
padding: 8px;
85
86
// FIXME: untested
87
.message-bar {
88
// margin-bottom: 4px;
89
}
90
91
.name-button.text-button {
92
// padding: 4px 8px;
93
padding-left: 8px;
94
padding-right: 8px;
95
96
image {
97
&:dir(ltr) { margin-right: 8px - 5px; }
98
&:dir(rtl) { margin-left: 8px - 5px; }
99
}
100
}
101
102
// FIXME: untested
103
.unmount-button {
104
// padding: ($medium_size - 24px) / 2;
105
}
106
107
.places-section-header > image {
108
&:dir(ltr) { margin: 0 8px - 10px 0 8px - 3px; }
109
&:dir(rtl) { margin: 0 8px - 3px 0 8px - 10px; }
110
}
111
112
.places-list {
113
margin-top: 4px;
114
padding-top: 4px;
115
border-top: 1px solid $border_color;
116
background-color: transparent;
117
}
118
119
row {
120
padding: 0;
121
box-shadow: none;
122
background-image: none;
123
}
124
125
// FIXME: untested
126
.unlock-area {
127
entry {
128
}
129
130
button {
131
}
132
}
133
}
134
135
// Panel
136
.budgie-panel {
137
transition: background-color $longer_duration $deceleration_curve;
138
background-color: $solid_panel_bg_color;
139
color: $inverse_secondary_fg_color;
140
font-weight: 500;
141
142
&.transparent { background-color: $panel_bg_color; }
143
144
button {
145
border-radius: 0;
146
147
@extend %button_selected.flat;
148
}
149
150
separator { background-color: $inverse_track_color; }
151
152
// used to indicate unread notifications
153
.alert { color: $destructive_color; }
154
155
// End Section needs to be fancy
156
.end-region {
157
// background-color: rgba(0,0,0,0.2);
158
}
159
160
// Tasklist
161
#tasklist-button {
162
padding: 0 4px;
163
164
@extend %flat_button;
165
166
@extend %button_selected.flat;
167
168
@extend %underscores;
169
170
&:checked { background-color: $inverse_divider_color; }
171
}
172
173
// Icon Tasklist
174
button.flat.launcher {
175
padding: 0;
176
177
@extend %underscores;
178
179
&:checked { background-color: $inverse_divider_color; }
180
181
&:not(:checked) {
182
color: $inverse_hint_fg_color;
183
184
&:hover, &:active { color: $inverse_secondary_fg_color; }
185
186
&:disabled { color: $inverse_track_color; }
187
}
188
}
189
190
.unpinned button.flat.launcher,
191
.pinned button.flat.launcher.running { @extend %underscores:checked; }
192
}
193
194
%underscores {
195
@each $pos, $b_pos, $b_wid in (top, center calc(1px), 2 0 0 0 / 2px 0 0 0),
196
(bottom, center calc(100% - 1px), 0 0 2 0 / 0 0 2px 0),
197
(left, calc(1px) center, 0 2 0 0 / 0 2px 0 0),
198
(right, calc(100% - 1px) center, 0 0 0 2 / 0 0 0 2px) {
199
.#{$pos} & {
200
& {
201
border-image: radial-gradient(circle closest-corner at #{$b_pos},
202
currentColor 0%,
203
transparent 0%)
204
0 0 0 0 / 0 0 0 0;
205
}
206
207
&:checked {
208
border-image: radial-gradient(circle closest-corner at #{$b_pos},
209
currentColor 100%,
210
transparent 0%)
211
#{$b_wid};
212
}
213
}
214
}
215
}
216
217
frame.raven-frame > border {
218
border-style: none;
219
box-shadow: $shadow_4;
220
}
221
222
$pos_list: ((top, bottom), (bottom, top), (left, right), (right, left));
223
224
@each $pos, $b_pos in $pos_list {
225
// Panel borders
226
// .#{$pos} .budgie-panel { border-#{$b_pos}: 1px solid $border_color; }
227
228
// Raven borders
229
.#{$pos} frame.raven-frame > border {
230
margin-#{$b_pos}: 32px;
231
// border-#{$b_pos}: 1px solid $border_color;
232
}
233
234
// Shadows
235
// .#{$pos} .shadow-block { background-image: linear-gradient(to $b_pos, $border_color, transparent); }
236
}
237
238
// Raven
239
.raven {
240
background-color: $lighter_bg_color;
241
242
> stack { margin-bottom: -10px; }
243
244
// > stack > box:last-child > stack { margin-top: -6px; }
245
246
stackswitcher.linked > button {
247
@extend %flat_button;
248
249
@extend %button_selected.flat;
250
251
border-image: radial-gradient(circle closest-corner at center calc(100% - 1px),
252
$warning_bg_color 0%,
253
transparent 0%)
254
0 0 0 / 0 0 0px;
255
border-radius: 0;
256
257
&:checked {
258
border-image: radial-gradient(circle closest-corner at center calc(100% - 1px),
259
$warning_bg_color 100%,
260
transparent 0%)
261
0 0 2 / 0 0 2px;
262
background-color: transparent;
263
}
264
}
265
266
.raven-header {
267
min-height: $medium_size;
268
padding: 3px;
269
270
&:not(.top) {
271
margin-top: -6px; // remove extra spaces, but not perfect :(
272
273
button {
274
@extend %simple_flat_button;
275
276
&.image-button { @extend %circular_button; }
277
}
278
}
279
280
&.top {
281
padding: 2px 0;
282
background-color: $primary_color;
283
color: $inverse_fg_color;
284
285
stackswitcher button {
286
margin: -$container_padding 0;
287
min-height: $medium_size;
288
}
289
290
button.image-button {
291
&:dir(ltr) { margin-right: 2px; }
292
&:dir(rtl) { margin-left: 2px; }
293
}
294
295
> image { margin: 0 8px; }
296
297
> label {
298
margin: 0 -8px;
299
font-weight: bold;
300
}
301
}
302
303
&.bottom { border-top: 1px solid $border_color; }
304
}
305
306
viewport.frame .raven-header { margin-top: -8px; }
307
308
.expander-button { @extend %circular_button; }
309
310
.raven-background {
311
border-style: solid none;
312
border-width: 1px;
313
border-color: $border_color;
314
background-color: $base_color;
315
316
// &.middle { border-bottom-style: none; } // applet background between two headers
317
318
&.frame { border-style: solid none; }
319
320
> overlay > widget > image { color: $divider_color; }
321
322
grid > label:first-child { min-height: $medium_size; } // workaround to fix vertical-align
323
324
spinbutton:not(.vertical) { @extend %entry.flat; }
325
326
button.combo { @extend %combo_flat; }
327
}
328
329
scrolledwindow.raven-background { border-bottom-style: none; }
330
331
.raven-header.top + .raven-background {
332
border-style: none;
333
background-color: $primary_color;
334
color: $inverse_fg_color;
335
336
stackswitcher button { margin: -4px 0; }
337
}
338
339
.powerstrip button {
340
margin: 2px 0 1px;
341
padding: ($large_size - 24px) / 2;
342
}
343
344
.option-subtitle { font-size: smaller; }
345
}
346
347
// Calendar
348
calendar.raven-calendar {
349
// padding: 3px;
350
border-style: none;
351
background-color: transparent;
352
353
&:selected {
354
border-radius: 2px;
355
background-color: $primary_color;
356
}
357
}
358
359
// MPRIS Applet
360
.raven-mpris {
361
background-color: rgba($black, $middle_opacity);
362
color: $inverse_fg_color;
363
364
label { min-height: 24px; }
365
366
button.image-button {
367
padding: ($large_size - 24px) / 2;
368
369
@extend %button_selected.flat;
370
}
371
}
372
373
// Notifications
374
.budgie-notification-window { background-color: transparent; }
375
376
.budgie-notification {
377
.notification-title { font-size: 120%; }
378
379
.notification-body { @extend .dim-label; }
380
}
381
382
// On Screen Display in Budgie
383
.budgie-osd-window {
384
@extend .budgie-notification-window;
385
}
386
387
// Internal part of the OSD
388
.budgie-osd {
389
.budgie-osd-text { font-size: 120%; }
390
}
391
392
// Alt+tab switcher in Budgie
393
.budgie-switcher-window {
394
@extend .budgie-notification-window;
395
}
396
397
// Internal part of the Switcher
398
.budgie-switcher {
399
@extend .budgie-notification;
400
}
401
402
.drop-shadow {
403
margin: 5px 9px;
404
padding: 3px;
405
border-radius: 2px;
406
box-shadow: $shadow_2, inset 0 1px $highlight_color;
407
background-color: $lighter_bg_color;
408
409
button { @extend %simple_flat_button; }
410
411
.linked > button { border-radius: 2px; }
412
}
413
414
%budgie_dialog {
415
border-radius: 2px;
416
background-color: $lighter_bg_color;
417
418
decoration { border-radius: 2px; }
419
}
420
421
// Session Dialog
422
.budgie-session-dialog {
423
@extend %budgie_dialog;
424
425
label:not(:last-child),
426
.dialog-title { font-size: 120%; }
427
428
.linked.horizontal > button {
429
padding: 8px 16px;
430
border-top: 1px solid $border_color;
431
border-radius: 0;
432
433
@extend %simple_flat_button;
434
435
&:first-child { border-bottom-left-radius: 2px; }
436
437
&:last-child { border-bottom-right-radius: 2px; }
438
}
439
}
440
441
// PolKit Dialog
442
.budgie-polkit-dialog {
443
@extend %budgie_dialog;
444
445
.message { color: $hint_fg_color; }
446
447
.failure { color: $destructive_color; }
448
}
449
450
// Run Dialog
451
.budgie-run-dialog {
452
@extend %budgie_dialog;
453
454
background-color: $base_color;
455
456
entry.search {
457
font-size: 120%;
458
padding: $container_padding 8px + $container_padding;
459
box-shadow: inset 0 1px $highlight_color;
460
background-color: transparent;
461
}
462
463
list .dim-label { opacity: 1; }
464
465
scrolledwindow { border-top: 1px solid $border_color; }
466
}
467