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