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