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.32.scss

View raw Download
text/plain • 56.24 kiB
ASCII text
        
            
1
//This is the RIGHT PLACE to edit the stylesheet
2
3
//let's start by telling people not to edit the generated CSS:
4
$cakeisalie: "This stylesheet is generated, DO NOT EDIT";
5
/* #{$cakeisalie} */
6
7
/* Copyright 2009, 2015 Red Hat, Inc.
8
*
9
* Portions adapted from Mx's data/style/default.css
10
* Copyright 2009 Intel Corporation
11
*
12
* This program is free software; you can redistribute it and/or modify it
13
* under the terms and conditions of the GNU Lesser General Public License,
14
* version 2.1, as published by the Free Software Foundation.
15
*
16
* This program is distributed in the hope it will be useful, but WITHOUT ANY
17
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
19
* more details.
20
*
21
* You should have received a copy of the GNU Lesser General Public License
22
* along with this program; if not, write to the Free Software Foundation,
23
* Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
24
*/
25
26
27
/* GLOBALS */
28
stage {
29
font-family: $font-family;
30
@include font(body-1);
31
color: $text;
32
}
33
34
/* WIDGETS */
35
36
/* Buttons */
37
.button {
38
min-height: $medium-size;
39
padding: 0 16px;
40
border-width: 0;
41
border-radius: $corner-radius;
42
@include font(button);
43
@include button(flat-normal);
44
&:focus { @include button(flat-focus); }
45
&:hover { @include button(flat-hover); }
46
&:active { @include button(flat-active); }
47
&:insensitive { @include button(flat-insensitive); }
48
}
49
50
.modal-dialog-linked-button {
51
min-height: $medium-size;
52
margin: $container-padding;
53
padding: 0 8px;
54
margin-right: 0;
55
border-right-width: 0;
56
border-radius: $corner-radius;
57
@include font(button);
58
@include button(flat-normal);
59
&:focus { @include button(flat-focus); }
60
&:hover { @include button(flat-hover); }
61
&:active { @include button(flat-active); }
62
&:insensitive { @include button(flat-insensitive); }
63
64
&:first-child {
65
border-radius: $corner-radius;
66
}
67
&:last-child {
68
margin-right: $container-padding;
69
border-right-width: 0px;
70
border-radius: $corner-radius;
71
}
72
&:first-child:last-child {
73
margin-right: $container-padding;
74
border-right-width: 0px;
75
border-radius: $corner-radius;
76
}
77
}
78
79
/* Entries */
80
StEntry {
81
min-height: $medium-size;
82
padding: 0 8px;
83
border-radius: $corner-radius $corner-radius 0 0;
84
border-width: 0;
85
color: $text;
86
selection-background-color: $overlay-selected;
87
selected-color: $text;
88
@include font(subheading);
89
@include entry(normal);
90
&:hover { @include entry(hover);}
91
&:focus { @include entry(focus);}
92
&:insensitive { @include entry(insensitive);}
93
StIcon.capslock-warning {
94
icon-size: 16px;
95
warning-color: $warning;
96
padding: 0 0;
97
}
98
}
99
100
101
/* Scrollbars */
102
103
StScrollView {
104
&.vfade { -st-vfade-offset: 32px; }
105
&.hfade { -st-hfade-offset: 32px; }
106
}
107
108
StScrollBar {
109
padding: 0;
110
111
StScrollView & {
112
min-width: 16px;
113
min-height: 16px;
114
}
115
116
StBin#trough {
117
margin: 4px;
118
border-radius: 100px;
119
background-color: $divider;
120
}
121
122
StButton#vhandle, StButton#hhandle {
123
transition-duration: $duration;
124
border-radius: 100px;
125
background-color: $text-disabled;
126
//border: 4px solid transparent; //would be nice to margin or at least to transparent
127
margin: 4px;
128
&:hover { background-color: $text-secondary; }
129
&:active { background-color: $text; }
130
}
131
}
132
133
%overview_scrollbar {
134
StBin#trough {
135
background-color: on(dark, divider);
136
}
137
138
StButton#vhandle, StButton#hhandle {
139
background-color: on(dark, disabled);
140
&:hover { background-color: on(dark, secondary); }
141
&:active { background-color: on(dark); }
142
}
143
}
144
145
/* Slider */
146
147
.slider {
148
height: 20px;
149
color: $primary;
150
-barlevel-height: 2px;
151
-barlevel-background-color: $track; //background of the trough
152
-barlevel-border-color: transparent; //trough border color
153
-barlevel-active-background-color: $primary; //active trough fill
154
-barlevel-active-border-color: transparent; //active trough border
155
-barlevel-overdrive-color: $destructive;
156
-barlevel-overdrive-border-color: transparent;
157
-barlevel-overdrive-separator-width: 2px;
158
-barlevel-border-width: 0;
159
-slider-handle-radius: 6px;
160
}
161
162
/* Check Boxes */
163
164
.check-box {
165
* {
166
min-height: $medium-size - 8px * 2;
167
padding: 8px 0;
168
}
169
StBoxLayout { spacing: 8px; }
170
StBin {
171
transition-duration: $duration;
172
width: 24px;
173
height: 24px;
174
padding: ($medium-size - 24px) / 2;
175
border-radius: 100px;
176
background-image: url("assets/checkbox-off.svg");
177
}
178
&:focus StBin {
179
background-image: url("assets/checkbox-off.svg");
180
}
181
&:hover StBin {
182
background-color: $overlay-hover;
183
}
184
&:active StBin {
185
transition-duration: $duration-ripple;
186
background-color: $overlay-active;
187
}
188
&:checked StBin {
189
background-image: url("assets/checkbox.svg");
190
}
191
&:focus:checked StBin {
192
background-image: url("assets/checkbox.svg");
193
}
194
&:hover:checked StBin {
195
background-color: rgba($primary, 0.08);
196
}
197
&:active:checked StBin {
198
background-color: rgba($primary, 0.2);
199
}
200
}
201
202
/* Switches */
203
.toggle-switch {
204
width: 40px;
205
height: 20px;
206
background-size: contain;
207
}
208
209
@each $v in us, intl {
210
.toggle-switch-#{$v} {
211
background-image: url("assets/toggle-off.svg");
212
&:checked { background-image: url("assets/toggle-on.svg"); }
213
}
214
}
215
216
/* links */
217
.shell-link {
218
transition-duration: $duration;
219
border-radius: $corner-radius;
220
color: $link;
221
&:hover {
222
color: $link;
223
background-color: rgba($link, 0.08);
224
}
225
&:active {
226
transition-duration: $duration-ripple;
227
color: $link;
228
background-color: rgba($link, 0.2);
229
}
230
}
231
232
/* Modal Dialogs */
233
234
.headline { @include font(title); }
235
.lightbox { background-color: black; }
236
.flashspot { background-color: white; }
237
238
.modal-dialog {
239
border-radius: $corner-radius;
240
color: $text;
241
background-color: $surface;
242
border: none;
243
box-shadow: $shadow-4;
244
.modal-dialog-content-box {
245
padding: 24px;
246
}
247
.run-dialog-entry { width: 20em; margin-bottom: 0; }
248
.run-dialog-error-box {
249
padding-top: 16px;
250
spacing: 6px;
251
}
252
.run-dialog-button-box { padding-top: 1em; }
253
.run-dialog-label {
254
font-size: 1em;
255
font-weight: normal;
256
color: $text-secondary;
257
padding-bottom: .4em;
258
}
259
260
}
261
262
.mount-dialog-subject,
263
.end-session-dialog-subject { //this should be a generic header class
264
@include font(title);
265
}
266
267
/* Message Dialog */
268
.message-dialog-main-layout {
269
padding: 12px 20px 0;
270
spacing: 12px;
271
}
272
273
.message-dialog-content {
274
max-width: 28em;
275
spacing: 20px;
276
}
277
278
.message-dialog-icon {
279
min-width: 48px;
280
icon-size: 48px;
281
}
282
283
.message-dialog-title {
284
font-weight: bold;
285
}
286
287
.message-dialog-subtitle {
288
color: $text-secondary;
289
font-weight: bold;
290
}
291
292
/* End Session Dialog */
293
.end-session-dialog {
294
spacing: 42px;
295
border: none;
296
}
297
298
.end-session-dialog-list {
299
padding-top: 20px;
300
}
301
302
.end-session-dialog-layout {
303
padding-left: 17px;
304
&:rtl { padding-right: 17px; }
305
}
306
307
.end-session-dialog-description {
308
width: 28em;
309
padding-bottom: 10px;
310
&:rtl {
311
text-align: right;
312
}
313
}
314
315
.end-session-dialog-warning {
316
width: 28em;
317
color: $warning;
318
padding-top: 6px;
319
&:rtl {
320
text-align: right;
321
}
322
}
323
324
.end-session-dialog-logout-icon {
325
border-radius: $circular-radius;
326
width: 48px;
327
height: 48px;
328
background-size: contain;
329
}
330
331
.end-session-dialog-shutdown-icon {
332
color: $text-disabled;
333
width: 48px;
334
height: 48px;
335
}
336
337
.end-session-dialog-inhibitor-layout {
338
spacing: 16px;
339
max-height: 200px;
340
padding-right: 65px;
341
padding-left: 65px;
342
}
343
344
.end-session-dialog-session-list,
345
.end-session-dialog-app-list {
346
spacing: 1em;
347
}
348
349
.end-session-dialog-list-header {
350
font-weight: bold;
351
&:rtl { text-align: right; }
352
}
353
354
.end-session-dialog-app-list-item,
355
.end-session-dialog-session-list-item {
356
spacing: 1em;
357
}
358
359
.end-session-dialog-app-list-item-name,
360
.end-session-dialog-session-list-item-name {
361
font-weight: bold;
362
}
363
364
.end-session-dialog-app-list-item-description {
365
color: $text-secondary;
366
font-size: 1em;
367
}
368
369
/* ShellMountOperation Dialogs */
370
.shell-mount-operation-icon { icon-size: 48px; }
371
372
.mount-dialog {
373
spacing: 24px;
374
375
.message-dialog-title {
376
padding-top: 10px;
377
padding-left: 17px;
378
padding-bottom: 6px;
379
max-width: 34em;
380
}
381
382
.message-dialog-title:rtl {
383
padding-left: 0px;
384
padding-right: 17px;
385
}
386
387
.message-dialog-body {
388
padding-left: 17px;
389
width: 28em;
390
}
391
392
.message-dialog-body:rtl {
393
padding-left: 0px;
394
padding-right: 17px;
395
}
396
}
397
398
.mount-dialog-app-list {
399
max-height: 200px;
400
padding-top: 24px;
401
padding-left: 49px;
402
padding-right: 32px;
403
}
404
405
.mount-dialog-app-list:rtl {
406
padding-right: 49px;
407
padding-left: 32px;
408
}
409
410
.mount-dialog-app-list-item {
411
color: $text;
412
&:hover { color: $text; }
413
&:ltr { padding-right: 1em; }
414
&:rtl { padding-left: 1em; }
415
}
416
417
.mount-dialog-app-list-item-icon {
418
&:ltr { padding-right: 17px; }
419
&:rtl { padding-left: 17px; }
420
}
421
422
.mount-dialog-app-list-item-name {
423
font-size: 1em;
424
}
425
426
427
/* Password or Authentication Dialog */
428
429
.prompt-dialog {
430
//this is the width of the entire modal popup
431
width: 34em;
432
border: none;
433
434
.message-dialog-main-layout { spacing: 24px; padding: 10px; }
435
.message-dialog-content { spacing: 16px; }
436
.message-dialog-title { @include font(title); color: $text; }
437
}
438
439
.prompt-dialog-description:rtl {
440
text-align: right;
441
}
442
443
.prompt-dialog-password-box {
444
spacing: 1em;
445
padding-bottom: 1em;
446
}
447
448
.prompt-dialog-error-label {
449
font-size: 1em;
450
color: $error;
451
padding-bottom: 8px;
452
}
453
454
.prompt-dialog-info-label {
455
font-size: 1em;
456
padding-bottom: 8px;
457
}
458
459
.hidden {
460
color: rgba(0,0,0,0);
461
}
462
463
.prompt-dialog-null-label {
464
font-size: 1em;
465
padding-bottom: 8px;
466
}
467
468
469
/* Polkit Dialog */
470
471
.polkit-dialog-user-layout {
472
padding-left: 10px;
473
spacing: 10px;
474
&:rtl {
475
padding-left: 0px;
476
padding-right: 10px;
477
}
478
}
479
480
.polkit-dialog-user-root-label {
481
color: $warning;
482
}
483
484
.polkit-dialog-user-icon {
485
border-radius: $circular-radius;
486
background-size: contain;
487
width: 48px;
488
height: 48px;
489
}
490
491
/* Audio selection dialog */
492
.audio-device-selection-dialog {
493
spacing: 30px;
494
}
495
496
.audio-selection-content {
497
spacing: 20px;
498
padding: 24px;
499
}
500
501
.audio-selection-title {
502
font-weight: bold;
503
text-align: center;
504
}
505
506
.audio-selection-box {
507
spacing: 20px;
508
}
509
510
.audio-selection-device {
511
border: 1px solid $border;
512
border-radius: $corner-radius;
513
&:active,&:hover,&:focus { background-color: $primary; }
514
}
515
516
.audio-selection-device-box {
517
padding: 20px;
518
spacing: 20px;
519
}
520
521
.audio-selection-device-icon {
522
icon-size: 64px;
523
}
524
525
/* Access Dialog */
526
.access-dialog {
527
spacing: 30px;
528
}
529
530
/* Geolocation Dialog */
531
.geolocation-dialog {
532
spacing: 30px;
533
}
534
535
/* Extension Dialog */
536
.extension-dialog {
537
.message-dialog-main-layout { spacing: 24px; padding: 10px; }
538
.message-dialog-title { color: $text-secondary; }
539
}
540
541
/* Inhibit-Shortcuts Dialog */
542
.inhibit-shortcuts-dialog {
543
spacing: 30px;
544
}
545
546
/* Network Agent Dialog */
547
548
.network-dialog-secret-table {
549
spacing-rows: 15px;
550
spacing-columns: 1em;
551
}
552
553
.keyring-dialog-control-table {
554
spacing-rows: 15px;
555
spacing-columns: 1em;
556
}
557
558
/* Popovers/Menus */
559
560
.popup-menu {
561
min-width: 200px;
562
563
.popup-menu-arrow { } //defined globally in the TOP BAR
564
.popup-sub-menu {
565
padding-bottom: 0;
566
background-color: $fill;
567
box-shadow: $shadow-0;
568
}
569
570
.popup-menu-content { padding: 8px 0; }
571
.popup-menu-item {
572
// min-height: $menuitem-size - 4px * 2;
573
spacing: 8px;
574
transition-duration: $duration;
575
576
&:ltr { padding: 0.4em 24px 0.4em 0; }
577
&:rtl { padding: 0.4em 0 0.4em 24px; }
578
&:checked {
579
background-color: $overlay-selected;
580
box-shadow: $shadow-0;
581
font-weight: normal;
582
&.selected {
583
background-color: rgba($primary, 0.4);
584
}
585
&:active {
586
background-color: rgba($primary, 0.6);
587
}
588
}
589
&.selected {
590
background-color: $overlay-hover;
591
color: $text;
592
transition-duration: 0ms;
593
}
594
&:active {
595
background-color: $overlay-active;
596
color: $text;
597
transition-duration: $duration-ripple;
598
}
599
&.selected:active { color: $text; }
600
&:insensitive { color: $text-disabled; }
601
}
602
603
.popup-inactive-menu-item { //all icons and other graphical elements
604
color: $text;
605
606
&:insensitive { color: $text-disabled; }
607
}
608
//.popup-status-menu-item { font-weight: normal; color: pink; } //dunno what that is
609
&.panel-menu {
610
-boxpointer-gap: 4px;
611
margin-bottom: 1.75em;
612
}
613
}
614
615
616
617
.popup-menu-ornament {
618
text-align: right;
619
width: 16px;
620
height: 16px;
621
}
622
.popup-menu-boxpointer,
623
.candidate-popup-boxpointer {
624
-arrow-border-radius: 0;
625
-arrow-background-color: transparent;
626
-arrow-border-width: 0;
627
-arrow-border-color: transparent;
628
-arrow-base: 0;
629
-arrow-rise: 0;
630
-arrow-box-shadow: none; //dreaming. bug #689995
631
margin: 5px 8px 8px;
632
background-color: $surface;
633
border-radius: $corner-radius;
634
box-shadow: $shadow-2;
635
}
636
637
.popup-separator-menu-item {
638
//-margin-horizontal: 24px;
639
height: 1px; //not really the whole box
640
margin: 8px 64px - 24px;
641
background-color: transparent;
642
border-color: $border;
643
border-bottom-width: 1px;
644
border-bottom-style: solid;
645
}
646
647
648
// Background menu
649
.background-menu { -boxpointer-gap: 4px; -arrow-rise: 0; }
650
651
/* fallback menu
652
- odd thing for styling App menu when apparently not running under shell. Light Adwaita styled
653
app menu inside the main app window itself rather than the top bar
654
*/
655
656
657
/* OSD */
658
.osd-window {
659
text-align: center;
660
font-weight: bold;
661
spacing: 1em;
662
margin: 32px;
663
min-width: 64px;
664
min-height: 64px;
665
666
.osd-monitor-label { @include font(display-2); }
667
.level {
668
height: 8px;
669
-barlevel-height: 8px;
670
-barlevel-background-color: $divider;
671
-barlevel-active-background-color: $primary;
672
-barlevel-overdrive-color: $destructive;
673
-barlevel-overdrive-separator-width: 2px;
674
}
675
}
676
677
/* Pad OSD */
678
.pad-osd-window {
679
padding: 32px;
680
background-color: $scrim;
681
682
.pad-osd-title-box { spacing: 12px; }
683
.pad-osd-title-menu-box { spacing: 6px; }
684
}
685
686
.combo-box-label {
687
width: 15em;
688
}
689
690
/* App Switcher */
691
.switcher-popup {
692
padding: 8px;
693
spacing: 16px;
694
}
695
696
.osd-window,
697
.resize-popup,
698
.switcher-list {
699
@extend %osd-panel;
700
}
701
702
.switcher-list-item-container { spacing: 8px; }
703
704
.switcher-list .item-box {
705
transition-duration: $duration;
706
padding: 8px;
707
border-radius: $corner-radius;
708
}
709
710
.switcher-list .item-box:outlined {
711
padding: 8px;
712
border: none;
713
background-color: $divider;
714
color: $text; // for Ubuntu session
715
}
716
717
.switcher-list .item-box:selected {
718
background-color: $overlay-selected;
719
color: $text;
720
}
721
722
.switcher-list .thumbnail-box {
723
padding: 2px;
724
spacing: 4px;
725
}
726
727
.switcher-list .thumbnail {
728
width: 256px;
729
}
730
731
.switcher-list .separator {
732
width: 1px;
733
background: $border;
734
}
735
736
.switcher-arrow {
737
transition-duration: $duration;
738
border-color: rgba(0,0,0,0);
739
color: $text-secondary;
740
&:highlighted {
741
color: $text;
742
}
743
}
744
745
.input-source-switcher-symbol {
746
@include font(display-2);
747
width: 96px;
748
height: 96px;
749
}
750
751
/* Window Cycler */
752
.cycler-highlight { border: 4px solid $primary; }
753
754
/* Workspace Switcher */
755
.workspace-switcher-group { padding: 8px; }
756
757
.workspace-switcher-container {
758
@extend %osd-panel;
759
}
760
761
.workspace-switcher {
762
background: transparent;
763
border: 0px;
764
border-radius: 0px;
765
padding: 0px;
766
spacing: 8px;
767
}
768
769
.ws-switcher-active-up, .ws-switcher-active-down {
770
height: 48px;
771
background-color: $primary;
772
color: on($primary);
773
background-size: 32px;
774
border-radius: $corner-radius;
775
}
776
777
.ws-switcher-box {
778
height: 48px;
779
border: none;
780
background: $divider;
781
border-radius: $corner-radius;
782
}
783
784
%osd-panel {
785
color: $text;
786
background-color: $surface;
787
border: none;
788
box-shadow: $shadow-4;
789
border-radius: $corner-radius;
790
padding: 12px;
791
}
792
793
/* Tiled window previews */
794
.tile-preview {
795
background-color: rgba($primary-alt, 0.3);
796
border: 1px solid $primary-alt;
797
}
798
799
.tile-preview-left.on-primary {
800
border-radius: 0;
801
}
802
803
.tile-preview-right.on-primary {
804
border-radius: 0;
805
}
806
807
.tile-preview-left.tile-preview-right.on-primary {
808
border-radius: 0;
809
}
810
811
/* TOP BAR */
812
813
#panel {
814
background-color: $panel;
815
/* transition from solid to transparent */
816
transition-duration: $duration-panel;
817
font-weight: bold;
818
height: $menuitem-size;
819
font-feature-settings: "tnum";
820
821
&:overview,
822
&.unlock-screen,
823
&.login-screen,
824
&.lock-screen {
825
background-color: transparent;
826
}
827
828
#panelLeft, #panelCenter { // spacing between activities<>app menu and such
829
spacing: 0;
830
}
831
832
.panel-corner {
833
-panel-corner-radius: 0;
834
-panel-corner-background-color: transparent;
835
-panel-corner-border-width: 0;
836
-panel-corner-border-color: transparent;
837
838
&:active, &:overview, &:focus {
839
-panel-corner-border-color: transparent;
840
}
841
842
&.lock-screen, &.login-screen, &.unlock-screen {
843
-panel-corner-radius: 0;
844
-panel-corner-background-color: transparent;
845
-panel-corner-border-color: transparent;
846
}
847
}
848
849
.panel-button {
850
-natural-hpadding: 12px;
851
-minimum-hpadding: 6px;
852
font-weight: bold;
853
color: on($panel, secondary);
854
text-shadow: none;
855
transition-duration: $duration;
856
857
.app-menu-icon {
858
-st-icon-style: symbolic;
859
margin-left: 4px;
860
margin-right: 4px;
861
//dimensions of the icon are hardcoded
862
}
863
864
.system-status-icon,
865
.app-menu-icon > StIcon,
866
.popup-menu-arrow {
867
icon-shadow: none;
868
}
869
870
&:hover {
871
color: on($panel);
872
text-shadow: none;
873
874
.system-status-icon,
875
.app-menu-icon > StIcon,
876
.popup-menu-arrow {
877
icon-shadow: none;
878
}
879
}
880
881
&:active, &:overview, &:focus, &:checked {
882
// Trick due to St limitations. It needs a background to draw
883
// a box-shadow
884
background-color: rgba($panel, 0.01);
885
box-shadow: inset 0 -2px 0px on($panel);
886
color: on($panel);
887
888
& > .system-status-icon { icon-shadow: none; }
889
}
890
891
.system-status-icon { icon-size: em(16px); padding: 0 4px; }
892
.unlock-screen &,
893
.login-screen &,
894
.lock-screen & {
895
color: on($panel, secondary);
896
&:focus, &:hover, &:active { color: on($panel); }
897
}
898
}
899
900
.panel-status-indicators-box,
901
.panel-status-menu-box {
902
spacing: 2px;
903
}
904
905
// spacing between power icon and (optional) percentage label
906
.power-status.panel-status-indicators-box {
907
spacing: 0;
908
}
909
910
.screencast-indicator { color: $warning; }
911
912
.remote-access-indicator { color: $warning; }
913
914
&.solid {
915
background-color: $panel;
916
/* transition from transparent to solid */
917
transition-duration: $duration-panel;
918
background-gradient-direction: none; // for Ubuntu session
919
text-shadow: none; // for Ubuntu session
920
921
&:overview { background-color: transparent; } // for Ubuntu session
922
923
.panel-corner {
924
-panel-corner-background-color: $panel;
925
}
926
927
.panel-button {
928
color: on($panel, secondary);
929
text-shadow: none;
930
931
&:hover, &:active, &:overview, &:focus, &:checked {
932
color: on($panel);
933
}
934
}
935
936
.system-status-icon,
937
.app-menu-icon > StIcon,
938
.popup-menu-arrow {
939
icon-shadow: none;
940
}
941
}
942
}
943
944
// calendar popover
945
#calendarArea {
946
padding: 8px 16px;
947
}
948
949
.calendar {
950
margin-bottom: 0;
951
}
952
953
.calendar,
954
.datemenu-today-button,
955
.datemenu-displays-box,
956
.message-list-sections {
957
margin: 0 8px;
958
}
959
960
.datemenu-calendar-column { spacing: 8px; }
961
.datemenu-displays-section { padding-bottom: 0; }
962
.datemenu-displays-box { spacing: 8px; }
963
964
.datemenu-calendar-column {
965
border: 0 solid $border;
966
&:ltr { border-left-width: 0; }
967
&:rtl { border-right-width: 0; }
968
}
969
970
.datemenu-today-button,
971
.world-clocks-button,
972
.weather-button,
973
.events-section-title {
974
min-height: $menuitem-size - 4px * 2;
975
padding: 4px 8px;
976
border-radius: $corner-radius;
977
}
978
979
.datemenu-today-button {
980
min-height: $menuitem-size * 2 - 4px * 2;
981
}
982
983
.message-list-section-list:ltr {
984
padding-left: 0;
985
}
986
987
.message-list-section-list:rtl {
988
padding-right: 0;
989
}
990
991
.datemenu-today-button,
992
.world-clocks-button,
993
.weather-button,
994
.events-section-title {
995
transition-duration: $duration;
996
&:hover,&:focus { color: $text; background-color: $overlay-hover; }
997
&:active {
998
transition-duration: $duration-ripple;
999
color: $text;
1000
background-color: $overlay-active;
1001
}
1002
}
1003
1004
.datemenu-today-button .day-label {
1005
}
1006
1007
.datemenu-today-button .date-label {
1008
@include font(headline);
1009
}
1010
1011
.world-clocks-header,
1012
.weather-header,
1013
.events-section-title {
1014
color: $text-secondary;
1015
font-weight: bold;
1016
}
1017
1018
.weather-header.location {
1019
font-weight: normal;
1020
font-size: 1em;
1021
}
1022
1023
.world-clocks-grid,
1024
.weather-grid {
1025
spacing-rows: 0.4em;
1026
spacing-columns: 0.8em;
1027
}
1028
1029
.weather-box {
1030
spacing: 0.4em;
1031
}
1032
1033
.world-clocks-city {
1034
font-weight: bold;
1035
font-size: 1em;
1036
}
1037
1038
.world-clocks-time {
1039
color: $text-secondary;
1040
font-feature-settings: "tnum";
1041
font-size: 1em;
1042
}
1043
1044
.world-clocks-timezone {
1045
color: $text-disabled;
1046
font-feature-settings: "tnum";
1047
font-size: 1em;
1048
}
1049
1050
.weather-forecast-icon {
1051
icon-size: em(32px);
1052
}
1053
1054
.weather-forecast-time {
1055
color: $text-secondary;
1056
@include font(caption);
1057
}
1058
1059
.calendar-month-label {
1060
transition-duration: $duration;
1061
height: $menuitem-size - 6px * 2;
1062
margin: 2px;
1063
padding: 6px 16px;
1064
border-radius: $corner-radius;
1065
color: $text;
1066
font-weight: bold;
1067
text-align: center;
1068
&:focus { background-color: $overlay-focus; }
1069
}
1070
1071
.pager-button {
1072
transition-duration: $duration;
1073
width: $menuitem-size;
1074
height: $menuitem-size;
1075
margin: 2px;
1076
border-radius: 100px;
1077
background-color: transparent;
1078
color: $text-secondary;
1079
&:hover, &:focus { background-color: $overlay-hover; color: $text; }
1080
&:active { background-color: $overlay-active; color: $text; transition-duration: $duration-ripple; }
1081
}
1082
1083
.calendar-change-month-back StIcon, .calendar-change-month-forward StIcon { // arrows
1084
icon-size: em(16px);
1085
}
1086
1087
.calendar-day-base {
1088
transition-duration: $duration;
1089
@include font(caption);
1090
text-align: center;
1091
width: $menuitem-size; height: $menuitem-size;
1092
padding: 0;
1093
margin: 2px;
1094
border-radius: 100px;
1095
font-feature-settings: "tnum";
1096
&:hover,&:focus { background-color: $overlay-hover; }
1097
&:active {
1098
transition-duration: $duration-ripple;
1099
color: inherit;
1100
background-color: $overlay-active;
1101
border-color: transparent; //avoid jumparound due to today
1102
}
1103
&:selected {
1104
color: $text;
1105
background-color: $overlay-selected;
1106
border-color: transparent; //avoid jumparound due to today
1107
}
1108
&.calendar-day-heading { //day of week heading
1109
width: $menuitem-size; height: $menuitem-size - 7px;
1110
margin-top: 2px;
1111
padding: 7px 0 0;
1112
border-radius: 100px;
1113
background-color: transparent;
1114
color: $text-disabled;
1115
@include font(caption);
1116
font-weight: bold;
1117
text-align: center;
1118
}
1119
}
1120
.calendar-day { //border collapse hack - see calendar.js
1121
border-width: 0;
1122
}
1123
.calendar-day-top { border-top-width: 0; }
1124
.calendar-day-left { border-left-width: 0; }
1125
.calendar-work-day {
1126
1127
}
1128
.calendar-nonwork-day {
1129
color: $text;
1130
}
1131
.calendar-today {
1132
font-weight: bold !important;
1133
//color: $text;
1134
//background-color: transparent;
1135
border: none;
1136
}
1137
.calendar-day-with-events {
1138
color: $link;
1139
font-weight: normal;
1140
text-decoration: underline;
1141
background-image: none;
1142
}
1143
.calendar-other-month-day {
1144
color: $text-secondary-disabled;
1145
opacity: 0.5;
1146
}
1147
.calendar-week-number {
1148
width: $menuitem-size; height: $menuitem-size - 7px;
1149
margin: 2px;
1150
padding: 7px 0 0;
1151
border-radius: 100px;
1152
background-color: transparent;
1153
color: $text-disabled;
1154
font-size: inherit;
1155
font-weight: bold;
1156
text-align: center;
1157
}
1158
1159
/* Message list */
1160
.message-list {
1161
width: 420px;
1162
}
1163
1164
.message-list-clear-button.button {
1165
background-color: transparent;
1166
&:hover,&:focus { background-color: $overlay-hover; }
1167
&:active { background-color: $overlay-active; }
1168
margin: 8px 8px 0;
1169
}
1170
1171
.message-list-sections {
1172
spacing: 8px;
1173
}
1174
1175
.message-list-section,
1176
.message-list-section-list {
1177
spacing: 8px;
1178
}
1179
1180
.message {
1181
transition-duration: $duration;
1182
min-height: $menuitem-size * 2;
1183
background-color: transparent;
1184
&:hover,&:focus { background-color: $overlay-hover; }
1185
&:active {
1186
transition-duration: $duration-ripple;
1187
background-color: $overlay-active;
1188
}
1189
border-radius: $corner-radius;
1190
}
1191
1192
.message-icon-bin {
1193
padding: 8px 0px 8px 8px;
1194
&:rtl { padding: 8px 8px 8px 0px; }
1195
}
1196
1197
.message-icon-bin > StIcon {
1198
color: $text;
1199
icon-size: em(16px);
1200
-st-icon-style: requested;
1201
margin: 4px 0px 4px 4px;
1202
&:rtl { margin: 4px 4px 4px 0px; }
1203
}
1204
1205
.message-icon-bin > .fallback-window-icon {
1206
width: em(16px);
1207
height: em(16px);
1208
}
1209
1210
.message-secondary-bin {
1211
padding: 0 8px;
1212
}
1213
1214
.message-secondary-bin > .event-time {
1215
min-height: $small-size - 2px;
1216
padding-top: 2px;
1217
color: $text-secondary;
1218
font-size: 1em;
1219
/* HACK: the label should be baseline-aligned with a 1em label,
1220
fake this with some bottom padding */
1221
padding-bottom: 0;
1222
}
1223
1224
.message-secondary-bin > StIcon {
1225
icon-size: em(16px);
1226
}
1227
1228
.message-title {
1229
min-height: $small-size - 2px;
1230
padding-top: 2px;
1231
color: $text;
1232
font-weight: bold;
1233
font-size: 1em;
1234
}
1235
1236
.message-content {
1237
min-height: $menuitem-size * 2 - 8px * 2;
1238
padding: 8px;
1239
color: $text-secondary;
1240
font-size: 1em;
1241
}
1242
1243
.message-content * > StIcon {
1244
transition-duration: $duration;
1245
icon-size: 16px;
1246
border-radius: 16px;
1247
padding: ($small-size - 16px) / 2;
1248
color: $text-secondary;
1249
}
1250
1251
/* FIXME: how do you do this in sass? */
1252
.message-content *:hover > StIcon,
1253
.message-content *:focus > StIcon {
1254
color: $text;
1255
background-color: $overlay-hover;
1256
}
1257
1258
.message-content *:active > StIcon {
1259
transition-duration: $duration-ripple;
1260
color: $text;
1261
background-color: $overlay-active;
1262
}
1263
1264
.message-media-control {
1265
transition-duration: $duration;
1266
margin: 16px 0;
1267
padding: 8px;
1268
border-radius: 100px;
1269
color: $text-secondary;
1270
&:hover,&:focus { color: $text; background-color: $overlay-hover; }
1271
&:active { color: $text; background-color: $overlay-active; transition-duration: $duration-ripple; }
1272
&:insensitive { color: $text-secondary-disabled; }
1273
1274
&:last-child:ltr { margin-right: 16px; padding-right: 8px; }
1275
&:last-child:rtl { margin-left: 16px; padding-left: 8px; }
1276
}
1277
1278
.media-message-cover-icon {
1279
icon-size: 32px !important;
1280
margin: 8px 0px 8px 4px !important;
1281
&:rtl { margin: 8px 4px 8px 0px !important; }
1282
&.fallback {
1283
icon-size: 16px !important;
1284
padding: 8px;
1285
border: none;
1286
border-radius: $corner-radius;
1287
background-color: $divider;
1288
color: $text-disabled;
1289
}
1290
}
1291
1292
1293
// a little unstructured mess:
1294
1295
.system-switch-user-submenu-icon {
1296
icon-size: 16px;
1297
padding: 0 4px;
1298
}
1299
1300
#appMenu {
1301
spinner-image: url("process-working.svg");
1302
spacing: 4px;
1303
1304
.label-shadow { color: transparent; }
1305
}
1306
1307
.app-menu,
1308
.app-well-menu {
1309
max-width: 27.25em;
1310
}
1311
1312
.aggregate-menu {
1313
min-width: 280px;
1314
.popup-menu-icon { padding: 0 4px; }
1315
.popup-sub-menu .popup-menu-item > :first-child {
1316
&:ltr { /* 8px spacing + 2*4px padding */
1317
padding-left: 16px; margin-left: em(16px); }
1318
&:rtl { /* 8px spacing + 2*4px padding */
1319
padding-right: 16px; margin-right: em(16px); }
1320
}
1321
}
1322
1323
.system-menu-action {
1324
-st-icon-style: symbolic;
1325
color: $text-secondary;
1326
border-radius: 100px; /* wish we could do 50% */
1327
padding: ($large-size - 16px) / 2;
1328
border: none;
1329
transition-duration: $duration;
1330
1331
&:hover, &:focus {
1332
background-color: $overlay-hover;
1333
color: $text;
1334
border: none;
1335
padding: ($large-size - 16px) / 2;
1336
}
1337
&:active { background-color: $overlay-active; color: $text; transition-duration: $duration-ripple; }
1338
1339
& > StIcon { icon-size: 16px; }
1340
}
1341
1342
// Activities Ripples
1343
.ripple-box {
1344
width: 48px;
1345
height: 48px;
1346
border-radius: 0 0 48px 0; // radius the size of the box give us the curve
1347
background-color: on(dark, track);
1348
background-image: none;
1349
background-size: auto;
1350
box-shadow: none;
1351
}
1352
1353
.ripple-box:rtl {
1354
border-radius: 0 0 0 48px; // just a simple change to the border radius position
1355
background-image: none;
1356
}
1357
1358
// not really top bar only
1359
.popup-menu-arrow { width: 16px; height: 16px; icon-size: em(16px); }
1360
.popup-menu-icon { icon-size: em(16px); }
1361
1362
//close buttons
1363
1364
.window-close {
1365
// FIXME: unless disable the transition, button will distort when hovering
1366
// transition-duration: $duration;
1367
background-color: transparent;
1368
border-radius: 0;
1369
border: none;
1370
box-shadow: none;
1371
color: transparent;
1372
height: $medium-size;
1373
width: $medium-size;
1374
-shell-close-overlap: $medium-size / 2;
1375
-st-background-image-shadow: $shadow-1;
1376
background-image: url("assets/window-close.svg");
1377
background-size: $medium-size;
1378
1379
&:hover {
1380
background-color: transparent;
1381
border-color: transparent;
1382
color: transparent;
1383
-st-background-image-shadow: $shadow-2;
1384
background-image: url("assets/window-close.svg");
1385
}
1386
1387
&:active {
1388
background-color: transparent;
1389
border-color: transparent;
1390
color: transparent;
1391
// transition-duration: $duration-ripple;
1392
background-image: url("assets/window-close-active.svg");
1393
}
1394
1395
// For backward compatibility of 3.26.0
1396
&:rtl { -st-background-image-shadow: $shadow-1; }
1397
&:rtl:hover { -st-background-image-shadow: $shadow-2; }
1398
}
1399
1400
/* NETWORK DIALOGS */
1401
1402
.nm-dialog {
1403
max-height: 34em;
1404
min-height: 31em;
1405
min-width: 32em;
1406
}
1407
1408
.nm-dialog-content {
1409
spacing: 20px;
1410
padding: 24px;
1411
}
1412
.nm-dialog-header-hbox { spacing: 10px; }
1413
.nm-dialog-airplane-box { spacing: 12px; }
1414
1415
.nm-dialog-airplane-headline {
1416
font-weight: bold;
1417
text-align: center;
1418
}
1419
1420
.nm-dialog-airplane-text { color: $text; }
1421
.nm-dialog-header-icon { icon-size: 32px; }
1422
.nm-dialog-scroll-view { border: none; }
1423
.nm-dialog-header { @include font(title); }
1424
1425
.nm-dialog-item {
1426
transition-duration: $duration;
1427
font-size: 1em;
1428
border-bottom: none;
1429
border-radius: $corner-radius;
1430
padding: 12px;
1431
spacing: 20px;
1432
&:hover, &:focus { background-color: $overlay-hover; }
1433
&:active {
1434
transition-duration: $duration-ripple;
1435
background-color: $overlay-active;
1436
}
1437
}
1438
1439
.nm-dialog-item:selected {
1440
background-color: $overlay-selected;
1441
color: $text;
1442
}
1443
1444
.nm-dialog-icons { spacing: .5em; }
1445
.nm-dialog-icon { icon-size: 16px; }
1446
.no-networks-label { color: $text-disabled; }
1447
.no-networks-box { spacing: 12px; }
1448
1449
/* OVERVIEW */
1450
1451
#overview {
1452
spacing: 24px; //
1453
StScrollBar { @extend %overview_scrollbar; }
1454
}
1455
1456
.overview-controls {
1457
padding-bottom: 32px;
1458
}
1459
1460
.window-picker { //container around window thumbnails
1461
-horizontal-spacing: 16px;
1462
-vertical-spacing: 16px;
1463
padding: 0 16px 32px;
1464
1465
&.external-monitor { padding: 16px; }
1466
}
1467
1468
.window-clone-border {
1469
border: 4px solid on(dark, track);
1470
border-radius: $corner-radius;
1471
// For window decorations with round corners we can't match
1472
// the exact shape when the window is scaled. So apply a shadow
1473
// to fix that case
1474
box-shadow: inset 0 0 0 1px on(dark, track);
1475
}
1476
.window-caption {
1477
spacing: 25px;
1478
color: on($scrim);
1479
background-color: $scrim;
1480
border-radius: $corner-radius;
1481
padding: 4px 8px;
1482
}
1483
1484
//search entry
1485
.search-entry {
1486
width: 320px - 8px * 2;
1487
padding: 0 8px;
1488
border-radius: $corner-radius $corner-radius 0 0;
1489
color: on(dark, disabled);
1490
selection-background-color: on(dark, track);
1491
selected-color: on(dark);
1492
@include entry(normal,$fc:on(dark, track));
1493
&:hover { @include entry(hover,$fc:on(dark, track)); }
1494
&:focus {
1495
@include entry(focus,$fc:on(dark));
1496
padding: 0 8px;
1497
border-width: 0;
1498
color: on(dark);
1499
}
1500
1501
.search-entry-icon { icon-size: 16px; padding: 0 0; color: on(dark, secondary); }
1502
1503
&:hover, &:focus {
1504
.search-entry-icon { color: on(dark); }
1505
}
1506
}
1507
1508
//search results
1509
1510
#searchResultsBin {
1511
max-width: 1000px;
1512
}
1513
1514
#searchResultsContent {
1515
padding-left: 20px;
1516
padding-right: 20px;
1517
spacing: 16px;
1518
}
1519
1520
.search-section { spacing: 16px; } // This should be equal to #searchResultsContent spacing
1521
.search-section-content { spacing: 32px; } // This is the space between the provider icon and the results container
1522
.search-statustext { // "no results"
1523
@extend %status_text;
1524
}
1525
.list-search-results { spacing: 3px; }
1526
1527
.search-section-separator { height: 1px; background-color: on(dark, divider); }
1528
1529
.search-section:last-child .search-section-separator { background-color: transparent; }
1530
1531
.list-search-result-content { spacing: 30px; }
1532
.list-search-result-title { @include font(subheading); color: on(dark); spacing: 12px; }
1533
.list-search-result-description { color: on(dark, secondary); }
1534
.list-search-provider-details { width: 150px; color: on(dark, secondary); margin-top: 0.24em; }
1535
.list-search-provider-content { spacing: 20px; }
1536
.search-provider-icon { padding: 15px; }
1537
1538
1539
/* DASHBOARD */
1540
1541
#dash {
1542
transition-duration: $duration-panel;
1543
font-size: 1em;
1544
color: on(dark);
1545
background-color: $scrim-inverse;
1546
padding: 3px 0;
1547
border: none;
1548
border-left: 0px;
1549
border-radius: 0px $corner-radius $corner-radius 0px;
1550
1551
&:rtl {
1552
border-radius: $corner-radius 0 0 $corner-radius;
1553
}
1554
1555
.placeholder {
1556
background-image: url("assets/dash-placeholder.svg");
1557
background-size: contain;
1558
height: 24px;
1559
}
1560
1561
.empty-dash-drop-target {
1562
width: 24px;
1563
height: 24px;
1564
}
1565
1566
}
1567
1568
.dash-item-container > StWidget {
1569
padding: 3px 6px;
1570
}
1571
1572
.dash-label { //osd tooltip
1573
// min-height: 32px - 6px * 2;
1574
border-radius: $corner-radius;
1575
padding: 7px 8px;
1576
color: $text;
1577
background-color: $surface;
1578
box-shadow: $shadow-2;
1579
text-align: center;
1580
-x-offset: 8px;
1581
}
1582
1583
/* App Vault/Grid */
1584
.icon-grid {
1585
spacing: 30px;
1586
-shell-grid-horizontal-item-size: 136px;
1587
-shell-grid-vertical-item-size: 136px;
1588
1589
.overview-icon { icon-size: 96px; }
1590
}
1591
//.app-display { spacing: 20px; }
1592
1593
.system-action-icon {
1594
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2); // FIXME: this should really have a highlight
1595
background-color: $grey_900;
1596
color: $white;
1597
border-radius: 99px;
1598
icon-size: 48px;
1599
}
1600
1601
.app-view-controls { //favorties | all toggle container
1602
width: 320px;
1603
padding-bottom: 32px;
1604
}
1605
.app-view-control { //favorties | all toggle button
1606
padding: 0 16px;
1607
font-weight: bold;
1608
color: on(dark, secondary);
1609
&:hover {
1610
color: on(dark);
1611
background-color: $inverse-overlay-hover !important;
1612
}
1613
&:active {
1614
color: on(dark);
1615
background-color: $inverse-overlay-active !important;
1616
}
1617
&:checked {
1618
color: on(dark);
1619
background-color: rgba($scrim, 0.01) !important;
1620
box-shadow: inset 0 2px 0 on(dark);
1621
}
1622
&:first-child {
1623
border-right-width: 0;
1624
border-radius: $corner-radius;
1625
&:checked { border-radius: 0; }
1626
}
1627
&:last-child {
1628
border-radius: $corner-radius;
1629
&:checked { border-radius: 0; }
1630
}
1631
}
1632
1633
//Icon tile
1634
.search-provider-icon,
1635
.list-search-result {
1636
@extend %icon_tile;
1637
&:focus, &:selected, &:hover {
1638
background-color: $inverse-overlay-hover;
1639
transition-duration: 0ms;
1640
}
1641
&:active, &:checked {
1642
background-color: $inverse-overlay-active;
1643
transition-duration: $duration-ripple;
1644
}
1645
}
1646
.app-well-app,
1647
.app-well-app.app-folder,
1648
.show-apps,
1649
.grid-search-result {
1650
& .overview-icon {
1651
@extend %icon_tile;
1652
}
1653
&:hover .overview-icon,
1654
&:focus .overview-icon,
1655
&:selected .overview-icon {
1656
background-color: $inverse-overlay-hover;
1657
transition-duration: 0ms;
1658
border-image: none;
1659
background-image: none;
1660
}
1661
&:active .overview-icon,
1662
&:checked .overview-icon {
1663
background-color: $inverse-overlay-active;
1664
box-shadow: $shadow-0;
1665
transition-duration: $duration-ripple;
1666
}
1667
1668
}
1669
1670
.app-well-app-running-dot { //running apps indicator
1671
width: 32px; height: 2px;
1672
background-color: on(dark);
1673
margin-bottom: 0;
1674
}
1675
1676
%icon_tile {
1677
color: on(dark);
1678
border-radius: $corner-radius;
1679
padding: 6px;
1680
border: none;
1681
transition-duration: $duration;
1682
text-align: center;
1683
}
1684
1685
.app-well-app.app-folder > .overview-icon {
1686
background-color: $scrim-inverse;
1687
}
1688
1689
.show-apps .show-apps-icon {
1690
color: on(dark, secondary);
1691
}
1692
1693
.show-apps:hover .show-apps-icon,
1694
.show-apps:active .show-apps-icon,
1695
.show-apps:checked .show-apps-icon,
1696
.show-apps:focus .show-apps-icon {
1697
color: on(dark);
1698
transition-duration: $duration;
1699
}
1700
1701
1702
// Collections
1703
.app-folder-popup { //expanded collection
1704
-arrow-border-radius: $corner-radius;
1705
-arrow-background-color: $scrim-inverse;
1706
-arrow-base: 24px;
1707
-arrow-rise: 12px;
1708
}
1709
.app-folder-popup-bin { padding: 5px; }
1710
.app-folder-icon {
1711
padding: 5px;
1712
spacing-rows: 5px;
1713
spacing-columns: 5px;
1714
}
1715
1716
.page-indicator {
1717
padding: 15px 20px;
1718
1719
.page-indicator-icon {
1720
width: 12px;
1721
height: 12px;
1722
border: none;
1723
border-radius: 12px;
1724
background-image: none;
1725
background-color: on(dark, secondary-disabled);
1726
transition-duration: $duration;
1727
}
1728
&:hover .page-indicator-icon {
1729
border-color: transparent;
1730
background-image: none;
1731
background-color: on(dark, disabled);
1732
}
1733
&:active .page-indicator-icon {
1734
border: none;
1735
margin: 0;
1736
background-image: none;
1737
background-color: on(dark, secondary);
1738
}
1739
&:checked .page-indicator-icon,
1740
&:checked:active .page-indicator-icon {
1741
background-image: none;
1742
background-color: on(dark);
1743
transition-duration: 0ms;
1744
}
1745
&:checked:active { background-image: none; background-color: transparent; }
1746
}
1747
1748
.no-frequent-applications-label { @extend %status_text; }
1749
1750
.app-well-app > .overview-icon.overview-icon-with-label,
1751
.grid-search-result .overview-icon.overview-icon-with-label {
1752
padding: 10px 8px 5px 8px;
1753
spacing: 4px;
1754
}
1755
1756
// Workspace pager
1757
.workspace-thumbnails { //container ala dash
1758
@extend %overview-panel;
1759
visible-width: 32px; //amount visible before hover
1760
spacing: 12px;
1761
padding: 12px;
1762
border-radius: $corner-radius 0 0 $corner-radius;
1763
//border-width: 0; //fixme: can't have non unoform borders :(
1764
&:rtl { border-radius: 0 $corner-radius $corner-radius 0;}
1765
1766
.placeholder {
1767
background-image: url("assets/dash-placeholder.svg");
1768
background-size: contain;
1769
height: 24px;
1770
}
1771
}
1772
.workspace-thumbnail-indicator {
1773
border: 0 solid on(dark);
1774
border-left-width: 2px;
1775
padding: 6px 10px;
1776
border-radius: 0;
1777
}
1778
1779
//Some hacks I don't even
1780
.search-display > StBoxLayout,
1781
.all-apps,
1782
.frequent-apps > StBoxLayout {
1783
// horizontal padding to make sure scrollbars or dash don't overlap content
1784
padding: 0px 88px 10px 88px;
1785
}
1786
1787
%overview-panel {
1788
transition-duration: $duration-panel;
1789
color: on(dark);
1790
background-color: $scrim-inverse;
1791
border: none;
1792
}
1793
1794
%status_text {
1795
@include font(display-2);
1796
color: on(dark, disabled);
1797
}
1798
1799
/* NOTIFICATIONS & MESSAGE TRAY */
1800
1801
.url-highlighter { link-color: $link; }
1802
1803
// Banners
1804
.notification-banner {
1805
font-size: 1em;
1806
width: 34em;
1807
min-height: $menuitem-size * 2;
1808
margin: 5px;
1809
border-radius: $corner-radius;
1810
color: $text;
1811
background-color: $surface;
1812
border: none;
1813
box-shadow: $shadow-2;
1814
&:hover { background-color: $surface; }
1815
&:focus { background-color: $surface; }
1816
1817
.notification-icon { padding: 5px; }
1818
.notification-content { padding: 5px; spacing: 5px; }
1819
.secondary-icon { icon-size: em(16px); }
1820
.notification-actions {
1821
background-color: transparent;
1822
padding-top: 0;
1823
padding: $container-padding;
1824
spacing: $container-padding;
1825
}
1826
.notification-button {
1827
transition-duration: $duration;
1828
min-height: $medium-size;
1829
padding: 0 8px;
1830
border-radius: $corner-radius;
1831
background-color: transparent;
1832
color: $text-secondary;
1833
font-weight: 500;
1834
&:first-child { border-radius: $corner-radius; }
1835
&:last-child { border-radius: $corner-radius; }
1836
&:hover, &focus { background-color: $overlay-hover; color: $text; }
1837
&:active {
1838
transition-duration: $duration-ripple;
1839
background-color: $overlay-active;
1840
color: $text;
1841
}
1842
}
1843
}
1844
.summary-source-counter {
1845
font-size: 1em;
1846
font-weight: bold;
1847
height: 1.6em; width: 1.6em;
1848
-shell-counter-overlap-x: 3px;
1849
-shell-counter-overlap-y: 3px;
1850
background-color: $primary;
1851
color: on($primary);
1852
border: 2px solid on($primary);
1853
box-shadow: 0 2px 2px rgba(0,0,0,0.5);
1854
border-radius: 0.9em; // should be 0.8 but whatever; wish I could do 50%;
1855
}
1856
1857
.secondary-icon { icon-size: em(16px); }
1858
1859
//chat bubbles
1860
.chat-body { spacing: 5px; }
1861
.chat-response { margin: 5px; }
1862
.chat-log-message { color: $text; }
1863
.chat-new-group { padding-top: 1em; }
1864
.chat-received {
1865
padding-left: 4px;
1866
&:rtl { padding-left: 0px; padding-right: 4px; }
1867
}
1868
.chat-sent {
1869
padding-left: 18pt;
1870
color: $text-secondary;
1871
&:rtl { padding-left: 0; padding-right: 18pt; }
1872
}
1873
.chat-meta-message {
1874
padding-left: 4px;
1875
@include font(caption);
1876
color: $text-secondary;
1877
&:rtl { padding-left: 0; padding-right: 4px; }
1878
}
1879
1880
//hotplug
1881
.hotplug-transient-box {
1882
spacing: 6px;
1883
padding: 2px 72px 2px 12px;
1884
}
1885
.hotplug-notification-item {
1886
padding: 2px 10px;
1887
&:focus { padding: 1px 71px 1px 11px; }
1888
}
1889
1890
.hotplug-notification-item-icon {
1891
icon-size: 24px;
1892
padding: 2px 5px;
1893
}
1894
1895
.hotplug-resident-box { spacing: 8px; }
1896
1897
.hotplug-resident-mount {
1898
transition-duration: $duration;
1899
spacing: 8px;
1900
border-radius: $corner-radius;
1901
&:hover { background-color: $overlay-hover; }
1902
&:active {
1903
transition-duration: $duration-ripple;
1904
background-color: $overlay-active;
1905
}
1906
}
1907
1908
.hotplug-resident-mount-label {
1909
color: inherit;
1910
padding-left: 6px;
1911
}
1912
1913
.hotplug-resident-mount-icon {
1914
icon-size: 24px;
1915
padding-left: 6px;
1916
}
1917
1918
.hotplug-resident-eject-icon {
1919
icon-size: 16px;
1920
}
1921
1922
.hotplug-resident-eject-button {
1923
padding: 7px;
1924
border-radius: $corner-radius;
1925
color: $text;
1926
}
1927
1928
/* Eeeky things */
1929
1930
//magnifier
1931
1932
.magnifier-zoom-region {
1933
border: 2px solid $primary;
1934
&.full-screen { border-width: 0; }
1935
}
1936
1937
//Keyboard
1938
/* On-screen Keyboard */
1939
.word-suggestions {
1940
@include font(subheading);
1941
spacing: 12px;
1942
min-height: 20pt;
1943
}
1944
1945
#keyboard {
1946
background-color: $scrim-alt;
1947
1948
.page-indicator {
1949
padding: 4px 4px;
1950
1951
.page-indicator-icon {
1952
width: 8px;
1953
height: 8px
1954
}
1955
}
1956
}
1957
1958
.key-container {
1959
padding: 4px;
1960
spacing: 4px;
1961
}
1962
1963
.keyboard-key {
1964
min-height: 1.2em;
1965
min-width: 1.2em;
1966
font-size: 2em;
1967
font-weight: 500;
1968
border-radius: $corner-radius;
1969
border: none;
1970
@include button(normal);
1971
&:focus { @include button(focus); }
1972
&:hover,&:checked { @include button(hover); }
1973
&:active { @include button(active);}
1974
&:grayed { //FIXME
1975
background-color: $scrim-alt;
1976
color: on($scrim-alt);
1977
border-color: $scrim-alt;
1978
}
1979
&.default-key {
1980
border-color: transparent;
1981
background-color: $surface;
1982
background-size: 24px;
1983
&:active { background-color: mix($text, $surface, percentage(0.2)); }
1984
}
1985
&.enter-key {
1986
border-color: transparent;
1987
background-color: $suggested;
1988
background-image: url("assets/key-enter.svg");
1989
&:active { background-color: mix(on($suggested), $suggested, percentage(0.2)); }
1990
}
1991
&.shift-key-lowercase {
1992
background-image: url("assets/key-shift.svg");
1993
}
1994
&.shift-key-uppercase {
1995
background-image: url("assets/key-shift-uppercase.svg");
1996
}
1997
&.shift-key-uppercase:latched {
1998
background-image: url("assets/key-shift-latched-uppercase.svg");
1999
}
2000
&.hide-key {
2001
background-image: url("assets/key-hide.svg");
2002
}
2003
&.layout-key {
2004
background-image: url("assets/key-layout.svg");
2005
}
2006
}
2007
2008
.keyboard-subkeys { //long press on a key popup
2009
color: inherit;
2010
padding: 5px;
2011
-arrow-border-radius: 0;
2012
-arrow-background-color: transparent;
2013
-arrow-border-width: 0;
2014
-arrow-border-color: transparent;
2015
-arrow-base: 0;
2016
-arrow-rise: 0;
2017
-boxpointer-gap: 5px;
2018
background-color: $surface;
2019
border-radius: $corner-radius;
2020
box-shadow: $shadow-2;
2021
}
2022
2023
.emoji-page {
2024
.keyboard-key {
2025
border: none;
2026
@include button(flat-normal, $tc: on($scrim-alt));
2027
&:hover, &:focus { @include button(flat-hover, $tc: on($scrim-alt)); }
2028
&:active { @include button(flat-active, $tc: on($scrim-alt)); }
2029
}
2030
}
2031
2032
.emoji-panel {
2033
.keyboard-key:latched {
2034
border-color: transparent;
2035
background-color: $suggested;
2036
color: on($suggested);
2037
}
2038
}
2039
2040
// IBus Candidate Popup
2041
2042
.candidate-popup-content {
2043
padding: 8px;
2044
spacing: 0;
2045
}
2046
2047
.candidate-index {
2048
padding: 0 4px 0 0;
2049
color: $text-secondary;
2050
}
2051
2052
.candidate-box {
2053
transition-duration: $duration;
2054
min-height: $menuitem-size;
2055
padding: 0 8px;
2056
border-radius: $corner-radius;
2057
&:hover { background-color: $overlay-hover; color: $text; transition-duration: 0ms; }
2058
&:active { background-color: $overlay-active; color: $text; transition-duration: $duration-ripple; }
2059
&:selected { background-color: $overlay-selected; color: $text; transition-duration: 0ms; }
2060
}
2061
2062
.candidate-page-button-box {
2063
height: $menuitem-size;
2064
.vertical & { padding-top: 0; }
2065
.horizontal & { padding-left: 0; }
2066
}
2067
2068
.candidate-page-button {
2069
min-width: $menuitem-size;
2070
min-height: $menuitem-size;
2071
padding: 0;
2072
}
2073
2074
.candidate-page-button-previous { border-radius: $corner-radius; border-right-width: 0; }
2075
.candidate-page-button-next { border-radius: $corner-radius; }
2076
.candidate-page-button-icon { icon-size: em(16px); }
2077
2078
/* Auth Dialogs & Screen Shield */
2079
2080
.user-icon {
2081
background-size: contain;
2082
border: none;
2083
color: on($os-background);
2084
border-radius: $circular-radius;
2085
&:hover {
2086
border-color: on($os-background);
2087
color: on($os-background);
2088
}
2089
}
2090
2091
// LOGIN DIALOG
2092
2093
.login-dialog-banner-view {
2094
padding-top: 24px;
2095
max-width: 23em;
2096
}
2097
2098
.login-dialog {
2099
//reset
2100
border: none;
2101
background-color: transparent;
2102
2103
StEntry {
2104
color: on($os-background);
2105
selection-background-color: on($os-background, track);
2106
selected-color: on($os-background);
2107
@include entry(normal, $fc:on($os-background, track));
2108
&:focus { @include entry(focus, $fc:on($os-background)); }
2109
&:insensitive {
2110
@include entry(insensitive, $fc:on($os-background, divider));
2111
color: on($os-background, disabled);
2112
}
2113
}
2114
2115
.modal-dialog-button-box { spacing: 3px; }
2116
.modal-dialog-button {
2117
padding: 0 16px;
2118
@include button(flat-normal, $tc: on($os-background));
2119
&:hover,&:focus { @include button(flat-hover, $tc: on($os-background)); }
2120
&:active { @include button(flat-active, $tc: on($os-background)); }
2121
&:insensitive { @include button(flat-insensitive, $tc: on($os-background)); }
2122
2123
&:default {
2124
@include button(normal, $c: $suggested, $tc: on($suggested));
2125
&:hover,&:focus { @include button(hover, $c: $suggested, $tc: on($suggested)); }
2126
&:active { @include button(active, $c: $suggested, $tc: on($suggested)); }
2127
&:insensitive { @include button(insensitive, $c: on($os-background, fill), $tc: on($os-background, disabled)); }
2128
}
2129
}
2130
}
2131
2132
.login-dialog-logo-bin { padding: 24px 0px; }
2133
.login-dialog-banner { color: on($os-background, secondary); }
2134
.login-dialog-button-box { spacing: 5px; }
2135
.login-dialog-message-warning { color: $warning; }
2136
.login-dialog-message-hint { padding-top: 0; padding-bottom: 20px; }
2137
.login-dialog-user-selection-box { padding: 100px 0px; }
2138
.login-dialog-not-listed-label {
2139
padding-left: 2px;
2140
.login-dialog-not-listed-button:focus &,
2141
.login-dialog-not-listed-button:hover & {
2142
color: on($os-background);
2143
}
2144
}
2145
.login-dialog-not-listed-label {
2146
transition-duration: $duration;
2147
font-size: 1em;
2148
font-weight: bold;
2149
color: on($os-background, secondary);
2150
padding-top: 1em;
2151
border-radius: $corner-radius;
2152
&:hover {
2153
background-color: $inverse-overlay-hover;
2154
color: on($os-background);
2155
}
2156
&:focus { background-color: $inverse-overlay-focus; }
2157
&:active {
2158
transition-duration: $duration-ripple;
2159
background-color: $inverse-overlay-active;
2160
color: on($os-background);
2161
}
2162
}
2163
2164
.login-dialog-user-list-view { -st-vfade-offset: 1em; }
2165
.login-dialog-user-list {
2166
spacing: 12px;
2167
width: 23em;
2168
&:expanded .login-dialog-user-list-item:selected { background-color: $inverse-overlay-focus; color: on($os-background); }
2169
&:expanded .login-dialog-user-list-item:hover { background-color: $inverse-overlay-hover; color: on($os-background); }
2170
&:expanded .login-dialog-user-list-item:active { background-color: $inverse-overlay-active; color: on($os-background); }
2171
&:expanded .login-dialog-user-list-item:logged-in { border-right: 2px solid on($os-background); }
2172
}
2173
.login-dialog-user-list-item {
2174
transition-duration: $duration;
2175
border-radius: $corner-radius;
2176
padding: 6px;
2177
color: on($os-background, secondary);
2178
&:ltr .user-widget { padding-right: 1em; }
2179
&:rtl .user-widget { padding-left: 1em; }
2180
&:hover {
2181
background-color: $inverse-overlay-hover;
2182
color: on($os-background);
2183
}
2184
&:active {
2185
transition-duration: $duration-ripple;
2186
background-color: $inverse-overlay-active;
2187
color: on($os-background);
2188
}
2189
.login-dialog-timed-login-indicator {
2190
height: 2px;
2191
margin-top: 6px;
2192
background-color: on($os-background);
2193
}
2194
&:focus .login-dialog-timed-login-indicator { background-color: on($os-background); }
2195
}
2196
2197
.login-dialog-username,
2198
.user-widget-label {
2199
color: on($os-background);
2200
@include font(title);
2201
text-align: left;
2202
padding-left: 15px;
2203
}
2204
.user-widget-label {
2205
&:ltr { padding-left: 14px; }
2206
&:rtl { padding-right: 14px; }
2207
}
2208
2209
.login-dialog-prompt-layout {
2210
padding-top: 24px;
2211
padding-bottom: 12px;
2212
spacing: 8px;
2213
width: 23em;
2214
}
2215
2216
.login-dialog-prompt-label {
2217
color: on($os-background, secondary);
2218
font-size: 1em;
2219
padding-top: 1em;
2220
}
2221
2222
.login-dialog-session-list-button StIcon {
2223
icon-size: 1.25em;
2224
}
2225
2226
.login-dialog-session-list-button {
2227
color: on($os-background, secondary);
2228
&:hover,&:focus { color: on($os-background); }
2229
&:active { color: on($os-background); }
2230
}
2231
2232
//SCREEN SHIELD
2233
2234
.screen-shield-arrows {
2235
padding-bottom: 3em;
2236
}
2237
2238
.screen-shield-arrows Gjs_Arrow {
2239
color: white;
2240
width: 80px;
2241
height: 48px;
2242
-arrow-thickness: 12px;
2243
-arrow-shadow: $shadow-1;
2244
}
2245
2246
.screen-shield-clock {
2247
color: white;
2248
text-shadow: $shadow-1;
2249
font-weight: normal;
2250
text-align: center;
2251
padding-bottom: 1.5em;
2252
}
2253
2254
.screen-shield-clock-time {
2255
@include font(display-4);
2256
text-shadow: $shadow-1;
2257
font-feature-settings: "tnum";
2258
}
2259
2260
.screen-shield-clock-date { @include font(display-2); }
2261
2262
.screen-shield-notifications-container {
2263
spacing: 6px;
2264
width: 30em;
2265
background-color: transparent;
2266
max-height: 500px;
2267
.summary-notification-stack-scrollview {
2268
padding-top: 0;
2269
padding-bottom: 0;
2270
}
2271
2272
.notification,
2273
.screen-shield-notification-source {
2274
padding: 8px;
2275
border: none;
2276
background-color: $scrim-alt;
2277
color: on($scrim-alt);
2278
border-radius: $corner-radius;
2279
}
2280
.notification { margin-right: 16px; } //compensate for space allocated to the scrollbar
2281
}
2282
2283
2284
.screen-shield-notification-label {
2285
min-height: $small-size - 2px;
2286
padding: 2px 0px 0px 16px;
2287
font-weight: bold;
2288
}
2289
2290
.screen-shield-notification-count-text {
2291
min-height: $small-size - 2px;
2292
padding: 2px 0px 0px 16px;
2293
color: on($scrim-alt, secondary);
2294
}
2295
2296
#panel.lock-screen { background-color: $scrim-alt; }
2297
2298
.screen-shield-background { //just the shadow, really
2299
background: black;
2300
box-shadow: $shadow-5;
2301
}
2302
2303
#lockDialogGroup {
2304
background: $os-background;
2305
background-size: cover;
2306
}
2307
2308
#screenShieldNotifications {
2309
StScrollBar { @extend %overview_scrollbar; }
2310
}
2311
2312
2313
// Looking Glass
2314
#LookingGlassDialog {
2315
background-color: $surface;
2316
spacing: 4px;
2317
padding: 0;
2318
border: none;
2319
border-radius: $corner-radius;
2320
box-shadow: $shadow-4;
2321
& > #Toolbar {
2322
padding: 0 8px;
2323
border: none;
2324
border-radius: 0;
2325
background-color: rgba($surface, 0.01);
2326
box-shadow: inset 0 -1px 0 $border;
2327
}
2328
.labels { spacing: 0; }
2329
.notebook-tab {
2330
-natural-hpadding: 12px;
2331
-minimum-hpadding: 6px;
2332
font-weight: bold;
2333
color: $text-secondary;
2334
transition-duration: $duration;
2335
padding-left: 16px;
2336
padding-right: 16px;
2337
min-height: $medium-size;
2338
padding: 0 16px * 2;
2339
&:hover {
2340
background-color: $overlay-hover;
2341
color: $text;
2342
text-shadow: none;
2343
}
2344
&:active {
2345
background-color: $overlay-active;
2346
color: $text;
2347
transition-duration: $duration-ripple;
2348
}
2349
&:selected {
2350
border-bottom-width: 0;
2351
border-color: transparent;
2352
background-color: rgba($surface, 0.01);
2353
box-shadow: inset 0 -2px 0px $primary;
2354
color: $text;
2355
text-shadow: none;
2356
}
2357
}
2358
StBoxLayout#EvalBox { padding: 4px; spacing: 4px; }
2359
StBoxLayout#ResultsArea { spacing: 4px; }
2360
}
2361
2362
.lg-dialog {
2363
StEntry {
2364
selection-background-color: $overlay-selected;
2365
selected-color: $text;
2366
}
2367
.shell-link {
2368
color: $link;
2369
&:hover { color: $link; }
2370
}
2371
}
2372
2373
.lg-completions-text {
2374
font-size: 1em;
2375
font-style: italic;
2376
}
2377
2378
.lg-obj-inspector-title {
2379
spacing: 4px;
2380
}
2381
2382
.lg-obj-inspector-button {
2383
min-height: $medium-size;
2384
padding: 0 16px;
2385
border: none;
2386
border-radius: $corner-radius;
2387
@include font(button);
2388
@include button(flat-normal);
2389
&:hover { @include button(flat-hover); }
2390
&:active { @include button(flat-active); }
2391
&:insensitive { @include button(flat-insensitive); }
2392
&:focus { @include button(flat-focus); }
2393
&:hover { border: none; }
2394
}
2395
2396
#lookingGlassExtensions { padding: 4px; }
2397
2398
.lg-extensions-list {
2399
padding: 4px;
2400
spacing: 6px;
2401
}
2402
2403
.lg-extension {
2404
border: none;
2405
border-radius: $corner-radius;
2406
padding: 4px;
2407
}
2408
2409
.lg-extension-name {
2410
@include font(headline);
2411
}
2412
2413
.lg-extension-meta {
2414
spacing: 6px;
2415
}
2416
2417
#LookingGlassPropertyInspector {
2418
background: $surface;
2419
border: none;
2420
border-radius: $corner-radius;
2421
padding: 6px;
2422
box-shadow: $shadow-4;
2423
}
2424