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