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