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

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