A fork of the Materia GTK theme.

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

 _common-3.20.scss

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