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

View raw Download
text/plain • 54.82 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: $material_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: $material_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: $material_radius;
66
}
67
&:last-child {
68
margin-right: $container_padding;
69
border-right-width: 0px;
70
border-radius: $material_radius;
71
}
72
&:first-child:last-child {
73
margin-right: $container_padding;
74
border-right-width: 0px;
75
border-radius: $material_radius;
76
}
77
}
78
79
/* Entries */
80
StEntry {
81
min-height: $medium_size;
82
padding: 0 8px;
83
border-radius: $material_radius $material_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: $shorter_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: $inverse-divider;
136
}
137
138
StButton#vhandle, StButton#hhandle {
139
background-color: $inverse-text-disabled;
140
&:hover { background-color: $inverse-text-secondary; }
141
&:active { background-color: $inverse-text; }
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: $shorter_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: $longer_duration;
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: $shorter_duration;
219
border-radius: $material_radius;
220
color: $link;
221
&:hover {
222
color: $link;
223
background-color: rgba($link, 0.08);
224
}
225
&:active {
226
transition-duration: $longer_duration;
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: $material_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: 2px solid #8b8b8b;
326
border-radius: 5px;
327
width: 48px;
328
height: 48px;
329
background-size: contain;
330
}
331
332
.end-session-dialog-shutdown-icon {
333
color: $text-disabled;
334
width: 48px;
335
height: 48px;
336
}
337
338
.end-session-dialog-inhibitor-layout {
339
spacing: 16px;
340
max-height: 200px;
341
padding-right: 65px;
342
padding-left: 65px;
343
}
344
345
.end-session-dialog-session-list,
346
.end-session-dialog-app-list {
347
spacing: 1em;
348
}
349
350
.end-session-dialog-list-header {
351
font-weight: bold;
352
&:rtl { text-align: right; }
353
}
354
355
.end-session-dialog-app-list-item,
356
.end-session-dialog-session-list-item {
357
spacing: 1em;
358
}
359
360
.end-session-dialog-app-list-item-name,
361
.end-session-dialog-session-list-item-name {
362
font-weight: bold;
363
}
364
365
.end-session-dialog-app-list-item-description {
366
color: $text-secondary;
367
font-size: 1em;
368
}
369
370
/* ShellMountOperation Dialogs */
371
.shell-mount-operation-icon { icon-size: 48px; }
372
373
.mount-dialog {
374
spacing: 24px;
375
376
.message-dialog-title {
377
padding-top: 10px;
378
padding-left: 17px;
379
padding-bottom: 6px;
380
max-width: 34em;
381
}
382
383
.message-dialog-title:rtl {
384
padding-left: 0px;
385
padding-right: 17px;
386
}
387
388
.message-dialog-body {
389
padding-left: 17px;
390
width: 28em;
391
}
392
393
.message-dialog-body:rtl {
394
padding-left: 0px;
395
padding-right: 17px;
396
}
397
}
398
399
.mount-dialog-app-list {
400
max-height: 200px;
401
padding-top: 24px;
402
padding-left: 49px;
403
padding-right: 32px;
404
}
405
406
.mount-dialog-app-list:rtl {
407
padding-right: 49px;
408
padding-left: 32px;
409
}
410
411
.mount-dialog-app-list-item {
412
color: $text;
413
&:hover { color: $text; }
414
&:ltr { padding-right: 1em; }
415
&:rtl { padding-left: 1em; }
416
}
417
418
.mount-dialog-app-list-item-icon {
419
&:ltr { padding-right: 17px; }
420
&:rtl { padding-left: 17px; }
421
}
422
423
.mount-dialog-app-list-item-name {
424
font-size: 1em;
425
}
426
427
428
/* Password or Authentication Dialog */
429
430
.prompt-dialog {
431
//this is the width of the entire modal popup
432
width: 34em;
433
border: none;
434
435
.message-dialog-main-layout { spacing: 24px; padding: 10px; }
436
.message-dialog-content { spacing: 16px; }
437
.message-dialog-title { @include font(title); color: $text; }
438
}
439
440
.prompt-dialog-description:rtl {
441
text-align: right;
442
}
443
444
.prompt-dialog-password-box {
445
spacing: 1em;
446
padding-bottom: 1em;
447
}
448
449
.prompt-dialog-error-label {
450
font-size: 1em;
451
color: $error;
452
padding-bottom: 8px;
453
}
454
455
.prompt-dialog-info-label {
456
font-size: 1em;
457
padding-bottom: 8px;
458
}
459
460
.hidden {
461
color: rgba(0,0,0,0);
462
}
463
464
.prompt-dialog-null-label {
465
font-size: 1em;
466
padding-bottom: 8px;
467
}
468
469
470
/* Polkit Dialog */
471
472
.polkit-dialog-user-layout {
473
padding-left: 10px;
474
spacing: 10px;
475
&:rtl {
476
padding-left: 0px;
477
padding-right: 10px;
478
}
479
}
480
481
.polkit-dialog-user-root-label {
482
color: $warning;
483
}
484
485
.polkit-dialog-user-icon {
486
border-radius: 5px;
487
background-size: contain;
488
width: 48px;
489
height: 48px;
490
}
491
492
/* Audio selection dialog */
493
.audio-device-selection-dialog {
494
spacing: 30px;
495
}
496
497
.audio-selection-content {
498
spacing: 20px;
499
padding: 24px;
500
}
501
502
.audio-selection-title {
503
font-weight: bold;
504
text-align: center;
505
}
506
507
.audio-selection-box {
508
spacing: 20px;
509
}
510
511
.audio-selection-device {
512
border: 1px solid $border;
513
border-radius: $material_radius;
514
&:active,&:hover,&:focus { background-color: $primary; }
515
}
516
517
.audio-selection-device-box {
518
padding: 20px;
519
spacing: 20px;
520
}
521
522
.audio-selection-device-icon {
523
icon-size: 64px;
524
}
525
526
/* Access Dialog */
527
.access-dialog {
528
spacing: 30px;
529
}
530
531
/* Geolocation Dialog */
532
.geolocation-dialog {
533
spacing: 30px;
534
}
535
536
/* Extension Dialog */
537
.extension-dialog {
538
.message-dialog-main-layout { spacing: 24px; padding: 10px; }
539
.message-dialog-title { color: $text-secondary; }
540
}
541
542
/* Inhibit-Shortcuts Dialog */
543
.inhibit-shortcuts-dialog {
544
spacing: 30px;
545
}
546
547
/* Network Agent Dialog */
548
549
.network-dialog-secret-table {
550
spacing-rows: 15px;
551
spacing-columns: 1em;
552
}
553
554
.keyring-dialog-control-table {
555
spacing-rows: 15px;
556
spacing-columns: 1em;
557
}
558
559
/* Popovers/Menus */
560
561
.popup-menu {
562
min-width: 200px;
563
564
.popup-menu-arrow { } //defined globally in the TOP BAR
565
.popup-sub-menu {
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: $shorter_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: $longer_duration;
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: $material_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: $shorter_duration;
706
padding: 8px;
707
border-radius: $material_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: $shorter_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: $inverse-text;
773
background-size: 32px;
774
border-radius: $material_radius;
775
}
776
777
.ws-switcher-box {
778
height: 48px;
779
border: none;
780
background: $divider;
781
border-radius: $material_radius;
782
}
783
784
%osd-panel {
785
color: $text;
786
background-color: $surface;
787
border: none;
788
box-shadow: $shadow_4;
789
border-radius: $material_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: $scrim;
815
/* transition from solid to transparent */
816
transition-duration: $panel_duration;
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: $scrim;
835
-panel-corner-border-width: 2px;
836
-panel-corner-border-color: transparent;
837
838
&:active, &:overview, &:focus {
839
-panel-corner-border-color: $inverse-text;
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: $inverse-text-secondary;
854
text-shadow: none;
855
transition-duration: $shorter_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: $inverse-text;
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($scrim, 0.01);
885
box-shadow: inset 0 -2px 0px $inverse-text;
886
color: $inverse-text;
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: $inverse-text-secondary;
896
&:focus, &:hover, &:active { color: $inverse-text; }
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: $panel_duration;
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: $inverse-text-secondary;
929
text-shadow: none;
930
931
&:hover, &:active, &:overview, &:focus, &:checked {
932
color: $inverse-text;
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: $material_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: $shorter_duration;
996
&:hover,&:focus { color: $text; background-color: $overlay-hover; }
997
&:active {
998
transition-duration: $longer_duration;
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
.world-clocks-grid {
1019
spacing-rows: 0.4em;
1020
}
1021
1022
.weather-box {
1023
spacing: 0.4em;
1024
}
1025
1026
.calendar-month-label {
1027
transition-duration: $shorter_duration;
1028
height: $menuitem_size - 6px * 2;
1029
margin: 2px;
1030
padding: 6px 16px;
1031
border-radius: $material_radius;
1032
color: $text;
1033
font-weight: bold;
1034
text-align: center;
1035
&:focus { background-color: $overlay-focus; }
1036
}
1037
1038
.pager-button {
1039
transition-duration: $shorter_duration;
1040
width: $menuitem_size;
1041
height: $menuitem_size;
1042
margin: 2px;
1043
border-radius: 100px;
1044
background-color: transparent;
1045
color: $text;
1046
&:hover, &:focus { background-color: $overlay-hover; }
1047
&:active { background-color: $overlay-active; transition-duration: $longer_duration; }
1048
}
1049
1050
.calendar-change-month-back { //arrow back
1051
background-image: url("assets/calendar-arrow-left.svg");
1052
&:rtl { background-image: url("assets/calendar-arrow-right.svg"); }
1053
}
1054
.calendar-change-month-forward { //arrow foreward
1055
background-image: url("assets/calendar-arrow-right.svg");
1056
&:rtl { background-image: url("assets/calendar-arrow-left.svg"); }
1057
}
1058
1059
.calendar-day-base {
1060
transition-duration: $shorter_duration;
1061
@include font(caption);
1062
text-align: center;
1063
width: $menuitem_size; height: $menuitem_size;
1064
padding: 0;
1065
margin: 2px;
1066
border-radius: 100px;
1067
font-feature-settings: "tnum";
1068
&:hover,&:focus { background-color: $overlay-hover; }
1069
&:active {
1070
transition-duration: $longer_duration;
1071
color: inherit;
1072
background-color: $overlay-active;
1073
border-color: transparent; //avoid jumparound due to today
1074
}
1075
&:selected {
1076
color: $text;
1077
background-color: $overlay-selected;
1078
border-color: transparent; //avoid jumparound due to today
1079
}
1080
&.calendar-day-heading { //day of week heading
1081
width: $menuitem_size; height: $menuitem_size - 7px;
1082
margin-top: 2px;
1083
padding: 7px 0 0;
1084
border-radius: 100px;
1085
background-color: transparent;
1086
color: $text-disabled;
1087
@include font(caption);
1088
font-weight: bold;
1089
text-align: center;
1090
}
1091
}
1092
.calendar-day { //border collapse hack - see calendar.js
1093
border-width: 0;
1094
}
1095
.calendar-day-top { border-top-width: 0; }
1096
.calendar-day-left { border-left-width: 0; }
1097
.calendar-work-day {
1098
1099
}
1100
.calendar-nonwork-day {
1101
color: $text;
1102
}
1103
.calendar-today {
1104
font-weight: bold !important;
1105
//color: $text;
1106
//background-color: transparent;
1107
border: none;
1108
}
1109
.calendar-day-with-events {
1110
color: $link;
1111
font-weight: normal;
1112
text-decoration: underline;
1113
background-image: none;
1114
}
1115
.calendar-other-month-day {
1116
color: $text-secondary-disabled;
1117
opacity: 0.5;
1118
}
1119
.calendar-week-number {
1120
width: $menuitem_size; height: $menuitem_size - 7px;
1121
margin: 2px;
1122
padding: 7px 0 0;
1123
border-radius: 100px;
1124
background-color: transparent;
1125
color: $text-disabled;
1126
font-size: inherit;
1127
font-weight: bold;
1128
text-align: center;
1129
}
1130
1131
/* Message list */
1132
.message-list {
1133
width: 420px;
1134
}
1135
1136
.message-list-clear-button.button {
1137
background-color: transparent;
1138
&:hover,&:focus { background-color: $overlay-hover; }
1139
&:active { background-color: $overlay-active; }
1140
margin: 8px 8px 0;
1141
}
1142
1143
.message-list-sections {
1144
spacing: 8px;
1145
}
1146
1147
.message-list-section,
1148
.message-list-section-list {
1149
spacing: 8px;
1150
}
1151
1152
.message {
1153
transition-duration: $shorter_duration;
1154
min-height: $menuitem_size * 2;
1155
background-color: transparent;
1156
&:hover,&:focus { background-color: $overlay-hover; }
1157
&:active {
1158
transition-duration: $longer_duration;
1159
background-color: $overlay-active;
1160
}
1161
border-radius: $material_radius;
1162
}
1163
1164
.message-icon-bin {
1165
padding: 8px 0px 8px 8px;
1166
&:rtl { padding: 8px 8px 8px 0px; }
1167
}
1168
1169
.message-icon-bin > StIcon {
1170
color: $text;
1171
icon-size: em(16px);
1172
-st-icon-style: requested;
1173
margin: 4px 0px 4px 4px;
1174
&:rtl { margin: 4px 4px 4px 0px; }
1175
}
1176
1177
.message-secondary-bin {
1178
padding: 0 8px;
1179
}
1180
1181
.message-secondary-bin > .event-time {
1182
min-height: $small_size - 2px;
1183
padding-top: 2px;
1184
color: $text-secondary;
1185
font-size: 1em;
1186
/* HACK: the label should be baseline-aligned with a 1em label,
1187
fake this with some bottom padding */
1188
padding-bottom: 0;
1189
}
1190
1191
.message-secondary-bin > StIcon {
1192
icon-size: em(16px);
1193
}
1194
1195
.message-title {
1196
min-height: $small_size - 2px;
1197
padding-top: 2px;
1198
color: $text;
1199
font-weight: bold;
1200
font-size: 1em;
1201
}
1202
1203
.message-content {
1204
min-height: $menuitem_size * 2 - 8px * 2;
1205
padding: 8px;
1206
color: $text-secondary;
1207
font-size: 1em;
1208
}
1209
1210
.message-content * > StIcon {
1211
transition-duration: $shorter_duration;
1212
icon-size: 16px;
1213
border-radius: 16px;
1214
padding: ($small_size - 16px) / 2;
1215
color: $text-secondary;
1216
}
1217
1218
/* FIXME: how do you do this in sass? */
1219
.message-content *:hover > StIcon,
1220
.message-content *:focus > StIcon {
1221
color: $text;
1222
background-color: $overlay-hover;
1223
}
1224
1225
.message-content *:active > StIcon {
1226
transition-duration: $longer_duration;
1227
color: $text;
1228
background-color: $overlay-active;
1229
}
1230
1231
.message-media-control {
1232
transition-duration: $shorter_duration;
1233
margin: 16px 0;
1234
padding: 8px;
1235
border-radius: 100px;
1236
color: $text-secondary;
1237
&:hover,&:focus { color: $text; background-color: $overlay-hover; }
1238
&:active { color: $text; background-color: $overlay-active; transition-duration: $longer_duration; }
1239
&:insensitive { color: $text-secondary-disabled; }
1240
1241
&:last-child:ltr { margin-right: 16px; padding-right: 8px; }
1242
&:last-child:rtl { margin-left: 16px; padding-left: 8px; }
1243
}
1244
1245
.media-message-cover-icon {
1246
icon-size: 32px !important;
1247
margin: 8px 0px 8px 4px !important;
1248
&:rtl { margin: 8px 4px 8px 0px !important; }
1249
&.fallback {
1250
icon-size: 16px !important;
1251
padding: 8px;
1252
border: none;
1253
border-radius: $material_radius;
1254
background-color: $divider;
1255
color: $text-disabled;
1256
}
1257
}
1258
1259
1260
// a little unstructured mess:
1261
1262
.system-switch-user-submenu-icon.user-icon {
1263
icon-size: 20px;
1264
padding: 0 2px;
1265
}
1266
.system-switch-user-submenu-icon.default-icon {
1267
icon-size: 16px;
1268
padding: 0 4px;
1269
}
1270
1271
#appMenu {
1272
spinner-image: url("process-working.svg");
1273
spacing: 4px;
1274
1275
.label-shadow { color: transparent; }
1276
}
1277
1278
.aggregate-menu {
1279
min-width: 280px;
1280
.popup-menu-icon { padding: 0 4px; }
1281
.popup-sub-menu .popup-menu-item > :first-child {
1282
&:ltr { /* 8px spacing + 2*4px padding */
1283
padding-left: 16px; margin-left: em(16px); }
1284
&:rtl { /* 8px spacing + 2*4px padding */
1285
padding-right: 16px; margin-right: em(16px); }
1286
}
1287
}
1288
1289
.system-menu-action {
1290
-st-icon-style: symbolic;
1291
color: $text-secondary;
1292
border-radius: 100px; /* wish we could do 50% */
1293
padding: ($large_size - 16px) / 2;
1294
border: none;
1295
transition-duration: $shorter_duration;
1296
1297
&:hover, &:focus {
1298
background-color: $overlay-hover;
1299
color: $text;
1300
border: none;
1301
padding: ($large_size - 16px) / 2;
1302
}
1303
&:active { background-color: $overlay-active; color: $text; transition-duration: $longer_duration; }
1304
1305
& > StIcon { icon-size: 16px; }
1306
}
1307
1308
//Activities Ripples
1309
.ripple-box {
1310
width: 48px;
1311
height: 48px;
1312
border-radius: 0 0 48px 0;
1313
background-color: $inverse-track;
1314
background-image: none;
1315
background-size: auto;
1316
}
1317
1318
.ripple-box:rtl {
1319
border-radius: 0 0 0 48px;
1320
background-image: none;
1321
}
1322
1323
// not really top bar only
1324
.popup-menu-arrow { width: 16px; height: 16px; }
1325
.popup-menu-icon { icon-size: em(16px); }
1326
1327
//close buttons
1328
1329
.window-close {
1330
// FIXME: unless disable the transition, button will distort when hovering
1331
// transition-duration: $shorter_duration;
1332
height: $medium_size;
1333
width: $medium_size;
1334
-shell-close-overlap: $medium_size / 2;
1335
-st-background-image-shadow: $shadow_1;
1336
background-image: url("assets/window-close.svg");
1337
background-size: $medium_size;
1338
1339
&:hover {
1340
-st-background-image-shadow: $shadow_2;
1341
background-image: url("assets/window-close.svg");
1342
}
1343
&:active {
1344
// transition-duration: $longer_duration;
1345
background-image: url("assets/window-close-active.svg");
1346
}
1347
1348
// For backward compatibility of 3.26.0
1349
&:rtl { -st-background-image-shadow: $shadow_1; }
1350
&:rtl:hover { -st-background-image-shadow: $shadow_2; }
1351
}
1352
1353
/* NETWORK DIALOGS */
1354
1355
.nm-dialog {
1356
max-height: 34em;
1357
min-height: 31em;
1358
min-width: 32em;
1359
}
1360
1361
.nm-dialog-content {
1362
spacing: 20px;
1363
padding: 24px;
1364
}
1365
.nm-dialog-header-hbox { spacing: 10px; }
1366
.nm-dialog-airplane-box { spacing: 12px; }
1367
1368
.nm-dialog-airplane-headline {
1369
font-weight: bold;
1370
text-align: center;
1371
}
1372
1373
.nm-dialog-airplane-text { color: $text; }
1374
.nm-dialog-header-icon { icon-size: 32px; }
1375
.nm-dialog-scroll-view { border: none; }
1376
.nm-dialog-header { @include font(title); }
1377
1378
.nm-dialog-item {
1379
transition-duration: $shorter_duration;
1380
font-size: 1em;
1381
border-bottom: none;
1382
border-radius: $material_radius;
1383
padding: 12px;
1384
spacing: 20px;
1385
&:hover, &:focus { background-color: $overlay-hover; }
1386
&:active {
1387
transition-duration: $longer_duration;
1388
background-color: $overlay-active;
1389
}
1390
}
1391
1392
.nm-dialog-item:selected {
1393
background-color: $overlay-selected;
1394
color: $text;
1395
}
1396
1397
.nm-dialog-icons { spacing: .5em; }
1398
.nm-dialog-icon { icon-size: 16px; }
1399
.no-networks-label { color: $text-disabled; }
1400
.no-networks-box { spacing: 12px; }
1401
1402
/* OVERVIEW */
1403
1404
#overview {
1405
spacing: 24px; //
1406
StScrollBar { @extend %overview_scrollbar; }
1407
}
1408
1409
.overview-controls {
1410
padding-bottom: 32px;
1411
}
1412
1413
.window-picker { //container around window thumbnails
1414
-horizontal-spacing: 16px;
1415
-vertical-spacing: 16px;
1416
padding: 0 16px 32px;
1417
1418
&.external-monitor { padding: 16px; }
1419
}
1420
1421
.window-clone-border {
1422
border: 4px solid $inverse-track;
1423
border-radius: $material_radius;
1424
// For window decorations with round corners we can't match
1425
// the exact shape when the window is scaled. So apply a shadow
1426
// to fix that case
1427
box-shadow: inset 0 0 0 1px $inverse-track;
1428
}
1429
.window-caption {
1430
spacing: 25px;
1431
color: $inverse-text;
1432
background-color: $scrim;
1433
border-radius: $material_radius;
1434
padding: 4px 8px;
1435
}
1436
1437
//search entry
1438
.search-entry {
1439
width: 320px - 8px * 2;
1440
padding: 0 8px;
1441
border-radius: $material_radius $material_radius 0 0;
1442
color: $inverse-text-disabled;
1443
selection-background-color: $inverse-track;
1444
selected-color: $inverse-text;
1445
@include entry(normal,$fc:$inverse-track);
1446
&:hover { @include entry(hover,$fc:$inverse-track); }
1447
&:focus {
1448
@include entry(focus,$fc:$inverse-text);
1449
padding: 0 8px;
1450
border-width: 0;
1451
color: $inverse-text;
1452
}
1453
1454
.search-entry-icon { icon-size: 16px; padding: 0 0; color: $inverse-text-secondary; }
1455
1456
&:hover, &:focus {
1457
.search-entry-icon { color: $inverse-text; }
1458
}
1459
}
1460
1461
//search results
1462
1463
#searchResultsBin {
1464
max-width: 1000px;
1465
}
1466
1467
#searchResultsContent {
1468
padding-left: 20px;
1469
padding-right: 20px;
1470
spacing: 16px;
1471
}
1472
1473
.search-section { spacing: 16px; } // This should be equal to #searchResultsContent spacing
1474
.search-section-content { spacing: 32px; } // This is the space between the provider icon and the results container
1475
.search-statustext { // "no results"
1476
@extend %status_text;
1477
}
1478
.list-search-results { spacing: 3px; }
1479
1480
.search-section-separator { height: 1px; background-color: $inverse-divider; }
1481
1482
.list-search-result-content { spacing: 30px; }
1483
.list-search-result-title { @include font(subheading); color: $inverse-text; spacing: 12px; }
1484
.list-search-result-description { color: $inverse-text-secondary; }
1485
.list-search-provider-details { width: 150px; color: $inverse-text-secondary; margin-top: 0.24em; }
1486
.list-search-provider-content { spacing: 20px; }
1487
.search-provider-icon { padding: 15px; }
1488
1489
1490
/* DASHBOARD */
1491
1492
#dash {
1493
transition-duration: $panel_duration;
1494
font-size: 1em;
1495
color: $inverse-text;
1496
background-color: $scrim-inverse;
1497
padding: 3px 0;
1498
border: none;
1499
border-left: 0px;
1500
border-radius: 0px $material_radius $material_radius 0px;
1501
1502
&:rtl {
1503
border-radius: $material_radius 0 0 $material_radius;
1504
}
1505
1506
.placeholder {
1507
background-image: url("assets/dash-placeholder.svg");
1508
background-size: contain;
1509
height: 24px;
1510
}
1511
1512
.empty-dash-drop-target {
1513
width: 24px;
1514
height: 24px;
1515
}
1516
1517
}
1518
1519
.dash-item-container > StWidget {
1520
padding: 3px 6px;
1521
}
1522
1523
.dash-label { //osd tooltip
1524
// min-height: 32px - 6px * 2;
1525
border-radius: $material_radius;
1526
padding: 7px 8px;
1527
color: $text;
1528
background-color: $surface;
1529
box-shadow: $shadow_2;
1530
text-align: center;
1531
-x-offset: 8px;
1532
}
1533
1534
/* App Vault/Grid */
1535
.icon-grid {
1536
spacing: 30px;
1537
-shell-grid-horizontal-item-size: 136px;
1538
-shell-grid-vertical-item-size: 136px;
1539
1540
.overview-icon { icon-size: 96px; }
1541
}
1542
//.app-display { spacing: 20px; }
1543
1544
.system-action-icon {
1545
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2); // FIXME: this should really have a highlight
1546
background-color: $grey_900;
1547
color: $white;
1548
border-radius: 99px;
1549
icon-size: 48px;
1550
}
1551
1552
.app-view-controls { //favorties | all toggle container
1553
width: 320px;
1554
padding-bottom: 32px;
1555
}
1556
.app-view-control { //favorties | all toggle button
1557
padding: 0 16px;
1558
font-weight: bold;
1559
color: $inverse-text-secondary;
1560
&:hover {
1561
color: $inverse-text;
1562
background-color: $inverse-overlay-hover !important;
1563
}
1564
&:active {
1565
color: $inverse-text;
1566
background-color: $inverse-overlay-active !important;
1567
}
1568
&:checked {
1569
color: $inverse-text;
1570
background-color: rgba($scrim, 0.01) !important;
1571
box-shadow: inset 0 2px 0 $inverse-text;
1572
}
1573
&:first-child {
1574
border-right-width: 0;
1575
border-radius: $material_radius;
1576
&:checked { border-radius: 0; }
1577
}
1578
&:last-child {
1579
border-radius: $material_radius;
1580
&:checked { border-radius: 0; }
1581
}
1582
}
1583
1584
//Icon tile
1585
.search-provider-icon,
1586
.list-search-result {
1587
@extend %icon_tile;
1588
&:focus, &:selected, &:hover {
1589
background-color: $inverse-overlay-hover;
1590
transition-duration: 0ms;
1591
}
1592
&:active, &:checked {
1593
background-color: $inverse-overlay-active;
1594
transition-duration: $longer_duration;
1595
}
1596
}
1597
.app-well-app,
1598
.app-well-app.app-folder,
1599
.show-apps,
1600
.grid-search-result {
1601
& .overview-icon {
1602
@extend %icon_tile;
1603
}
1604
&:hover .overview-icon,
1605
&:focus .overview-icon,
1606
&:selected .overview-icon {
1607
background-color: $inverse-overlay-hover;
1608
transition-duration: 0ms;
1609
border-image: none;
1610
background-image: none;
1611
}
1612
&:active .overview-icon,
1613
&:checked .overview-icon {
1614
background-color: $inverse-overlay-active;
1615
box-shadow: $shadow_0;
1616
transition-duration: $longer_duration;
1617
}
1618
1619
}
1620
1621
.app-well-app-running-dot { //running apps indicator
1622
width: 32px; height: 2px;
1623
background-color: $inverse-text;
1624
margin-bottom: 0;
1625
}
1626
1627
%icon_tile {
1628
color: $inverse-text;
1629
border-radius: $material_radius;
1630
padding: 6px;
1631
border: none;
1632
transition-duration: $shorter_duration;
1633
text-align: center;
1634
}
1635
1636
.app-well-app.app-folder > .overview-icon {
1637
background-color: $scrim-inverse;
1638
}
1639
1640
.show-apps .show-apps-icon {
1641
color: $inverse-text-secondary;
1642
}
1643
1644
.show-apps:hover .show-apps-icon,
1645
.show-apps:active .show-apps-icon,
1646
.show-apps:checked .show-apps-icon,
1647
.show-apps:focus .show-apps-icon {
1648
color: $inverse-text;
1649
transition-duration: $shorter_duration;
1650
}
1651
1652
1653
// Collections
1654
.app-folder-popup { //expanded collection
1655
-arrow-border-radius: $material_radius;
1656
-arrow-background-color: $scrim-inverse;
1657
-arrow-base: 24px;
1658
-arrow-rise: 12px;
1659
}
1660
.app-folder-popup-bin { padding: 5px; }
1661
.app-folder-icon {
1662
padding: 5px;
1663
spacing-rows: 5px;
1664
spacing-columns: 5px;
1665
}
1666
1667
.page-indicator {
1668
padding: 15px 20px;
1669
1670
.page-indicator-icon {
1671
width: 12px;
1672
height: 12px;
1673
border-radius: 12px;
1674
background-image: none;
1675
background-color: $inverse-text-secondary-disabled;
1676
transition-duration: $shorter_duration;
1677
}
1678
&:hover .page-indicator-icon {
1679
background-image: none;
1680
background-color: $inverse-text-disabled;
1681
}
1682
&:active .page-indicator-icon {
1683
background-image: none;
1684
background-color: $inverse-text-secondary;
1685
}
1686
&:checked .page-indicator-icon {
1687
background-image: none;
1688
background-color: $inverse-text;
1689
transition-duration: 0ms;
1690
}
1691
&:checked:active { background-image: none; }
1692
}
1693
1694
.no-frequent-applications-label { @extend %status_text; }
1695
1696
.app-well-app > .overview-icon.overview-icon-with-label,
1697
.grid-search-result .overview-icon.overview-icon-with-label {
1698
padding: 10px 8px 5px 8px;
1699
spacing: 4px;
1700
}
1701
1702
// Workspace pager
1703
.workspace-thumbnails { //container ala dash
1704
@extend %overview-panel;
1705
visible-width: 32px; //amount visible before hover
1706
spacing: 12px;
1707
padding: 12px;
1708
border-radius: $material_radius 0 0 $material_radius;
1709
//border-width: 0; //fixme: can't have non unoform borders :(
1710
&:rtl { border-radius: 0 $material_radius $material_radius 0;}
1711
1712
.placeholder {
1713
background-image: url("assets/dash-placeholder.svg");
1714
background-size: contain;
1715
height: 24px;
1716
}
1717
}
1718
.workspace-thumbnail-indicator {
1719
border: 0 solid $inverse-text;
1720
border-left-width: 2px;
1721
padding: 6px 10px;
1722
border-radius: 0;
1723
}
1724
1725
//Some hacks I don't even
1726
.search-display > StBoxLayout,
1727
.all-apps,
1728
.frequent-apps > StBoxLayout {
1729
// horizontal padding to make sure scrollbars or dash don't overlap content
1730
padding: 0px 88px 10px 88px;
1731
}
1732
1733
%overview-panel {
1734
transition-duration: $panel_duration;
1735
color: $inverse-text;
1736
background-color: $scrim-inverse;
1737
border: none;
1738
}
1739
1740
%status_text {
1741
@include font(display-2);
1742
color: $inverse-text-disabled;
1743
}
1744
1745
/* NOTIFICATIONS & MESSAGE TRAY */
1746
1747
.url-highlighter { link-color: $link; }
1748
1749
// Banners
1750
.notification-banner {
1751
font-size: 1em;
1752
width: 34em;
1753
min-height: $menuitem_size * 2;
1754
margin: 5px;
1755
border-radius: $material_radius;
1756
color: $text;
1757
background-color: $surface;
1758
border: none;
1759
box-shadow: $shadow_2;
1760
&:hover { background-color: $surface; }
1761
&:focus { background-color: $surface; }
1762
1763
.notification-icon { padding: 5px; }
1764
.notification-content { padding: 5px; spacing: 5px; }
1765
.secondary-icon { icon-size: em(16px); }
1766
.notification-actions {
1767
background-color: transparent;
1768
padding-top: 0;
1769
padding: $container_padding;
1770
spacing: $container_padding;
1771
}
1772
.notification-button {
1773
transition-duration: $shorter_duration;
1774
min-height: $medium_size;
1775
padding: 0 8px;
1776
border-radius: $material_radius;
1777
background-color: transparent;
1778
color: $text-secondary;
1779
font-weight: 500;
1780
&:first-child { border-radius: $material_radius; }
1781
&:last-child { border-radius: $material_radius; }
1782
&:hover, &focus { background-color: $overlay-hover; color: $text; }
1783
&:active {
1784
transition-duration: $longer_duration;
1785
background-color: $overlay-active;
1786
color: $text;
1787
}
1788
}
1789
}
1790
.summary-source-counter {
1791
font-size: 1em;
1792
font-weight: bold;
1793
height: 1.6em; width: 1.6em;
1794
-shell-counter-overlap-x: 3px;
1795
-shell-counter-overlap-y: 3px;
1796
background-color: $primary;
1797
color: $inverse-text;
1798
border: 2px solid $inverse-text;
1799
box-shadow: 0 2px 2px rgba(0,0,0,0.5);
1800
border-radius: 0.9em; // should be 0.8 but whatever; wish I could do 50%;
1801
}
1802
1803
.secondary-icon { icon-size: em(16px); }
1804
1805
//chat bubbles
1806
.chat-body { spacing: 5px; }
1807
.chat-response { margin: 5px; }
1808
.chat-log-message { color: $text; }
1809
.chat-new-group { padding-top: 1em; }
1810
.chat-received {
1811
padding-left: 4px;
1812
&:rtl { padding-left: 0px; padding-right: 4px; }
1813
}
1814
.chat-sent {
1815
padding-left: 18pt;
1816
color: $text-secondary;
1817
&:rtl { padding-left: 0; padding-right: 18pt; }
1818
}
1819
.chat-meta-message {
1820
padding-left: 4px;
1821
@include font(caption);
1822
color: $text-secondary;
1823
&:rtl { padding-left: 0; padding-right: 4px; }
1824
}
1825
1826
//hotplug
1827
.hotplug-transient-box {
1828
spacing: 6px;
1829
padding: 2px 72px 2px 12px;
1830
}
1831
.hotplug-notification-item {
1832
padding: 2px 10px;
1833
&:focus { padding: 1px 71px 1px 11px; }
1834
}
1835
1836
.hotplug-notification-item-icon {
1837
icon-size: 24px;
1838
padding: 2px 5px;
1839
}
1840
1841
.hotplug-resident-box { spacing: 8px; }
1842
1843
.hotplug-resident-mount {
1844
transition-duration: $shorter_duration;
1845
spacing: 8px;
1846
border-radius: $material_radius;
1847
&:hover { background-color: $overlay-hover; }
1848
&:active {
1849
transition-duration: $longer_duration;
1850
background-color: $overlay-active;
1851
}
1852
}
1853
1854
.hotplug-resident-mount-label {
1855
color: inherit;
1856
padding-left: 6px;
1857
}
1858
1859
.hotplug-resident-mount-icon {
1860
icon-size: 24px;
1861
padding-left: 6px;
1862
}
1863
1864
.hotplug-resident-eject-icon {
1865
icon-size: 16px;
1866
}
1867
1868
.hotplug-resident-eject-button {
1869
padding: 7px;
1870
border-radius: $material_radius;
1871
color: $text;
1872
}
1873
1874
/* Eeeky things */
1875
1876
//magnifier
1877
1878
.magnifier-zoom-region {
1879
border: 2px solid $primary;
1880
&.full-screen { border-width: 0; }
1881
}
1882
1883
//Keyboard
1884
/* On-screen Keyboard */
1885
.word-suggestions {
1886
@include font(subheading);
1887
spacing: 12px;
1888
min-height: 20pt;
1889
}
1890
1891
#keyboard {
1892
background-color: $scrim-alt;
1893
}
1894
1895
.key-container {
1896
padding: 4px;
1897
spacing: 4px;
1898
}
1899
1900
.keyboard-key {
1901
min-height: 2em;
1902
min-width: 2em;
1903
font-size: 2em;
1904
font-weight: 500;
1905
border-radius: $material_radius;
1906
border: none;
1907
@include button(normal);
1908
&:focus { @include button(focus); }
1909
&:hover,&:checked { @include button(hover); }
1910
&:active { @include button(active);}
1911
&:grayed { //FIXME
1912
background-color: $scrim-alt;
1913
color: $inverse-text;
1914
border-color: $scrim-alt;
1915
}
1916
&.default-key {
1917
border-color: transparent;
1918
background-color: $surface;
1919
background-size: 24px;
1920
&:active { background-color: mix($text, $surface, percentage(0.2)); }
1921
}
1922
&.enter-key {
1923
border-color: transparent;
1924
background-color: $suggested;
1925
background-image: url("assets/key-enter.svg");
1926
&:active { background-color: mix($inverse-text, $suggested, percentage(0.2)); }
1927
}
1928
&.shift-key-lowercase {
1929
background-image: url("assets/key-shift.svg");
1930
}
1931
&.shift-key-uppercase {
1932
background-image: url("assets/key-shift-uppercase.svg");
1933
}
1934
&.shift-key-uppercase:latched {
1935
background-image: url("assets/key-shift-latched-uppercase.svg");
1936
}
1937
&.hide-key {
1938
background-image: url("assets/key-hide.svg");
1939
}
1940
&.layout-key {
1941
background-image: url("assets/key-layout.svg");
1942
}
1943
}
1944
1945
.keyboard-subkeys { //long press on a key popup
1946
color: inherit;
1947
padding: 5px;
1948
-arrow-border-radius: 0;
1949
-arrow-background-color: transparent;
1950
-arrow-border-width: 0;
1951
-arrow-border-color: transparent;
1952
-arrow-base: 0;
1953
-arrow-rise: 0;
1954
-boxpointer-gap: 5px;
1955
background-color: $surface;
1956
border-radius: $material_radius;
1957
box-shadow: $shadow_2;
1958
}
1959
1960
// IBus Candidate Popup
1961
1962
.candidate-popup-content {
1963
padding: 8px;
1964
spacing: 0;
1965
}
1966
1967
.candidate-index {
1968
padding: 0 4px 0 0;
1969
color: $text-secondary;
1970
}
1971
1972
.candidate-box {
1973
transition-duration: $shorter_duration;
1974
min-height: $menuitem_size;
1975
padding: 0 8px;
1976
border-radius: $material_radius;
1977
&:hover { background-color: $overlay-hover; color: $text; transition-duration: 0ms; }
1978
&:active { background-color: $overlay-active; color: $text; transition-duration: $longer_duration; }
1979
&:selected { background-color: $overlay-selected; color: $text; transition-duration: 0ms; }
1980
}
1981
1982
.candidate-page-button-box {
1983
height: $menuitem_size;
1984
.vertical & { padding-top: 0; }
1985
.horizontal & { padding-left: 0; }
1986
}
1987
1988
.candidate-page-button {
1989
min-width: $menuitem_size;
1990
min-height: $menuitem_size;
1991
padding: 0;
1992
}
1993
1994
.candidate-page-button-previous { border-radius: $material_radius; border-right-width: 0; }
1995
.candidate-page-button-next { border-radius: $material_radius; }
1996
.candidate-page-button-icon { icon-size: em(16px); }
1997
1998
/* Auth Dialogs & Screen Shield */
1999
2000
.framed-user-icon {
2001
background-size: contain;
2002
border: none;
2003
color: $inverse-text;
2004
border-radius: $material_radius;
2005
&:hover {
2006
border-color: $inverse-text;
2007
color: $inverse-text;
2008
}
2009
}
2010
2011
// LOGIN DIALOG
2012
2013
.login-dialog-banner-view {
2014
padding-top: 24px;
2015
max-width: 23em;
2016
}
2017
2018
.login-dialog {
2019
//reset
2020
border: none;
2021
background-color: transparent;
2022
2023
StEntry {
2024
color: $inverse-text;
2025
selection-background-color: $inverse-track;
2026
selected-color: $inverse-text;
2027
@include entry(normal, $fc:$inverse-track);
2028
&:focus { @include entry(focus, $fc:$inverse-text); }
2029
&:insensitive {
2030
@include entry(insensitive, $fc:$inverse-divider);
2031
color: $inverse-text-disabled;
2032
}
2033
}
2034
2035
.modal-dialog-button-box { spacing: 3px; }
2036
.modal-dialog-button {
2037
padding: 0 16px;
2038
@include button(flat-normal, $tc: $inverse-text);
2039
&:hover,&:focus { @include button(flat-hover, $tc: $inverse-text); }
2040
&:active { @include button(flat-active, $tc: $inverse-text); }
2041
&:insensitive { @include button(flat-insensitive, $tc: $inverse-text); }
2042
2043
&:default {
2044
@include button(normal, $c: $suggested, $tc: $inverse-text);
2045
&:hover,&:focus { @include button(hover, $c: $suggested, $tc: $inverse-text); }
2046
&:active { @include button(active, $c: $suggested, $tc: $inverse-text); }
2047
&:insensitive { @include button(insensitive, $c: $inverse-fill, $tc: $inverse-text-disabled); }
2048
}
2049
}
2050
}
2051
2052
.login-dialog-logo-bin { padding: 24px 0px; }
2053
.login-dialog-banner { color: $inverse-text-secondary; }
2054
.login-dialog-button-box { spacing: 5px; }
2055
.login-dialog-message-warning { color: $warning; }
2056
.login-dialog-message-hint { padding-top: 0; padding-bottom: 20px; }
2057
.login-dialog-user-selection-box { padding: 100px 0px; }
2058
.login-dialog-not-listed-label {
2059
padding-left: 2px;
2060
.login-dialog-not-listed-button:focus &,
2061
.login-dialog-not-listed-button:hover & {
2062
color: $inverse-text;
2063
}
2064
}
2065
.login-dialog-not-listed-label {
2066
transition-duration: $shorter_duration;
2067
font-size: 1em;
2068
font-weight: bold;
2069
color: $inverse-text-secondary;
2070
padding-top: 1em;
2071
border-radius: $material_radius;
2072
&:hover {
2073
background-color: $inverse-overlay-hover;
2074
color: $inverse-text;
2075
}
2076
&:focus { background-color: $inverse-overlay-focus; }
2077
&:active {
2078
transition-duration: $longer_duration;
2079
background-color: $inverse-overlay-active;
2080
color: $inverse-text;
2081
}
2082
}
2083
2084
.login-dialog-user-list-view { -st-vfade-offset: 1em; }
2085
.login-dialog-user-list {
2086
spacing: 12px;
2087
width: 23em;
2088
&:expanded .login-dialog-user-list-item:selected { background-color: $inverse-overlay-focus; color: $inverse-text; }
2089
&:expanded .login-dialog-user-list-item:hover { background-color: $inverse-overlay-hover; color: $inverse-text; }
2090
&:expanded .login-dialog-user-list-item:active { background-color: $inverse-overlay-active; color: $inverse-text; }
2091
&:expanded .login-dialog-user-list-item:logged-in { border-right: 2px solid $inverse-text; }
2092
}
2093
.login-dialog-user-list-item {
2094
transition-duration: $shorter_duration;
2095
border-radius: $material_radius;
2096
padding: 6px;
2097
color: $inverse-text-secondary;
2098
&:ltr .user-widget { padding-right: 1em; }
2099
&:rtl .user-widget { padding-left: 1em; }
2100
&:hover {
2101
background-color: $inverse-overlay-hover;
2102
color: $inverse-text;
2103
}
2104
&:active {
2105
transition-duration: $longer_duration;
2106
background-color: $inverse-overlay-active;
2107
color: $inverse-text;
2108
}
2109
.login-dialog-timed-login-indicator {
2110
height: 2px;
2111
margin-top: 6px;
2112
background-color: $inverse-text;
2113
}
2114
&:focus .login-dialog-timed-login-indicator { background-color: $inverse-text; }
2115
}
2116
2117
.login-dialog-username,
2118
.user-widget-label {
2119
color: $inverse-text;
2120
@include font(title);
2121
text-align: left;
2122
padding-left: 15px;
2123
}
2124
.user-widget-label {
2125
&:ltr { padding-left: 14px; }
2126
&:rtl { padding-right: 14px; }
2127
}
2128
2129
.login-dialog-prompt-layout {
2130
padding-top: 24px;
2131
padding-bottom: 12px;
2132
spacing: 8px;
2133
width: 23em;
2134
}
2135
2136
.login-dialog-prompt-label {
2137
color: $inverse-text-secondary;
2138
font-size: 1em;
2139
padding-top: 1em;
2140
}
2141
2142
.login-dialog-session-list-button StIcon {
2143
icon-size: 1.25em;
2144
}
2145
2146
.login-dialog-session-list-button {
2147
color: $inverse-text-secondary;
2148
&:hover,&:focus { color: $inverse-text; }
2149
&:active { color: $inverse-text; }
2150
}
2151
2152
//SCREEN SHIELD
2153
2154
.screen-shield-arrows {
2155
padding-bottom: 3em;
2156
}
2157
2158
.screen-shield-arrows Gjs_Arrow {
2159
color: white;
2160
width: 80px;
2161
height: 48px;
2162
-arrow-thickness: 12px;
2163
-arrow-shadow: $shadow_1;
2164
}
2165
2166
.screen-shield-clock {
2167
color: white;
2168
text-shadow: $shadow_1;
2169
font-weight: normal;
2170
text-align: center;
2171
padding-bottom: 1.5em;
2172
}
2173
2174
.screen-shield-clock-time {
2175
@include font(display-4);
2176
text-shadow: $shadow_1;
2177
font-feature-settings: "tnum";
2178
}
2179
2180
.screen-shield-clock-date { @include font(display-2); }
2181
2182
.screen-shield-notifications-container {
2183
spacing: 6px;
2184
width: 30em;
2185
background-color: transparent;
2186
max-height: 500px;
2187
.summary-notification-stack-scrollview {
2188
padding-top: 0;
2189
padding-bottom: 0;
2190
}
2191
2192
.notification,
2193
.screen-shield-notification-source {
2194
padding: 8px;
2195
border: none;
2196
background-color: $scrim-alt;
2197
color: $inverse-text;
2198
border-radius: $material_radius;
2199
}
2200
.notification { margin-right: 16px; } //compensate for space allocated to the scrollbar
2201
}
2202
2203
2204
.screen-shield-notification-label {
2205
min-height: $small_size - 2px;
2206
padding: 2px 0px 0px 16px;
2207
font-weight: bold;
2208
}
2209
2210
.screen-shield-notification-count-text {
2211
min-height: $small_size - 2px;
2212
padding: 2px 0px 0px 16px;
2213
color: $inverse-text-secondary;
2214
}
2215
2216
#panel.lock-screen { background-color: $scrim-alt; }
2217
2218
.screen-shield-background { //just the shadow, really
2219
background: black;
2220
box-shadow: $shadow_5;
2221
}
2222
2223
#lockDialogGroup {
2224
background: $os-background;
2225
background-size: cover;
2226
}
2227
2228
#screenShieldNotifications {
2229
StScrollBar { @extend %overview_scrollbar; }
2230
}
2231
2232
2233
// Looking Glass
2234
#LookingGlassDialog {
2235
background-color: $surface;
2236
spacing: 4px;
2237
padding: 0;
2238
border: none;
2239
border-radius: $material_radius;
2240
box-shadow: $shadow_4;
2241
& > #Toolbar {
2242
padding: 0 8px;
2243
border: none;
2244
border-radius: 0;
2245
background-color: rgba($surface, 0.01);
2246
box-shadow: inset 0 -1px 0 $border;
2247
}
2248
.labels { spacing: 0; }
2249
.notebook-tab {
2250
-natural-hpadding: 12px;
2251
-minimum-hpadding: 6px;
2252
font-weight: bold;
2253
color: $text-secondary;
2254
transition-duration: $shorter_duration;
2255
padding-left: 16px;
2256
padding-right: 16px;
2257
min-height: $medium_size;
2258
padding: 0 16px * 2;
2259
&:hover {
2260
background-color: $overlay-hover;
2261
color: $text;
2262
text-shadow: none;
2263
}
2264
&:active {
2265
background-color: $overlay-active;
2266
color: $text;
2267
transition-duration: $longer_duration;
2268
}
2269
&:selected {
2270
border-bottom-width: 0;
2271
border-color: transparent;
2272
background-color: rgba($surface, 0.01);
2273
box-shadow: inset 0 -2px 0px $primary;
2274
color: $text;
2275
text-shadow: none;
2276
}
2277
}
2278
StBoxLayout#EvalBox { padding: 4px; spacing: 4px; }
2279
StBoxLayout#ResultsArea { spacing: 4px; }
2280
}
2281
2282
.lg-dialog {
2283
StEntry {
2284
selection-background-color: $overlay-selected;
2285
selected-color: $text;
2286
}
2287
.shell-link {
2288
color: $link;
2289
&:hover { color: $link; }
2290
}
2291
}
2292
2293
.lg-completions-text {
2294
font-size: 1em;
2295
font-style: italic;
2296
}
2297
2298
.lg-obj-inspector-title {
2299
spacing: 4px;
2300
}
2301
2302
.lg-obj-inspector-button {
2303
min-height: $medium_size;
2304
padding: 0 16px;
2305
border: none;
2306
border-radius: $material_radius;
2307
@include font(button);
2308
@include button(flat-normal);
2309
&:hover { @include button(flat-hover); }
2310
&:active { @include button(flat-active); }
2311
&:insensitive { @include button(flat-insensitive); }
2312
&:focus { @include button(flat-focus); }
2313
&:hover { border: none; }
2314
}
2315
2316
#lookingGlassExtensions { padding: 4px; }
2317
2318
.lg-extensions-list {
2319
padding: 4px;
2320
spacing: 6px;
2321
}
2322
2323
.lg-extension {
2324
border: none;
2325
border-radius: $material_radius;
2326
padding: 4px;
2327
}
2328
2329
.lg-extension-name {
2330
@include font(headline);
2331
}
2332
2333
.lg-extension-meta {
2334
spacing: 6px;
2335
}
2336
2337
#LookingGlassPropertyInspector {
2338
background: $surface;
2339
border: none;
2340
border-radius: $material_radius;
2341
padding: 6px;
2342
box-shadow: $shadow_4;
2343
}
2344