_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 $ripple-fade-in-duration $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.1ms 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.1ms $ripple-fade-in-duration, color $duration $ease-out;
1163
animation: ripple-on-headerbar $ripple-fade-in-duration $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
}
1720
1721
> header {
1722
border-width: 1px;
1723
border-color: $border;
1724
background-color: $background;
1725
background-clip: border-box;
1726
1727
&.top {
1728
border-bottom-style: solid;
1729
1730
> tabs {
1731
margin-bottom: -1px;
1732
1733
> tab {
1734
border-image: linear-gradient(to top, transparent 2px, transparent 2px) 2 / 0 0 2px;
1735
1736
&:checked { border-image-source: linear-gradient(to top, $primary 2px, $border 2px); }
1737
1738
&.reorderable-page { border-image-width: 0 1px 2px; }
1739
}
1740
}
1741
}
1742
1743
&.bottom {
1744
border-top-style: solid;
1745
1746
> tabs {
1747
margin-top: -1px;
1748
1749
> tab {
1750
border-image: linear-gradient(to bottom, transparent 2px, transparent 2px) 2 / 2px 0 0;
1751
1752
&:checked { border-image-source: linear-gradient(to bottom, $primary 2px, $border 2px); }
1753
1754
&.reorderable-page { border-image-width: 2px 1px 0; }
1755
}
1756
}
1757
}
1758
1759
&.left {
1760
border-right-style: solid;
1761
1762
> tabs {
1763
margin-right: -1px;
1764
1765
> tab {
1766
border-image: linear-gradient(to left, transparent 2px, transparent 2px) 2 / 0 2px 0 0;
1767
1768
&:checked { border-image-source: linear-gradient(to left, $primary 2px, $border 2px); }
1769
1770
&.reorderable-page { border-image-width: 1px 2px 1px 0; }
1771
}
1772
}
1773
}
1774
1775
&.right {
1776
border-left-style: solid;
1777
1778
> tabs {
1779
margin-left: -1px;
1780
1781
> tab {
1782
border-image: linear-gradient(to right, transparent 2px, transparent 2px) 2 / 0 0 0 2px;
1783
1784
&:checked { border-image-source: linear-gradient(to right, $primary 2px, $border 2px); }
1785
1786
&.reorderable-page { border-image-width: 1px 0 1px 2px; }
1787
}
1788
}
1789
}
1790
1791
&.top > tabs > arrow {
1792
@extend %notebook_vert_arrows;
1793
1794
border-top-style: none;
1795
}
1796
1797
&.bottom > tabs > arrow {
1798
@extend %notebook_vert_arrows;
1799
1800
border-bottom-style: none;
1801
}
1802
1803
@at-root %notebook_vert_arrows {
1804
padding-left: 4px;
1805
padding-right: 4px;
1806
1807
&.down {
1808
margin-left: -8px;
1809
-gtk-icon-source: -gtk-icontheme('pan-start-symbolic');
1810
}
1811
1812
&.up {
1813
margin-right: -8px;
1814
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
1815
}
1816
}
1817
1818
&.left > tabs > arrow {
1819
@extend %notebook_horz_arrows;
1820
1821
border-left-style: none;
1822
}
1823
1824
&.right > tabs > arrow {
1825
@extend %notebook_horz_arrows;
1826
1827
border-right-style: none;
1828
}
1829
1830
@at-root %notebook_horz_arrows {
1831
padding-top: 4px;
1832
padding-bottom: 4px;
1833
1834
&.down {
1835
margin-top: -8px;
1836
-gtk-icon-source: -gtk-icontheme('pan-up-symbolic');
1837
}
1838
1839
&.up {
1840
margin-bottom: -8px;
1841
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
1842
}
1843
}
1844
1845
> tabs > arrow {
1846
@extend %simple_flat_button;
1847
1848
min-height: 16px;
1849
min-width: 16px;
1850
border-radius: 0;
1851
}
1852
1853
tab {
1854
transition: $transition,
1855
background-size 0ms,
1856
background-image 0ms;
1857
min-height: $small-size;
1858
min-width: $small-size;
1859
padding: $container-padding 12px;
1860
1861
border-width: 1px; // for reorderable tabs
1862
border-color: transparent; //
1863
1864
outline: none;
1865
background-image: radial-gradient(circle, $primary 10%, transparent 0%);
1866
background-repeat: no-repeat;
1867
background-position: center;
1868
background-size: 0% 0%;
1869
background-clip: border-box;
1870
1871
color: $text-secondary;
1872
font-weight: 500;
1873
1874
&:hover {
1875
background-color: $overlay-hover;
1876
color: $text;
1877
}
1878
1879
&:disabled { color: $text-secondary-disabled; }
1880
1881
&:checked {
1882
transition: $transition,
1883
background-size $ripple-fade-in-duration $ease-out,
1884
background-image $ripple-fade-in-duration + $ripple-fade-out-duration $ease-out;
1885
background-color: transparent;
1886
background-image: radial-gradient(circle, transparent 10%, transparent 0%);
1887
background-size: 1000% 1000%;
1888
background-clip: padding-box;
1889
color: $text;
1890
1891
&:disabled { color: $text-disabled; }
1892
1893
&.reorderable-page {
1894
border-color: $border;
1895
background-color: $base;
1896
}
1897
}
1898
1899
// colors the button like the label, overridden otherwise
1900
button.flat {
1901
@extend %small_button;
1902
1903
&:last-child {
1904
margin-left: $container-padding;
1905
margin-right: $container-padding - 12px;
1906
}
1907
1908
&:first-child {
1909
margin-left: $container-padding - 12px;
1910
margin-right: $container-padding;
1911
}
1912
}
1913
}
1914
1915
&.top,
1916
&.bottom {
1917
tabs {
1918
padding-left: 8px;
1919
padding-right: 8px;
1920
1921
&:not(:only-child) {
1922
&:first-child { margin-left: 0; }
1923
1924
&:last-child { margin-right: 0; }
1925
}
1926
1927
tab.reorderable-page { border-style: none solid; }
1928
}
1929
}
1930
1931
&.left,
1932
&.right {
1933
tabs {
1934
padding-top: 8px;
1935
padding-bottom: 8px;
1936
1937
&:not(:only-child) {
1938
&:first-child { margin-top: 0; }
1939
1940
&:last-child { margin-bottom: 0; }
1941
}
1942
1943
tab.reorderable-page { border-style: solid none; }
1944
}
1945
}
1946
}
1947
1948
> stack:not(:only-child) { // the :not(:only-child) is for "hidden" notebooks
1949
background-color: $base;
1950
}
1951
}
1952
1953
1954
/**************
1955
* Scrollbars *
1956
**************/
1957
scrollbar {
1958
$_slider_min_length: 24px;
1959
1960
// disable steppers
1961
@at-root * {
1962
-GtkScrollbar-has-backward-stepper: false;
1963
-GtkScrollbar-has-forward-stepper: false;
1964
}
1965
1966
transition: $transition;
1967
background-color: $base;
1968
background-clip: $background-clip-extra;
1969
1970
// scrollbar border
1971
&.top { border-bottom: 1px solid $border; }
1972
&.bottom { border-top: 1px solid $border; }
1973
&.left { border-right: 1px solid $border; }
1974
&.right { border-left: 1px solid $border; }
1975
1976
// slider
1977
slider {
1978
transition: $transition, margin 0ms, border-width 0ms;
1979
min-width: 8px;
1980
min-height: 8px;
1981
border: 4px solid transparent;
1982
border-radius: $circular-radius;
1983
background-clip: padding-box;
1984
background-color: $text-disabled;
1985
1986
&:hover { background-color: $text-secondary; }
1987
1988
&:active { background-color: $text; }
1989
1990
&:disabled { background-color: $text-secondary-disabled; }
1991
}
1992
1993
&.fine-tune {
1994
slider {
1995
transition: $transition, margin 0ms, border-width 0ms, min-width 0ms, min-height 0ms;
1996
min-width: 4px;
1997
min-height: 4px;
1998
}
1999
2000
&.horizontal slider { margin: 2px 0; }
2001
2002
&.vertical slider { margin: 0 2px; }
2003
}
2004
2005
&.overlay-indicator {
2006
&:not(.dragging):not(.hovering) {
2007
border-color: transparent;
2008
background-color: transparent;
2009
2010
slider {
2011
min-width: 4px;
2012
min-height: 4px;
2013
margin: 4px - 1px;
2014
border: 1px solid rgba($base, 0.3);
2015
}
2016
2017
button {
2018
min-width: 4px;
2019
min-height: 4px;
2020
margin: 4px - 1px;
2021
border: 1px solid rgba($base, 0.3);
2022
border-radius: $circular-radius;
2023
background-color: $text-disabled;
2024
background-clip: padding-box;
2025
-gtk-icon-source: none;
2026
2027
&:disabled { background-color: $text-secondary-disabled; }
2028
}
2029
2030
&.horizontal {
2031
slider { min-width: $_slider_min_length; }
2032
2033
button { min-width: 8px; }
2034
}
2035
2036
&.vertical {
2037
slider { min-height: $_slider_min_length; }
2038
2039
button { min-height: 8px; }
2040
}
2041
}
2042
2043
&.dragging,
2044
&.hovering { background-color: rgba($base, 0.9); }
2045
}
2046
2047
&.horizontal slider { min-width: $_slider_min_length; }
2048
2049
&.vertical slider { min-height: $_slider_min_length; }
2050
2051
// button styling
2052
button {
2053
@extend %simple_flat_button;
2054
2055
min-width: 16px;
2056
min-height: 16px;
2057
padding: 0;
2058
border-radius: 0;
2059
}
2060
2061
// button icons
2062
&.vertical {
2063
button {
2064
&.down { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
2065
2066
&.up { -gtk-icon-source: -gtk-icontheme('pan-up-symbolic'); }
2067
}
2068
}
2069
2070
&.horizontal {
2071
button {
2072
&.down { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic'); }
2073
2074
&.up { -gtk-icon-source: -gtk-icontheme('pan-start-symbolic'); }
2075
}
2076
}
2077
}
2078
2079
2080
/**********
2081
* Switch *
2082
**********/
2083
switch {
2084
transition: all $duration $ease-out;
2085
margin: $container-padding 0;
2086
padding: 0 2px;
2087
border: 5px solid transparent;
2088
border-radius: $circular-radius;
2089
background-color: $track;
2090
background-clip: padding-box;
2091
font-size: 0;
2092
2093
&:checked { background-color: rgba($primary, 0.5); }
2094
2095
&:disabled { opacity: 0.5; }
2096
2097
// hide on/off icons for >=3.24.5
2098
image {
2099
margin: -8px;
2100
-gtk-icon-transform: scale(0);
2101
}
2102
2103
slider {
2104
transition: all $duration $ease-out;
2105
min-width: 20px;
2106
min-height: 20px;
2107
margin: -3px -2px;
2108
border-radius: $circular-radius;
2109
outline: none;
2110
box-shadow: 0 0 0 10px transparent, $shadow-1;
2111
background-color: $surface;
2112
}
2113
2114
&:focus slider { box-shadow: 0 0 0 10px $overlay-focus, $shadow-1; }
2115
2116
&:hover slider { box-shadow: 0 0 0 10px $overlay-hover, $shadow-1; }
2117
2118
&:focus:hover slider { box-shadow: 0 0 0 10px $overlay-focus-hover, $shadow-1; }
2119
2120
&:checked slider {
2121
background-color: $primary;
2122
color: $primary;
2123
}
2124
2125
row:selected & {
2126
}
2127
}
2128
2129
2130
/*************************
2131
* Check and Radio items *
2132
*************************/
2133
// draw regular check and radio items using our PNG assets
2134
// all assets are rendered from assets.svg. never add pngs directly
2135
2136
// selection-mode
2137
.view.content-view.check:not(list),
2138
.content-view .tile check:not(list) {
2139
min-height: 40px;
2140
min-width: 40px;
2141
margin: 0;
2142
padding: 0;
2143
box-shadow: none;
2144
background-color: transparent;
2145
background-image: none;
2146
-gtk-icon-shadow: $shadow-1;
2147
2148
&:hover, &:active { -gtk-icon-shadow: $shadow-2; }
2149
2150
@each $s, $as in ('', '-unchecked'),
2151
(':checked', '-checked') {
2152
&#{$s} {
2153
-gtk-icon-source: -gtk-scaled(url("assets/selectionmode-checkbox#{$as}#{$asset-suffix}.png"),
2154
url("assets/selectionmode-checkbox#{$as}#{$asset-suffix}@2.png"));
2155
}
2156
}
2157
}
2158
2159
checkbutton,
2160
radiobutton {
2161
outline: none;
2162
}
2163
2164
checkbutton.text-button,
2165
radiobutton.text-button {
2166
// this is for a nice focus on check and radios text
2167
padding: 2px;
2168
2169
label:not(:only-child) { margin: 0 4px; }
2170
}
2171
2172
$check_radio_size: 40px;
2173
2174
check,
2175
radio {
2176
min-height: 24px;
2177
min-width: 24px;
2178
margin: -($check_radio_size - 24px) / 2;
2179
padding: ($check_radio_size - 24px) / 2;
2180
2181
@extend %simple_flat_button;
2182
2183
@extend %circular_button;
2184
2185
&:checked, &:indeterminate {
2186
color: $primary;
2187
2188
&:disabled { color: $text-secondary-disabled; }
2189
}
2190
2191
// &:only-child { margin: -12px; }
2192
2193
popover modelbutton.flat & {
2194
&, &:focus, &:hover, &:focus:hover, &:active, &:disabled {
2195
transition: none; // FIXME: this is a workaround for a popover check/radio long transition issue
2196
box-shadow: none;
2197
background-image: none;
2198
}
2199
2200
&:not(:checked):not(:indeterminate):not(:disabled) { color: $text-secondary; }
2201
2202
&.left:dir(rtl) {
2203
margin-left: -12px;
2204
margin-right: -4px;
2205
}
2206
2207
&.right:dir(ltr) {
2208
margin-left: -4px;
2209
margin-right: -12px;
2210
}
2211
}
2212
2213
menu menuitem & {
2214
transition: none;
2215
margin: 0; // this is a workaround for a menu check/radio size allocation issue
2216
padding: 0;
2217
2218
&:dir(ltr) { margin-right: 8px; }
2219
2220
&:dir(rtl) { margin-left: 8px; }
2221
2222
&:not(:checked):not(:indeterminate):not(:disabled) { color: $text-secondary; }
2223
2224
&, &:hover, &:disabled {
2225
box-shadow: none;
2226
// color: inherit;
2227
}
2228
}
2229
}
2230
2231
%check,
2232
check {
2233
-gtk-icon-source: -gtk-recolor(url("assets/scalable/checkbox-unchecked-symbolic.svg"));
2234
2235
&:checked { -gtk-icon-source: -gtk-recolor(url("assets/scalable/checkbox-checked-symbolic.svg")); }
2236
2237
&:indeterminate { -gtk-icon-source: -gtk-recolor(url("assets/scalable/checkbox-mixed-symbolic.svg")); }
2238
}
2239
2240
%radio,
2241
radio {
2242
-gtk-icon-source: -gtk-recolor(url("assets/scalable/radio-unchecked-symbolic.svg"));
2243
2244
// &:checked { -gtk-icon-source: -gtk-recolor(url("assets/scalable/radio-checked-symbolic.svg")); }
2245
2246
&:indeterminate { -gtk-icon-source: -gtk-recolor(url("assets/scalable/radio-mixed-symbolic.svg")); }
2247
2248
border-image-slice: $check_radio_size / 2px;
2249
border-image-width: $check_radio_size / 2;
2250
2251
$radio_indicator: 10px / $check_radio_size / 2;
2252
2253
& {
2254
border-image-source: -gtk-gradient(radial,
2255
center center, 0,
2256
center center, 0.001,
2257
to($primary),
2258
to(transparent));
2259
}
2260
2261
&:checked:not(:indeterminate) {
2262
border-image-source: -gtk-gradient(radial,
2263
center center, 0,
2264
center center, $radio_indicator,
2265
to($primary),
2266
to(transparent));
2267
}
2268
2269
&:checked:not(:indeterminate):disabled {
2270
border-image-source: -gtk-gradient(radial,
2271
center center, 0,
2272
center center, $radio_indicator,
2273
to($text-secondary-disabled),
2274
to(transparent));
2275
}
2276
}
2277
2278
%small_check,
2279
menu menuitem check {
2280
& {
2281
min-height: 16px;
2282
min-width: 16px;
2283
border-radius: $corner-radius;
2284
-gtk-outline-radius: $corner-radius;
2285
-gtk-icon-source: -gtk-recolor(url("assets/scalable/small-checkbox-unchecked-symbolic.svg"));
2286
}
2287
2288
&:checked { -gtk-icon-source: -gtk-recolor(url("assets/scalable/small-checkbox-checked-symbolic.svg")); }
2289
2290
&:indeterminate { -gtk-icon-source: -gtk-recolor(url("assets/scalable/small-checkbox-mixed-symbolic.svg")); }
2291
}
2292
2293
%small_radio,
2294
menu menuitem radio {
2295
& {
2296
min-height: 16px;
2297
min-width: 16px;
2298
border-image: none;
2299
-gtk-icon-source: -gtk-recolor(url("assets/scalable/small-radio-unchecked-symbolic.svg"));
2300
}
2301
2302
&:checked { -gtk-icon-source: -gtk-recolor(url("assets/scalable/small-radio-checked-symbolic.svg")); }
2303
2304
&:indeterminate { -gtk-icon-source: -gtk-recolor(url("assets/scalable/small-radio-mixed-symbolic.svg")); }
2305
}
2306
2307
// ANIMATION:
2308
// this is made with those pretty convoluted transitions, since checks and radios have to animate only on state changes,
2309
// the transformation is set on the active state and it get reset on the checked state.
2310
// radio:not(:checked):active { -gtk-icon-transform: scale(0); }
2311
2312
treeview.view check,
2313
treeview.view radio {
2314
padding: 0;
2315
2316
&:hover, &:selected {
2317
box-shadow: none;
2318
background-color: transparent;
2319
}
2320
2321
& {
2322
color: $text-secondary;
2323
2324
&:hover, &:active { color: $text; }
2325
2326
&:disabled { color: $text-secondary-disabled; }
2327
2328
&:checked, &:indeterminate { color: $primary; }
2329
2330
&:checked:disabled, &:indeterminate:disabled { color: $text-secondary-disabled; }
2331
}
2332
}
2333
2334
treeview.view radio:checked {
2335
-gtk-icon-source: -gtk-recolor(url("assets/scalable/radio-checked-symbolic.svg"));
2336
border-image: none;
2337
}
2338
2339
2340
/************
2341
* GtkScale *
2342
************/
2343
scale {
2344
// sizing
2345
$_marks_length: 8px;
2346
$_marks_distance: 7px;
2347
2348
$trough_size: 2px;
2349
$finetune_trough_size: 4px;
2350
2351
$slider_size: 32px;
2352
2353
$slider_margin: -($slider_size - $trough_size) / 2;
2354
$finetune_slider_margin: -($slider_size - $finetune_trough_size) / 2;
2355
2356
$color_slider_margin: -($slider_size) * 3 / 4;
2357
$color_marks_slider_margin: -($slider_size - 16px) - $color_slider_margin;
2358
2359
min-height: $trough_size;
2360
min-width: $trough_size;
2361
2362
&.horizontal { padding: ($medium-size - $trough_size) / 2 12px; }
2363
2364
&.vertical { padding: 12px ($medium-size - $trough_size) / 2; }
2365
2366
// the slider is inside the trough, so to have make it bigger there's a negative margin
2367
slider {
2368
min-height: $slider_size;
2369
min-width: $slider_size;
2370
margin: $slider_margin;
2371
}
2372
2373
// click-and-hold the slider to activate
2374
&.fine-tune {
2375
&.horizontal {
2376
min-height: $finetune_trough_size;
2377
padding-top: ($medium-size - $finetune_trough_size) / 2;
2378
padding-bottom: ($medium-size - $finetune_trough_size) / 2;
2379
}
2380
2381
&.vertical {
2382
min-width: $finetune_trough_size;
2383
padding-left: ($medium-size - $finetune_trough_size) / 2;
2384
padding-right: ($medium-size - $finetune_trough_size) / 2;
2385
}
2386
2387
// to make the trough grow in fine-tune mode
2388
slider { margin: $finetune_slider_margin; }
2389
}
2390
2391
// the backing bit
2392
trough {
2393
transition: background-color $duration $ease-out;
2394
outline: none;
2395
background-color: $track;
2396
2397
&:disabled { background-color: $divider; }
2398
}
2399
2400
// the colored part of the backing bit
2401
highlight {
2402
transition: background-color $duration $ease-out;
2403
background-color: $primary;
2404
2405
&:disabled { background-color: transparent; }
2406
}
2407
2408
// this is another differently styled part of the backing bit, the most relevant use case is for example
2409
// in media player to indicate how much video stream as been cached
2410
fill {
2411
transition: background-color $duration $ease-out;
2412
background-color: $track;
2413
2414
&:disabled { background-color: transparent; }
2415
}
2416
2417
slider {
2418
transition: background-color $duration $ease-out,
2419
background-size $ripple-fade-out-duration $ease-out,
2420
background-image $ripple-fade-out-opacity-duration $ease-out;
2421
background-repeat: no-repeat;
2422
background-position: center;
2423
background-size: auto, 1000% 1000%;
2424
border-radius: 50%;
2425
color: $primary;
2426
2427
@each $s, $as in ('', ''),
2428
(':disabled', '-disabled') {
2429
&#{$s} {
2430
$_url: 'assets/scale-slider#{$as}#{$asset-suffix}';
2431
2432
background-image: -gtk-scaled(url('#{$_url}.png'), url('#{$_url}@2.png')),
2433
radial-gradient(circle, transparent 10%, transparent 0%);
2434
}
2435
}
2436
2437
&:focus { background-color: $overlay-focus; }
2438
2439
&:hover { background-color: $overlay-hover; }
2440
2441
&:focus:hover { background-color: $overlay-focus-hover; }
2442
2443
&:active {
2444
$_url: 'assets/scale-slider#{$asset-suffix}';
2445
2446
transition: background-color $duration $ease-out,
2447
background-size 0ms,
2448
background-image 0ms;
2449
animation: ripple-on-slider $ripple-fade-in-duration $ease-out forwards;
2450
background-color: $overlay-hover;
2451
background-image: -gtk-scaled(url('#{$_url}.png'), url('#{$_url}@2.png')),
2452
radial-gradient(circle, $overlay-active 10%, transparent 0%);
2453
background-size: auto, 0% 0%;
2454
}
2455
}
2456
2457
marks label,
2458
value { color: $text-secondary; }
2459
2460
marks {
2461
color: $track;
2462
2463
@each $marks_class, $marks_pos, $marks_margin in (top, top, bottom),
2464
(bottom, bottom, top),
2465
(left, left, right),
2466
(right, right, left) {
2467
&.#{$marks_class} {
2468
margin-#{$marks_margin}: $_marks_distance;
2469
margin-#{$marks_pos}: -($_marks_distance + $_marks_length);
2470
}
2471
}
2472
}
2473
2474
&.fine-tune marks {
2475
@each $marks_class, $marks_pos, $marks_margin in (top, top, bottom),
2476
(bottom, bottom, top),
2477
(left, left, right),
2478
(right, right, left) {
2479
&.#{$marks_class} {
2480
margin-#{$marks_margin}: $_marks_distance - 1px;
2481
margin-#{$marks_pos}: -($_marks_distance + $_marks_length - 1px);
2482
}
2483
}
2484
}
2485
2486
&.horizontal {
2487
indicator {
2488
min-height: $_marks_length;
2489
min-width: 1px;
2490
}
2491
}
2492
2493
&.vertical {
2494
indicator {
2495
min-height: 1px;
2496
min-width: $_marks_length;
2497
}
2498
}
2499
2500
// *WARNING* scale with marks madness following
2501
2502
@each $dir_class, $dir_infix in ('horizontal', 'horz'),
2503
('vertical', 'vert') {
2504
@each $marks_infix, $marks_class in ('marks-before', 'marks-before:not(.marks-after)'),
2505
('marks-after', 'marks-after:not(.marks-before)') {
2506
&.#{$dir_class}.#{$marks_class} {
2507
slider {
2508
@each $state, $state_infix in ('', ''),
2509
(':disabled', '-disabled') {
2510
&#{$state} {
2511
$_scale_asset: 'assets/scale-#{$dir_infix}-#{$marks_infix}-slider#{$state_infix}#{$asset-suffix}';
2512
2513
background-image: -gtk-scaled(url('#{$_scale_asset}.png'), url('#{$_scale_asset}@2.png')),
2514
radial-gradient(circle, transparent 10%, transparent 0%);
2515
}
2516
}
2517
2518
&:active {
2519
$_scale_asset: 'assets/scale-#{$dir_infix}-#{$marks_infix}-slider#{$asset-suffix}';
2520
2521
background-image: -gtk-scaled(url('#{$_scale_asset}.png'), url('#{$_scale_asset}@2.png')),
2522
radial-gradient(circle, $overlay-active 10%, transparent 0%);
2523
}
2524
}
2525
}
2526
}
2527
}
2528
2529
&.color {
2530
min-height: 0;
2531
min-width: 0;
2532
2533
&.horizontal {
2534
padding: 0 0 12px 0;
2535
2536
slider {
2537
&:dir(ltr), &:dir(rtl) { // specificity bump
2538
margin-bottom: $color_slider_margin;
2539
margin-top: $color_marks_slider_margin;
2540
}
2541
}
2542
}
2543
2544
&.vertical {
2545
&:dir(ltr) {
2546
padding: 0 0 0 12px;
2547
2548
slider {
2549
margin-left: $color_slider_margin;
2550
margin-right: $color_marks_slider_margin;
2551
}
2552
}
2553
2554
&:dir(rtl) {
2555
padding: 0 12px 0 0;
2556
2557
slider {
2558
margin-right: $color_slider_margin;
2559
margin-left: $color_marks_slider_margin;
2560
}
2561
}
2562
}
2563
}
2564
}
2565
2566
2567
/*****************
2568
* Progress bars *
2569
*****************/
2570
progressbar {
2571
// sizing
2572
&.horizontal {
2573
trough,
2574
progress { min-height: $bar-size; }
2575
}
2576
2577
&.vertical {
2578
trough,
2579
progress { min-width: $bar-size; }
2580
}
2581
2582
// FIXME: insensitive state missing and some other state should be set probably
2583
color: $text-secondary;
2584
font-size: smaller;
2585
2586
trough { background-color: $divider; }
2587
2588
progress { background-color: $primary; }
2589
2590
&.osd { // progressbar.osd used for epiphany page loading progress
2591
// min-width: $bar-size;
2592
// min-height: $bar-size;
2593
// background-color: transparent;
2594
2595
// trough { background-color: transparent; }
2596
2597
// progress { background-color: $primary; }
2598
}
2599
2600
trough.empty progress { all: unset; } // makes the progress indicator disappear, when the fraction is 0
2601
}
2602
2603
2604
/*************
2605
* Level Bar *
2606
*************/
2607
levelbar {
2608
&.horizontal {
2609
block { min-height: $bar-size; }
2610
2611
&.discrete block {
2612
min-width: $medium-size;
2613
2614
&:not(:last-child) { margin-right: 2px; }
2615
}
2616
}
2617
2618
&.vertical {
2619
block { min-width: $bar-size; }
2620
2621
&.discrete block {
2622
min-height: $medium-size;
2623
2624
&:not(:last-child) { margin-bottom: 2px; }
2625
}
2626
}
2627
2628
// imitate the entry style
2629
trough {
2630
// padding: 2px;
2631
// border-radius: $corner-radius;
2632
// box-shadow: $shadow-1;
2633
// background-color: $base;
2634
2635
// &:disabled { background-color: $base-alt; }
2636
}
2637
2638
block {
2639
&.low { background-color: $warning; }
2640
2641
&.high,
2642
&:not(.empty) { background-color: $primary; }
2643
2644
&.full { background-color: $success; }
2645
2646
&.empty { background-color: $divider; }
2647
}
2648
}
2649
2650
2651
/****************
2652
* Print dialog *
2653
*****************/
2654
printdialog {
2655
paper {
2656
padding: 0;
2657
border: 1px solid $border;
2658
background-color: $base;
2659
color: $text;
2660
}
2661
2662
.dialog-action-box { margin: 12px; }
2663
}
2664
2665
2666
/**********
2667
* Frames *
2668
**********/
2669
frame > border,
2670
.frame {
2671
margin: 0;
2672
padding: 0;
2673
border: 1px solid $border;
2674
border-radius: 0;
2675
box-shadow: none;
2676
2677
&.flat { border-style: none; }
2678
}
2679
2680
frame.flat > border { @extend .frame.flat; } // for backward compatibility
2681
2682
actionbar > revealer > box {
2683
padding: $container-padding;
2684
border-top: 1px solid $border;
2685
2686
button:not(.suggested-action):not(.destructive-action):not(.server-list-button) { @extend %button_basic.flat; }
2687
}
2688
2689
scrolledwindow {
2690
viewport.frame { // avoid double borders when viewport inside scrolled window
2691
border-style: none;
2692
}
2693
2694
// This is used when content is touch-dragged past boundaries.
2695
// draws a box on top of the content, the size changes programmatically.
2696
@at-root overshoot {
2697
&.top { @include overshoot(top); }
2698
2699
&.bottom { @include overshoot(bottom); }
2700
2701
&.left { @include overshoot(left); }
2702
2703
&.right { @include overshoot(right); }
2704
}
2705
2706
// Overflow indication, works similarly to the overshoot, the size if fixed tho.
2707
@at-root undershoot {
2708
&.top { @include undershoot(top); }
2709
2710
&.bottom { @include undershoot(bottom); }
2711
2712
&.left { @include undershoot(left); }
2713
2714
&.right { @include undershoot(right); }
2715
}
2716
2717
@at-root junction { // the small square between two scrollbars
2718
border-style: solid none none solid;
2719
border-width: 1px;
2720
border-color: $border;
2721
background-color: $base;
2722
2723
&:dir(rtl) { border-style: solid solid none none; }
2724
}
2725
}
2726
2727
// vbox and hbox separators
2728
separator {
2729
min-width: 1px;
2730
min-height: 1px;
2731
background-color: $border;
2732
}
2733
2734
%hide_separators {
2735
min-width: 0;
2736
min-height: 0;
2737
background-color: transparent;
2738
}
2739
2740
2741
/*********
2742
* Lists *
2743
*********/
2744
list {
2745
border-color: $border;
2746
background-color: $base;
2747
2748
row { padding: 2px; }
2749
}
2750
2751
row {
2752
&.activatable {
2753
transition: $transition,
2754
background-size $ripple-fade-out-duration $ease-out,
2755
background-image $ripple-fade-out-opacity-duration $ease-out;
2756
outline: none;
2757
box-shadow: inset 0 0 0 9999px transparent;
2758
background-image: radial-gradient(circle, transparent 10%, transparent 0%);
2759
background-repeat: no-repeat;
2760
background-position: center;
2761
background-size: 1000% 1000%;
2762
2763
&:focus {
2764
box-shadow: inset 0 0 0 9999px $overlay-focus;
2765
}
2766
2767
&:hover {
2768
transition: $transition,
2769
box-shadow 0ms,
2770
background-size $ripple-fade-out-duration $ease-out,
2771
background-image $ripple-fade-out-opacity-duration $ease-out;
2772
box-shadow: inset 0 0 0 9999px $overlay-hover;
2773
}
2774
2775
&.has-open-popup, // this is for indicathing which row generated a popover see https://bugzilla.gnome.org/show_bug.cgi?id=754411
2776
&:active {
2777
transition: $transition,
2778
background-size 0ms,
2779
background-image 0ms;
2780
animation: ripple $ripple-fade-in-duration $ease-out forwards;
2781
box-shadow: inset 0 0 0 9999px $overlay-hover;
2782
background-image: radial-gradient(circle, $overlay-active 10%, transparent 0%);
2783
background-size: 0% 0%;
2784
}
2785
}
2786
2787
&:selected {
2788
@extend %selected_items;
2789
color: $primary; // for overlays
2790
2791
image,
2792
label { color: $text; }
2793
2794
button image,
2795
button label { color: inherit; }
2796
2797
&:disabled {
2798
image,
2799
label { color: $text-disabled; }
2800
}
2801
}
2802
}
2803
2804
2805
/*********************
2806
* App Notifications *
2807
*********************/
2808
.app-notification {
2809
// @extend %osd;
2810
2811
@extend toolbar.osd;
2812
2813
margin: 8px;
2814
2815
button { @extend %button_basic.flat; }
2816
2817
&.frame,
2818
border { border-style: none; }
2819
}
2820
2821
2822
/*************
2823
* Expanders *
2824
*************/
2825
expander {
2826
title > arrow {
2827
transition: all $duration $ease-out;
2828
min-width: 16px;
2829
min-height: 16px;
2830
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
2831
-gtk-icon-transform: rotate(-90deg);
2832
2833
&:dir(rtl) { -gtk-icon-transform: rotate(90deg); }
2834
2835
&:checked { -gtk-icon-transform: unset; }
2836
2837
color: $text-secondary;
2838
2839
&:hover, &:active { color: $text; }
2840
2841
&:disabled { color: $text-secondary-disabled; }
2842
}
2843
}
2844
2845
2846
/************
2847
* Calendar *
2848
************/
2849
calendar {
2850
padding: 1px;
2851
border: 1px solid $border;
2852
color: $text;
2853
2854
&:disabled { color: $text-disabled; }
2855
2856
&:selected {
2857
@extend %selected_items;
2858
2859
border-radius: $corner-radius + 1px;
2860
}
2861
2862
&.header {
2863
border-style: none none solid;
2864
border-radius: 0;
2865
}
2866
2867
&.button { @extend %simple_flat_button; }
2868
2869
&.highlight {
2870
color: $text-secondary;
2871
font-weight: 500;
2872
}
2873
2874
&:indeterminate { color: $text-secondary-disabled; }
2875
}
2876
2877
2878
/***********
2879
* Dialogs *
2880
***********/
2881
messagedialog { // Message Dialog styling
2882
&.background { background-color: $surface; }
2883
2884
.titlebar {
2885
min-height: $small-size;
2886
border-style: none;
2887
box-shadow: inset 0 1px highlight($surface);
2888
background-color: $surface;
2889
color: $text;
2890
2891
&:backdrop { color: $text-secondary; }
2892
}
2893
2894
&.csd { // rounded bottom border styling for csd version
2895
&.background {
2896
// bigger radius for better antialiasing
2897
border-bottom-left-radius: $corner-radius;
2898
border-bottom-right-radius: $corner-radius;
2899
}
2900
2901
.dialog-action-area {
2902
margin-top: -$container-padding;
2903
padding: $container-padding;
2904
2905
button {
2906
@extend %simple_flat_button;
2907
border-radius: $corner-radius;
2908
2909
&:not(:last-child) { margin-right: $container-padding; }
2910
2911
&.suggested-action:not(:disabled) { color: $suggested; }
2912
2913
&.destructive-action:not(:disabled) { color: $destructive; }
2914
}
2915
}
2916
}
2917
}
2918
2919
filechooser {
2920
.dialog-action-box { border-top: 1px solid $border; }
2921
2922
#pathbarbox {
2923
border-bottom: 1px solid $border;
2924
background-color: $background;
2925
2926
> stack > box > button { // The new folder button
2927
@extend %button_basic.flat;
2928
@extend %circular_button;
2929
}
2930
}
2931
}
2932
2933
filechooserbutton:drop(active) {
2934
box-shadow: none;
2935
}
2936
2937
2938
/***********
2939
* Sidebar *
2940
***********/
2941
.sidebar {
2942
border-style: none;
2943
background-color: $base-alt;
2944
2945
&:not(separator) {
2946
@at-root %sidebar_left,
2947
&:dir(ltr),
2948
&.left,
2949
&.left:dir(rtl) {
2950
border-right: 1px solid $border;
2951
border-left-style: none;
2952
}
2953
2954
@at-root %sidebar_right,
2955
&:dir(rtl),
2956
&.right {
2957
border-left: 1px solid $border;
2958
border-right-style: none;
2959
}
2960
}
2961
2962
list { background-color: transparent; }
2963
2964
paned & { &.left, &.right, &.left:dir(rtl), &:dir(rtl), &:dir(ltr), & { border-style: none; }}
2965
}
2966
2967
stacksidebar {
2968
&.sidebar {
2969
&:dir(ltr),
2970
&.left,
2971
&.left:dir(rtl) { list { @extend %sidebar_left; }}
2972
2973
&:dir(rtl),
2974
&.right { list { @extend %sidebar_right; }}
2975
}
2976
2977
row {
2978
padding: 10px 4px;
2979
2980
> label {
2981
padding-left: 6px;
2982
padding-right: 6px;
2983
}
2984
2985
&.needs-attention > label { @extend %needs-attention; }
2986
}
2987
}
2988
2989
separator.sidebar {
2990
background-color: $border;
2991
2992
&.selection-mode,
2993
.selection-mode & {
2994
// background-color: $border;
2995
}
2996
}
2997
2998
2999
/****************
3000
* File chooser *
3001
****************/
3002
// dim the sidebar icons, see bug #786613 for details on this oddity
3003
row {
3004
image.sidebar-icon { color: $text-secondary; }
3005
}
3006
3007
placessidebar {
3008
> viewport.frame { border-style: none; }
3009
3010
list { padding: (4px - 3px) 0 4px; }
3011
3012
row {
3013
// Needs overriding of the GtkListBoxRow padding
3014
min-height: 32px;
3015
margin: -1px 4px; // Remove unwanted hard-coded vertical margins with -1px
3016
padding: 0;
3017
border-radius: $corner-radius;
3018
3019
// Using margins/padding directly in the SidebarRow
3020
// will make the animation of the new bookmark row jump
3021
> revealer { padding: 0 8px; }
3022
3023
&:selected { font-weight: 500; }
3024
3025
&:disabled { color: $text-disabled; }
3026
3027
image.sidebar-icon {
3028
&:dir(ltr) { padding-right: 8px; }
3029
&:dir(rtl) { padding-left: 8px; }
3030
}
3031
3032
label.sidebar-label {
3033
&:dir(ltr) { padding-right: 2px; }
3034
&:dir(rtl) { padding-left: 2px; }
3035
}
3036
3037
&:selected image.sidebar-icon,
3038
&:selected label.sidebar-label { color: inherit; }
3039
3040
@at-root button.sidebar-button {
3041
@extend %simple_flat_button;
3042
@extend %small_button;
3043
}
3044
3045
&.sidebar-placeholder-row {
3046
min-height: 2px;
3047
padding: 0 8px;
3048
background-image: image($primary);
3049
background-clip: content-box;
3050
}
3051
3052
&.sidebar-new-bookmark-row { color: $primary; }
3053
3054
&:drop(active):not(:disabled) {
3055
box-shadow: inset 0 0 0 2px $primary;
3056
}
3057
}
3058
}
3059
3060
placesview {
3061
.server-list-button > image { -gtk-icon-transform: rotate(0turn); }
3062
3063
.server-list-button:checked > image { -gtk-icon-transform: rotate(-0.5turn); }
3064
3065
// this selects the "connect to server" label
3066
> actionbar > revealer > box > label {
3067
padding-left: 8px;
3068
padding-right: 8px;
3069
}
3070
}
3071
3072
3073
/*********
3074
* Paned *
3075
*********/
3076
paned {
3077
> separator {
3078
min-width: 1px;
3079
min-height: 1px;
3080
-gtk-icon-source: none; // defeats the ugly default handle decoration
3081
border-style: none; // just to be sure
3082
background-color: transparent;
3083
// workaround, using background istead of a border since the border will get rendered twice (?)
3084
background-image: image($border);
3085
background-size: 1px 1px;
3086
background-clip: content-box; // avoids borders image being rendered twice (?)
3087
3088
&.wide {
3089
min-width: 6px;
3090
min-height: 6px;
3091
background-color: $background;
3092
background-image: image($border), image($border);
3093
background-size: 1px 1px, 1px 1px;
3094
}
3095
}
3096
3097
&.horizontal > separator {
3098
background-repeat: repeat-y;
3099
3100
&:dir(ltr) {
3101
margin: 0 -8px 0 0;
3102
padding: 0 8px 0 0;
3103
background-position: left;
3104
}
3105
3106
&:dir(rtl) {
3107
margin: 0 0 0 -8px;
3108
padding: 0 0 0 8px;
3109
background-position: right;
3110
}
3111
3112
&.wide {
3113
margin: 0;
3114
padding: 0;
3115
background-repeat: repeat-y, repeat-y;
3116
background-position: left, right;
3117
}
3118
}
3119
3120
&.vertical > separator {
3121
margin: 0 0 -8px 0;
3122
padding: 0 0 8px 0;
3123
background-repeat: repeat-x;
3124
background-position: top;
3125
3126
&.wide {
3127
margin: 0;
3128
padding: 0;
3129
background-repeat: repeat-x, repeat-x;
3130
background-position: bottom, top;
3131
}
3132
}
3133
}
3134
3135
3136
/**************
3137
* GtkInfoBar *
3138
**************/
3139
infobar {
3140
border-style: none;
3141
3142
&.info { background-color: $infobar-info; }
3143
3144
&.question { background-color: $infobar-question; }
3145
3146
&.warning { background-color: $infobar-warning; }
3147
3148
&.error { background-color: $infobar-error; }
3149
3150
&.info,
3151
&.question,
3152
&.warning,
3153
&.error {
3154
> label, & { color: on(dark); }
3155
3156
button { @extend %button_selected; }
3157
3158
selection {}
3159
3160
*:link { color: on(dark); }
3161
}
3162
}
3163
3164
3165
/************
3166
* Tooltips *
3167
************/
3168
tooltip {
3169
&.background {
3170
// background-color needs to be set this way otherwise it gets drawn twice
3171
// see https://bugzilla.gnome.org/show_bug.cgi?id=736155 for details.
3172
background-color: $tooltip;
3173
color: on($tooltip);
3174
}
3175
3176
// padding: 4px; /* not working */
3177
border-radius: $corner-radius;
3178
box-shadow: none; // otherwise it gets inherited by windowframe.csd
3179
3180
&:not(.csd):not(.unity-csd) {
3181
// border: 1px solid $border;
3182
// border-radius: $corner-radius + 1px;
3183
// background-clip: $background-clip-extra;
3184
}
3185
3186
// FIXME: we need a border or tooltips vanish on black background.
3187
decoration { background-color: transparent; }
3188
3189
> box {
3190
margin: -6px; // Remove hard-coded 6px padding
3191
min-height: 32px - 4px * 2;
3192
padding: 4px 8px;
3193
}
3194
3195
* {
3196
// workaround for Eclipse.
3197
// do not include any declaration here.
3198
// padding: 0;
3199
// background-color: transparent;
3200
// color: inherit;
3201
}
3202
}
3203
3204
3205
/*****************
3206
* Color Chooser *
3207
*****************/
3208
colorswatch {
3209
// This widget is made of two boxes one on top of the other, the lower box is colorswatch {} the other one
3210
// is colorswatch overlay {}, colorswatch has the programmatically set background, so most of the style is
3211
// applied to the overlay box.
3212
3213
// base color corners rounding
3214
// to avoid the artifacts caused by rounded corner anti-aliasing the base color
3215
// sports a bigger radius.
3216
// nth-child is needed by the custom color strip.
3217
3218
&.top {
3219
border-top-left-radius: $corner-radius + 0.5px;
3220
border-top-right-radius: $corner-radius + 0.5px;
3221
3222
overlay {
3223
border-top-left-radius: $corner-radius;
3224
border-top-right-radius: $corner-radius;
3225
}
3226
}
3227
3228
&.bottom {
3229
border-bottom-left-radius: $corner-radius + 0.5px;
3230
border-bottom-right-radius: $corner-radius + 0.5px;
3231
3232
overlay {
3233
border-bottom-left-radius: $corner-radius;
3234
border-bottom-right-radius: $corner-radius;
3235
}
3236
}
3237
3238
&.left,
3239
&:first-child:not(.top) {
3240
border-top-left-radius: $corner-radius + 0.5px;
3241
border-bottom-left-radius: $corner-radius + 0.5px;
3242
3243
overlay {
3244
border-top-left-radius: $corner-radius;
3245
border-bottom-left-radius: $corner-radius;
3246
}
3247
}
3248
3249
&.right,
3250
&:last-child:not(.bottom) {
3251
border-top-right-radius: $corner-radius + 0.5px;
3252
border-bottom-right-radius: $corner-radius + 0.5px;
3253
3254
overlay {
3255
border-top-right-radius: $corner-radius;
3256
border-bottom-right-radius: $corner-radius;
3257
}
3258
}
3259
3260
&.dark { color: on(dark); }
3261
3262
&.light { color: on(light); }
3263
3264
&:drop(active) {
3265
box-shadow: none;
3266
3267
&.light overlay { box-shadow: $shadow-1, 0 0 0 2px $primary; }
3268
3269
&.dark overlay { box-shadow: $shadow-1, 0 0 0 2px $primary; }
3270
}
3271
3272
overlay {
3273
transition: $transition-shadow;
3274
box-shadow: $shadow-1;
3275
3276
&:hover { box-shadow: $shadow-2; }
3277
}
3278
3279
&#add-color-button {
3280
border-radius: $corner-radius $corner-radius 0 0;
3281
color: on(dark);
3282
3283
&:only-child { border-radius: $corner-radius; }
3284
3285
overlay {
3286
background-image: linear-gradient(to right,
3287
$red 25%,
3288
$yellow 25%, $yellow 50%,
3289
$green 50%, $green 75%,
3290
$blue 75%);
3291
}
3292
}
3293
3294
&:disabled {
3295
opacity: 0.5;
3296
3297
overlay { box-shadow: none; }
3298
}
3299
3300
row:selected & {
3301
}
3302
3303
&#editor-color-sample {
3304
border-radius: $corner-radius + 0.5px;
3305
3306
overlay { border-radius: $corner-radius; }
3307
3308
// overlay:hover { box-shadow: $shadow-1; }
3309
}
3310
}
3311
3312
// colorscale popup
3313
colorchooser .popover.osd {
3314
transition: $transition-shadow;
3315
border-radius: $corner-radius;
3316
box-shadow: $shadow-2, inset 0 1px highlight($surface);
3317
background-color: $surface;
3318
3319
&:backdrop { box-shadow: $shadow-1, inset 0 1px highlight($surface); }
3320
}
3321
3322
3323
/********
3324
* Misc *
3325
********/
3326
// content view (grid/list)
3327
.content-view {
3328
background-color: $background;
3329
3330
// &:hover { -gtk-icon-effect: highlight; }
3331
3332
rubberband, .rubberband { @extend rubberband; }
3333
}
3334
3335
.scale-popup {
3336
// .osd & { @extend %osd; }
3337
3338
.osd & button.flat { // FIXME: quick hack, redo properly
3339
}
3340
3341
button { // +/- buttons on GtkVolumeButton popup
3342
}
3343
}
3344
3345
3346
/**********************
3347
* Window Decorations *
3348
**********************/
3349
decoration {
3350
transition: $transition-shadow;
3351
border-radius: $corner-radius $corner-radius 0 0;
3352
box-shadow: $shadow-4, 0 16px 16px transparent;
3353
3354
// FIXME rationalize shadows
3355
3356
// this is used for the resize cursor area
3357
margin: 8px;
3358
3359
&:backdrop {
3360
// the transparent shadow here is to enforce that the shadow extents don't
3361
// change when we go to backdrop, to prevent jumping windows.
3362
// The biggest shadow should be in the same order then in the active state
3363
// or the jumping will happen during the transition.
3364
box-shadow: $shadow-2, 0 16px 16px transparent;
3365
}
3366
3367
.maximized &,
3368
.fullscreen &,
3369
.tiled &,
3370
.tiled-top &,
3371
.tiled-right &,
3372
.tiled-bottom &,
3373
.tiled-left & { border-radius: 0; }
3374
3375
.popup & { box-shadow: none; }
3376
3377
// server-side decorations as used by mutter
3378
.ssd & { box-shadow: 0 3px 3px rgba(0, 0, 0, 0.16); } // just doing borders, wm draws actual shadows
3379
3380
.csd.popup & {
3381
border-radius: $corner-radius;
3382
box-shadow: $shadow-2;
3383
}
3384
3385
tooltip.csd & {
3386
border-radius: $corner-radius;
3387
box-shadow: none;
3388
}
3389
3390
messagedialog.csd & {
3391
border-radius: $corner-radius;
3392
// box-shadow: $shadow-4, 0 16px 16px transparent;
3393
3394
// &:backdrop { box-shadow: $shadow-2, 0 16px 16px transparent; }
3395
}
3396
3397
.solid-csd & {
3398
margin: 0;
3399
// padding: 4px;
3400
border-radius: 0;
3401
box-shadow: none;
3402
// box-shadow: inset 0 0 0 4px $titlebar;
3403
background-color: $titlebar;
3404
}
3405
}
3406
3407
// Window Close button
3408
button.titlebutton {
3409
// @extend %simple_flat_button;
3410
3411
@extend %circular_button;
3412
3413
.selection-mode & {
3414
}
3415
}
3416
3417
3418
// catch all extend :)
3419
3420
%selected_items {
3421
background-color: $overlay-selected;
3422
}
3423
3424
.monospace { font-family: monospace; }
3425
3426
3427
/**********************
3428
* Touch Copy & Paste *
3429
**********************/
3430
// touch selection handlebars for the Popover.osd above
3431
cursor-handle {
3432
color: $primary;
3433
-gtk-icon-source: -gtk-recolor(url("assets/scalable/cursor-handle-symbolic.svg"));
3434
3435
&.top:dir(ltr), &.bottom:dir(rtl) {
3436
-gtk-icon-transform: rotate(90deg);
3437
}
3438
3439
&.bottom:dir(ltr), &.top:dir(rtl) {
3440
-gtk-icon-transform: unset;
3441
}
3442
3443
&.insertion-cursor:dir(ltr), &.insertion-cursor:dir(rtl) {
3444
padding-top: 6px;
3445
-gtk-icon-transform: rotate(45deg);
3446
}
3447
}
3448
3449
.context-menu { font: initial; } // Decouple the font of context menus from their entry/textview
3450
3451
// shortcut window keys
3452
.keycap {
3453
min-width: 28px - 8px * 2;
3454
min-height: 28px - 2px;
3455
margin-top: 2px;
3456
padding-bottom: 2px;
3457
padding-left: 8px;
3458
padding-right: 8px;
3459
3460
border: solid 1px $border;
3461
border-radius: $corner-radius + 1px;
3462
box-shadow: inset 0 -2px $border;
3463
background-color: $surface;
3464
color: $text;
3465
font-size: smaller;
3466
}
3467
3468
:not(decoration):not(window):drop(active) { // FIXME needs to be done widget by widget, this wildcard should really die
3469
transition: $transition;
3470
box-shadow: $shadow-1, inset 0 0 0 2px $primary;
3471
caret-color: $primary;
3472
}
3473
3474
stackswitcher button.text-button { min-width: 100px; } // FIXME aggregate with buttons
3475
3476
stackswitcher button.circular,
3477
stackswitcher button.text-button.circular { // FIXME aggregate with buttons
3478
min-width: $medium-size;
3479
min-height: $medium-size;
3480
padding: 0;
3481
}
3482
3483
3484
/*************
3485
* App Icons *
3486
*************/
3487
// Outline for low res icons
3488
.lowres-icon {
3489
// -gtk-icon-shadow: none;
3490
}
3491
3492
// Drapshadow for large icons
3493
.icon-dropshadow {
3494
// -gtk-icon-shadow: none;
3495
}
3496
3497
3498
/*********
3499
* Emoji *
3500
*********/
3501
popover.emoji-picker {
3502
padding: 0;
3503
3504
entry {
3505
border-bottom: 1px solid $border;
3506
border-image: none;
3507
border-radius: 0;
3508
box-shadow: none;
3509
background-color: transparent;
3510
}
3511
3512
scrolledwindow { border-bottom: 1px solid $border; }
3513
}
3514
3515
// mimic tab style
3516
button.emoji-section {
3517
margin-top: -1px;
3518
padding: 0 8px;
3519
min-width: 24px;
3520
min-height: $medium-size;
3521
border-radius: 0;
3522
outline-offset: -6px;
3523
3524
&, &:hover, &:active { box-shadow: inset 0 2px transparent; }
3525
3526
&:checked {
3527
box-shadow: inset 0 2px $primary;
3528
background-color: transparent;
3529
}
3530
3531
&:hover, &:active { background-color: $overlay-hover; }
3532
3533
&:first-child { margin-left: 4px; }
3534
3535
&:last-child { margin-right: 4px; }
3536
}
3537
3538
popover.emoji-picker .emoji {
3539
min-width: 3em;
3540
min-height: 3em;
3541
padding: 0 8px;
3542
// font-size: larger;
3543
3544
widget {
3545
transition: $transition;
3546
border-radius: $corner-radius;
3547
3548
&:hover { background-color: $overlay-hover; }
3549
}
3550
}
3551
3552
popover.emoji-completion {
3553
padding: 8px 0;
3554
3555
arrow {
3556
border: none;
3557
background: none;
3558
}
3559
3560
.emoji-completion-row {
3561
min-height: $menuitem-size;
3562
padding: 0 12px;
3563
}
3564
3565
.emoji:hover {
3566
background-color: $overlay-hover;
3567
}
3568
}
3569