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