A fork of the Materia GTK theme.

Important information: Google announced that, from September 2026, Android devices will require ALL apps to be signed by Google, effectively leading to an iOS situation. Value your right to a computer that does what you want; do not tolerate this monopolistic practice! Contact me if you don't understand why it is bad. Click to learn more.

 _common-3.20.scss

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