A fork of the Materia GTK theme.

Important information: Google announced that, from September 2026, Android devices will require ALL apps to be signed by Google, effectively leading to an iOS situation. Value your right to a computer that does what you want; do not tolerate this monopolistic practice! Contact me if you don't understand why it is bad. Click to learn more.

 _common.scss

View raw Download
text/plain • 81.15 kiB
ASCII text
        
            
1
* {
2
// padding: 0;
3
background-clip: padding-box;
4
5
-GtkToolButton-icon-spacing: 0;
6
-GtkTextView-error-underline-color: $error_color;
7
8
// The size for scrollbars. The slider is 2px smaller, but we keep it
9
// up so that the whole area is sensitive to button presses for the
10
// slider. The stepper button is larger in both directions, the slider
11
// only in the width
12
13
-GtkScrolledWindow-scrollbar-spacing: 0;
14
15
-GtkToolItemGroup-expander-size: 11;
16
17
-GtkWidget-text-handle-width: 24;
18
-GtkWidget-text-handle-height: 24;
19
20
-GtkDialog-button-spacing: 4;
21
-GtkDialog-action-area-border: 0;
22
23
// We use the outline properties to signal the focus properties
24
// to the adwaita engine: using real CSS properties is faster,
25
// and we don't use any outlines for now.
26
27
outline-style: solid;
28
outline-width: 2px;
29
outline-color: transparent;
30
outline-offset: -4px;
31
-gtk-outline-radius: 2px;
32
33
-gtk-secondary-caret-color: $primary_color;
34
}
35
36
switch:focus slider,
37
notebook:focus tab,
38
*:focus { outline-color: $fill_color; }
39
40
41
/***************
42
* Base States *
43
***************/
44
.background {
45
background-color: $bg_color;
46
color: $fg_color;
47
}
48
49
/*
50
These wildcard seems unavoidable, need to investigate.
51
Wildcards are bad and troublesome, use them with care,
52
or better, just don't.
53
Everytime a wildcard is used a kitten dies, painfully.
54
*/
55
56
*:disabled { -gtk-icon-effect: dim; }
57
58
.gtkstyle-fallback {
59
background-color: $bg_color;
60
color: $fg_color;
61
62
&:hover {
63
background-color: darken($bg_color, 5%);
64
color: $fg_color;
65
}
66
67
&:active {
68
background-color: darken($bg_color, 10%);
69
color: $fg_color;
70
}
71
72
&:disabled {
73
background-color: $bg_color;
74
color: $disabled_fg_color;
75
}
76
77
&:selected {
78
background-color: $primary_color;
79
color: $inverse_fg_color;
80
}
81
}
82
83
.view {
84
@extend row.activatable;
85
86
background-color: $base_color;
87
color: $fg_color;
88
89
&:disabled { color: $disabled_fg_color; }
90
91
&:hover, &:active, &:selected { border-radius: 2px; }
92
93
selection,
94
&:selected { @extend %selected_items; }
95
}
96
97
textview {
98
// FIXME: we need to override background-color to ensure text rendering
99
text { background-color: $base_color; }
100
101
border {
102
background-color: $alt_base_color;
103
color: $tertiary_fg_color; // FIXME: not working
104
}
105
}
106
107
// iconview { @extend .view; }
108
109
.rubberband,
110
rubberband {
111
border: 1px solid $alt_primary_color;
112
background-color: rgba($alt_primary_color, $lower_opacity);
113
}
114
115
flowbox {
116
rubberband { @extend rubberband; }
117
118
flowboxchild {
119
padding: 4px;
120
border-radius: 2px;
121
122
&:selected { @extend %selected_items; }
123
}
124
}
125
126
.content-view .tile {
127
// margin: 2px;
128
// padding: 0;
129
// border-radius: 0;
130
// background-color: $black;
131
132
&:selected {
133
background-color: transparent;
134
color: inherit;
135
}
136
}
137
138
label {
139
caret-color: currentColor; // this shouldn't be needed.
140
141
&.separator {
142
@extend .dim-label;
143
144
color: $fg_color;
145
}
146
147
row:selected &,
148
&:selected { @extend %nobg_selected_items; }
149
150
selection {
151
background-color: $primary_color;
152
color: $inverse_fg_color;
153
}
154
155
&:disabled {
156
color: $disabled_fg_color;
157
158
selection { @extend %selected_items:disabled; }
159
160
tab &,
161
button & { color: inherit; }
162
}
163
}
164
165
.dim-label { opacity: $tertiary_opacity; }
166
167
assistant {
168
.sidebar {
169
padding: 4px 0;
170
// background-color: $base_color;
171
// border-top: 1px solid $border_color;
172
}
173
174
// &.csd .sidebar { border-top-style: none; }
175
176
.sidebar label {
177
min-height: $medium_size;
178
padding: 0 12px;
179
color: $tertiary_fg_color;
180
font-weight: 500;
181
182
&.highlight { color: $fg_color; }
183
}
184
}
185
186
%osd, .osd { opacity: $higher_opacity; }
187
188
189
/*********************
190
* Spinner Animation *
191
*********************/
192
@keyframes spin {
193
to { -gtk-icon-transform: rotate(1turn); }
194
}
195
196
spinner {
197
background: none;
198
opacity: 0; // non spinning spinner makes no sense
199
-gtk-icon-source: -gtk-icontheme('process-working-symbolic');
200
201
&:checked {
202
opacity: 1;
203
animation: spin 1s linear infinite;
204
205
&:disabled { opacity: $disabled_opacity; }
206
}
207
}
208
209
210
/****************
211
* Text Entries *
212
****************/
213
%entry,
214
entry {
215
%entry_basic, & {
216
min-height: $medium_size;
217
padding: 0 8px;
218
border-radius: 2px;
219
220
@include entry(normal);
221
222
&:focus { @include entry(focus); }
223
224
&:disabled { @include entry(disabled); }
225
226
&.flat {
227
border-radius: 0;
228
229
@include entry(flat-normal);
230
231
&:focus { @include entry(flat-focus); }
232
233
&:disabled { @include entry(flat-disabled); }
234
}
235
236
image { // icons inside the entry
237
// @extend %simple_flat_button;
238
239
// min-height: $small_size;
240
// min-width: $small_size;
241
// border-radius: $circular_radius;
242
// -gtk-outline-radius: $circular_radius;
243
color: $secondary_fg_color;
244
245
&:hover, &:active { color: $fg_color; }
246
247
&:disabled { color: $tertiary_fg_color; }
248
249
&.left {
250
margin-left: ($medium_size - 16px) / 2 - 8px;
251
margin-right: 6px;
252
}
253
254
&.right {
255
margin-left: 6px;
256
margin-right: ($medium_size - 16px) / 2 - 8px;
257
}
258
}
259
260
undershoot {
261
&.left { @include undershoot(left); }
262
263
&.right { @include undershoot(right); }
264
}
265
266
selection { @extend %selected_items; }
267
268
// entry error and warning style
269
@each $e_type, $e_color in (error, $error_color),
270
(warning, $warning_color) {
271
&.#{$e_type} {
272
@include entry(normal, $e_color);
273
274
&:focus { @include entry(focus, $e_color); }
275
276
&:disabled { @include entry(disabled, $e_color); }
277
278
&.flat {
279
@include entry(flat-normal, $e_color);
280
281
&:focus { @include entry(flat-focus, $e_color); }
282
283
&:disabled { @include entry(flat-disabled, $e_color); }
284
}
285
286
image {
287
color: $secondary_inverse_fg_color;
288
289
&:hover, &:active { color: $inverse_fg_color; }
290
291
&:disabled { color: $tertiary_inverse_fg_color; }
292
}
293
}
294
}
295
296
&:drop(active) {
297
// box-shadow: inset 0 0 0 2px $accent_color;
298
}
299
300
.osd & {
301
}
302
}
303
304
progress {
305
margin: 2px (2px - 8px);
306
border-bottom: 2px solid $primary_color;
307
background-color: transparent;
308
}
309
310
// linked entries
311
.linked:not(.vertical) > & { @extend %linked; }
312
313
// Vertically linked entries
314
.linked.vertical > & { @extend %linked_vertical; }
315
316
.linked:not(.vertical) > &.flat,
317
.linked.vertical > &.flat { border-radius: 0; }
318
}
319
320
treeview entry {
321
&.flat, & {
322
min-height: 0;
323
padding: 2px;
324
border-radius: 0;
325
background-color: $base_color;
326
327
&, &:focus {
328
border-image: none;
329
box-shadow: none;
330
}
331
}
332
}
333
334
.entry-tag {
335
$tag_height: 24px;
336
$tag_margin: ($medium_size - $tag_height) / 2;
337
338
margin: $tag_margin; // instead of min-height: $tag_height;
339
border-radius: $circular_radius;
340
box-shadow: none;
341
background-color: $primary_color;
342
color: $inverse_fg_color;
343
344
&:hover { box-shadow: $shadow_1; }
345
346
// side margins: compensate the entry padding with a negative margin
347
// then the negative margin itself
348
:dir(ltr) & {
349
margin-left: 8px;
350
margin-right: $tag_margin - 8px;
351
padding-left: 8px;
352
padding-right: ($tag_height - 16px) / 2;
353
}
354
355
:dir(rtl) & {
356
margin-left: $tag_margin - 8px;
357
margin-right: 8px;
358
padding-left: ($tag_height - 16px) / 2;
359
padding-right: 8px;
360
}
361
362
// seems any sizing doesn't work
363
&.button {
364
box-shadow: none;
365
background-color: transparent;
366
367
&:not(:hover):not(:active) { color: $secondary_inverse_fg_color; }
368
}
369
}
370
371
372
/***********
373
* Buttons *
374
***********/
375
// stuff for .needs-attention
376
@keyframes needs_attention {
377
from {
378
background-image: -gtk-gradient(radial,
379
center center, 0,
380
center center, 0.001,
381
to($accent_color),
382
to(transparent));
383
}
384
385
to {
386
background-image: -gtk-gradient(radial,
387
center center, 0,
388
center center, 0.5,
389
to($accent_color),
390
to(transparent));
391
}
392
}
393
394
%button,
395
button {
396
@at-root %button_basic, & {
397
min-height: 24px;
398
min-width: 16px;
399
padding: ($medium_size - 24px) / 2 ($medium_size - 16px) / 2;
400
border-radius: 2px;
401
font-weight: 500;
402
403
@include button(normal);
404
405
&:hover { @include button(hover); }
406
407
&:active { @include button(active); }
408
409
&:disabled { @include button(disabled); }
410
411
&:checked { @include button(checked); }
412
413
&:checked:disabled { @include button(checked-disabled); }
414
415
@at-root %flat_button, &.flat {
416
@at-root %simple_flat_button, & {
417
@include button(flat-normal);
418
419
&:hover { @include button(flat-hover); }
420
421
&:active { @include button(flat-active); }
422
423
&:disabled { @include button(flat-disabled); }
424
}
425
426
&:checked { @include button(flat-checked); }
427
428
&:checked:disabled { @include button(flat-checked-disabled); }
429
}
430
431
&.text-button {
432
padding-left: 16px;
433
padding-right: 16px;
434
}
435
436
&.image-button {
437
min-width: 24px;
438
padding: ($medium_size - 24px) / 2;
439
440
@extend %circular_button;
441
}
442
443
&.text-button.image-button {
444
border-radius: 2px;
445
-gtk-outline-radius: 2px;
446
447
label {
448
&:first-child { margin-left: 16px - ($medium_size - 24px) / 2; }
449
450
&:last-child { margin-right: 16px - ($medium_size - 24px) / 2; }
451
}
452
453
image:not(:only-child) { margin: 0 (24px - 16px) / 2; }
454
}
455
456
.linked > & { @extend %linked; }
457
458
.linked.vertical > & { @extend %linked_vertical; }
459
460
.linked > &.flat,
461
.linked.vertical > &.flat {
462
border-radius: 2px;
463
464
&.image-button { @extend %circular_button; }
465
466
&.text-button.image-button {
467
border-radius: 2px;
468
-gtk-outline-radius: 2px;
469
}
470
}
471
472
&:drop(active) {
473
// box-shadow: inset 0 0 0 2px $accent_color;
474
}
475
}
476
477
@at-root %button_selected, row:selected & {
478
&:disabled {
479
background-color: $inverse_divider_color;
480
color: $disabled_secondary_inverse_fg_color;
481
}
482
483
&.flat {
484
color: $secondary_inverse_fg_color;
485
486
&:hover, &:active { color: $inverse_fg_color; }
487
488
&:disabled { color: $disabled_secondary_inverse_fg_color; }
489
490
&:checked {
491
background-color: $inverse_track_color;
492
color: $inverse_fg_color;
493
}
494
495
&:checked:disabled {
496
background-color: $inverse_divider_color;
497
color: $disabled_inverse_fg_color;
498
}
499
}
500
}
501
502
// big standalone buttons like in Documents pager
503
&.osd {
504
padding: ($large_size - 24px) / 2 ($large_size - 16px) / 2;
505
506
&.image-button { padding: ($large_size - 24px) / 2; }
507
508
&:disabled { opacity: 0; }
509
}
510
511
// overlay / OSD style
512
@at-root %osd_button,
513
.osd & {
514
}
515
516
// Suggested and Destructive Action buttons
517
@each $b_type, $b_color in (suggested-action, $suggested_color),
518
(destructive-action, $destructive_color) {
519
&.#{$b_type} {
520
background-color: $b_color;
521
color: $inverse_fg_color;
522
523
&:disabled { @include button(disabled, $b_color); }
524
525
&:checked { background-color: mix($inverse_fg_color, $b_color, percentage($lower_opacity)); }
526
527
&.flat {
528
background-color: transparent;
529
color: $b_color;
530
531
&:disabled { @include button(flat-disabled, $b_color); }
532
533
&:checked { background-color: rgba($b_color, 0.3); }
534
}
535
536
.osd & {
537
}
538
}
539
}
540
541
.stack-switcher > & {
542
// to position the needs attention dot, padding is added to the button
543
// child, a label needs just lateral padding while an icon needs vertical
544
// padding added too.
545
546
outline-offset: -4px; // needs to be set or it gets overriden by GtkRadioButton outline-offset
547
548
> label {
549
padding-left: 6px; // label padding
550
padding-right: 6px; //
551
}
552
553
> image {
554
padding-left: 6px; // image padding
555
padding-right: 6px; //
556
padding-top: 3px; //
557
padding-bottom: 3px; //
558
}
559
560
&.text-button {
561
// compensate text-button paddings
562
padding-left: 16px - 6px;
563
padding-right: 16px - 6px;
564
}
565
566
&.image-button {
567
// we want image buttons to have a 1:1 aspect ratio, so compensation
568
// of the padding added to the GtkImage is needed
569
padding-left: ($medium_size - 16px) / 2 - 6px;
570
padding-right: ($medium_size - 16px) / 2 - 6px;
571
}
572
573
&.needs-attention {
574
> label,
575
> image { @extend %needs_attention; }
576
577
&:checked {
578
> label,
579
> image {
580
animation: none;
581
background-image: none;
582
}
583
}
584
}
585
}
586
587
// hide separators
588
&.font,
589
&.file { separator { @extend %hide_separators; }}
590
591
// &.font { > box > box > label { font-weight: bold; }}
592
593
// inline-toolbar buttons
594
.inline-toolbar & {
595
// @extend %button_basic.flat;
596
597
&:not(.text-button) { @extend %circular_button; }
598
}
599
600
.primary-toolbar & { -gtk-icon-shadow: none; } // tango icons don't need shadows
601
602
@at-root %circular_button,
603
&.close,
604
&.circular { // The Bloody Circul Button
605
border-radius: $circular_radius;
606
-gtk-outline-radius: $circular_radius;
607
608
// label { padding: 0; }
609
}
610
611
@at-root %small_button {
612
min-height: $small_size;
613
min-width: $small_size;
614
padding: 0;
615
border-radius: $circular_radius;
616
-gtk-outline-radius: $circular_radius;
617
}
618
}
619
620
%needs_attention {
621
animation: needs_attention $longer_duration $deceleration_curve forwards;
622
background-repeat: no-repeat;
623
background-position: right 3px;
624
background-size: 6px 6px;
625
626
&:dir(rtl) { background-position: left 3px; }
627
}
628
629
// all the following is for the +|- buttons on inline toolbars, that way
630
// should really be deprecated...
631
.inline-toolbar toolbutton > button { // redefining the button look is
632
// needed since those are flat...
633
}
634
635
// More inline toolbar buttons
636
toolbar.inline-toolbar toolbutton {
637
// > button.flat { @extend %linked_middle; }
638
639
// &:first-child > button.flat { @extend %linked:first-child; }
640
641
// &:last-child > button.flat { @extend %linked:last-child; }
642
643
// &:only-child > button.flat { @extend %linked:only-child; }
644
}
645
646
%linked_middle {
647
border-radius: 0;
648
-gtk-outline-radius: 2px;
649
}
650
651
%linked {
652
@extend %linked_middle;
653
654
&:first-child {
655
border-top-left-radius: 2px;
656
border-bottom-left-radius: 2px;
657
}
658
659
&:last-child {
660
border-top-right-radius: 2px;
661
border-bottom-right-radius: 2px;
662
}
663
664
&:only-child {
665
border-radius: 2px;
666
}
667
}
668
669
%linked_vertical_middle {
670
border-radius: 0;
671
-gtk-outline-radius: 2px;
672
}
673
674
%linked_vertical {
675
@extend %linked_vertical_middle;
676
677
&:first-child {
678
border-top-left-radius: 2px;
679
border-top-right-radius: 2px;
680
}
681
682
&:last-child {
683
border-bottom-left-radius: 2px;
684
border-bottom-right-radius: 2px;
685
}
686
687
&:only-child {
688
border-radius: 2px;
689
}
690
}
691
692
/* menu buttons */
693
modelbutton.flat,
694
.menuitem.button.flat {
695
min-height: $menuitem_size;
696
padding: 0 8px;
697
border-radius: 2px;
698
color: inherit;
699
700
@extend %simple_flat_button;
701
702
&:selected { @extend %selected_items; }
703
}
704
705
modelbutton.flat arrow {
706
background: none;
707
708
&:hover { background: none; }
709
710
&.left { -gtk-icon-source: -gtk-icontheme("pan-start-symbolic"); }
711
712
&.right { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
713
}
714
715
button.color {
716
min-height: $small_size;
717
min-width: $small_size;
718
padding: $container_padding;
719
720
colorswatch:only-child {
721
// &, overlay { border-radius: 0; }
722
}
723
}
724
725
726
/*********
727
* Links *
728
*********/
729
*:link {
730
&, &:hover, &:active { color: $link_color; }
731
732
&:visited {
733
&, &:hover, &:active { color: $visited_link_color; }
734
}
735
736
@at-root %link_selected,
737
&:selected,
738
*:selected & { color: $inverse_fg_color; }
739
}
740
741
button:link,
742
button:visited {
743
@extend *:link;
744
745
> label { text-decoration-line: underline; }
746
}
747
748
/*****************
749
* GtkSpinButton *
750
*****************/
751
spinbutton {
752
&:not(.vertical) {
753
// in this horizontal configuration, the whole spinbutton
754
// behaves as the entry, so we extend the entry styling
755
// and nuke the style on the internal entry
756
@extend %entry;
757
758
padding: 0;
759
760
%spinbutton_entry,
761
entry {
762
min-width: $large_size - 8px * 2;
763
// reset all the other props since the spinbutton node is styled here
764
margin: 0;
765
border-image: none;
766
border-radius: 0;
767
box-shadow: none;
768
background-color: transparent;
769
//
770
// This will help to simplify spinbutton's code, but unfortunatelly
771
// doesn't work properly in :dir(rtl). It needs z-index property.
772
//
773
// min-width: $large_size - 8px;
774
//
775
// $spinbuttons_width: $small_size * 2 + $container_padding * 3;
776
//
777
// &:dir(ltr) {
778
// margin-right: -$spinbuttons_width;
779
// padding-right: $spinbuttons_width;
780
// }
781
//
782
// &:dir(rtl) {
783
// margin-left: -$spinbuttons_width;
784
// padding-left: $spinbuttons_width;
785
// }
786
}
787
788
button {
789
// margin: $container_padding;
790
border: solid $container_padding transparent;
791
792
@extend %simple_flat_button;
793
794
@extend %small_button;
795
796
&.up:dir(ltr),
797
&.down:dir(rtl) { margin-left: -$container_padding / 2; }
798
799
&.up:dir(rtl),
800
&.down:dir(ltr) { margin-right: -$container_padding / 2; }
801
}
802
}
803
804
// OSD horizontal
805
.osd &:not(.vertical) {
806
button {
807
}
808
}
809
810
// Vertical
811
&.vertical {
812
// in the vertical configuration, we treat the spinbutton
813
// as a box, and tweak the style of the entry in the middle
814
// so that it's linked
815
816
// FIXME: this should not be set at all, but otherwise it gets the wrong
817
// color
818
&:disabled { color: $disabled_fg_color; }
819
820
&:drop(active) {
821
box-shadow: none;
822
}
823
824
entry {
825
min-height: $medium_size;
826
min-width: $large_size;
827
padding: 0;
828
}
829
830
button {
831
min-height: $medium_size;
832
min-width: $large_size;
833
padding: 0;
834
835
@extend %simple_flat_button;
836
837
&.up { border-radius: 2px 2px 0 0; }
838
839
&.down { border-radius: 0 0 2px 2px; }
840
}
841
}
842
843
// OSD vertical
844
.osd &.vertical button:first-child {
845
}
846
847
// Misc
848
treeview &:not(.vertical) {
849
min-height: 0;
850
border-style: none;
851
border-radius: 0;
852
853
entry {
854
min-height: 0;
855
padding: 1px 2px;
856
}
857
}
858
}
859
860
861
/**************
862
* ComboBoxes *
863
**************/
864
combobox {
865
arrow {
866
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
867
min-height: 16px;
868
min-width: 16px;
869
}
870
871
decoration,
872
button.combo:checked { transition: none; } // workaround for menuitem selection
873
874
button.combo cellview {
875
&:dir(ltr) { margin-left: 8px - ($medium_size - 16px) / 2; }
876
&:dir(rtl) { margin-right: 8px - ($medium_size - 16px) / 2; }
877
}
878
879
#gtk-combobox-popup-menu {
880
padding: 2px 0;
881
882
menuitem {
883
min-height: $medium_size - 2px * 2;
884
padding: 0 8px;
885
}
886
887
// overflow arrows
888
> arrow {
889
&.top { margin-top: -2px; }
890
891
&.bottom { margin-bottom: -2px * 3; }
892
}
893
}
894
895
&.linked {
896
button:nth-child(2) {
897
&:dir(ltr) { @extend %linked:last-child; }
898
&:dir(rtl) { @extend %linked:first-child; }
899
}
900
}
901
902
&:drop(active) { // FIXME: untested
903
box-shadow: none;
904
905
// button.combo { @extend %button_basic:drop(active); }
906
}
907
}
908
909
// the combo is a composite widget so the way we do button linking doesn't
910
// work, special case needed. See
911
// https://bugzilla.gnome.org/show_bug.cgi?id=733979
912
913
.linked:not(.vertical) > combobox {
914
> box > button.combo { @extend %linked_middle; }
915
916
&:first-child > box > button.combo { @extend %linked:first-child; }
917
918
&:last-child > box > button.combo { @extend %linked:last-child; }
919
920
&:only-child > box > button.combo { @extend %linked:only-child; }
921
}
922
923
.linked.vertical > combobox {
924
> box > button.combo { @extend %linked_vertical_middle; }
925
926
&:first-child > box > button.combo { @extend %linked_vertical:first-child; }
927
928
&:last-child > box > button.combo { @extend %linked_vertical:last-child; }
929
930
&:only-child > box > button.combo { @extend %linked_vertical:only-child; }
931
}
932
933
%combo_flat {
934
border-radius: 0;
935
background-image: none;
936
font-weight: inherit;
937
938
@include entry(flat-normal);
939
940
&:hover { box-shadow: inset 0 -2px $tertiary_fg_color; }
941
942
&:checked {
943
border-image: radial-gradient(circle closest-corner at center calc(100% - 1px),
944
$primary_color 100%,
945
transparent 0%)
946
0 0 2 / 0 0 2px;
947
}
948
949
&:disabled { color: $disabled_fg_color; }
950
}
951
952
953
/************
954
* Toolbars *
955
************/
956
toolbar {
957
-GtkWidget-window-dragging: true;
958
padding: $container_padding / 2;
959
background-color: $bg_color;
960
961
button { @extend %button_basic.flat; }
962
963
// on OSD
964
.osd & { background-color: transparent; }
965
966
// stand-alone OSD toolbars
967
&.osd {
968
transition: $shadow_transition;
969
padding: $container_padding;
970
border-radius: 2px;
971
box-shadow: $shadow_2, inset 0 1px $highlight_color;
972
background-color: $base_color;
973
974
&:backdrop { box-shadow: $shadow_1, inset 0 1px $highlight_color; }
975
976
&.left,
977
&.right,
978
&.top,
979
&.bottom { border-radius: 0; } // positional classes for `attached` osd toolbars
980
}
981
982
// toolbar separators
983
&.horizontal separator { margin: $container_padding / 2; }
984
&.vertical separator { margin: $container_padding / 2; }
985
986
&:not(.inline-toolbar):not(.osd) {
987
scale,
988
entry,
989
spinbutton,
990
button { margin: $container_padding / 2; }
991
992
.linked entry,
993
.linked spinbutton,
994
.linked button {
995
&:not(:first-child) { margin-left: 0; }
996
&:not(:last-child) { margin-right: 0; }
997
}
998
999
switch { margin: ($container_padding / 2 + $container_padding) ($container_padding / 2); }
1000
}
1001
}
1002
1003
// searchbar, location-bar & inline-toolbar
1004
.inline-toolbar {
1005
padding: $container_padding;
1006
border-style: solid;
1007
border-width: 0 1px 1px;
1008
border-color: $border_color;
1009
background-color: $alt_base_color;
1010
}
1011
1012
searchbar,
1013
.location-bar {
1014
padding: $container_padding;
1015
border-style: solid;
1016
border-width: 0 0 1px;
1017
border-color: $border_color;
1018
background-color: $bg_color;
1019
background-clip: border-box;
1020
}
1021
1022
1023
/***************
1024
* Header bars *
1025
***************/
1026
%titlebar,
1027
headerbar {
1028
transition: background-color $shorter_duration $deceleration_curve;
1029
min-height: $large_size;
1030
padding: 0 $container_padding;
1031
box-shadow: $shadow_1, inset 0 1px $titlebar_highlight_color;
1032
background-color: $titlebar_bg_color;
1033
color: $titlebar_fg_color;
1034
1035
&:disabled :not(button) > label { color: $disabled_titlebar_fg_color; }
1036
1037
&:backdrop {
1038
color: $secondary_titlebar_fg_color;
1039
1040
&:disabled :not(button) > label { color: $disabled_secondary_titlebar_fg_color; }
1041
}
1042
1043
.title {
1044
transition: $longer_transition;
1045
padding: 0 12px;
1046
font-weight: bold;
1047
}
1048
1049
.subtitle {
1050
transition: $longer_transition;
1051
padding: 0 12px;
1052
font-size: smaller;
1053
1054
@extend .dim-label;
1055
}
1056
1057
.linked:not(.vertical) > entry:not(.flat) { border-radius: 2px; }
1058
1059
button:not(.suggested-action):not(.destructive-action) {
1060
@extend %button_basic.flat;
1061
1062
border-image: radial-gradient(circle closest-corner at center calc(100% - 1px),
1063
$titlebar_indicator_color 0%,
1064
transparent 0%)
1065
0 0 0 / 0 0 0px;
1066
color: $secondary_titlebar_fg_color;
1067
1068
&:hover, &:active { color: $titlebar_fg_color; }
1069
1070
&:disabled { color: $disabled_secondary_titlebar_fg_color; }
1071
1072
&:checked {
1073
border-image: radial-gradient(circle closest-corner at center calc(100% - 1px),
1074
$titlebar_indicator_color 100%,
1075
transparent 0%)
1076
0 0 2 / 0 0 2px;
1077
color: $titlebar_fg_color;
1078
1079
&:disabled { color: $disabled_titlebar_fg_color; }
1080
1081
&, &:disabled { background-color: transparent; }
1082
}
1083
1084
&:backdrop {
1085
color: $tertiary_titlebar_fg_color;
1086
1087
&:hover, &:active { color: $secondary_titlebar_fg_color; }
1088
1089
&:disabled { color: $disabled_secondary_titlebar_fg_color; }
1090
1091
&:checked {
1092
color: $secondary_titlebar_fg_color;
1093
1094
&:disabled { color: $disabled_secondary_titlebar_fg_color; }
1095
}
1096
}
1097
}
1098
1099
button.suggested-action, button.destructive-action {
1100
&:disabled {
1101
background-color: $titlebar_divider_color;
1102
color: $disabled_titlebar_fg_color;
1103
}
1104
}
1105
1106
&.selection-mode {
1107
// FIXME: 0.00001s is workaround for transition bug of gtk+ 3.22
1108
// see https://bugzilla.gnome.org/show_bug.cgi?id=774064
1109
transition: background-color 0.00001s $longer_duration;
1110
animation: header_ripple_effect $longer_duration $deceleration_curve;
1111
box-shadow: $shadow_1, inset 0 1px $alt_highlight_color;
1112
background-color: $primary_color;
1113
color: $inverse_fg_color;
1114
1115
&:backdrop {
1116
color: $secondary_inverse_fg_color;
1117
}
1118
1119
.subtitle:link { @extend *:link:selected; }
1120
1121
button:not(.suggested-action):not(.destructive-action) {
1122
border-image: radial-gradient(circle closest-corner at center calc(100% - 1px),
1123
currentColor 0%,
1124
transparent 0%)
1125
0 0 0 / 0 0 0px;
1126
color: $inverse_fg_color;
1127
1128
&:disabled { color: $disabled_inverse_fg_color; }
1129
1130
&:checked {
1131
border-image: radial-gradient(circle closest-corner at center calc(100% - 1px),
1132
currentColor 100%,
1133
transparent 0%)
1134
0 0 2 / 0 0 2px;
1135
color: $inverse_fg_color;
1136
1137
&:disabled { color: $disabled_inverse_fg_color; }
1138
}
1139
1140
&:backdrop {
1141
color: $secondary_inverse_fg_color;
1142
1143
&:disabled { color: $disabled_secondary_inverse_fg_color; }
1144
1145
&:checked {
1146
color: $secondary_inverse_fg_color;
1147
1148
&:disabled { color: $disabled_secondary_inverse_fg_color; }
1149
}
1150
}
1151
}
1152
1153
.selection-menu {
1154
padding-left: 16px;
1155
padding-right: 16px;
1156
1157
GtkArrow { -GtkArrow-arrow-scaling: 1; }
1158
1159
.arrow { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
1160
}
1161
}
1162
1163
.fullscreen &,
1164
.tiled &,
1165
.maximized & {
1166
border-radius: 0; // squared corners when the window is fullscreen, maximized or tiled
1167
box-shadow: $shadow_1;
1168
}
1169
1170
&.default-decoration {
1171
min-height: $small_size;
1172
padding: $container_padding;
1173
box-shadow: inset 0 1px $titlebar_highlight_color;
1174
1175
.fullscreen &,
1176
.tiled &,
1177
.maximized & { box-shadow: none; }
1178
1179
button.titlebutton {
1180
min-height: $small_size;
1181
min-width: $small_size;
1182
margin: 0;
1183
padding: 0;
1184
}
1185
1186
// workaround for non-animatable buttons
1187
.background:not(.csd) & button.titlebutton:active { background-size: 1000% 1000%; }
1188
}
1189
1190
.solid-csd & {
1191
&:dir(rtl), &:dir(ltr) { // specificity bump
1192
// margin-left: -2px;
1193
// margin-right: -2px;
1194
// margin-top: -2px;
1195
// border-radius: 0;
1196
// box-shadow: inset 0 1px $titlebar_highlight_color;
1197
}
1198
}
1199
}
1200
1201
headerbar {
1202
// add vertical margins to common widget on the headerbar to avoid them spanning the whole height
1203
entry,
1204
spinbutton,
1205
// separator,
1206
button {
1207
margin-top: $container_padding;
1208
margin-bottom: $container_padding;
1209
}
1210
1211
switch {
1212
margin-top: $container_padding * 2;
1213
margin-bottom: $container_padding * 2;
1214
}
1215
1216
// reset button margins of the spinbutton
1217
spinbutton button {
1218
margin-top: 0;
1219
margin-bottom: 0;
1220
}
1221
}
1222
1223
.background:not(.tiled):not(.maximized):not(.fullscreen):not(.solid-csd) .titlebar {
1224
border-top-left-radius: 2px;
1225
border-top-right-radius: 2px;
1226
}
1227
1228
headerbar { // headerbar border rounding
1229
window:not(.tiled):not(.maximized):not(.fullscreen):not(.solid-csd) separator:first-child + &, // tackles the paned container case
1230
window:not(.tiled):not(.maximized):not(.fullscreen):not(.solid-csd) &:first-child { border-top-left-radius: 2px; }
1231
1232
window:not(.tiled):not(.maximized):not(.fullscreen):not(.solid-csd) &:last-child { border-top-right-radius: 2px; }
1233
1234
window:not(.tiled):not(.maximized):not(.fullscreen):not(.solid-csd) stack & { // tackles the stacked headerbars case
1235
&:first-child, &:last-child {
1236
border-top-left-radius: 2px;
1237
border-top-right-radius: 2px;
1238
}
1239
}
1240
}
1241
1242
.titlebar:not(headerbar) {
1243
window.csd > & {
1244
// in csd we assume every titlebar is a headerbar so reset anything, this is needed for split toolbars cases
1245
padding: 0;
1246
background-color: transparent;
1247
background-image: none;
1248
border-style: none;
1249
box-shadow: none;
1250
}
1251
1252
> separator {
1253
background-color: $titlebar_bg_color;
1254
background-image: image($border_color);
1255
}
1256
1257
@extend %titlebar;
1258
}
1259
1260
1261
/************
1262
* Pathbars *
1263
************/
1264
%pathbar_button,
1265
.path-bar button {
1266
padding-left: ($medium_size - 24px) / 2;
1267
padding-right: ($medium_size - 24px) / 2;
1268
1269
label:not(:only-child) {
1270
&:first-child { margin-left: 4px; }
1271
1272
&:last-child { margin-right: 4px; }
1273
}
1274
1275
&.slider-button {
1276
padding-left: (24px - 16px) / 2;
1277
padding-right: (24px - 16px) / 2;
1278
}
1279
1280
:not(headerbar) & {
1281
@extend %flat_button;
1282
1283
border-image: radial-gradient(circle closest-corner at center calc(100% - 1px),
1284
$primary_color 0%,
1285
transparent 0%)
1286
0 0 0 / 0 0 0px;
1287
border-radius: 2px;
1288
1289
&:checked {
1290
border-image: radial-gradient(circle closest-corner at center calc(100% - 1px),
1291
$primary_color 100%,
1292
transparent 0%)
1293
0 0 2 / 0 0 2px;
1294
1295
&, &:disabled { background-color: transparent; }
1296
}
1297
}
1298
}
1299
1300
1301
/**************
1302
* Tree Views *
1303
**************/
1304
treeview.view {
1305
@at-root * {
1306
-GtkTreeView-horizontal-separator: 4;
1307
-GtkTreeView-grid-line-width: 1;
1308
-GtkTreeView-grid-line-pattern: '';
1309
-GtkTreeView-tree-line-width: 1;
1310
-GtkTreeView-tree-line-pattern: '';
1311
-GtkTreeView-expander-size: 16;
1312
}
1313
1314
border-left-color: $fill_color; // this is actually the tree lines color,
1315
border-top-color: $border_color; // while this is the grid lines color, better then nothing
1316
1317
rubberband { @extend rubberband; } // to avoid borders being overridden by the previously set props
1318
1319
&:hover, &:active, &:selected { border-radius: 0; }
1320
1321
&.separator {
1322
min-height: 1px + 2px * 2;
1323
color: $border_color;
1324
}
1325
1326
&:drop(active) {
1327
border-style: solid none;
1328
border-width: 1px;
1329
border-color: $accent_color;
1330
1331
&.after { border-top-style: none; }
1332
1333
&.before { border-bottom-style: none; }
1334
}
1335
1336
&.expander {
1337
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
1338
-gtk-icon-transform: rotate(-90deg);
1339
1340
&:dir(rtl) { -gtk-icon-transform: rotate(90deg); }
1341
1342
&:checked { -gtk-icon-transform: unset; }
1343
1344
color: $secondary_fg_color;
1345
1346
&:hover, &:active { color: $fg_color; }
1347
1348
&:disabled { color: $disabled_secondary_fg_color; }
1349
1350
&:selected {
1351
color: $secondary_inverse_fg_color;
1352
1353
&:hover, &:active { color: $inverse_fg_color; }
1354
1355
&:disabled { color: $disabled_secondary_inverse_fg_color; }
1356
}
1357
}
1358
1359
&.progressbar { // progress bar in treeviews
1360
border-bottom: $bar_size solid $primary_color;
1361
box-shadow: none;
1362
background-color: transparent;
1363
1364
&:selected { border-bottom-color: $inverse_fg_color; }
1365
}
1366
1367
&.trough { // progress bar trough in treeviews
1368
border-bottom: $bar_size solid rgba($primary_color, $lower_opacity);
1369
box-shadow: none;
1370
background-color: transparent;
1371
1372
&:selected { border-bottom-color: $inverse_track_color; }
1373
}
1374
1375
header {
1376
button {
1377
@extend row.activatable;
1378
1379
padding: 2px 6px;
1380
border-style: none solid solid none;
1381
border-width: 1px;
1382
border-color: $border_color;
1383
border-radius: 0;
1384
background-clip: border-box;
1385
1386
&, &:hover, &:active { box-shadow: none; }
1387
1388
&, &:disabled { background-color: $base_color; }
1389
1390
&:last-child { border-right-style: none; }
1391
}
1392
}
1393
1394
button.dnd,
1395
header.button.dnd { // for treeview-like derive widgets
1396
padding: 2px 6px;
1397
border-style: none solid solid;
1398
border-width: 1px;
1399
border-color: $border_color;
1400
border-radius: 0;
1401
box-shadow: none;
1402
background-color: $base_color;
1403
background-clip: border-box;
1404
color: $primary_color;
1405
}
1406
1407
acceleditor > label { background-color: $primary_color; } // see tests/testaccel to test
1408
}
1409
1410
1411
/*********
1412
* Menus *
1413
*********/
1414
menubar,
1415
.menubar {
1416
-GtkWidget-window-dragging: true;
1417
padding: 0;
1418
// box-shadow: inset 0 -1px $border_color;
1419
background-color: $titlebar_bg_color;
1420
1421
> menuitem {
1422
transition: $shorter_transition;
1423
min-height: 20px;
1424
padding: 4px 8px;
1425
color: $secondary_titlebar_fg_color;
1426
1427
&:hover { // Seems like it :hover even with keyboard focus
1428
transition: none;
1429
background-color: $titlebar_divider_color;
1430
color: $titlebar_fg_color;
1431
}
1432
1433
&:disabled { color: $disabled_secondary_titlebar_fg_color; }
1434
}
1435
}
1436
1437
.csd.popup { background-color: transparent; }
1438
1439
menu,
1440
.menu,
1441
.context-menu {
1442
margin: 4px 0; // See https://bugzilla.gnome.org/show_bug.cgi?id=591258
1443
padding: 4px 0;
1444
box-shadow: inset 0 1px $highlight_color;
1445
background-color: $base_color;
1446
border: 1px solid $border_color; // adds borders in a non composited env
1447
1448
.csd & {
1449
border: none; // axes borders in a composited env
1450
border-radius: 2px;
1451
}
1452
1453
menuitem {
1454
transition: $shorter_transition;
1455
min-height: 20px;
1456
min-width: 40px;
1457
padding: 4px 8px;
1458
font: initial;
1459
text-shadow: none;
1460
1461
&:hover {
1462
transition: none;
1463
background-color: $divider_color;
1464
}
1465
1466
&:disabled { color: $disabled_fg_color; }
1467
1468
// submenu indicators
1469
arrow {
1470
min-height: 16px;
1471
min-width: 16px;
1472
1473
&:dir(ltr) {
1474
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
1475
margin-left: 8px;
1476
}
1477
1478
&:dir(rtl) {
1479
-gtk-icon-source:-gtk-icontheme('pan-end-symbolic-rtl');
1480
margin-right: 8px;
1481
}
1482
}
1483
1484
// avoids labels color being overridden, see
1485
// https://bugzilla.gnome.org/show_bug.cgi?id=767058
1486
label { &:dir(rtl), &:dir(ltr) { color: inherit; }}
1487
}
1488
1489
// overflow arrows
1490
> arrow {
1491
min-height: 16px;
1492
min-width: 16px;
1493
padding: 4px;
1494
background-color: $base_color;
1495
color: $secondary_fg_color;
1496
1497
&.top {
1498
margin-top: -4px;
1499
border-bottom: 1px solid $border_color;
1500
border-radius: 2px 2px 0 0;
1501
-gtk-icon-source: -gtk-icontheme('pan-up-symbolic');
1502
}
1503
1504
&.bottom {
1505
margin-bottom: -4px * 3;
1506
border-top: 1px solid $border_color;
1507
border-radius: 0 0 2px 2px;
1508
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
1509
}
1510
1511
&:hover {
1512
background-image: image($divider_color);
1513
color: $fg_color;
1514
}
1515
1516
&:disabled {
1517
border-color: transparent;
1518
background-color: transparent;
1519
color: transparent;
1520
// color: $disabled_secondary_fg_color;
1521
}
1522
}
1523
1524
separator { margin: 4px 0; }
1525
}
1526
1527
menuitem {
1528
accelerator { color: $secondary_fg_color; }
1529
}
1530
1531
// FIXME: THIS IS A REALLY UGLY WORKAROUND!
1532
// Electron/Atom render all translucent colors in opaque colors.
1533
// It's a very critical issue for this theme and should be fixed by upstream...
1534
.popup:not(.csd) menu {
1535
$opaque_fg_color: if($variant == 'light', $grey_900, $white);
1536
$opaque_divider_color: if($variant == 'light', $grey_300, mix($white, $base_color, percentage(0.12)));
1537
$opaque_disabled_fg_color: if($variant == 'light', $grey_500, mix($white, $base_color, percentage(0.5)));
1538
$opaque_secondary_fg_color: if($variant == 'light', $grey_600, mix($white, $base_color, percentage(0.7)));
1539
1540
menuitem {
1541
color: $opaque_fg_color;
1542
1543
&:hover { background-color: $opaque_divider_color; }
1544
1545
&:disabled { color: $opaque_disabled_fg_color; } // separator/border also use this color.
1546
}
1547
1548
// TODO: not working this, where/how i can set the accelerators?
1549
accelerator { color: $opaque_secondary_fg_color; }
1550
}
1551
1552
1553
/************
1554
* Popovers *
1555
************/
1556
popover.background {
1557
transition: $shadow_transition;
1558
padding: 2px;
1559
box-shadow: $shadow_2; // TODO: this should really have a highlight
1560
background-color: $lighter_bg_color;
1561
1562
&:backdrop { box-shadow: $shadow_1; }
1563
1564
&, .csd & {
1565
border-style: solid;
1566
border-width: 1px;
1567
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.3);
1568
border-radius: 2px + 1px;
1569
}
1570
1571
> stack { margin: -4px; } // remove extra padding from menu style popovers
1572
1573
> toolbar { margin: -2px; }
1574
1575
> list,
1576
> .view,
1577
> toolbar {
1578
border-style: none;
1579
box-shadow: none;
1580
background-color: transparent;
1581
}
1582
1583
&.touch-selection,
1584
&.magnifier,
1585
&.osd { @extend %osd; }
1586
1587
// entry { @extend %entry.flat; }
1588
1589
// button.combo { @extend %combo_flat; }
1590
1591
// button:not(.suggested-action):not(.destructive-action) { @extend %button_basic.flat; }
1592
1593
&.menu button,
1594
button.model {
1595
@extend %simple_flat_button;
1596
1597
min-height: 32px;
1598
padding: 0 8px;
1599
border-radius: 2px;
1600
1601
&:checked { @extend %selected_items; }
1602
}
1603
1604
separator { margin: 4px 0; }
1605
1606
list separator { margin: 0; }
1607
}
1608
1609
/*************
1610
* Notebooks *
1611
*************/
1612
notebook {
1613
> header {
1614
border-width: 1px;
1615
border-color: $border_color;
1616
background-color: $bg_color;
1617
background-clip: border-box;
1618
1619
&.top {
1620
border-bottom-style: solid;
1621
> tabs {
1622
margin-bottom: -1px;
1623
> tab {
1624
1625
&:hover { box-shadow: inset 0 -2px $track_color; }
1626
1627
&:checked { box-shadow: inset 0 -2px $primary_color; }
1628
}
1629
}
1630
}
1631
1632
&.bottom {
1633
border-top-style: solid;
1634
> tabs {
1635
margin-top: -1px;
1636
> tab {
1637
1638
&:hover { box-shadow: inset 0 2px $track_color; }
1639
1640
&:checked { box-shadow: inset 0 2px $primary_color; }
1641
}
1642
}
1643
}
1644
1645
&.left {
1646
border-right-style: solid;
1647
> tabs {
1648
margin-right: -1px;
1649
> tab {
1650
1651
&:hover { box-shadow: inset -2px 0 $track_color; }
1652
1653
&:checked { box-shadow: inset -2px 0 $primary_color; }
1654
}
1655
}
1656
}
1657
1658
&.right {
1659
border-left-style: solid;
1660
> tabs {
1661
margin-left: -1px;
1662
> tab {
1663
1664
&:hover { box-shadow: inset 2px 0 $track_color; }
1665
1666
&:checked { box-shadow: inset 2px 0 $primary_color; }
1667
}
1668
}
1669
}
1670
1671
&.top > tabs > arrow {
1672
@extend %notebook_vert_arrows;
1673
1674
border-top-style: none;
1675
}
1676
1677
&.bottom > tabs > arrow {
1678
@extend %notebook_vert_arrows;
1679
1680
border-bottom-style: none;
1681
}
1682
1683
@at-root %notebook_vert_arrows {
1684
padding-left: 4px;
1685
padding-right: 4px;
1686
1687
&.down {
1688
margin-left: -8px;
1689
-gtk-icon-source: -gtk-icontheme('pan-start-symbolic');
1690
}
1691
1692
&.up {
1693
margin-right: -8px;
1694
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
1695
}
1696
}
1697
1698
&.left > tabs > arrow {
1699
@extend %notebook_horz_arrows;
1700
1701
border-left-style: none;
1702
}
1703
1704
&.right > tabs > arrow {
1705
@extend %notebook_horz_arrows;
1706
1707
border-right-style: none;
1708
}
1709
1710
@at-root %notebook_horz_arrows {
1711
padding-top: 4px;
1712
padding-bottom: 4px;
1713
1714
&.down {
1715
margin-top: -8px;
1716
-gtk-icon-source: -gtk-icontheme('pan-up-symbolic');
1717
}
1718
1719
&.up {
1720
margin-bottom: -8px;
1721
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
1722
}
1723
}
1724
1725
> tabs > arrow {
1726
@extend %simple_flat_button;
1727
1728
min-height: 16px;
1729
min-width: 16px;
1730
border-radius: 0;
1731
}
1732
1733
tab {
1734
transition: $longer_transition,
1735
background-size 0,
1736
background-image 0;
1737
min-height: $small_size;
1738
min-width: $small_size;
1739
padding: $container_padding 12px;
1740
1741
outline-offset: -6px;
1742
1743
border-width: 1px; // for reorderable tabs
1744
border-color: transparent; //
1745
1746
background-image: radial-gradient(circle farthest-corner at center,
1747
$primary_color 10%,
1748
transparent 0%);
1749
background-repeat: no-repeat;
1750
background-position: center;
1751
background-size: 0% 0%;
1752
1753
color: $secondary_fg_color;
1754
font-weight: 500;
1755
1756
&:hover {
1757
color: $fg_color;
1758
1759
&.reorderable-page {
1760
border-color: $border_color;
1761
background-color: $alt_base_color;
1762
}
1763
}
1764
1765
&:disabled { color: $disabled_secondary_fg_color; }
1766
1767
&:checked {
1768
transition: $longer_transition,
1769
background-size $longer_duration $deceleration_curve,
1770
background-image $longer_duration + $ripple_duration $deceleration_curve;
1771
background-image: radial-gradient(circle farthest-corner at center,
1772
transparent 10%,
1773
transparent 0%);
1774
background-size: 1000% 1000%;
1775
color: $fg_color;
1776
1777
&:disabled { color: $disabled_fg_color; }
1778
1779
&.reorderable-page {
1780
border-color: $border_color;
1781
background-color: $base_color;
1782
}
1783
}
1784
1785
// colors the button like the label, overridden otherwise
1786
button.flat {
1787
@extend %small_button;
1788
1789
&:last-child {
1790
margin-left: $container_padding;
1791
margin-right: $container_padding - 12px;
1792
}
1793
1794
&:first-child {
1795
margin-left: $container_padding - 12px;
1796
margin-right: $container_padding;
1797
}
1798
}
1799
}
1800
1801
&.top,
1802
&.bottom {
1803
tabs {
1804
padding-left: 8px;
1805
padding-right: 8px;
1806
1807
&:not(:only-child) {
1808
&:first-child { margin-left: 0; }
1809
&:last-child { margin-right: 0; }
1810
}
1811
1812
tab {
1813
&.reorderable-page {
1814
margin: 0 -1px;
1815
border-style: none solid;
1816
}
1817
}
1818
}
1819
}
1820
1821
&.left,
1822
&.right {
1823
tabs {
1824
padding-top: 8px;
1825
padding-bottom: 8px;
1826
1827
&:not(:only-child) {
1828
&:first-child { margin-top: 0; }
1829
&:last-child { margin-bottom: 0; }
1830
}
1831
1832
tab {
1833
&.reorderable-page {
1834
margin: -1px 0;
1835
border-style: solid none;
1836
}
1837
}
1838
}
1839
}
1840
}
1841
1842
> stack:not(:only-child) { // the :not(:only-child) is for "hidden" notebooks
1843
background-color: $base_color;
1844
1845
entry:not(.search),
1846
spinbutton:not(.vertical) { @extend %entry.flat; }
1847
1848
spinbutton:not(.vertical) entry { &, &:focus, &:disabled { @extend %spinbutton_entry; }}
1849
1850
button.combo { @extend %combo_flat; }
1851
}
1852
}
1853
1854
1855
/**************
1856
* Scrollbars *
1857
**************/
1858
scrollbar {
1859
$_slider_min_length: 24px;
1860
1861
// disable steppers
1862
@at-root * {
1863
-GtkScrollbar-has-backward-stepper: false;
1864
-GtkScrollbar-has-forward-stepper: false;
1865
}
1866
1867
transition: $longer_transition;
1868
background-color: $base_color;
1869
background-clip: $extra_background_clip;
1870
1871
// scrollbar border
1872
&.top { border-bottom: 1px solid $border_color; }
1873
&.bottom { border-top: 1px solid $border_color; }
1874
&.left { border-right: 1px solid $border_color; }
1875
&.right { border-left: 1px solid $border_color; }
1876
1877
// slider
1878
slider {
1879
transition: $shorter_transition, margin 0, border-width 0;
1880
min-width: 8px;
1881
min-height: 8px;
1882
border: 4px solid transparent;
1883
border-radius: $circular_radius;
1884
background-clip: padding-box;
1885
background-color: $tertiary_fg_color;
1886
1887
&:hover { background-color: $secondary_fg_color; }
1888
1889
&:active { background-color: $fg_color; }
1890
1891
&:disabled { background-color: $disabled_secondary_fg_color; }
1892
}
1893
1894
&.fine-tune {
1895
slider {
1896
transition: $shorter_transition, margin 0, border-width 0, min-width 0, min-height 0;
1897
min-width: 4px;
1898
min-height: 4px;
1899
}
1900
1901
&.horizontal slider { margin: 2px 0; }
1902
1903
&.vertical slider { margin: 0 2px; }
1904
}
1905
1906
&.overlay-indicator {
1907
&:not(.dragging):not(.hovering) {
1908
border-color: transparent;
1909
background-color: transparent;
1910
1911
slider {
1912
min-width: 4px;
1913
min-height: 4px;
1914
margin: 4px - 1px;
1915
border: 1px solid rgba($base_color, $lower_opacity);
1916
}
1917
1918
button {
1919
min-width: 4px;
1920
min-height: 4px;
1921
margin: 4px - 1px;
1922
border: 1px solid rgba($base_color, $lower_opacity);
1923
border-radius: $circular_radius;
1924
background-color: $tertiary_fg_color;
1925
background-clip: padding-box;
1926
-gtk-icon-source: none;
1927
1928
&:disabled { background-color: $disabled_secondary_fg_color; }
1929
}
1930
1931
&.horizontal {
1932
slider { min-width: $_slider_min_length; }
1933
1934
button { min-width: 8px; }
1935
}
1936
1937
&.vertical {
1938
slider { min-height: $_slider_min_length; }
1939
1940
button { min-height: 8px; }
1941
}
1942
}
1943
1944
&.dragging,
1945
&.hovering { background-color: rgba($base_color, $higher_opacity); }
1946
}
1947
1948
&.horizontal slider { min-width: $_slider_min_length; }
1949
1950
&.vertical slider { min-height: $_slider_min_length; }
1951
1952
// button styling
1953
button {
1954
@extend %simple_flat_button;
1955
1956
min-width: 16px;
1957
min-height: 16px;
1958
padding: 0;
1959
border-radius: 0;
1960
}
1961
1962
// button icons
1963
&.vertical {
1964
button {
1965
&.down { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
1966
1967
&.up { -gtk-icon-source: -gtk-icontheme('pan-up-symbolic'); }
1968
}
1969
}
1970
1971
&.horizontal {
1972
button {
1973
&.down { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic'); }
1974
1975
&.up { -gtk-icon-source: -gtk-icontheme('pan-start-symbolic'); }
1976
}
1977
}
1978
}
1979
1980
1981
/**********
1982
* Switch *
1983
**********/
1984
switch {
1985
transition: $longer_transition;
1986
margin: $container_padding 0;
1987
padding: 0 2px;
1988
border: 4px solid transparent;
1989
border-radius: $circular_radius;
1990
background-color: $track_color;
1991
background-clip: padding-box;
1992
font-size: 0;
1993
1994
&:disabled { background-color: $divider_color; }
1995
1996
&:checked {
1997
background-color: rgba($accent_color, 0.5);
1998
1999
&:disabled { background-color: rgba($accent_color, 0.3); }
2000
}
2001
2002
slider {
2003
transition: $longer_transition, $shadow_transition;
2004
min-width: 20px;
2005
min-height: 20px;
2006
margin: -3px -2px;
2007
border-radius: $circular_radius;
2008
-gtk-outline-radius: $circular_radius;
2009
box-shadow: $shadow_1;
2010
background-color: $base_color;
2011
}
2012
2013
&:hover slider { box-shadow: $shadow_2; }
2014
2015
&:checked slider {
2016
transition: $longer_transition, $shadow_transition, background-image 0, background-color 0.00001s $longer_duration;
2017
animation: needs_attention $longer_duration $deceleration_curve;
2018
background-color: $accent_color;
2019
color: $inverse_fg_color;
2020
}
2021
2022
&:disabled slider { background-color: $alt_base_color; }
2023
2024
&:checked:disabled slider { animation: none; }
2025
2026
row:selected & {
2027
}
2028
}
2029
2030
2031
/*************************
2032
* Check and Radio items *
2033
*************************/
2034
// draw regular check and radio items using our PNG assets
2035
// all assets are rendered from assets.svg. never add pngs directly
2036
2037
// selection-mode
2038
.view.content-view.check:not(list),
2039
.content-view .tile check:not(list) {
2040
min-height: 40px;
2041
min-width: 40px;
2042
margin: 0;
2043
padding: 0;
2044
box-shadow: none;
2045
background-color: transparent;
2046
background-image: none;
2047
-gtk-icon-shadow: $shadow_1;
2048
2049
&:hover, &:active { -gtk-icon-shadow: $shadow_2; }
2050
2051
@each $s, $as in ('', '-unchecked'),
2052
(':checked', '-checked') {
2053
&#{$s} {
2054
-gtk-icon-source: -gtk-scaled(url("assets/selectionmode-checkbox#{$as}#{$asset_suffix}.png"),
2055
url("assets/selectionmode-checkbox#{$as}#{$asset_suffix}@2.png"));
2056
}
2057
}
2058
}
2059
2060
checkbutton.text-button,
2061
radiobutton.text-button {
2062
// this is for a nice focus on check and radios text
2063
padding: 2px;
2064
outline-offset: 0;
2065
2066
label:not(:only-child) { margin: 0 4px; }
2067
}
2068
2069
check,
2070
radio {
2071
min-height: 24px;
2072
min-width: 24px;
2073
margin: -($large_size - 24px) / 2;
2074
padding: ($large_size - 24px) / 2;
2075
2076
@extend %simple_flat_button;
2077
2078
@extend %circular_button;
2079
2080
&:checked, &:indeterminate {
2081
color: $accent_color;
2082
2083
&:disabled { color: $disabled_accent_color; }
2084
}
2085
2086
// &:only-child { margin: -12px; }
2087
2088
row:selected &:not(:checked):not(:indeterminate) {
2089
color: $secondary_inverse_fg_color;
2090
2091
&:hover, &:active { color: $inverse_fg_color; }
2092
2093
&:disabled { color: $disabled_secondary_inverse_fg_color; }
2094
}
2095
2096
popover & {
2097
&, &:hover, &:disabled {
2098
box-shadow: none;
2099
background-image: none;
2100
}
2101
2102
&:not(:checked):not(:indeterminate):not(:disabled) { color: $secondary_fg_color; }
2103
2104
&.left:dir(rtl) {
2105
margin-left: -16px;
2106
margin-right: -8px;
2107
}
2108
2109
&.right:dir(ltr) {
2110
margin-left: -8px;
2111
margin-right: -16px;
2112
}
2113
}
2114
2115
menu menuitem & {
2116
transition: none;
2117
min-height: 16px;
2118
min-width: 16px;
2119
margin: 0; // this is a workaround for a menu check/radio size allocation issue
2120
padding: 0;
2121
2122
&:dir(ltr) { margin-right: 8px; }
2123
2124
&:dir(rtl) { margin-left: 8px; }
2125
2126
&:not(:checked):not(:indeterminate):not(:disabled) { color: $secondary_fg_color; }
2127
2128
&, &:hover, &:disabled {
2129
box-shadow: none;
2130
// color: inherit;
2131
}
2132
}
2133
}
2134
2135
%check,
2136
check {
2137
& { -gtk-icon-source: image(-gtk-recolor(url("assets/scalable/checkbox-unchecked-symbolic.svg")),
2138
-gtk-recolor(url("assets/scalable/checkbox-unchecked-symbolic.symbolic.png"))); }
2139
2140
&:checked { -gtk-icon-source: image(-gtk-recolor(url("assets/scalable/checkbox-checked-symbolic.svg")),
2141
-gtk-recolor(url("assets/scalable/checkbox-checked-symbolic.symbolic.png"))); }
2142
2143
&:indeterminate { -gtk-icon-source: image(-gtk-recolor(url("assets/scalable/checkbox-mixed-symbolic.svg")),
2144
-gtk-recolor(url("assets/scalable/checkbox-mixed-symbolic.symbolic.png"))); }
2145
}
2146
2147
%radio,
2148
radio {
2149
& { -gtk-icon-source: image(-gtk-recolor(url("assets/scalable/radio-unchecked-symbolic.svg")),
2150
-gtk-recolor(url("assets/scalable/radio-unchecked-symbolic.symbolic.png"))); }
2151
2152
// &:checked { -gtk-icon-source: image(-gtk-recolor(url("assets/scalable/radio-checked-symbolic.svg")),
2153
// -gtk-recolor(url("assets/scalable/radio-checked-symbolic.symbolic.png"))); }
2154
2155
&:indeterminate { -gtk-icon-source: image(-gtk-recolor(url("assets/scalable/radio-mixed-symbolic.svg")),
2156
-gtk-recolor(url("assets/scalable/radio-mixed-symbolic.symbolic.png"))); }
2157
2158
border-image-slice: $large_size / 2px;
2159
border-image-width: $large_size / 2;
2160
2161
$radio_indicator: 10px / $large_size / 2;
2162
2163
& {
2164
border-image-source: -gtk-gradient(radial,
2165
center center, 0,
2166
center center, 0.001,
2167
to($accent_color),
2168
to(transparent));
2169
}
2170
2171
&:checked:not(:indeterminate) {
2172
border-image-source: -gtk-gradient(radial,
2173
center center, 0,
2174
center center, $radio_indicator,
2175
to($accent_color),
2176
to(transparent));
2177
}
2178
2179
&:checked:not(:indeterminate):disabled {
2180
border-image-source: -gtk-gradient(radial,
2181
center center, 0,
2182
center center, $radio_indicator,
2183
to($disabled_accent_color),
2184
to(transparent));
2185
}
2186
}
2187
2188
%small_check,
2189
menu menuitem check {
2190
& {
2191
border-radius: 2px;
2192
-gtk-outline-radius: 2px;
2193
-gtk-icon-source: image(-gtk-recolor(url("assets/scalable/small-checkbox-unchecked-symbolic.svg")),
2194
-gtk-recolor(url("assets/scalable/small-checkbox-unchecked-symbolic.symbolic.png")));
2195
}
2196
2197
&:checked {
2198
-gtk-icon-source: image(-gtk-recolor(url("assets/scalable/small-checkbox-checked-symbolic.svg")),
2199
-gtk-recolor(url("assets/scalable/small-checkbox-checked-symbolic.symbolic.png")));
2200
}
2201
2202
&:indeterminate {
2203
-gtk-icon-source: image(-gtk-recolor(url("assets/scalable/small-checkbox-mixed-symbolic.svg")),
2204
-gtk-recolor(url("assets/scalable/small-checkbox-mixed-symbolic.symbolic.png")));
2205
}
2206
}
2207
2208
%small_radio,
2209
menu menuitem radio {
2210
& {
2211
border-image: none;
2212
-gtk-icon-source: image(-gtk-recolor(url("assets/scalable/small-radio-unchecked-symbolic.svg")),
2213
-gtk-recolor(url("assets/scalable/small-radio-unchecked-symbolic.symbolic.png")));
2214
}
2215
2216
&:checked {
2217
-gtk-icon-source: image(-gtk-recolor(url("assets/scalable/small-radio-checked-symbolic.svg")),
2218
-gtk-recolor(url("assets/scalable/small-radio-checked-symbolic.symbolic.png")));
2219
}
2220
2221
&:indeterminate {
2222
-gtk-icon-source: image(-gtk-recolor(url("assets/scalable/small-radio-mixed-symbolic.svg")),
2223
-gtk-recolor(url("assets/scalable/small-radio-mixed-symbolic.symbolic.png")));
2224
}
2225
}
2226
2227
// ANIMATION:
2228
// this is made with those pretty convoluted transitions, since checks and radios have to animate only on state changes,
2229
// the transformation is set on the active state and it get reset on the checked state.
2230
check:not(:checked):active { -gtk-icon-transform: rotate(90deg); }
2231
2232
// radio:not(:checked):active { -gtk-icon-transform: scale(0); }
2233
2234
check:not(:checked):indeterminate:active,
2235
radio:not(:checked):indeterminate:active { -gtk-icon-transform: scaleX(-1); } // instead of rotateY(180deg)
2236
2237
check:not(:checked),
2238
radio:not(:checked) {
2239
& {
2240
transition: $longer_transition,
2241
background-size $ripple_duration $deceleration_curve,
2242
background-image $ripple_duration * 2 $deceleration_curve,
2243
-gtk-icon-transform 0;
2244
}
2245
2246
&:active {
2247
transition: $longer_transition,
2248
background-size 0,
2249
background-image 0,
2250
-gtk-icon-transform 0;
2251
}
2252
2253
menu menuitem & { transition: none; }
2254
}
2255
2256
treeview.view check,
2257
treeview.view radio {
2258
padding: 0;
2259
2260
&:hover {
2261
box-shadow: inset 0 0 0 9999px gtkalpha($fg_color, 0.05);
2262
2263
&:disabled { box-shadow: none; }
2264
2265
&:selected { box-shadow: inset 0 0 0 9999px gtkalpha($inverse_fg_color, 0.05); }
2266
}
2267
2268
& {
2269
color: $secondary_fg_color;
2270
2271
&:hover, &:active { color: $fg_color; }
2272
2273
&:disabled { color: $disabled_secondary_fg_color; }
2274
2275
&:checked, &:indeterminate { color: $accent_color; }
2276
2277
&:checked:disabled, &:indeterminate:disabled { color: $disabled_accent_color; }
2278
}
2279
2280
&:selected {
2281
color: $secondary_inverse_fg_color;
2282
2283
&:hover, &:active { color: $inverse_fg_color; }
2284
2285
&:disabled { color: $disabled_secondary_inverse_fg_color; }
2286
2287
&:checked, &:indeterminate { color: $accent_color; }
2288
2289
&:checked:disabled, &:indeterminate:disabled { color: $disabled_accent_color; }
2290
}
2291
}
2292
2293
treeview.view radio:checked {
2294
-gtk-icon-source: image(-gtk-recolor(url("assets/scalable/radio-checked-symbolic.svg")),
2295
-gtk-recolor(url("assets/scalable/radio-checked-symbolic.symbolic.png")));
2296
border-image: none;
2297
}
2298
2299
2300
/************
2301
* GtkScale *
2302
************/
2303
scale {
2304
// sizing
2305
$_marks_length: 8px;
2306
$_marks_distance: 8px;
2307
2308
$trough_size: 2px;
2309
2310
$slider_size: 24px;
2311
$marks_slider_size: 30px;
2312
2313
$slider_margin: -($slider_size - $trough_size) / 2;
2314
$marks_slider_margin: -($marks_slider_size - $trough_size) - $slider_margin;
2315
2316
$color_slider_margin: -($slider_size) / 2;
2317
$color_marks_slider_margin: -($marks_slider_size - 16px) - $color_slider_margin;
2318
2319
min-height: $medium_size - $slider_size;
2320
min-width: $medium_size - $slider_size;
2321
padding: ($slider_size / 2);
2322
2323
* { transition: $longer_transition; }
2324
2325
// the slider is inside the trough, so to have make it bigger there's a negative margin
2326
slider {
2327
min-height: $slider_size;
2328
min-width: $slider_size;
2329
margin: $slider_margin;
2330
}
2331
2332
// the backing bit
2333
trough {
2334
outline-offset: 2px;
2335
background-color: $track_color;
2336
2337
&:disabled { background-color: $divider_color; }
2338
}
2339
2340
// the colored part of the backing bit
2341
highlight {
2342
background-color: $accent_color;
2343
2344
&:disabled { background-color: transparent; }
2345
}
2346
2347
// this is another differently styled part of the backing bit, the most relevant use case is for example
2348
// in media player to indicate how much video stream as been cached
2349
fill {
2350
background-color: $track_color;
2351
2352
&:disabled { background-color: transparent; }
2353
}
2354
2355
slider {
2356
transition: all $shorter_duration $standard_curve;
2357
// border-radius: 100%;
2358
// background-color: $accent_color;
2359
background-repeat: no-repeat;
2360
background-position: center;
2361
2362
@each $s, $as in ('', ''),
2363
(':disabled', '-disabled') {
2364
&#{$s} {
2365
$_url: 'assets/scale-slider#{$as}#{$asset_suffix}';
2366
2367
background-image: -gtk-scaled(url('#{$_url}.png'), url('#{$_url}@2.png'));
2368
}
2369
}
2370
2371
background-size: calc(100% - 10px);
2372
2373
&:hover { background-size: calc(100% - 8px); }
2374
2375
&:active { background-size: calc(100% - 6px); }
2376
}
2377
2378
// click-and-hold the slider to activate
2379
&.fine-tune {
2380
// to make the slider shrink in fine-tune mode
2381
slider { background-size: calc(100% - 12px); }
2382
}
2383
2384
value { color: $tertiary_fg_color; }
2385
2386
marks {
2387
color: $track_color;
2388
2389
@each $marks_class, $marks_pos, $marks_margin in (top, top, bottom),
2390
(bottom, bottom, top),
2391
(top, left, right),
2392
(bottom, right, left) {
2393
&.#{$marks_class} {
2394
margin-#{$marks_margin}: $_marks_distance;
2395
margin-#{$marks_pos}: -($_marks_distance + $_marks_length);
2396
}
2397
}
2398
}
2399
2400
&.horizontal {
2401
indicator {
2402
min-height: $_marks_length;
2403
min-width: 1px;
2404
}
2405
}
2406
2407
&.vertical {
2408
indicator {
2409
min-height: 1px;
2410
min-width: $_marks_length;
2411
}
2412
}
2413
2414
// *WARNING* scale with marks madness following
2415
2416
@each $dir_class, $dir_infix in ('horizontal', 'horz'),
2417
('vertical', 'vert') {
2418
@each $marks_infix, $marks_class in ('marks-before', 'marks-before:not(.marks-after)'),
2419
('marks-after', 'marks-after:not(.marks-before)') {
2420
&.#{$dir_class}.#{$marks_class} {
2421
slider {
2422
@each $state, $state_infix in ('', ''),
2423
(':disabled', '-disabled') {
2424
&#{$state} {
2425
$_scale_asset: 'assets/scale-#{$dir_infix}-#{$marks_infix}-slider#{$state_infix}#{$asset_suffix}';
2426
2427
background-image: -gtk-scaled(url('#{$_scale_asset}.png'), url('#{$_scale_asset}@2.png'));
2428
}
2429
}
2430
2431
@if $dir_class == 'horizontal' {
2432
min-height: $marks_slider_size;
2433
min-width: $slider_size;
2434
2435
@if $marks_infix == 'marks-before' {
2436
margin-top: $marks_slider_margin;
2437
2438
background-position: center calc(100% - 5px);
2439
2440
&:hover { background-position: center calc(100% - 4px); }
2441
2442
&:active { background-position: center calc(100% - 3px); }
2443
}
2444
2445
@if $marks_infix == 'marks-after' {
2446
margin-bottom: $marks_slider_margin;
2447
2448
background-position: center calc(5px);
2449
2450
&:hover { background-position: center calc(4px); }
2451
2452
&:active { background-position: center calc(3px); }
2453
}
2454
}
2455
2456
@if $dir_class == 'vertical' {
2457
min-height: $slider_size;
2458
min-width: $marks_slider_size;
2459
2460
@if $marks_infix == 'marks-before' {
2461
margin-left: $marks_slider_margin;
2462
2463
background-position: calc(5px) center;
2464
2465
&:hover { background-position: calc(4px) center; }
2466
2467
&:active { background-position: calc(3px) center; }
2468
}
2469
2470
@if $marks_infix == 'marks-after' {
2471
margin-right: $marks_slider_margin;
2472
2473
background-position: calc(100% - 5px) center;
2474
2475
&:hover { background-position: calc(100% - 4px) center; }
2476
2477
&:active { background-position: calc(100% - 3px) center; }
2478
}
2479
}
2480
}
2481
2482
&.fine-tune slider {
2483
@if $dir_class == 'horizontal' {
2484
@if $marks_infix == 'marks-before' { background-position: center calc(100% - 6px); }
2485
2486
@if $marks_infix == 'marks-after' { background-position: center calc(6px); }
2487
}
2488
2489
@if $dir_class == 'vertical' {
2490
@if $marks_infix == 'marks-before' { background-position: calc(6px) center; }
2491
2492
@if $marks_infix == 'marks-after' { background-position: calc(100% - 6px) center; }
2493
}
2494
}
2495
}
2496
}
2497
}
2498
2499
&.color {
2500
min-height: 0;
2501
min-width: 0;
2502
2503
&.horizontal {
2504
padding: 0 0 12px 0;
2505
2506
slider {
2507
&:dir(ltr), &:dir(rtl) { // specificity bump
2508
margin-bottom: $color_slider_margin;
2509
margin-top: $color_marks_slider_margin;
2510
}
2511
}
2512
}
2513
2514
&.vertical {
2515
&:dir(ltr) {
2516
padding: 0 0 0 12px;
2517
2518
slider {
2519
margin-left: $color_slider_margin;
2520
margin-right: $color_marks_slider_margin;
2521
}
2522
}
2523
2524
&:dir(rtl) {
2525
padding: 0 12px 0 0;
2526
2527
slider {
2528
margin-right: $color_slider_margin;
2529
margin-left: $color_marks_slider_margin;
2530
}
2531
}
2532
}
2533
}
2534
}
2535
2536
2537
/*****************
2538
* Progress bars *
2539
*****************/
2540
progressbar {
2541
// sizing
2542
&.horizontal {
2543
trough,
2544
progress { min-height: $bar_size; }
2545
}
2546
2547
&.vertical {
2548
trough,
2549
progress { min-width: $bar_size; }
2550
}
2551
2552
// FIXME: insensitive state missing and some other state should be set probably
2553
color: $tertiary_fg_color;
2554
font-size: smaller;
2555
2556
trough { background-color: rgba($primary_color, $lower_opacity); }
2557
2558
progress { background-color: $primary_color; }
2559
2560
&.osd { // progressbar.osd used for epiphany page loading progress
2561
// min-width: $bar_size;
2562
// min-height: $bar_size;
2563
// background-color: transparent;
2564
2565
// trough { background-color: transparent; }
2566
2567
// progress { background-color: $primary_color; }
2568
}
2569
2570
trough.empty progress { all: unset; } // makes the progress indicator disappear, when the fraction is 0
2571
}
2572
2573
2574
/*************
2575
* Level Bar *
2576
*************/
2577
levelbar {
2578
block {
2579
min-width: $medium_size;
2580
min-height: $bar_size;
2581
}
2582
2583
&.vertical block {
2584
min-width: $bar_size;
2585
min-height: $medium_size;
2586
}
2587
2588
// imitate the entry style
2589
trough {
2590
padding: 2px;
2591
border-radius: 2px;
2592
box-shadow: $shadow_1;
2593
background-color: $base_color;
2594
2595
&:disabled { background-color: $alt_base_color; }
2596
}
2597
2598
&.horizontal.discrete {
2599
block { margin: 0 1px; }
2600
2601
trough { padding: 2px 1px; }
2602
}
2603
2604
&.vertical.discrete {
2605
block { margin: 1px 0; }
2606
2607
trough { padding: 1px 2px; }
2608
}
2609
2610
block {
2611
&.low { background-color: $warning_color; }
2612
2613
&.high,
2614
&:not(.empty) { background-color: $primary_color; }
2615
2616
&.full { background-color: $success_color; }
2617
2618
&.empty { background-color: $divider_color; }
2619
}
2620
}
2621
2622
2623
/****************
2624
* Print dialog *
2625
*****************/
2626
printdialog {
2627
paper {
2628
padding: 0;
2629
border: 1px solid $border_color;
2630
background-color: $base_color;
2631
color: $fg_color;
2632
}
2633
2634
.dialog-action-box { margin: 12px; }
2635
}
2636
2637
2638
/**********
2639
* Frames *
2640
**********/
2641
frame > border,
2642
.frame {
2643
margin: 0;
2644
padding: 0;
2645
border: 1px solid $border_color;
2646
border-radius: 0;
2647
box-shadow: none;
2648
2649
&.flat { border-style: none; }
2650
}
2651
2652
frame.flat > border { @extend .frame.flat; } // for backporting
2653
2654
actionbar > revealer > box {
2655
padding: $container_padding;
2656
border-top: 1px solid $border_color;
2657
2658
button:not(.suggested-action):not(.destructive-action):not(.server-list-button) { @extend %button_basic.flat; }
2659
}
2660
2661
scrolledwindow {
2662
viewport.frame { // avoid double borders when viewport inside scrolled window
2663
border-style: none;
2664
}
2665
2666
// This is used when content is touch-dragged past boundaries.
2667
// draws a box on top of the content, the size changes programmatically.
2668
@at-root overshoot {
2669
&.top { @include overshoot(top); }
2670
2671
&.bottom { @include overshoot(bottom); }
2672
2673
&.left { @include overshoot(left); }
2674
2675
&.right { @include overshoot(right); }
2676
}
2677
2678
// Overflow indication, works similarly to the overshoot, the size if fixed tho.
2679
@at-root undershoot {
2680
&.top { @include undershoot(top); }
2681
2682
&.bottom { @include undershoot(bottom); }
2683
2684
&.left { @include undershoot(left); }
2685
2686
&.right { @include undershoot(right); }
2687
}
2688
2689
@at-root junction { // the small square between two scrollbars
2690
border-style: solid none none solid;
2691
border-width: 1px;
2692
border-color: $border_color;
2693
background-color: $base_color;
2694
2695
&:dir(rtl) { border-style: solid solid none none; }
2696
}
2697
}
2698
2699
// vbox and hbox separators
2700
separator {
2701
min-width: 1px;
2702
min-height: 1px;
2703
background-color: $border_color;
2704
}
2705
2706
%hide_separators {
2707
min-width: 0;
2708
min-height: 0;
2709
background-color: transparent;
2710
}
2711
2712
2713
/*********
2714
* Lists *
2715
*********/
2716
list {
2717
border-color: $border_color;
2718
background-color: $base_color;
2719
2720
row { padding: 2px; }
2721
}
2722
2723
// FIXME
2724
$row_transition: $longer_transition, background-color 0, color 0;
2725
2726
row {
2727
&.activatable {
2728
transition: $row_transition,
2729
background-size $ripple_duration $deceleration_curve,
2730
background-image $ripple_duration * 2 $deceleration_curve;
2731
box-shadow: inset 0 0 0 9999px transparent;
2732
background-image: radial-gradient(circle farthest-corner at center,
2733
transparent 10%,
2734
transparent 0%);
2735
background-repeat: no-repeat;
2736
background-position: center;
2737
background-size: 1000% 1000%;
2738
2739
&:hover {
2740
transition: $row_transition,
2741
box-shadow 0,
2742
background-size $ripple_duration $deceleration_curve,
2743
background-image $ripple_duration * 2 $deceleration_curve;
2744
box-shadow: inset 0 0 0 9999px $row_fill_color;
2745
}
2746
2747
&.has-open-popup, // this is for indicathing which row generated a popover see https://bugzilla.gnome.org/show_bug.cgi?id=754411
2748
&:active {
2749
transition: $row_transition,
2750
background-size 0,
2751
background-image 0;
2752
animation: ripple_effect $longer_duration $deceleration_curve forwards;
2753
box-shadow: inset 0 0 0 9999px $semi_fill_color;
2754
background-image: radial-gradient(circle farthest-corner at center,
2755
$semi_fill_color 10%,
2756
transparent 0%);
2757
background-size: 0% 0%;
2758
}
2759
}
2760
2761
&:selected { @extend %selected_items; }
2762
}
2763
2764
2765
/*********************
2766
* App Notifications *
2767
*********************/
2768
.app-notification {
2769
@extend %osd;
2770
2771
@extend toolbar.osd;
2772
2773
margin: 8px;
2774
2775
button { @extend %button_basic.flat; }
2776
2777
&.frame,
2778
border { border-style: none; }
2779
}
2780
2781
2782
/*************
2783
* Expanders *
2784
*************/
2785
expander {
2786
arrow {
2787
transition: all $shorter_duration $standard_curve;
2788
min-width: 16px;
2789
min-height: 16px;
2790
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
2791
-gtk-icon-transform: rotate(-90deg);
2792
2793
&:dir(rtl) { -gtk-icon-transform: rotate(90deg); }
2794
2795
&:checked { -gtk-icon-transform: unset; }
2796
2797
color: $secondary_fg_color;
2798
2799
&:hover, &:active { color: $fg_color; }
2800
2801
&:disabled { color: $disabled_secondary_fg_color; }
2802
2803
&:selected {
2804
color: $secondary_inverse_fg_color;
2805
2806
&:hover, &:active { color: $inverse_fg_color; }
2807
2808
&:disabled { color: $disabled_secondary_inverse_fg_color; }
2809
}
2810
}
2811
}
2812
2813
2814
/************
2815
* Calendar *
2816
************/
2817
calendar {
2818
padding: 1px;
2819
border: 1px solid $border_color;
2820
color: $fg_color;
2821
2822
&:disabled { color: $disabled_fg_color; }
2823
2824
&:selected {
2825
@extend %selected_items;
2826
2827
border-radius: 2px + 1px;
2828
}
2829
2830
&.header {
2831
border-style: none none solid;
2832
border-radius: 0;
2833
}
2834
2835
&.button { @extend %simple_flat_button; }
2836
2837
&.highlight {
2838
color: $secondary_fg_color;
2839
font-weight: 500;
2840
}
2841
2842
&:indeterminate { color: $disabled_secondary_fg_color; }
2843
}
2844
2845
2846
/***********
2847
* Dialogs *
2848
***********/
2849
messagedialog { // Message Dialog styling
2850
&.background { background-color: $lighter_bg_color; }
2851
2852
.titlebar {
2853
min-height: $small_size;
2854
border-style: none;
2855
box-shadow: inset 0 1px $highlight_color;
2856
background-color: $lighter_bg_color;
2857
color: $fg_color;
2858
2859
&:backdrop { color: $secondary_fg_color; }
2860
}
2861
2862
&.csd { // rounded bottom border styling for csd version
2863
&.background {
2864
// bigger radius for better antialiasing
2865
border-bottom-left-radius: 2px;
2866
border-bottom-right-radius: 2px;
2867
}
2868
2869
.dialog-action-area button {
2870
padding: 8px 16px;
2871
border-top: 1px solid $border_color;
2872
border-radius: 0;
2873
2874
@extend %simple_flat_button;
2875
2876
&:first-child { border-bottom-left-radius: 2px; }
2877
2878
&:last-child { border-bottom-right-radius: 2px; }
2879
}
2880
}
2881
2882
entry { @extend %entry.flat; }
2883
}
2884
2885
filechooser {
2886
.dialog-action-box { border-top: 1px solid $border_color; }
2887
2888
#pathbarbox {
2889
border-bottom: 1px solid $border_color;
2890
background-color: $bg_color;
2891
}
2892
}
2893
2894
filechooserbutton:drop(active) {
2895
box-shadow: none;
2896
}
2897
2898
2899
/***********
2900
* Sidebar *
2901
***********/
2902
.sidebar {
2903
border-style: none;
2904
background-color: $lighter_bg_color;
2905
2906
@at-root %sidebar_left,
2907
&:dir(ltr),
2908
&.left,
2909
&.left:dir(rtl) {
2910
border-right: 1px solid $border_color;
2911
border-left-style: none;
2912
}
2913
2914
@at-root %sidebar_right,
2915
&:dir(rtl),
2916
&.right {
2917
border-left: 1px solid $border_color;
2918
border-right-style: none;
2919
}
2920
2921
list { background-color: transparent; }
2922
2923
paned & { &.left, &.right, &.left:dir(rtl), &:dir(rtl), &:dir(ltr), & { border-style: none; }}
2924
}
2925
2926
stacksidebar {
2927
&.sidebar {
2928
&:dir(ltr),
2929
&.left,
2930
&.left:dir(rtl) { list { @extend %sidebar_left; }}
2931
2932
&:dir(rtl),
2933
&.right { list { @extend %sidebar_right; }}
2934
}
2935
2936
row {
2937
padding: 10px 4px;
2938
2939
> label {
2940
padding-left: 6px;
2941
padding-right: 6px;
2942
}
2943
2944
&.needs-attention > label { @extend %needs_attention; }
2945
}
2946
}
2947
2948
2949
/****************
2950
* File chooser *
2951
****************/
2952
placessidebar {
2953
> viewport.frame { border-style: none; }
2954
2955
list { padding: (4px - 3px) 0 4px; }
2956
2957
row {
2958
// Needs overriding of the GtkListBoxRow padding
2959
min-height: 32px;
2960
margin: -1px 0; // Remove unknown margins
2961
padding: 0;
2962
2963
// Using margins/padding directly in the SidebarRow
2964
// will make the animation of the new bookmark row jump
2965
> revealer { padding: 0 12px; }
2966
2967
&:selected { color: $inverse_fg_color; }
2968
2969
&:disabled { color: $disabled_fg_color; }
2970
2971
image.sidebar-icon {
2972
color: $secondary_fg_color; // dim the device icons
2973
2974
&:dir(ltr) { padding-right: 8px; }
2975
&:dir(rtl) { padding-left: 8px; }
2976
}
2977
2978
&:selected image.sidebar-icon { color: $secondary_inverse_fg_color; }
2979
2980
label.sidebar-label {
2981
&:dir(ltr) { padding-right: 2px; }
2982
&:dir(rtl) { padding-left: 2px; }
2983
}
2984
2985
@at-root button.sidebar-button {
2986
@extend %simple_flat_button;
2987
2988
@extend %small_button;
2989
2990
row:selected & { @extend %button_selected.flat; }
2991
}
2992
2993
&.sidebar-placeholder-row {
2994
min-height: 2px;
2995
padding: 0 8px;
2996
background-image: image($accent_color);
2997
background-clip: content-box;
2998
}
2999
3000
&.sidebar-new-bookmark-row { color: $accent_color; }
3001
3002
&:drop(active):not(:disabled) {
3003
box-shadow: inset 0 0 0 2px $accent_color;
3004
3005
&:selected {
3006
// background-color: $accent_color;
3007
// color: $inverse_fg_color;
3008
}
3009
}
3010
}
3011
}
3012
3013
placesview {
3014
.server-list-button > image { -gtk-icon-transform: rotate(0turn); }
3015
3016
.server-list-button:checked > image { -gtk-icon-transform: rotate(-0.5turn); }
3017
3018
// this selects the "connect to server" label
3019
> actionbar > revealer > box > label {
3020
padding-left: 8px;
3021
padding-right: 8px;
3022
}
3023
}
3024
3025
3026
/*********
3027
* Paned *
3028
*********/
3029
paned {
3030
> separator {
3031
min-width: 1px;
3032
min-height: 1px;
3033
-gtk-icon-source: none; // defeats the ugly default handle decoration
3034
border-style: none; // just to be sure
3035
background-color: transparent;
3036
// workaround, using background istead of a border since the border will get rendered twice (?)
3037
background-image: image($border_color);
3038
background-size: 1px 1px;
3039
background-clip: content-box; // avoids borders image being rendered twice (?)
3040
3041
&.wide {
3042
min-width: 6px;
3043
min-height: 6px;
3044
background-color: $bg_color;
3045
background-image: image($border_color), image($border_color);
3046
background-size: 1px 1px, 1px 1px;
3047
}
3048
}
3049
3050
&.horizontal > separator {
3051
background-repeat: repeat-y;
3052
3053
&:dir(ltr) {
3054
margin: 0 -8px 0 0;
3055
padding: 0 8px 0 0;
3056
background-position: left;
3057
}
3058
3059
&:dir(rtl) {
3060
margin: 0 0 0 -8px;
3061
padding: 0 0 0 8px;
3062
background-position: right;
3063
}
3064
3065
&.wide {
3066
margin: 0;
3067
padding: 0;
3068
background-repeat: repeat-y, repeat-y;
3069
background-position: left, right;
3070
}
3071
}
3072
3073
&.vertical > separator {
3074
margin: 0 0 -8px 0;
3075
padding: 0 0 8px 0;
3076
background-repeat: repeat-x;
3077
background-position: top;
3078
3079
&.wide {
3080
margin: 0;
3081
padding: 0;
3082
background-repeat: repeat-x, repeat-x;
3083
background-position: bottom, top;
3084
}
3085
}
3086
}
3087
3088
3089
/**************
3090
* GtkInfoBar *
3091
**************/
3092
infobar {
3093
border-style: none;
3094
3095
&.info { background-color: $info_bg_color; }
3096
3097
&.question { background-color: $question_bg_color; }
3098
3099
&.warning { background-color: $warning_bg_color; }
3100
3101
&.error { background-color: $error_bg_color; }
3102
3103
&.info,
3104
&.question,
3105
&.warning,
3106
&.error {
3107
> label, & { color: $inverse_fg_color; }
3108
3109
button { @extend %button_selected; }
3110
3111
selection {}
3112
3113
*:link { @extend %link_selected; }
3114
}
3115
}
3116
3117
3118
/************
3119
* Tooltips *
3120
************/
3121
tooltip {
3122
&.background {
3123
// background-color needs to be set this way otherwise it gets drawn twice
3124
// see https://bugzilla.gnome.org/show_bug.cgi?id=736155 for details.
3125
box-shadow: inset 0 1px $highlight_color;
3126
background-color: rgba($base_color, $higher_opacity);
3127
}
3128
3129
// @extend %osd;
3130
3131
// padding: 4px; /* not working */
3132
border-radius: 2px;
3133
box-shadow: none; // otherwise it gets inherited by windowframe.csd
3134
3135
&:not(.csd):not(.unity-csd) {
3136
border: 1px solid $border_color;
3137
border-radius: 2px + 1px;
3138
background-clip: $extra_background_clip;
3139
}
3140
3141
// FIXME: we need a border or tooltips vanish on black background.
3142
decoration { background-color: transparent; }
3143
3144
label {
3145
// tooltip label already seems to have 6px margins
3146
min-height: 32px - 6px * 2;
3147
padding: 0 8px - 6px;
3148
}
3149
3150
* {
3151
// workaround for Eclipse.
3152
// do not include any declaration here.
3153
// padding: 0;
3154
// background-color: transparent;
3155
// color: inherit;
3156
}
3157
}
3158
3159
3160
/*****************
3161
* Color Chooser *
3162
*****************/
3163
colorswatch {
3164
// This widget is made of two boxes one on top of the other, the lower box is colorswatch {} the other one
3165
// is colorswatch overlay {}, colorswatch has the programmatically set background, so most of the style is
3166
// applied to the overlay box.
3167
3168
// base color corners rounding
3169
// to avoid the artifacts caused by rounded corner anti-aliasing the base color
3170
// sports a bigger radius.
3171
// nth-child is needed by the custom color strip.
3172
3173
&.top {
3174
border-top-left-radius: $material_radius + 0.5px;
3175
border-top-right-radius: $material_radius + 0.5px;
3176
3177
overlay {
3178
border-top-left-radius: $material_radius;
3179
border-top-right-radius: $material_radius;
3180
}
3181
}
3182
3183
&.bottom {
3184
border-bottom-left-radius: $material_radius + 0.5px;
3185
border-bottom-right-radius: $material_radius + 0.5px;
3186
3187
overlay {
3188
border-bottom-left-radius: $material_radius;
3189
border-bottom-right-radius: $material_radius;
3190
}
3191
}
3192
3193
&.left,
3194
&:first-child:not(.top) {
3195
border-top-left-radius: $material_radius + 0.5px;
3196
border-bottom-left-radius: $material_radius + 0.5px;
3197
3198
overlay {
3199
border-top-left-radius: $material_radius;
3200
border-bottom-left-radius: $material_radius;
3201
}
3202
}
3203
3204
&.right,
3205
&:last-child:not(.bottom) {
3206
border-top-right-radius: $material_radius + 0.5px;
3207
border-bottom-right-radius: $material_radius + 0.5px;
3208
3209
overlay {
3210
border-top-right-radius: $material_radius;
3211
border-bottom-right-radius: $material_radius;
3212
}
3213
}
3214
3215
&.dark overlay { color: $light_fg_color; }
3216
3217
&.light overlay { color: $dark_fg_color; }
3218
3219
&.dark { color: $light_fg_color; } // for focus ring
3220
3221
&.light { color: $dark_fg_color; } // for focus ring
3222
3223
&:drop(active) {
3224
box-shadow: none;
3225
3226
&.light overlay {
3227
box-shadow: $shadow_1, 0 0 0 2px $accent_color;
3228
}
3229
3230
&.dark overlay {
3231
box-shadow: $shadow_1, 0 0 0 2px $accent_color;
3232
}
3233
}
3234
3235
overlay {
3236
transition: $shadow_transition;
3237
box-shadow: $shadow_1;
3238
3239
&:hover { box-shadow: $shadow_2; }
3240
}
3241
3242
&#add-color-button {
3243
border-radius: $material_radius $material_radius 0 0;
3244
color: $light_fg_color; // for focus ring
3245
3246
&:only-child { border-radius: $material_radius; }
3247
3248
overlay {
3249
background-image: linear-gradient(to right,
3250
$error_bg_color 25%,
3251
$warning_bg_color 25%, $warning_bg_color 50%,
3252
$info_bg_color 50%, $info_bg_color 75%,
3253
$question_bg_color 75%);
3254
color: $light_fg_color;
3255
}
3256
}
3257
3258
&:disabled {
3259
opacity: $disabled_opacity;
3260
3261
overlay { box-shadow: none; }
3262
}
3263
3264
row:selected & {
3265
}
3266
3267
&#editor-color-sample {
3268
border-radius: $material_radius + 0.5px;
3269
3270
overlay { border-radius: $material_radius; }
3271
3272
// overlay:hover { box-shadow: $shadow_1; }
3273
}
3274
}
3275
3276
// colorscale popup
3277
colorchooser .popover.osd {
3278
transition: $shadow_transition;
3279
border-radius: 2px;
3280
box-shadow: $shadow_2, inset 0 1px $highlight_color;
3281
background-color: $base_color;
3282
3283
&:backdrop { box-shadow: $shadow_1, inset 0 1px $highlight_color; }
3284
3285
spinbutton:not(.vertical) { @extend %entry.flat; }
3286
}
3287
3288
3289
/********
3290
* Misc *
3291
********/
3292
// content view (grid/list)
3293
.content-view {
3294
background-color: $bg_color;
3295
3296
// &:hover { -gtk-icon-effect: highlight; }
3297
3298
rubberband, .rubberband { @extend rubberband; }
3299
}
3300
3301
.scale-popup {
3302
.osd & { @extend %osd; }
3303
3304
.osd & button.flat { // FIXME: quick hack, redo properly
3305
}
3306
3307
button { // +/- buttons on GtkVolumeButton popup
3308
}
3309
}
3310
3311
3312
/**********************
3313
* Window Decorations *
3314
**********************/
3315
decoration {
3316
transition: $shadow_transition;
3317
border-radius: 2px 2px 0 0;
3318
box-shadow: $shadow_4, 0 16px 16px transparent;
3319
3320
// FIXME rationalize shadows
3321
3322
// this is used for the resize cursor area
3323
margin: 8px;
3324
3325
&:backdrop {
3326
// the transparent shadow here is to enforce that the shadow extents don't
3327
// change when we go to backdrop, to prevent jumping windows.
3328
// The biggest shadow should be in the same order then in the active state
3329
// or the jumping will happen during the transition.
3330
box-shadow: $shadow_2, 0 16px 16px transparent;
3331
}
3332
3333
.maximized &,
3334
.fullscreen &,
3335
.tiled & { border-radius: 0; }
3336
3337
.popup & { box-shadow: none; }
3338
3339
// server-side decorations as used by mutter
3340
.ssd & { box-shadow: 0 3px 3px rgba(0, 0, 0, 0.16); } // just doing borders, wm draws actual shadows
3341
3342
.csd.popup & {
3343
border-radius: 2px;
3344
box-shadow: $shadow_2;
3345
}
3346
3347
tooltip.csd & {
3348
border-radius: 2px;
3349
box-shadow: $shadow_2;
3350
}
3351
3352
messagedialog.csd & {
3353
border-radius: 2px;
3354
// box-shadow: $shadow_4, 0 16px 16px transparent;
3355
3356
// &:backdrop { box-shadow: $shadow_2, 0 16px 16px transparent; }
3357
}
3358
3359
.solid-csd & {
3360
margin: 0;
3361
// padding: 4px;
3362
border-radius: 0;
3363
box-shadow: none;
3364
// box-shadow: inset 0 0 0 4px $titlebar_bg_color;
3365
background-color: $titlebar_bg_color;
3366
}
3367
}
3368
3369
// Window Close button
3370
button.titlebutton {
3371
// @extend %simple_flat_button;
3372
3373
@extend %circular_button;
3374
3375
.selection-mode & {
3376
}
3377
}
3378
3379
3380
// catch all extend :)
3381
3382
%selected_items {
3383
background-color: $primary_color;
3384
3385
@at-root %nobg_selected_items, & {
3386
color: $inverse_fg_color;
3387
3388
&:disabled { color: $disabled_inverse_fg_color; }
3389
}
3390
}
3391
3392
.monospace { font-family: monospace; }
3393
3394
3395
/**********************
3396
* Touch Copy & Paste *
3397
**********************/
3398
// touch selection handlebars for the Popover.osd above
3399
cursor-handle {
3400
border-radius: $circular_radius;
3401
background-color: $accent_color;
3402
background-image: none;
3403
3404
&.top:dir(ltr), &.bottom:dir(rtl) {
3405
padding-left: 6px;
3406
border-top-right-radius: 0;
3407
}
3408
3409
&.bottom:dir(ltr), &.top:dir(rtl) {
3410
padding-right: 6px;
3411
border-top-left-radius: 0;
3412
}
3413
3414
&.insertion-cursor:dir(ltr), &.insertion-cursor:dir(rtl) {
3415
-GtkWidget-text-handle-width: 24;
3416
-GtkWidget-text-handle-height: 30;
3417
3418
$_url: 'assets/scale-horz-marks-before-slider#{$asset_suffix}';
3419
-gtk-icon-source: -gtk-scaled(url('#{$_url}.png'),
3420
url('#{$_url}@2.png'));
3421
}
3422
}
3423
3424
.context-menu { font: initial; } // Decouple the font of context menus from their entry/textview
3425
3426
// shortcut window keys
3427
.keycap {
3428
min-width: 28px - 8px * 2;
3429
min-height: 28px - 2px;
3430
margin-top: 2px;
3431
padding-bottom: 2px;
3432
padding-left: 8px;
3433
padding-right: 8px;
3434
3435
border: solid 1px $border_color;
3436
border-radius: 2px + 1px;
3437
box-shadow: inset 0 -2px $border_color;
3438
background-color: $base_color;
3439
color: $fg_color;
3440
font-size: smaller;
3441
}
3442
3443
:not(decoration):not(window):drop(active) { // FIXME needs to be done widget by widget, this wildcard should really die
3444
transition: $longer_transition;
3445
box-shadow: $shadow_1, inset 0 0 0 2px $accent_color;
3446
caret-color: $accent_color;
3447
}
3448
3449
stackswitcher button.text-button { min-width: 100px; } // FIXME aggregate with buttons
3450
3451
stackswitcher button.circular,
3452
stackswitcher button.text-button.circular { // FIXME aggregate with buttons
3453
min-width: $medium_size;
3454
min-height: $medium_size;
3455
padding: 0;
3456
}
3457