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