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.26 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: $hint_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: $hint_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: $hint_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: $hint_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: $inverse_secondary_fg_color;
288
289
&:hover, &:active { color: $inverse_fg_color; }
290
291
&:disabled { color: $inverse_hint_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: $inverse_secondary_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: $inverse_disabled_secondary_fg_color;
481
}
482
483
&.flat {
484
color: $inverse_secondary_fg_color;
485
486
&:hover, &:active { color: $inverse_fg_color; }
487
488
&:disabled { color: $inverse_disabled_secondary_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: $inverse_disabled_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 $hint_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: 2px;
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: 2px; }
984
&.vertical > separator { margin: 2px; }
985
986
&:not(.inline-toolbar):not(.osd) {
987
scale,
988
entry,
989
spinbutton,
990
button { margin: 2px; }
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
spinbutton {
1000
entry,
1001
button { margin: 0; }
1002
}
1003
1004
switch { margin: 2px + $container_padding 2px; }
1005
}
1006
}
1007
1008
// searchbar, location-bar & inline-toolbar
1009
.inline-toolbar {
1010
padding: $container_padding;
1011
border-style: solid;
1012
border-width: 0 1px 1px;
1013
border-color: $border_color;
1014
background-color: $alt_base_color;
1015
}
1016
1017
searchbar,
1018
.location-bar {
1019
padding: $container_padding;
1020
border-style: solid;
1021
border-width: 0 0 1px;
1022
border-color: $border_color;
1023
background-color: $bg_color;
1024
background-clip: border-box;
1025
}
1026
1027
1028
/***************
1029
* Header bars *
1030
***************/
1031
%titlebar,
1032
headerbar {
1033
transition: background-color $shorter_duration $deceleration_curve, color $longer_duration $deceleration_curve;
1034
min-height: $large_size;
1035
padding: 0 $container_padding;
1036
box-shadow: $shadow_1, inset 0 1px $titlebar_highlight_color;
1037
background-color: $titlebar_bg_color;
1038
color: $titlebar_fg_color;
1039
1040
&:disabled :not(button) > label { color: $titlebar_disabled_fg_color; }
1041
1042
&:backdrop {
1043
color: $titlebar_secondary_fg_color;
1044
1045
&:disabled :not(button) > label { color: $titlebar_disabled_secondary_fg_color; }
1046
}
1047
1048
.title {
1049
padding: 0 12px;
1050
font-weight: bold;
1051
}
1052
1053
.subtitle {
1054
padding: 0 12px;
1055
font-size: smaller;
1056
1057
@extend .dim-label;
1058
}
1059
1060
.linked:not(.vertical) > entry:not(.flat) { border-radius: 2px; }
1061
1062
button:not(.suggested-action):not(.destructive-action) {
1063
@extend %button_basic.flat;
1064
1065
border-image: radial-gradient(circle closest-corner at center calc(100% - 1px),
1066
$titlebar_indicator_color 0%,
1067
transparent 0%)
1068
0 0 0 / 0 0 0px;
1069
color: $titlebar_secondary_fg_color;
1070
1071
&:hover, &:active { color: $titlebar_fg_color; }
1072
1073
&:disabled { color: $titlebar_disabled_secondary_fg_color; }
1074
1075
&:checked {
1076
border-image: radial-gradient(circle closest-corner at center calc(100% - 1px),
1077
$titlebar_indicator_color 100%,
1078
transparent 0%)
1079
0 0 2 / 0 0 2px;
1080
color: $titlebar_fg_color;
1081
1082
&:disabled { color: $titlebar_disabled_fg_color; }
1083
1084
&, &:disabled { background-color: transparent; }
1085
}
1086
1087
&:backdrop {
1088
color: $titlebar_hint_fg_color;
1089
1090
&:hover, &:active { color: $titlebar_secondary_fg_color; }
1091
1092
&:disabled { color: $titlebar_disabled_secondary_fg_color; }
1093
1094
&:checked {
1095
color: $titlebar_secondary_fg_color;
1096
1097
&:disabled { color: $titlebar_disabled_secondary_fg_color; }
1098
}
1099
}
1100
}
1101
1102
button.suggested-action, button.destructive-action {
1103
&:disabled {
1104
background-color: $titlebar_divider_color;
1105
color: $titlebar_disabled_fg_color;
1106
}
1107
}
1108
1109
&.selection-mode {
1110
// FIXME: 0.00001s is workaround for transition bug of gtk+ 3.22
1111
// see https://bugzilla.gnome.org/show_bug.cgi?id=774064
1112
transition: background-color 0.00001s $longer_duration, color $longer_duration $deceleration_curve;
1113
animation: header_ripple_effect $longer_duration $deceleration_curve;
1114
box-shadow: $shadow_1, inset 0 1px $alt_highlight_color;
1115
background-color: $primary_color;
1116
color: $inverse_fg_color;
1117
1118
&:backdrop {
1119
color: $inverse_secondary_fg_color;
1120
}
1121
1122
.subtitle:link { @extend *:link:selected; }
1123
1124
button:not(.suggested-action):not(.destructive-action) {
1125
border-image: radial-gradient(circle closest-corner at center calc(100% - 1px),
1126
currentColor 0%,
1127
transparent 0%)
1128
0 0 0 / 0 0 0px;
1129
color: $inverse_fg_color;
1130
1131
&:disabled { color: $inverse_disabled_fg_color; }
1132
1133
&:checked {
1134
border-image: radial-gradient(circle closest-corner at center calc(100% - 1px),
1135
currentColor 100%,
1136
transparent 0%)
1137
0 0 2 / 0 0 2px;
1138
color: $inverse_fg_color;
1139
1140
&:disabled { color: $inverse_disabled_fg_color; }
1141
}
1142
1143
&:backdrop {
1144
color: $inverse_secondary_fg_color;
1145
1146
&:disabled { color: $inverse_disabled_secondary_fg_color; }
1147
1148
&:checked {
1149
color: $inverse_secondary_fg_color;
1150
1151
&:disabled { color: $inverse_disabled_secondary_fg_color; }
1152
}
1153
}
1154
}
1155
1156
.selection-menu {
1157
padding-left: 16px;
1158
padding-right: 16px;
1159
1160
GtkArrow { -GtkArrow-arrow-scaling: 1; }
1161
1162
.arrow { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
1163
}
1164
}
1165
1166
.tiled &,
1167
.maximized &,
1168
.fullscreen & {
1169
border-radius: 0; // squared corners when the window is maximized, tiled, or fullscreen
1170
box-shadow: $shadow_1;
1171
}
1172
1173
&.default-decoration {
1174
min-height: $small_size;
1175
padding: $container_padding;
1176
box-shadow: inset 0 1px $titlebar_highlight_color;
1177
1178
.tiled &,
1179
.maximized &,
1180
.fullscreen & { box-shadow: none; }
1181
1182
button.titlebutton {
1183
min-height: $small_size;
1184
min-width: $small_size;
1185
margin: 0;
1186
padding: 0;
1187
}
1188
1189
// workaround for non-animatable buttons
1190
.background:not(.csd) & button.titlebutton:active { background-size: 1000% 1000%; }
1191
}
1192
1193
.solid-csd & {
1194
&:dir(rtl), &:dir(ltr) { // specificity bump
1195
// margin-left: -2px;
1196
// margin-right: -2px;
1197
// margin-top: -2px;
1198
// border-radius: 0;
1199
// box-shadow: inset 0 1px $titlebar_highlight_color;
1200
}
1201
}
1202
}
1203
1204
headerbar {
1205
// add vertical margins to common widget on the headerbar to avoid them spanning the whole height
1206
entry,
1207
spinbutton,
1208
// separator,
1209
button {
1210
margin-top: $container_padding;
1211
margin-bottom: $container_padding;
1212
}
1213
1214
switch {
1215
margin-top: $container_padding * 2;
1216
margin-bottom: $container_padding * 2;
1217
}
1218
1219
// reset button margins of the spinbutton
1220
spinbutton button {
1221
margin-top: 0;
1222
margin-bottom: 0;
1223
}
1224
}
1225
1226
.background:not(.tiled):not(.maximized):not(.fullscreen):not(.solid-csd) .titlebar {
1227
border-top-left-radius: 2px;
1228
border-top-right-radius: 2px;
1229
}
1230
1231
headerbar { // headerbar border rounding
1232
window:not(.tiled):not(.maximized):not(.fullscreen):not(.solid-csd) separator:first-child + &, // tackles the paned container case
1233
window:not(.tiled):not(.maximized):not(.fullscreen):not(.solid-csd) &:first-child { border-top-left-radius: 2px; }
1234
1235
window:not(.tiled):not(.maximized):not(.fullscreen):not(.solid-csd) &:last-child { border-top-right-radius: 2px; }
1236
1237
window:not(.tiled):not(.maximized):not(.fullscreen):not(.solid-csd) stack & { // tackles the stacked headerbars case
1238
&:first-child, &:last-child {
1239
border-top-left-radius: 2px;
1240
border-top-right-radius: 2px;
1241
}
1242
}
1243
}
1244
1245
.titlebar:not(headerbar) {
1246
window.csd > & {
1247
// in csd we assume every titlebar is a headerbar so reset anything, this is needed for split toolbars cases
1248
padding: 0;
1249
background-color: transparent;
1250
background-image: none;
1251
border-style: none;
1252
box-shadow: none;
1253
}
1254
1255
> separator {
1256
background-color: $titlebar_bg_color;
1257
background-image: image($border_color);
1258
}
1259
1260
@extend %titlebar;
1261
}
1262
1263
1264
/************
1265
* Pathbars *
1266
************/
1267
%pathbar_button,
1268
.path-bar button {
1269
padding-left: ($medium_size - 24px) / 2;
1270
padding-right: ($medium_size - 24px) / 2;
1271
1272
label:not(:only-child) {
1273
&:first-child { margin-left: 4px; }
1274
1275
&:last-child { margin-right: 4px; }
1276
}
1277
1278
&.slider-button {
1279
padding-left: (24px - 16px) / 2;
1280
padding-right: (24px - 16px) / 2;
1281
}
1282
1283
:not(headerbar) & {
1284
@extend %flat_button;
1285
1286
border-image: radial-gradient(circle closest-corner at center calc(100% - 1px),
1287
$primary_color 0%,
1288
transparent 0%)
1289
0 0 0 / 0 0 0px;
1290
border-radius: 2px;
1291
1292
&:checked {
1293
border-image: radial-gradient(circle closest-corner at center calc(100% - 1px),
1294
$primary_color 100%,
1295
transparent 0%)
1296
0 0 2 / 0 0 2px;
1297
1298
&, &:disabled { background-color: transparent; }
1299
}
1300
}
1301
}
1302
1303
1304
/**************
1305
* Tree Views *
1306
**************/
1307
treeview.view {
1308
@at-root * {
1309
-GtkTreeView-horizontal-separator: 4;
1310
-GtkTreeView-grid-line-width: 1;
1311
-GtkTreeView-grid-line-pattern: '';
1312
-GtkTreeView-tree-line-width: 1;
1313
-GtkTreeView-tree-line-pattern: '';
1314
-GtkTreeView-expander-size: 16;
1315
}
1316
1317
border-left-color: $track_color; // this is actually the tree lines color,
1318
border-top-color: $border_color; // while this is the grid lines color, better then nothing
1319
1320
&:selected { border-left-color: $inverse_track_color; }
1321
1322
rubberband { @extend rubberband; } // to avoid borders being overridden by the previously set props
1323
1324
&:hover, &:active, &:selected { border-radius: 0; }
1325
1326
&.separator {
1327
min-height: 1px + 2px * 2;
1328
color: $border_color;
1329
}
1330
1331
&:drop(active) {
1332
border-style: solid none;
1333
border-width: 1px;
1334
border-color: $accent_color;
1335
1336
&.after { border-top-style: none; }
1337
1338
&.before { border-bottom-style: none; }
1339
}
1340
1341
&.expander {
1342
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
1343
-gtk-icon-transform: rotate(-90deg);
1344
1345
&:dir(rtl) { -gtk-icon-transform: rotate(90deg); }
1346
1347
&:checked { -gtk-icon-transform: unset; }
1348
1349
color: $secondary_fg_color;
1350
1351
&:hover, &:active { color: $fg_color; }
1352
1353
&:disabled { color: $disabled_secondary_fg_color; }
1354
1355
&:selected {
1356
color: $inverse_secondary_fg_color;
1357
1358
&:hover, &:active { color: $inverse_fg_color; }
1359
1360
&:disabled { color: $inverse_disabled_secondary_fg_color; }
1361
}
1362
}
1363
1364
&.progressbar { // progress bar in treeviews
1365
border-bottom: $bar_size solid $primary_color;
1366
box-shadow: none;
1367
background-color: transparent;
1368
1369
&:selected { border-bottom-color: $inverse_fg_color; }
1370
}
1371
1372
&.trough { // progress bar trough in treeviews
1373
border-bottom: $bar_size solid rgba($primary_color, $lower_opacity);
1374
box-shadow: none;
1375
background-color: transparent;
1376
1377
&:selected { border-bottom-color: $inverse_track_color; }
1378
}
1379
1380
header {
1381
button {
1382
@extend row.activatable;
1383
1384
padding: 2px 6px;
1385
border-style: none solid solid none;
1386
border-width: 1px;
1387
border-color: $border_color;
1388
border-radius: 0;
1389
background-clip: border-box;
1390
1391
&, &:hover, &:active { box-shadow: none; }
1392
1393
&, &:disabled { background-color: $base_color; }
1394
1395
&:last-child { border-right-style: none; }
1396
}
1397
}
1398
1399
button.dnd,
1400
header.button.dnd { // for treeview-like derive widgets
1401
padding: 2px 6px;
1402
border-style: none solid solid;
1403
border-width: 1px;
1404
border-color: $border_color;
1405
border-radius: 0;
1406
box-shadow: none;
1407
background-color: $base_color;
1408
background-clip: border-box;
1409
color: $primary_color;
1410
}
1411
1412
acceleditor > label { background-color: $primary_color; } // see tests/testaccel to test
1413
}
1414
1415
1416
/*********
1417
* Menus *
1418
*********/
1419
menubar,
1420
.menubar {
1421
-GtkWidget-window-dragging: true;
1422
padding: 0;
1423
// box-shadow: inset 0 -1px $border_color;
1424
background-color: $titlebar_bg_color;
1425
1426
> menuitem {
1427
transition: $shorter_transition;
1428
min-height: 20px;
1429
padding: 4px 8px;
1430
color: $titlebar_secondary_fg_color;
1431
1432
&:hover { // Seems like it :hover even with keyboard focus
1433
transition: none;
1434
background-color: $titlebar_divider_color;
1435
color: $titlebar_fg_color;
1436
}
1437
1438
&:disabled { color: $titlebar_disabled_secondary_fg_color; }
1439
}
1440
}
1441
1442
.csd.popup { background-color: transparent; }
1443
1444
menu,
1445
.menu,
1446
.context-menu {
1447
margin: 4px 0; // See https://bugzilla.gnome.org/show_bug.cgi?id=591258
1448
padding: 4px 0;
1449
box-shadow: inset 0 1px $highlight_color;
1450
background-color: $base_color;
1451
border: 1px solid $border_color; // adds borders in a non composited env
1452
1453
.csd & {
1454
border: none; // axes borders in a composited env
1455
border-radius: 2px;
1456
}
1457
1458
menuitem {
1459
transition: background-color $shorter_duration $deceleration_curve;
1460
min-height: 20px;
1461
min-width: 40px;
1462
padding: 4px 8px;
1463
font: initial;
1464
text-shadow: none;
1465
1466
&:hover {
1467
transition: none;
1468
background-color: $divider_color;
1469
}
1470
1471
&:disabled { color: $disabled_fg_color; }
1472
1473
// submenu indicators
1474
arrow {
1475
min-height: 16px;
1476
min-width: 16px;
1477
1478
&:dir(ltr) {
1479
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
1480
margin-left: 8px;
1481
}
1482
1483
&:dir(rtl) {
1484
-gtk-icon-source:-gtk-icontheme('pan-end-symbolic-rtl');
1485
margin-right: 8px;
1486
}
1487
}
1488
1489
// avoids labels color being overridden, see
1490
// https://bugzilla.gnome.org/show_bug.cgi?id=767058
1491
label { &:dir(rtl), &:dir(ltr) { color: inherit; }}
1492
}
1493
1494
// overflow arrows
1495
> arrow {
1496
min-height: 16px;
1497
min-width: 16px;
1498
padding: 4px;
1499
background-color: $base_color;
1500
color: $secondary_fg_color;
1501
1502
&.top {
1503
margin-top: -4px;
1504
border-bottom: 1px solid $border_color;
1505
border-radius: 2px 2px 0 0;
1506
-gtk-icon-source: -gtk-icontheme('pan-up-symbolic');
1507
}
1508
1509
&.bottom {
1510
margin-bottom: -4px * 3;
1511
border-top: 1px solid $border_color;
1512
border-radius: 0 0 2px 2px;
1513
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
1514
}
1515
1516
&:hover {
1517
background-image: image($divider_color);
1518
color: $fg_color;
1519
}
1520
1521
&:disabled {
1522
border-color: transparent;
1523
background-color: transparent;
1524
color: transparent;
1525
// color: $disabled_secondary_fg_color;
1526
}
1527
}
1528
1529
separator { margin: 4px 0; }
1530
}
1531
1532
menuitem {
1533
accelerator { color: $secondary_fg_color; }
1534
}
1535
1536
// FIXME: THIS IS A REALLY UGLY WORKAROUND!
1537
// Electron/Atom render all translucent colors in opaque colors.
1538
// It's a very critical issue for this theme and should be fixed by upstream...
1539
.popup:not(.csd) menu {
1540
$opaque_fg_color: if($variant == 'light', $grey_900, $white);
1541
$opaque_secondary_fg_color: if($variant == 'light', $grey_600, mix($white, $base_color, percentage(0.7)));
1542
$opaque_disabled_fg_color: if($variant == 'light', $grey_500, mix($white, $base_color, percentage(0.5)));
1543
$opaque_divider_color: if($variant == 'light', $grey_300, mix($white, $base_color, percentage(0.12)));
1544
1545
menuitem {
1546
color: $opaque_fg_color;
1547
1548
&:hover { background-color: $opaque_divider_color; }
1549
1550
&:disabled { color: $opaque_disabled_fg_color; } // separator/border also use this color.
1551
}
1552
1553
// TODO: not working this, where/how i can set the accelerators?
1554
accelerator { color: $opaque_secondary_fg_color; }
1555
}
1556
1557
1558
/************
1559
* Popovers *
1560
************/
1561
popover.background {
1562
transition: $shadow_transition;
1563
padding: 2px;
1564
box-shadow: $shadow_2; // TODO: this should really have a highlight
1565
background-color: $lighter_bg_color;
1566
1567
&:backdrop { box-shadow: $shadow_1; }
1568
1569
&, .csd & {
1570
border-style: solid;
1571
border-width: 1px;
1572
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.3);
1573
border-radius: 2px + 1px;
1574
}
1575
1576
> stack { margin: -4px; } // remove extra padding from menu style popovers
1577
1578
> toolbar { margin: -2px; }
1579
1580
> list,
1581
> .view,
1582
> toolbar {
1583
border-style: none;
1584
box-shadow: none;
1585
background-color: transparent;
1586
}
1587
1588
&.touch-selection,
1589
&.magnifier,
1590
&.osd { @extend %osd; }
1591
1592
// entry { @extend %entry.flat; }
1593
1594
// button.combo { @extend %combo_flat; }
1595
1596
// button:not(.suggested-action):not(.destructive-action) { @extend %button_basic.flat; }
1597
1598
&.menu button,
1599
button.model {
1600
@extend %simple_flat_button;
1601
1602
min-height: 32px;
1603
padding: 0 8px;
1604
border-radius: 2px;
1605
1606
&:checked { @extend %selected_items; }
1607
}
1608
1609
separator { margin: 4px 0; }
1610
1611
list separator { margin: 0; }
1612
}
1613
1614
/*************
1615
* Notebooks *
1616
*************/
1617
notebook {
1618
> header {
1619
border-width: 1px;
1620
border-color: $border_color;
1621
background-color: $bg_color;
1622
background-clip: border-box;
1623
1624
&.top {
1625
border-bottom-style: solid;
1626
> tabs {
1627
margin-bottom: -1px;
1628
> tab {
1629
1630
&:hover { box-shadow: inset 0 -2px $track_color; }
1631
1632
&:checked { box-shadow: inset 0 -2px $primary_color; }
1633
}
1634
}
1635
}
1636
1637
&.bottom {
1638
border-top-style: solid;
1639
> tabs {
1640
margin-top: -1px;
1641
> tab {
1642
1643
&:hover { box-shadow: inset 0 2px $track_color; }
1644
1645
&:checked { box-shadow: inset 0 2px $primary_color; }
1646
}
1647
}
1648
}
1649
1650
&.left {
1651
border-right-style: solid;
1652
> tabs {
1653
margin-right: -1px;
1654
> tab {
1655
1656
&:hover { box-shadow: inset -2px 0 $track_color; }
1657
1658
&:checked { box-shadow: inset -2px 0 $primary_color; }
1659
}
1660
}
1661
}
1662
1663
&.right {
1664
border-left-style: solid;
1665
> tabs {
1666
margin-left: -1px;
1667
> tab {
1668
1669
&:hover { box-shadow: inset 2px 0 $track_color; }
1670
1671
&:checked { box-shadow: inset 2px 0 $primary_color; }
1672
}
1673
}
1674
}
1675
1676
&.top > tabs > arrow {
1677
@extend %notebook_vert_arrows;
1678
1679
border-top-style: none;
1680
}
1681
1682
&.bottom > tabs > arrow {
1683
@extend %notebook_vert_arrows;
1684
1685
border-bottom-style: none;
1686
}
1687
1688
@at-root %notebook_vert_arrows {
1689
padding-left: 4px;
1690
padding-right: 4px;
1691
1692
&.down {
1693
margin-left: -8px;
1694
-gtk-icon-source: -gtk-icontheme('pan-start-symbolic');
1695
}
1696
1697
&.up {
1698
margin-right: -8px;
1699
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
1700
}
1701
}
1702
1703
&.left > tabs > arrow {
1704
@extend %notebook_horz_arrows;
1705
1706
border-left-style: none;
1707
}
1708
1709
&.right > tabs > arrow {
1710
@extend %notebook_horz_arrows;
1711
1712
border-right-style: none;
1713
}
1714
1715
@at-root %notebook_horz_arrows {
1716
padding-top: 4px;
1717
padding-bottom: 4px;
1718
1719
&.down {
1720
margin-top: -8px;
1721
-gtk-icon-source: -gtk-icontheme('pan-up-symbolic');
1722
}
1723
1724
&.up {
1725
margin-bottom: -8px;
1726
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
1727
}
1728
}
1729
1730
> tabs > arrow {
1731
@extend %simple_flat_button;
1732
1733
min-height: 16px;
1734
min-width: 16px;
1735
border-radius: 0;
1736
}
1737
1738
tab {
1739
transition: $longer_transition,
1740
background-size 0,
1741
background-image 0;
1742
min-height: $small_size;
1743
min-width: $small_size;
1744
padding: $container_padding 12px;
1745
1746
outline-offset: -6px;
1747
1748
border-width: 1px; // for reorderable tabs
1749
border-color: transparent; //
1750
1751
background-image: radial-gradient(circle farthest-corner at center,
1752
$primary_color 10%,
1753
transparent 0%);
1754
background-repeat: no-repeat;
1755
background-position: center;
1756
background-size: 0% 0%;
1757
1758
color: $secondary_fg_color;
1759
font-weight: 500;
1760
1761
&:hover {
1762
color: $fg_color;
1763
1764
&.reorderable-page {
1765
border-color: $border_color;
1766
background-color: $alt_base_color;
1767
}
1768
}
1769
1770
&:disabled { color: $disabled_secondary_fg_color; }
1771
1772
&:checked {
1773
transition: $longer_transition,
1774
background-size $longer_duration $deceleration_curve,
1775
background-image $longer_duration + $ripple_duration $deceleration_curve;
1776
background-image: radial-gradient(circle farthest-corner at center,
1777
transparent 10%,
1778
transparent 0%);
1779
background-size: 1000% 1000%;
1780
color: $fg_color;
1781
1782
&:disabled { color: $disabled_fg_color; }
1783
1784
&.reorderable-page {
1785
border-color: $border_color;
1786
background-color: $base_color;
1787
}
1788
}
1789
1790
// colors the button like the label, overridden otherwise
1791
button.flat {
1792
@extend %small_button;
1793
1794
&:last-child {
1795
margin-left: $container_padding;
1796
margin-right: $container_padding - 12px;
1797
}
1798
1799
&:first-child {
1800
margin-left: $container_padding - 12px;
1801
margin-right: $container_padding;
1802
}
1803
}
1804
}
1805
1806
&.top,
1807
&.bottom {
1808
tabs {
1809
padding-left: 8px;
1810
padding-right: 8px;
1811
1812
&:not(:only-child) {
1813
&:first-child { margin-left: 0; }
1814
&:last-child { margin-right: 0; }
1815
}
1816
1817
tab {
1818
&.reorderable-page {
1819
margin: 0 -1px;
1820
border-style: none solid;
1821
}
1822
}
1823
}
1824
}
1825
1826
&.left,
1827
&.right {
1828
tabs {
1829
padding-top: 8px;
1830
padding-bottom: 8px;
1831
1832
&:not(:only-child) {
1833
&:first-child { margin-top: 0; }
1834
&:last-child { margin-bottom: 0; }
1835
}
1836
1837
tab {
1838
&.reorderable-page {
1839
margin: -1px 0;
1840
border-style: solid none;
1841
}
1842
}
1843
}
1844
}
1845
}
1846
1847
> stack:not(:only-child) { // the :not(:only-child) is for "hidden" notebooks
1848
background-color: $base_color;
1849
1850
entry:not(.search),
1851
spinbutton:not(.vertical) { @extend %entry.flat; }
1852
1853
spinbutton:not(.vertical) entry { &, &:focus, &:disabled { @extend %spinbutton_entry; }}
1854
1855
button.combo { @extend %combo_flat; }
1856
}
1857
}
1858
1859
1860
/**************
1861
* Scrollbars *
1862
**************/
1863
scrollbar {
1864
$_slider_min_length: 24px;
1865
1866
// disable steppers
1867
@at-root * {
1868
-GtkScrollbar-has-backward-stepper: false;
1869
-GtkScrollbar-has-forward-stepper: false;
1870
}
1871
1872
transition: $longer_transition;
1873
background-color: $base_color;
1874
background-clip: $extra_background_clip;
1875
1876
// scrollbar border
1877
&.top { border-bottom: 1px solid $border_color; }
1878
&.bottom { border-top: 1px solid $border_color; }
1879
&.left { border-right: 1px solid $border_color; }
1880
&.right { border-left: 1px solid $border_color; }
1881
1882
// slider
1883
slider {
1884
transition: $shorter_transition, margin 0, border-width 0;
1885
min-width: 8px;
1886
min-height: 8px;
1887
border: 4px solid transparent;
1888
border-radius: $circular_radius;
1889
background-clip: padding-box;
1890
background-color: $hint_fg_color;
1891
1892
&:hover { background-color: $secondary_fg_color; }
1893
1894
&:active { background-color: $fg_color; }
1895
1896
&:disabled { background-color: $disabled_secondary_fg_color; }
1897
}
1898
1899
&.fine-tune {
1900
slider {
1901
transition: $shorter_transition, margin 0, border-width 0, min-width 0, min-height 0;
1902
min-width: 4px;
1903
min-height: 4px;
1904
}
1905
1906
&.horizontal slider { margin: 2px 0; }
1907
1908
&.vertical slider { margin: 0 2px; }
1909
}
1910
1911
&.overlay-indicator {
1912
&:not(.dragging):not(.hovering) {
1913
border-color: transparent;
1914
background-color: transparent;
1915
1916
slider {
1917
min-width: 4px;
1918
min-height: 4px;
1919
margin: 4px - 1px;
1920
border: 1px solid rgba($base_color, $lower_opacity);
1921
}
1922
1923
button {
1924
min-width: 4px;
1925
min-height: 4px;
1926
margin: 4px - 1px;
1927
border: 1px solid rgba($base_color, $lower_opacity);
1928
border-radius: $circular_radius;
1929
background-color: $hint_fg_color;
1930
background-clip: padding-box;
1931
-gtk-icon-source: none;
1932
1933
&:disabled { background-color: $disabled_secondary_fg_color; }
1934
}
1935
1936
&.horizontal {
1937
slider { min-width: $_slider_min_length; }
1938
1939
button { min-width: 8px; }
1940
}
1941
1942
&.vertical {
1943
slider { min-height: $_slider_min_length; }
1944
1945
button { min-height: 8px; }
1946
}
1947
}
1948
1949
&.dragging,
1950
&.hovering { background-color: rgba($base_color, $higher_opacity); }
1951
}
1952
1953
&.horizontal slider { min-width: $_slider_min_length; }
1954
1955
&.vertical slider { min-height: $_slider_min_length; }
1956
1957
// button styling
1958
button {
1959
@extend %simple_flat_button;
1960
1961
min-width: 16px;
1962
min-height: 16px;
1963
padding: 0;
1964
border-radius: 0;
1965
}
1966
1967
// button icons
1968
&.vertical {
1969
button {
1970
&.down { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
1971
1972
&.up { -gtk-icon-source: -gtk-icontheme('pan-up-symbolic'); }
1973
}
1974
}
1975
1976
&.horizontal {
1977
button {
1978
&.down { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic'); }
1979
1980
&.up { -gtk-icon-source: -gtk-icontheme('pan-start-symbolic'); }
1981
}
1982
}
1983
}
1984
1985
1986
/**********
1987
* Switch *
1988
**********/
1989
switch {
1990
transition: $longer_transition;
1991
margin: $container_padding 0;
1992
padding: 0 2px;
1993
border: 5px solid transparent;
1994
border-radius: $circular_radius;
1995
background-color: $track_color;
1996
background-clip: padding-box;
1997
font-size: 0;
1998
1999
&:disabled { background-color: $divider_color; }
2000
2001
&:checked {
2002
background-color: rgba($accent_color, 0.5);
2003
2004
&:disabled { background-color: rgba($accent_color, 0.3); }
2005
}
2006
2007
slider {
2008
transition: $longer_transition, $shadow_transition;
2009
min-width: 20px;
2010
min-height: 20px;
2011
margin: -3px -2px;
2012
border-radius: $circular_radius;
2013
-gtk-outline-radius: $circular_radius;
2014
box-shadow: $shadow_1;
2015
background-color: $base_color;
2016
}
2017
2018
&:hover slider { box-shadow: $shadow_2; }
2019
2020
&:checked slider {
2021
transition: $longer_transition, $shadow_transition, background-image 0, background-color 0.00001s $longer_duration;
2022
animation: needs_attention $longer_duration $deceleration_curve;
2023
background-color: $accent_color;
2024
color: $inverse_fg_color;
2025
}
2026
2027
&:disabled slider { background-color: $alt_base_color; }
2028
2029
&:checked:disabled slider { animation: none; }
2030
2031
row:selected & {
2032
}
2033
}
2034
2035
2036
/*************************
2037
* Check and Radio items *
2038
*************************/
2039
// draw regular check and radio items using our PNG assets
2040
// all assets are rendered from assets.svg. never add pngs directly
2041
2042
// selection-mode
2043
.view.content-view.check:not(list),
2044
.content-view .tile check:not(list) {
2045
min-height: 40px;
2046
min-width: 40px;
2047
margin: 0;
2048
padding: 0;
2049
box-shadow: none;
2050
background-color: transparent;
2051
background-image: none;
2052
-gtk-icon-shadow: $shadow_1;
2053
2054
&:hover, &:active { -gtk-icon-shadow: $shadow_2; }
2055
2056
@each $s, $as in ('', '-unchecked'),
2057
(':checked', '-checked') {
2058
&#{$s} {
2059
-gtk-icon-source: -gtk-scaled(url("assets/selectionmode-checkbox#{$as}#{$asset_suffix}.png"),
2060
url("assets/selectionmode-checkbox#{$as}#{$asset_suffix}@2.png"));
2061
}
2062
}
2063
}
2064
2065
checkbutton.text-button,
2066
radiobutton.text-button {
2067
// this is for a nice focus on check and radios text
2068
padding: 2px;
2069
outline-offset: 0;
2070
2071
label:not(:only-child) { margin: 0 4px; }
2072
}
2073
2074
check,
2075
radio {
2076
min-height: 24px;
2077
min-width: 24px;
2078
margin: -($large_size - 24px) / 2;
2079
padding: ($large_size - 24px) / 2;
2080
2081
@extend %simple_flat_button;
2082
2083
@extend %circular_button;
2084
2085
&:checked, &:indeterminate {
2086
color: $accent_color;
2087
2088
&:disabled { color: $disabled_accent_color; }
2089
}
2090
2091
// &:only-child { margin: -12px; }
2092
2093
row:selected &:not(:checked):not(:indeterminate) {
2094
color: $inverse_secondary_fg_color;
2095
2096
&:hover, &:active { color: $inverse_fg_color; }
2097
2098
&:disabled { color: $inverse_disabled_secondary_fg_color; }
2099
}
2100
2101
popover & {
2102
&, &:hover, &:disabled {
2103
box-shadow: none;
2104
background-image: none;
2105
}
2106
2107
&:not(:checked):not(:indeterminate):not(:disabled) { color: $secondary_fg_color; }
2108
2109
&.left:dir(rtl) {
2110
margin-left: -16px;
2111
margin-right: -8px;
2112
}
2113
2114
&.right:dir(ltr) {
2115
margin-left: -8px;
2116
margin-right: -16px;
2117
}
2118
}
2119
2120
menu menuitem & {
2121
transition: none;
2122
min-height: 16px;
2123
min-width: 16px;
2124
margin: 0; // this is a workaround for a menu check/radio size allocation issue
2125
padding: 0;
2126
2127
&:dir(ltr) { margin-right: 8px; }
2128
2129
&:dir(rtl) { margin-left: 8px; }
2130
2131
&:not(:checked):not(:indeterminate):not(:disabled) { color: $secondary_fg_color; }
2132
2133
&, &:hover, &:disabled {
2134
box-shadow: none;
2135
// color: inherit;
2136
}
2137
}
2138
}
2139
2140
%check,
2141
check {
2142
& { -gtk-icon-source: image(-gtk-recolor(url("assets/scalable/checkbox-unchecked-symbolic.svg")),
2143
-gtk-recolor(url("assets/scalable/checkbox-unchecked-symbolic.symbolic.png"))); }
2144
2145
&:checked { -gtk-icon-source: image(-gtk-recolor(url("assets/scalable/checkbox-checked-symbolic.svg")),
2146
-gtk-recolor(url("assets/scalable/checkbox-checked-symbolic.symbolic.png"))); }
2147
2148
&:indeterminate { -gtk-icon-source: image(-gtk-recolor(url("assets/scalable/checkbox-mixed-symbolic.svg")),
2149
-gtk-recolor(url("assets/scalable/checkbox-mixed-symbolic.symbolic.png"))); }
2150
}
2151
2152
%radio,
2153
radio {
2154
& { -gtk-icon-source: image(-gtk-recolor(url("assets/scalable/radio-unchecked-symbolic.svg")),
2155
-gtk-recolor(url("assets/scalable/radio-unchecked-symbolic.symbolic.png"))); }
2156
2157
// &:checked { -gtk-icon-source: image(-gtk-recolor(url("assets/scalable/radio-checked-symbolic.svg")),
2158
// -gtk-recolor(url("assets/scalable/radio-checked-symbolic.symbolic.png"))); }
2159
2160
&:indeterminate { -gtk-icon-source: image(-gtk-recolor(url("assets/scalable/radio-mixed-symbolic.svg")),
2161
-gtk-recolor(url("assets/scalable/radio-mixed-symbolic.symbolic.png"))); }
2162
2163
border-image-slice: $large_size / 2px;
2164
border-image-width: $large_size / 2;
2165
2166
$radio_indicator: 10px / $large_size / 2;
2167
2168
& {
2169
border-image-source: -gtk-gradient(radial,
2170
center center, 0,
2171
center center, 0.001,
2172
to($accent_color),
2173
to(transparent));
2174
}
2175
2176
&:checked:not(:indeterminate) {
2177
border-image-source: -gtk-gradient(radial,
2178
center center, 0,
2179
center center, $radio_indicator,
2180
to($accent_color),
2181
to(transparent));
2182
}
2183
2184
&:checked:not(:indeterminate):disabled {
2185
border-image-source: -gtk-gradient(radial,
2186
center center, 0,
2187
center center, $radio_indicator,
2188
to($disabled_accent_color),
2189
to(transparent));
2190
}
2191
}
2192
2193
%small_check,
2194
menu menuitem check {
2195
& {
2196
border-radius: 2px;
2197
-gtk-outline-radius: 2px;
2198
-gtk-icon-source: image(-gtk-recolor(url("assets/scalable/small-checkbox-unchecked-symbolic.svg")),
2199
-gtk-recolor(url("assets/scalable/small-checkbox-unchecked-symbolic.symbolic.png")));
2200
}
2201
2202
&:checked {
2203
-gtk-icon-source: image(-gtk-recolor(url("assets/scalable/small-checkbox-checked-symbolic.svg")),
2204
-gtk-recolor(url("assets/scalable/small-checkbox-checked-symbolic.symbolic.png")));
2205
}
2206
2207
&:indeterminate {
2208
-gtk-icon-source: image(-gtk-recolor(url("assets/scalable/small-checkbox-mixed-symbolic.svg")),
2209
-gtk-recolor(url("assets/scalable/small-checkbox-mixed-symbolic.symbolic.png")));
2210
}
2211
}
2212
2213
%small_radio,
2214
menu menuitem radio {
2215
& {
2216
border-image: none;
2217
-gtk-icon-source: image(-gtk-recolor(url("assets/scalable/small-radio-unchecked-symbolic.svg")),
2218
-gtk-recolor(url("assets/scalable/small-radio-unchecked-symbolic.symbolic.png")));
2219
}
2220
2221
&:checked {
2222
-gtk-icon-source: image(-gtk-recolor(url("assets/scalable/small-radio-checked-symbolic.svg")),
2223
-gtk-recolor(url("assets/scalable/small-radio-checked-symbolic.symbolic.png")));
2224
}
2225
2226
&:indeterminate {
2227
-gtk-icon-source: image(-gtk-recolor(url("assets/scalable/small-radio-mixed-symbolic.svg")),
2228
-gtk-recolor(url("assets/scalable/small-radio-mixed-symbolic.symbolic.png")));
2229
}
2230
}
2231
2232
// ANIMATION:
2233
// this is made with those pretty convoluted transitions, since checks and radios have to animate only on state changes,
2234
// the transformation is set on the active state and it get reset on the checked state.
2235
check:not(:checked):active { -gtk-icon-transform: rotate(90deg); }
2236
2237
// radio:not(:checked):active { -gtk-icon-transform: scale(0); }
2238
2239
check:not(:checked):indeterminate:active,
2240
radio:not(:checked):indeterminate:active { -gtk-icon-transform: scaleX(-1); } // instead of rotateY(180deg)
2241
2242
check:not(:checked),
2243
radio:not(:checked) {
2244
& {
2245
transition: $longer_transition,
2246
background-size $ripple_duration $deceleration_curve,
2247
background-image $ripple_duration * 2 $deceleration_curve,
2248
-gtk-icon-transform 0;
2249
}
2250
2251
&:active {
2252
transition: $longer_transition,
2253
background-size 0,
2254
background-image 0,
2255
-gtk-icon-transform 0;
2256
}
2257
2258
menu menuitem & { transition: none; }
2259
}
2260
2261
treeview.view check,
2262
treeview.view radio {
2263
padding: 0;
2264
2265
&:hover {
2266
box-shadow: inset 0 0 0 9999px gtkalpha($fg_color, 0.05);
2267
2268
&:disabled { box-shadow: none; }
2269
2270
&:selected { box-shadow: inset 0 0 0 9999px gtkalpha($inverse_fg_color, 0.05); }
2271
}
2272
2273
& {
2274
color: $secondary_fg_color;
2275
2276
&:hover, &:active { color: $fg_color; }
2277
2278
&:disabled { color: $disabled_secondary_fg_color; }
2279
2280
&:checked, &:indeterminate { color: $accent_color; }
2281
2282
&:checked:disabled, &:indeterminate:disabled { color: $disabled_accent_color; }
2283
}
2284
2285
&:selected {
2286
color: $inverse_secondary_fg_color;
2287
2288
&:hover, &:active { color: $inverse_fg_color; }
2289
2290
&:disabled { color: $inverse_disabled_secondary_fg_color; }
2291
2292
&:checked, &:indeterminate { color: $accent_color; }
2293
2294
&:checked:disabled, &:indeterminate:disabled { color: $disabled_accent_color; }
2295
}
2296
}
2297
2298
treeview.view radio:checked {
2299
-gtk-icon-source: image(-gtk-recolor(url("assets/scalable/radio-checked-symbolic.svg")),
2300
-gtk-recolor(url("assets/scalable/radio-checked-symbolic.symbolic.png")));
2301
border-image: none;
2302
}
2303
2304
2305
/************
2306
* GtkScale *
2307
************/
2308
scale {
2309
// sizing
2310
$_marks_length: 8px;
2311
$_marks_distance: 8px;
2312
2313
$trough_size: 2px;
2314
2315
$slider_size: 24px;
2316
$marks_slider_size: 30px;
2317
2318
$slider_margin: -($slider_size - $trough_size) / 2;
2319
$marks_slider_margin: -($marks_slider_size - $trough_size) - $slider_margin;
2320
2321
$color_slider_margin: -($slider_size) / 2;
2322
$color_marks_slider_margin: -($marks_slider_size - 16px) - $color_slider_margin;
2323
2324
min-height: $medium_size - $slider_size;
2325
min-width: $medium_size - $slider_size;
2326
padding: ($slider_size / 2);
2327
2328
// the slider is inside the trough, so to have make it bigger there's a negative margin
2329
slider {
2330
min-height: $slider_size;
2331
min-width: $slider_size;
2332
margin: $slider_margin;
2333
}
2334
2335
// the backing bit
2336
trough {
2337
transition: $longer_transition;
2338
outline-offset: 2px;
2339
background-color: $track_color;
2340
2341
&:disabled { background-color: $divider_color; }
2342
}
2343
2344
// the colored part of the backing bit
2345
highlight {
2346
transition: $longer_transition;
2347
background-color: $accent_color;
2348
2349
&:disabled { background-color: transparent; }
2350
}
2351
2352
// this is another differently styled part of the backing bit, the most relevant use case is for example
2353
// in media player to indicate how much video stream as been cached
2354
fill {
2355
transition: $longer_transition;
2356
background-color: $track_color;
2357
2358
&:disabled { background-color: transparent; }
2359
}
2360
2361
slider {
2362
transition: all $shorter_duration $standard_curve;
2363
// border-radius: 100%;
2364
// background-color: $accent_color;
2365
background-repeat: no-repeat;
2366
background-position: center;
2367
2368
@each $s, $as in ('', ''),
2369
(':disabled', '-disabled') {
2370
&#{$s} {
2371
$_url: 'assets/scale-slider#{$as}#{$asset_suffix}';
2372
2373
background-image: -gtk-scaled(url('#{$_url}.png'), url('#{$_url}@2.png'));
2374
}
2375
}
2376
2377
background-size: calc(100% - 10px);
2378
2379
&:hover { background-size: calc(100% - 8px); }
2380
2381
&:active { background-size: calc(100% - 6px); }
2382
}
2383
2384
// click-and-hold the slider to activate
2385
&.fine-tune {
2386
// to make the slider shrink in fine-tune mode
2387
slider { background-size: calc(100% - 12px); }
2388
}
2389
2390
marks label,
2391
value { color: $hint_fg_color; }
2392
2393
marks {
2394
color: $track_color;
2395
2396
@each $marks_class, $marks_pos, $marks_margin in (top, top, bottom),
2397
(bottom, bottom, top),
2398
(top, left, right),
2399
(bottom, right, left) {
2400
&.#{$marks_class} {
2401
margin-#{$marks_margin}: $_marks_distance;
2402
margin-#{$marks_pos}: -($_marks_distance + $_marks_length);
2403
}
2404
}
2405
}
2406
2407
&.horizontal {
2408
indicator {
2409
min-height: $_marks_length;
2410
min-width: 1px;
2411
}
2412
}
2413
2414
&.vertical {
2415
indicator {
2416
min-height: 1px;
2417
min-width: $_marks_length;
2418
}
2419
}
2420
2421
// *WARNING* scale with marks madness following
2422
2423
@each $dir_class, $dir_infix in ('horizontal', 'horz'),
2424
('vertical', 'vert') {
2425
@each $marks_infix, $marks_class in ('marks-before', 'marks-before:not(.marks-after)'),
2426
('marks-after', 'marks-after:not(.marks-before)') {
2427
&.#{$dir_class}.#{$marks_class} {
2428
slider {
2429
@each $state, $state_infix in ('', ''),
2430
(':disabled', '-disabled') {
2431
&#{$state} {
2432
$_scale_asset: 'assets/scale-#{$dir_infix}-#{$marks_infix}-slider#{$state_infix}#{$asset_suffix}';
2433
2434
background-image: -gtk-scaled(url('#{$_scale_asset}.png'), url('#{$_scale_asset}@2.png'));
2435
}
2436
}
2437
2438
@if $dir_class == 'horizontal' {
2439
min-height: $marks_slider_size;
2440
min-width: $slider_size;
2441
2442
@if $marks_infix == 'marks-before' {
2443
margin-top: $marks_slider_margin;
2444
2445
background-position: center calc(100% - 5px);
2446
2447
&:hover { background-position: center calc(100% - 4px); }
2448
2449
&:active { background-position: center calc(100% - 3px); }
2450
}
2451
2452
@if $marks_infix == 'marks-after' {
2453
margin-bottom: $marks_slider_margin;
2454
2455
background-position: center calc(5px);
2456
2457
&:hover { background-position: center calc(4px); }
2458
2459
&:active { background-position: center calc(3px); }
2460
}
2461
}
2462
2463
@if $dir_class == 'vertical' {
2464
min-height: $slider_size;
2465
min-width: $marks_slider_size;
2466
2467
@if $marks_infix == 'marks-before' {
2468
margin-left: $marks_slider_margin;
2469
2470
background-position: calc(5px) center;
2471
2472
&:hover { background-position: calc(4px) center; }
2473
2474
&:active { background-position: calc(3px) center; }
2475
}
2476
2477
@if $marks_infix == 'marks-after' {
2478
margin-right: $marks_slider_margin;
2479
2480
background-position: calc(100% - 5px) center;
2481
2482
&:hover { background-position: calc(100% - 4px) center; }
2483
2484
&:active { background-position: calc(100% - 3px) center; }
2485
}
2486
}
2487
}
2488
2489
&.fine-tune slider {
2490
@if $dir_class == 'horizontal' {
2491
@if $marks_infix == 'marks-before' { background-position: center calc(100% - 6px); }
2492
2493
@if $marks_infix == 'marks-after' { background-position: center calc(6px); }
2494
}
2495
2496
@if $dir_class == 'vertical' {
2497
@if $marks_infix == 'marks-before' { background-position: calc(6px) center; }
2498
2499
@if $marks_infix == 'marks-after' { background-position: calc(100% - 6px) center; }
2500
}
2501
}
2502
}
2503
}
2504
}
2505
2506
&.color {
2507
min-height: 0;
2508
min-width: 0;
2509
2510
&.horizontal {
2511
padding: 0 0 12px 0;
2512
2513
slider {
2514
&:dir(ltr), &:dir(rtl) { // specificity bump
2515
margin-bottom: $color_slider_margin;
2516
margin-top: $color_marks_slider_margin;
2517
}
2518
}
2519
}
2520
2521
&.vertical {
2522
&:dir(ltr) {
2523
padding: 0 0 0 12px;
2524
2525
slider {
2526
margin-left: $color_slider_margin;
2527
margin-right: $color_marks_slider_margin;
2528
}
2529
}
2530
2531
&:dir(rtl) {
2532
padding: 0 12px 0 0;
2533
2534
slider {
2535
margin-right: $color_slider_margin;
2536
margin-left: $color_marks_slider_margin;
2537
}
2538
}
2539
}
2540
}
2541
}
2542
2543
2544
/*****************
2545
* Progress bars *
2546
*****************/
2547
progressbar {
2548
// sizing
2549
&.horizontal {
2550
trough,
2551
progress { min-height: $bar_size; }
2552
}
2553
2554
&.vertical {
2555
trough,
2556
progress { min-width: $bar_size; }
2557
}
2558
2559
// FIXME: insensitive state missing and some other state should be set probably
2560
color: $hint_fg_color;
2561
font-size: smaller;
2562
2563
trough { background-color: rgba($primary_color, $lower_opacity); }
2564
2565
progress { background-color: $primary_color; }
2566
2567
&.osd { // progressbar.osd used for epiphany page loading progress
2568
// min-width: $bar_size;
2569
// min-height: $bar_size;
2570
// background-color: transparent;
2571
2572
// trough { background-color: transparent; }
2573
2574
// progress { background-color: $primary_color; }
2575
}
2576
2577
trough.empty progress { all: unset; } // makes the progress indicator disappear, when the fraction is 0
2578
}
2579
2580
2581
/*************
2582
* Level Bar *
2583
*************/
2584
levelbar {
2585
block {
2586
min-width: $medium_size;
2587
min-height: $bar_size;
2588
}
2589
2590
&.vertical block {
2591
min-width: $bar_size;
2592
min-height: $medium_size;
2593
}
2594
2595
// imitate the entry style
2596
trough {
2597
padding: 2px;
2598
border-radius: 2px;
2599
box-shadow: $shadow_1;
2600
background-color: $base_color;
2601
2602
&:disabled { background-color: $alt_base_color; }
2603
}
2604
2605
&.horizontal.discrete {
2606
block { margin: 0 1px; }
2607
2608
trough { padding: 2px 1px; }
2609
}
2610
2611
&.vertical.discrete {
2612
block { margin: 1px 0; }
2613
2614
trough { padding: 1px 2px; }
2615
}
2616
2617
block {
2618
&.low { background-color: $warning_color; }
2619
2620
&.high,
2621
&:not(.empty) { background-color: $primary_color; }
2622
2623
&.full { background-color: $success_color; }
2624
2625
&.empty { background-color: $divider_color; }
2626
}
2627
}
2628
2629
2630
/****************
2631
* Print dialog *
2632
*****************/
2633
printdialog {
2634
paper {
2635
padding: 0;
2636
border: 1px solid $border_color;
2637
background-color: $base_color;
2638
color: $fg_color;
2639
}
2640
2641
.dialog-action-box { margin: 12px; }
2642
}
2643
2644
2645
/**********
2646
* Frames *
2647
**********/
2648
frame > border,
2649
.frame {
2650
margin: 0;
2651
padding: 0;
2652
border: 1px solid $border_color;
2653
border-radius: 0;
2654
box-shadow: none;
2655
2656
&.flat { border-style: none; }
2657
}
2658
2659
frame.flat > border { @extend .frame.flat; } // for backporting
2660
2661
actionbar > revealer > box {
2662
padding: $container_padding;
2663
border-top: 1px solid $border_color;
2664
2665
button:not(.suggested-action):not(.destructive-action):not(.server-list-button) { @extend %button_basic.flat; }
2666
}
2667
2668
scrolledwindow {
2669
viewport.frame { // avoid double borders when viewport inside scrolled window
2670
border-style: none;
2671
}
2672
2673
// This is used when content is touch-dragged past boundaries.
2674
// draws a box on top of the content, the size changes programmatically.
2675
@at-root overshoot {
2676
&.top { @include overshoot(top); }
2677
2678
&.bottom { @include overshoot(bottom); }
2679
2680
&.left { @include overshoot(left); }
2681
2682
&.right { @include overshoot(right); }
2683
}
2684
2685
// Overflow indication, works similarly to the overshoot, the size if fixed tho.
2686
@at-root undershoot {
2687
&.top { @include undershoot(top); }
2688
2689
&.bottom { @include undershoot(bottom); }
2690
2691
&.left { @include undershoot(left); }
2692
2693
&.right { @include undershoot(right); }
2694
}
2695
2696
@at-root junction { // the small square between two scrollbars
2697
border-style: solid none none solid;
2698
border-width: 1px;
2699
border-color: $border_color;
2700
background-color: $base_color;
2701
2702
&:dir(rtl) { border-style: solid solid none none; }
2703
}
2704
}
2705
2706
// vbox and hbox separators
2707
separator {
2708
min-width: 1px;
2709
min-height: 1px;
2710
background-color: $border_color;
2711
}
2712
2713
%hide_separators {
2714
min-width: 0;
2715
min-height: 0;
2716
background-color: transparent;
2717
}
2718
2719
2720
/*********
2721
* Lists *
2722
*********/
2723
list {
2724
border-color: $border_color;
2725
background-color: $base_color;
2726
2727
row { padding: 2px; }
2728
}
2729
2730
// FIXME
2731
$row_transition: $longer_transition, background-color 0, color 0;
2732
2733
row {
2734
&.activatable {
2735
transition: $row_transition,
2736
background-size $ripple_duration $deceleration_curve,
2737
background-image $ripple_duration * 2 $deceleration_curve;
2738
box-shadow: inset 0 0 0 9999px transparent;
2739
background-image: radial-gradient(circle farthest-corner at center,
2740
transparent 10%,
2741
transparent 0%);
2742
background-repeat: no-repeat;
2743
background-position: center;
2744
background-size: 1000% 1000%;
2745
2746
&:hover {
2747
transition: $row_transition,
2748
box-shadow 0,
2749
background-size $ripple_duration $deceleration_curve,
2750
background-image $ripple_duration * 2 $deceleration_curve;
2751
box-shadow: inset 0 0 0 9999px $row_fill_color;
2752
}
2753
2754
&.has-open-popup, // this is for indicathing which row generated a popover see https://bugzilla.gnome.org/show_bug.cgi?id=754411
2755
&:active {
2756
transition: $row_transition,
2757
background-size 0,
2758
background-image 0;
2759
animation: ripple_effect $longer_duration $deceleration_curve forwards;
2760
box-shadow: inset 0 0 0 9999px $semi_fill_color;
2761
background-image: radial-gradient(circle farthest-corner at center,
2762
$semi_fill_color 10%,
2763
transparent 0%);
2764
background-size: 0% 0%;
2765
}
2766
}
2767
2768
&:selected { @extend %selected_items; }
2769
}
2770
2771
2772
/*********************
2773
* App Notifications *
2774
*********************/
2775
.app-notification {
2776
@extend %osd;
2777
2778
@extend toolbar.osd;
2779
2780
margin: 8px;
2781
2782
button { @extend %button_basic.flat; }
2783
2784
&.frame,
2785
border { border-style: none; }
2786
}
2787
2788
2789
/*************
2790
* Expanders *
2791
*************/
2792
expander {
2793
arrow {
2794
transition: all $shorter_duration $standard_curve;
2795
min-width: 16px;
2796
min-height: 16px;
2797
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
2798
-gtk-icon-transform: rotate(-90deg);
2799
2800
&:dir(rtl) { -gtk-icon-transform: rotate(90deg); }
2801
2802
&:checked { -gtk-icon-transform: unset; }
2803
2804
color: $secondary_fg_color;
2805
2806
&:hover, &:active { color: $fg_color; }
2807
2808
&:disabled { color: $disabled_secondary_fg_color; }
2809
2810
&:selected {
2811
color: $inverse_secondary_fg_color;
2812
2813
&:hover, &:active { color: $inverse_fg_color; }
2814
2815
&:disabled { color: $inverse_disabled_secondary_fg_color; }
2816
}
2817
}
2818
}
2819
2820
2821
/************
2822
* Calendar *
2823
************/
2824
calendar {
2825
padding: 1px;
2826
border: 1px solid $border_color;
2827
color: $fg_color;
2828
2829
&:disabled { color: $disabled_fg_color; }
2830
2831
&:selected {
2832
@extend %selected_items;
2833
2834
border-radius: 2px + 1px;
2835
}
2836
2837
&.header {
2838
border-style: none none solid;
2839
border-radius: 0;
2840
}
2841
2842
&.button { @extend %simple_flat_button; }
2843
2844
&.highlight {
2845
color: $secondary_fg_color;
2846
font-weight: 500;
2847
}
2848
2849
&:indeterminate { color: $disabled_secondary_fg_color; }
2850
}
2851
2852
2853
/***********
2854
* Dialogs *
2855
***********/
2856
messagedialog { // Message Dialog styling
2857
&.background { background-color: $lighter_bg_color; }
2858
2859
.titlebar {
2860
min-height: $small_size;
2861
border-style: none;
2862
box-shadow: inset 0 1px $highlight_color;
2863
background-color: $lighter_bg_color;
2864
color: $fg_color;
2865
2866
&:backdrop { color: $secondary_fg_color; }
2867
}
2868
2869
&.csd { // rounded bottom border styling for csd version
2870
&.background {
2871
// bigger radius for better antialiasing
2872
border-bottom-left-radius: 2px;
2873
border-bottom-right-radius: 2px;
2874
}
2875
2876
.dialog-action-area button {
2877
padding: 8px 16px;
2878
border-top: 1px solid $border_color;
2879
border-radius: 0;
2880
2881
@extend %simple_flat_button;
2882
2883
&:first-child { border-bottom-left-radius: 2px; }
2884
2885
&:last-child { border-bottom-right-radius: 2px; }
2886
}
2887
}
2888
2889
entry { @extend %entry.flat; }
2890
}
2891
2892
filechooser {
2893
.dialog-action-box { border-top: 1px solid $border_color; }
2894
2895
#pathbarbox {
2896
border-bottom: 1px solid $border_color;
2897
background-color: $bg_color;
2898
}
2899
}
2900
2901
filechooserbutton:drop(active) {
2902
box-shadow: none;
2903
}
2904
2905
2906
/***********
2907
* Sidebar *
2908
***********/
2909
.sidebar {
2910
border-style: none;
2911
background-color: $lighter_bg_color;
2912
2913
@at-root %sidebar_left,
2914
&:dir(ltr),
2915
&.left,
2916
&.left:dir(rtl) {
2917
border-right: 1px solid $border_color;
2918
border-left-style: none;
2919
}
2920
2921
@at-root %sidebar_right,
2922
&:dir(rtl),
2923
&.right {
2924
border-left: 1px solid $border_color;
2925
border-right-style: none;
2926
}
2927
2928
list { background-color: transparent; }
2929
2930
paned & { &.left, &.right, &.left:dir(rtl), &:dir(rtl), &:dir(ltr), & { border-style: none; }}
2931
}
2932
2933
stacksidebar {
2934
&.sidebar {
2935
&:dir(ltr),
2936
&.left,
2937
&.left:dir(rtl) { list { @extend %sidebar_left; }}
2938
2939
&:dir(rtl),
2940
&.right { list { @extend %sidebar_right; }}
2941
}
2942
2943
row {
2944
padding: 10px 4px;
2945
2946
> label {
2947
padding-left: 6px;
2948
padding-right: 6px;
2949
}
2950
2951
&.needs-attention > label { @extend %needs_attention; }
2952
}
2953
}
2954
2955
2956
/****************
2957
* File chooser *
2958
****************/
2959
placessidebar {
2960
> viewport.frame { border-style: none; }
2961
2962
list { padding: (4px - 3px) 0 4px; }
2963
2964
row {
2965
// Needs overriding of the GtkListBoxRow padding
2966
min-height: 32px;
2967
margin: -1px 0; // Remove unknown margins
2968
padding: 0;
2969
2970
// Using margins/padding directly in the SidebarRow
2971
// will make the animation of the new bookmark row jump
2972
> revealer { padding: 0 12px; }
2973
2974
&:selected { color: $inverse_fg_color; }
2975
2976
&:disabled { color: $disabled_fg_color; }
2977
2978
image.sidebar-icon {
2979
color: $secondary_fg_color; // dim the device icons
2980
2981
&:dir(ltr) { padding-right: 8px; }
2982
&:dir(rtl) { padding-left: 8px; }
2983
}
2984
2985
&:selected image.sidebar-icon { color: $inverse_secondary_fg_color; }
2986
2987
label.sidebar-label {
2988
&:dir(ltr) { padding-right: 2px; }
2989
&:dir(rtl) { padding-left: 2px; }
2990
}
2991
2992
@at-root button.sidebar-button {
2993
@extend %simple_flat_button;
2994
2995
@extend %small_button;
2996
2997
row:selected & { @extend %button_selected.flat; }
2998
}
2999
3000
&.sidebar-placeholder-row {
3001
min-height: 2px;
3002
padding: 0 8px;
3003
background-image: image($accent_color);
3004
background-clip: content-box;
3005
}
3006
3007
&.sidebar-new-bookmark-row { color: $accent_color; }
3008
3009
&:drop(active):not(:disabled) {
3010
box-shadow: inset 0 0 0 2px $accent_color;
3011
3012
&:selected {
3013
// background-color: $accent_color;
3014
// color: $inverse_fg_color;
3015
}
3016
}
3017
}
3018
}
3019
3020
placesview {
3021
.server-list-button > image { -gtk-icon-transform: rotate(0turn); }
3022
3023
.server-list-button:checked > image { -gtk-icon-transform: rotate(-0.5turn); }
3024
3025
// this selects the "connect to server" label
3026
> actionbar > revealer > box > label {
3027
padding-left: 8px;
3028
padding-right: 8px;
3029
}
3030
}
3031
3032
3033
/*********
3034
* Paned *
3035
*********/
3036
paned {
3037
> separator {
3038
min-width: 1px;
3039
min-height: 1px;
3040
-gtk-icon-source: none; // defeats the ugly default handle decoration
3041
border-style: none; // just to be sure
3042
background-color: transparent;
3043
// workaround, using background istead of a border since the border will get rendered twice (?)
3044
background-image: image($border_color);
3045
background-size: 1px 1px;
3046
background-clip: content-box; // avoids borders image being rendered twice (?)
3047
3048
&.wide {
3049
min-width: 6px;
3050
min-height: 6px;
3051
background-color: $bg_color;
3052
background-image: image($border_color), image($border_color);
3053
background-size: 1px 1px, 1px 1px;
3054
}
3055
}
3056
3057
&.horizontal > separator {
3058
background-repeat: repeat-y;
3059
3060
&:dir(ltr) {
3061
margin: 0 -8px 0 0;
3062
padding: 0 8px 0 0;
3063
background-position: left;
3064
}
3065
3066
&:dir(rtl) {
3067
margin: 0 0 0 -8px;
3068
padding: 0 0 0 8px;
3069
background-position: right;
3070
}
3071
3072
&.wide {
3073
margin: 0;
3074
padding: 0;
3075
background-repeat: repeat-y, repeat-y;
3076
background-position: left, right;
3077
}
3078
}
3079
3080
&.vertical > separator {
3081
margin: 0 0 -8px 0;
3082
padding: 0 0 8px 0;
3083
background-repeat: repeat-x;
3084
background-position: top;
3085
3086
&.wide {
3087
margin: 0;
3088
padding: 0;
3089
background-repeat: repeat-x, repeat-x;
3090
background-position: bottom, top;
3091
}
3092
}
3093
}
3094
3095
3096
/**************
3097
* GtkInfoBar *
3098
**************/
3099
infobar {
3100
border-style: none;
3101
3102
&.info { background-color: $info_bg_color; }
3103
3104
&.question { background-color: $question_bg_color; }
3105
3106
&.warning { background-color: $warning_bg_color; }
3107
3108
&.error { background-color: $error_bg_color; }
3109
3110
&.info,
3111
&.question,
3112
&.warning,
3113
&.error {
3114
> label, & { color: $inverse_fg_color; }
3115
3116
button { @extend %button_selected; }
3117
3118
selection {}
3119
3120
*:link { @extend %link_selected; }
3121
}
3122
}
3123
3124
3125
/************
3126
* Tooltips *
3127
************/
3128
tooltip {
3129
&.background {
3130
// background-color needs to be set this way otherwise it gets drawn twice
3131
// see https://bugzilla.gnome.org/show_bug.cgi?id=736155 for details.
3132
box-shadow: inset 0 1px $highlight_color;
3133
background-color: rgba($base_color, $higher_opacity);
3134
}
3135
3136
// @extend %osd;
3137
3138
// padding: 4px; /* not working */
3139
border-radius: 2px;
3140
box-shadow: none; // otherwise it gets inherited by windowframe.csd
3141
3142
&:not(.csd):not(.unity-csd) {
3143
border: 1px solid $border_color;
3144
border-radius: 2px + 1px;
3145
background-clip: $extra_background_clip;
3146
}
3147
3148
// FIXME: we need a border or tooltips vanish on black background.
3149
decoration { background-color: transparent; }
3150
3151
label {
3152
// tooltip label already seems to have 6px margins
3153
min-height: 32px - 6px * 2;
3154
padding: 0 8px - 6px;
3155
}
3156
3157
* {
3158
// workaround for Eclipse.
3159
// do not include any declaration here.
3160
// padding: 0;
3161
// background-color: transparent;
3162
// color: inherit;
3163
}
3164
}
3165
3166
3167
/*****************
3168
* Color Chooser *
3169
*****************/
3170
colorswatch {
3171
// This widget is made of two boxes one on top of the other, the lower box is colorswatch {} the other one
3172
// is colorswatch overlay {}, colorswatch has the programmatically set background, so most of the style is
3173
// applied to the overlay box.
3174
3175
// base color corners rounding
3176
// to avoid the artifacts caused by rounded corner anti-aliasing the base color
3177
// sports a bigger radius.
3178
// nth-child is needed by the custom color strip.
3179
3180
&.top {
3181
border-top-left-radius: $material_radius + 0.5px;
3182
border-top-right-radius: $material_radius + 0.5px;
3183
3184
overlay {
3185
border-top-left-radius: $material_radius;
3186
border-top-right-radius: $material_radius;
3187
}
3188
}
3189
3190
&.bottom {
3191
border-bottom-left-radius: $material_radius + 0.5px;
3192
border-bottom-right-radius: $material_radius + 0.5px;
3193
3194
overlay {
3195
border-bottom-left-radius: $material_radius;
3196
border-bottom-right-radius: $material_radius;
3197
}
3198
}
3199
3200
&.left,
3201
&:first-child:not(.top) {
3202
border-top-left-radius: $material_radius + 0.5px;
3203
border-bottom-left-radius: $material_radius + 0.5px;
3204
3205
overlay {
3206
border-top-left-radius: $material_radius;
3207
border-bottom-left-radius: $material_radius;
3208
}
3209
}
3210
3211
&.right,
3212
&:last-child:not(.bottom) {
3213
border-top-right-radius: $material_radius + 0.5px;
3214
border-bottom-right-radius: $material_radius + 0.5px;
3215
3216
overlay {
3217
border-top-right-radius: $material_radius;
3218
border-bottom-right-radius: $material_radius;
3219
}
3220
}
3221
3222
&.dark overlay { color: $light_fg_color; }
3223
3224
&.light overlay { color: $dark_fg_color; }
3225
3226
&.dark { color: $light_fg_color; } // for focus ring
3227
3228
&.light { color: $dark_fg_color; } // for focus ring
3229
3230
&:drop(active) {
3231
box-shadow: none;
3232
3233
&.light overlay {
3234
box-shadow: $shadow_1, 0 0 0 2px $accent_color;
3235
}
3236
3237
&.dark overlay {
3238
box-shadow: $shadow_1, 0 0 0 2px $accent_color;
3239
}
3240
}
3241
3242
overlay {
3243
transition: $shadow_transition;
3244
box-shadow: $shadow_1;
3245
3246
&:hover { box-shadow: $shadow_2; }
3247
}
3248
3249
&#add-color-button {
3250
border-radius: $material_radius $material_radius 0 0;
3251
color: $light_fg_color; // for focus ring
3252
3253
&:only-child { border-radius: $material_radius; }
3254
3255
overlay {
3256
background-image: linear-gradient(to right,
3257
$error_bg_color 25%,
3258
$warning_bg_color 25%, $warning_bg_color 50%,
3259
$info_bg_color 50%, $info_bg_color 75%,
3260
$question_bg_color 75%);
3261
color: $light_fg_color;
3262
}
3263
}
3264
3265
&:disabled {
3266
opacity: $disabled_opacity;
3267
3268
overlay { box-shadow: none; }
3269
}
3270
3271
row:selected & {
3272
}
3273
3274
&#editor-color-sample {
3275
border-radius: $material_radius + 0.5px;
3276
3277
overlay { border-radius: $material_radius; }
3278
3279
// overlay:hover { box-shadow: $shadow_1; }
3280
}
3281
}
3282
3283
// colorscale popup
3284
colorchooser .popover.osd {
3285
transition: $shadow_transition;
3286
border-radius: 2px;
3287
box-shadow: $shadow_2, inset 0 1px $highlight_color;
3288
background-color: $base_color;
3289
3290
&:backdrop { box-shadow: $shadow_1, inset 0 1px $highlight_color; }
3291
3292
spinbutton:not(.vertical) { @extend %entry.flat; }
3293
}
3294
3295
3296
/********
3297
* Misc *
3298
********/
3299
// content view (grid/list)
3300
.content-view {
3301
background-color: $bg_color;
3302
3303
// &:hover { -gtk-icon-effect: highlight; }
3304
3305
rubberband, .rubberband { @extend rubberband; }
3306
}
3307
3308
.scale-popup {
3309
.osd & { @extend %osd; }
3310
3311
.osd & button.flat { // FIXME: quick hack, redo properly
3312
}
3313
3314
button { // +/- buttons on GtkVolumeButton popup
3315
}
3316
}
3317
3318
3319
/**********************
3320
* Window Decorations *
3321
**********************/
3322
decoration {
3323
transition: $shadow_transition;
3324
border-radius: 2px 2px 0 0;
3325
box-shadow: $shadow_4, 0 16px 16px transparent;
3326
3327
// FIXME rationalize shadows
3328
3329
// this is used for the resize cursor area
3330
margin: 8px;
3331
3332
&:backdrop {
3333
// the transparent shadow here is to enforce that the shadow extents don't
3334
// change when we go to backdrop, to prevent jumping windows.
3335
// The biggest shadow should be in the same order then in the active state
3336
// or the jumping will happen during the transition.
3337
box-shadow: $shadow_2, 0 16px 16px transparent;
3338
}
3339
3340
.maximized &,
3341
.fullscreen &,
3342
.tiled & { border-radius: 0; }
3343
3344
.popup & { box-shadow: none; }
3345
3346
// server-side decorations as used by mutter
3347
.ssd & { box-shadow: 0 3px 3px rgba(0, 0, 0, 0.16); } // just doing borders, wm draws actual shadows
3348
3349
.csd.popup & {
3350
border-radius: 2px;
3351
box-shadow: $shadow_2;
3352
}
3353
3354
tooltip.csd & {
3355
border-radius: 2px;
3356
box-shadow: $shadow_2;
3357
}
3358
3359
messagedialog.csd & {
3360
border-radius: 2px;
3361
// box-shadow: $shadow_4, 0 16px 16px transparent;
3362
3363
// &:backdrop { box-shadow: $shadow_2, 0 16px 16px transparent; }
3364
}
3365
3366
.solid-csd & {
3367
margin: 0;
3368
// padding: 4px;
3369
border-radius: 0;
3370
box-shadow: none;
3371
// box-shadow: inset 0 0 0 4px $titlebar_bg_color;
3372
background-color: $titlebar_bg_color;
3373
}
3374
}
3375
3376
// Window Close button
3377
button.titlebutton {
3378
// @extend %simple_flat_button;
3379
3380
@extend %circular_button;
3381
3382
.selection-mode & {
3383
}
3384
}
3385
3386
3387
// catch all extend :)
3388
3389
%selected_items {
3390
background-color: $primary_color;
3391
3392
@at-root %nobg_selected_items, & {
3393
color: $inverse_fg_color;
3394
3395
&:disabled { color: $inverse_disabled_fg_color; }
3396
}
3397
}
3398
3399
.monospace { font-family: monospace; }
3400
3401
3402
/**********************
3403
* Touch Copy & Paste *
3404
**********************/
3405
// touch selection handlebars for the Popover.osd above
3406
cursor-handle {
3407
border-radius: $circular_radius;
3408
background-color: $accent_color;
3409
background-image: none;
3410
3411
&.top:dir(ltr), &.bottom:dir(rtl) {
3412
padding-left: 6px;
3413
border-top-right-radius: 0;
3414
}
3415
3416
&.bottom:dir(ltr), &.top:dir(rtl) {
3417
padding-right: 6px;
3418
border-top-left-radius: 0;
3419
}
3420
3421
&.insertion-cursor:dir(ltr), &.insertion-cursor:dir(rtl) {
3422
-GtkWidget-text-handle-width: 24;
3423
-GtkWidget-text-handle-height: 30;
3424
3425
$_url: 'assets/scale-horz-marks-before-slider#{$asset_suffix}';
3426
-gtk-icon-source: -gtk-scaled(url('#{$_url}.png'),
3427
url('#{$_url}@2.png'));
3428
}
3429
}
3430
3431
.context-menu { font: initial; } // Decouple the font of context menus from their entry/textview
3432
3433
// shortcut window keys
3434
.keycap {
3435
min-width: 28px - 8px * 2;
3436
min-height: 28px - 2px;
3437
margin-top: 2px;
3438
padding-bottom: 2px;
3439
padding-left: 8px;
3440
padding-right: 8px;
3441
3442
border: solid 1px $border_color;
3443
border-radius: 2px + 1px;
3444
box-shadow: inset 0 -2px $border_color;
3445
background-color: $base_color;
3446
color: $fg_color;
3447
font-size: smaller;
3448
}
3449
3450
:not(decoration):not(window):drop(active) { // FIXME needs to be done widget by widget, this wildcard should really die
3451
transition: $longer_transition;
3452
box-shadow: $shadow_1, inset 0 0 0 2px $accent_color;
3453
caret-color: $accent_color;
3454
}
3455
3456
stackswitcher button.text-button { min-width: 100px; } // FIXME aggregate with buttons
3457
3458
stackswitcher button.circular,
3459
stackswitcher button.text-button.circular { // FIXME aggregate with buttons
3460
min-width: $medium_size;
3461
min-height: $medium_size;
3462
padding: 0;
3463
}
3464