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