_common-3.24.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
&: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: 34em;
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: 34em;
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
.pad-osd-title-box { spacing: 12px; }
712
.pad-osd-title-menu-box { spacing: 6px; }
713
}
714
715
.combo-box-label {
716
width: 15em;
717
}
718
719
/* App Switcher */
720
.switcher-popup {
721
padding: 8px;
722
spacing: 16px;
723
}
724
725
.osd-window,
726
.resize-popup,
727
.switcher-list {
728
@extend %osd-panel;
729
}
730
731
.switcher-list-item-container { spacing: 8px; }
732
733
.switcher-list .item-box {
734
transition-duration: $duration;
735
padding: 8px;
736
border-radius: $corner-radius;
737
}
738
739
.switcher-list .item-box:outlined {
740
padding: 8px;
741
border: none;
742
background-color: $track-disabled;
743
}
744
745
.switcher-list .item-box:selected {
746
background-color: $overlay-selected;
747
color: $text;
748
}
749
750
.switcher-list .thumbnail-box {
751
padding: 2px;
752
spacing: 4px;
753
}
754
755
.switcher-list .thumbnail {
756
width: 256px;
757
}
758
759
.switcher-list .separator {
760
width: 1px;
761
background: $divider;
762
}
763
764
.switcher-arrow {
765
transition-duration: $duration;
766
border-color: rgba(0,0,0,0);
767
color: $text-secondary;
768
&:highlighted {
769
color: $text;
770
}
771
}
772
773
.input-source-switcher-symbol {
774
@include font(display-2);
775
width: 96px;
776
height: 96px;
777
}
778
779
/* Window Cycler */
780
.cycler-highlight { border: 4px solid $primary; }
781
782
/* Workspace Switcher */
783
.workspace-switcher-group { padding: 8px; }
784
785
.workspace-switcher-container {
786
@extend %osd-panel;
787
}
788
789
.workspace-switcher {
790
background: transparent;
791
border: 0px;
792
border-radius: 0px;
793
padding: 0px;
794
spacing: 8px;
795
}
796
797
.ws-switcher-active-up, .ws-switcher-active-down {
798
height: 48px;
799
background-color: $primary;
800
color: on($primary);
801
background-size: 32px;
802
border-radius: $corner-radius;
803
}
804
805
.ws-switcher-box {
806
height: 48px;
807
border: none;
808
background: $track-disabled;
809
border-radius: $corner-radius;
810
}
811
812
%osd-panel {
813
color: $text;
814
background-color: $surface;
815
border: none;
816
box-shadow: $shadow-4;
817
border-radius: $corner-radius;
818
padding: 12px;
819
}
820
821
/* Tiled window previews */
822
.tile-preview {
823
background-color: rgba($primary-alt, 0.3);
824
border: 1px solid $primary-alt;
825
}
826
827
.tile-preview-left.on-primary {
828
border-radius: 0;
829
}
830
831
.tile-preview-right.on-primary {
832
border-radius: 0;
833
}
834
835
.tile-preview-left.tile-preview-right.on-primary {
836
border-radius: 0;
837
}
838
839
/* TOP BAR */
840
841
#panel {
842
background-color: $panel;
843
/* transition from solid to transparent */
844
transition-duration: $duration-panel;
845
font-weight: bold;
846
height: $menuitem-size;
847
848
&:overview,
849
&.unlock-screen,
850
&.login-screen,
851
&.lock-screen {
852
background-color: transparent;
853
}
854
855
#panelLeft, #panelCenter { // spacing between activities<>app menu and such
856
spacing: 0;
857
}
858
859
.panel-corner {
860
-panel-corner-radius: 0;
861
-panel-corner-background-color: $panel;
862
-panel-corner-border-width: 2px;
863
-panel-corner-border-color: transparent;
864
865
&:active, &:overview, &:focus {
866
-panel-corner-border-color: on($panel);
867
}
868
869
&.lock-screen, &.login-screen, &.unlock-screen {
870
-panel-corner-radius: 0;
871
-panel-corner-background-color: transparent;
872
-panel-corner-border-color: transparent;
873
}
874
}
875
876
.panel-button {
877
-natural-hpadding: 12px;
878
-minimum-hpadding: 6px;
879
font-weight: bold;
880
color: on($panel, secondary);
881
transition-duration: $duration;
882
883
.app-menu-icon {
884
-st-icon-style: symbolic;
885
margin-left: 4px;
886
margin-right: 4px;
887
//dimensions of the icon are hardcoded
888
}
889
890
&:hover {
891
color: on($panel);
892
}
893
894
&:active, &:overview, &:focus, &:checked {
895
// Trick due to St limitations. It needs a background to draw
896
// a box-shadow
897
background-color: rgba($scrim, 0.01);
898
box-shadow: inset 0 -2px 0px on($panel);
899
color: on($panel);
900
901
& > .system-status-icon { icon-shadow: none; }
902
}
903
904
.system-status-icon { icon-size: em(16px); padding: 0 4px; }
905
.unlock-screen &,
906
.login-screen &,
907
.lock-screen & {
908
color: on($panel, secondary);
909
&:focus, &:hover, &:active { color: on($panel); }
910
}
911
}
912
913
.panel-status-indicators-box,
914
.panel-status-menu-box {
915
spacing: 2px;
916
}
917
918
// spacing between power icon and (optional) percentage label
919
.power-status.panel-status-indicators-box {
920
spacing: 0;
921
}
922
923
.screencast-indicator { color: $warning; }
924
}
925
926
// calendar popover
927
#calendarArea {
928
padding: 8px 16px;
929
}
930
931
.calendar {
932
margin-bottom: 0;
933
}
934
935
.calendar,
936
.datemenu-today-button,
937
.datemenu-displays-box,
938
.message-list-sections {
939
margin: 0 8px;
940
}
941
942
.datemenu-calendar-column { spacing: 8px; }
943
.datemenu-displays-section { padding-bottom: 0; }
944
.datemenu-displays-box { spacing: 8px; }
945
946
.datemenu-calendar-column {
947
border: 0 solid $divider;
948
&:ltr { border-left-width: 0; }
949
&:rtl { border-right-width: 0; }
950
}
951
952
.datemenu-today-button,
953
.world-clocks-button,
954
.weather-button,
955
.events-section-title {
956
min-height: $menuitem-size - 4px * 2;
957
padding: 4px 8px;
958
border-radius: $corner-radius;
959
}
960
961
.datemenu-today-button {
962
min-height: $menuitem-size * 2 - 4px * 2;
963
}
964
965
.message-list-section-list:ltr {
966
padding-left: 0;
967
}
968
969
.message-list-section-list:rtl {
970
padding-right: 0;
971
}
972
973
.datemenu-today-button,
974
.world-clocks-button,
975
.weather-button,
976
.events-section-title {
977
transition-duration: $duration;
978
&:hover,&:focus { color: $text; background-color: $overlay-hover; }
979
&:active {
980
transition-duration: $duration-ripple;
981
color: $text;
982
background-color: $overlay-active;
983
}
984
}
985
986
.datemenu-today-button .day-label {
987
}
988
989
.datemenu-today-button .date-label {
990
@include font(headline);
991
}
992
993
.world-clocks-header,
994
.weather-header,
995
.events-section-title {
996
color: $text-secondary;
997
font-weight: bold;
998
}
999
1000
.world-clocks-grid {
1001
spacing-rows: 0.4em;
1002
}
1003
1004
.weather-box {
1005
spacing: 0.4em;
1006
}
1007
1008
.calendar-month-label {
1009
transition-duration: $duration;
1010
height: $menuitem-size - 6px * 2;
1011
margin: 2px;
1012
padding: 6px 16px;
1013
border-radius: $corner-radius;
1014
color: $text;
1015
font-weight: bold;
1016
text-align: center;
1017
&:focus { background-color: $overlay-focus; }
1018
}
1019
1020
.pager-button {
1021
transition-duration: $duration;
1022
width: $menuitem-size;
1023
height: $menuitem-size;
1024
margin: 2px;
1025
border-radius: 100px;
1026
background-color: transparent;
1027
color: $text;
1028
&:hover, &:focus { background-color: $overlay-hover; }
1029
&:active { background-color: $overlay-active; transition-duration: $duration-ripple; }
1030
}
1031
1032
.calendar-change-month-back { //arrow back
1033
background-image: url("assets/calendar-arrow-left.svg");
1034
&:rtl { background-image: url("assets/calendar-arrow-right.svg"); }
1035
}
1036
.calendar-change-month-forward { //arrow foreward
1037
background-image: url("assets/calendar-arrow-right.svg");
1038
&:rtl { background-image: url("assets/calendar-arrow-left.svg"); }
1039
}
1040
1041
.calendar-day-base {
1042
transition-duration: $duration;
1043
@include font(caption);
1044
text-align: center;
1045
width: $menuitem-size; height: $menuitem-size;
1046
padding: 0;
1047
margin: 2px;
1048
border-radius: 100px;
1049
&:hover,&:focus { background-color: $overlay-hover; }
1050
&:active {
1051
transition-duration: $duration-ripple;
1052
color: inherit;
1053
background-color: $overlay-active;
1054
border-color: transparent; //avoid jumparound due to today
1055
}
1056
&:selected {
1057
color: $text;
1058
background-color: $overlay-selected;
1059
border-color: transparent; //avoid jumparound due to today
1060
}
1061
&.calendar-day-heading { //day of week heading
1062
width: $menuitem-size; height: $menuitem-size - 7px;
1063
margin-top: 2px;
1064
padding: 7px 0 0;
1065
border-radius: 100px;
1066
background-color: transparent;
1067
color: $text-disabled;
1068
@include font(caption);
1069
font-weight: bold;
1070
text-align: center;
1071
}
1072
}
1073
.calendar-day { //border collapse hack - see calendar.js
1074
border-width: 0;
1075
}
1076
.calendar-day-top { border-top-width: 0; }
1077
.calendar-day-left { border-left-width: 0; }
1078
.calendar-work-day {
1079
1080
}
1081
.calendar-nonwork-day {
1082
color: $text;
1083
}
1084
.calendar-today {
1085
font-weight: bold !important;
1086
//color: $text;
1087
//background-color: transparent;
1088
border: none;
1089
}
1090
.calendar-day-with-events {
1091
color: $link;
1092
font-weight: normal;
1093
text-decoration: underline;
1094
background-image: none;
1095
}
1096
.calendar-other-month-day {
1097
color: $text-secondary-disabled;
1098
opacity: 0.5;
1099
}
1100
.calendar-week-number {
1101
width: $menuitem-size; height: $menuitem-size - 7px;
1102
margin: 2px;
1103
padding: 7px 0 0;
1104
border-radius: 100px;
1105
background-color: transparent;
1106
color: $text-disabled;
1107
font-size: inherit;
1108
font-weight: bold;
1109
text-align: center;
1110
}
1111
1112
/* Message list */
1113
.message-list {
1114
width: 420px;
1115
}
1116
1117
.message-list-clear-button.button {
1118
background-color: transparent;
1119
&:hover,&:focus { background-color: $overlay-hover; }
1120
&:active { background-color: $overlay-active; }
1121
margin: 8px 8px 0;
1122
}
1123
1124
.message-list-sections {
1125
spacing: 8px;
1126
}
1127
1128
.message-list-section,
1129
.message-list-section-list {
1130
spacing: 8px;
1131
}
1132
1133
.message {
1134
transition-duration: $duration;
1135
min-height: $menuitem-size * 2;
1136
background-color: transparent;
1137
&:hover,&:focus { background-color: $overlay-hover; }
1138
&:active {
1139
transition-duration: $duration-ripple;
1140
background-color: $overlay-active;
1141
}
1142
border-radius: $corner-radius;
1143
}
1144
1145
.message-icon-bin {
1146
padding: 8px 0px 8px 8px;
1147
&:rtl { padding: 8px 8px 8px 0px; }
1148
}
1149
1150
.message-icon-bin > StIcon {
1151
color: $text;
1152
icon-size: em(16px);
1153
-st-icon-style: requested;
1154
margin: 4px 0px 4px 4px;
1155
&:rtl { margin: 4px 4px 4px 0px; }
1156
}
1157
1158
.message-secondary-bin {
1159
padding: 0 8px;
1160
}
1161
1162
.message-secondary-bin > .event-time {
1163
min-height: $small-size - 2px;
1164
padding-top: 2px;
1165
color: $text-secondary;
1166
font-size: 1em;
1167
/* HACK: the label should be baseline-aligned with a 1em label,
1168
fake this with some bottom padding */
1169
padding-bottom: 0;
1170
}
1171
1172
.message-secondary-bin > StIcon {
1173
icon-size: em(16px);
1174
}
1175
1176
.message-title {
1177
min-height: $small-size - 2px;
1178
padding-top: 2px;
1179
color: $text;
1180
font-weight: bold;
1181
font-size: 1em;
1182
}
1183
1184
.message-content {
1185
min-height: $menuitem-size * 2 - 8px * 2;
1186
padding: 8px;
1187
color: $text-secondary;
1188
font-size: 1em;
1189
}
1190
1191
.message-content * > StIcon {
1192
transition-duration: $duration;
1193
icon-size: 16px;
1194
border-radius: 16px;
1195
padding: ($small-size - 16px) / 2;
1196
color: $text-secondary;
1197
}
1198
1199
/* FIXME: how do you do this in sass? */
1200
.message-content *:hover > StIcon,
1201
.message-content *:focus > StIcon {
1202
color: $text;
1203
background-color: $overlay-hover;
1204
}
1205
1206
.message-content *:active > StIcon {
1207
transition-duration: $duration-ripple;
1208
color: $text;
1209
background-color: $overlay-active;
1210
}
1211
1212
.message-media-control {
1213
transition-duration: $duration;
1214
margin: 16px 0;
1215
padding: 8px;
1216
border-radius: 100px;
1217
color: $text-secondary;
1218
&:hover,&:focus { color: $text; background-color: $overlay-hover; }
1219
&:active { color: $text; background-color: $overlay-active; transition-duration: $duration-ripple; }
1220
&:insensitive { color: $text-secondary-disabled; }
1221
1222
&:last-child:ltr { margin-right: 16px; padding-right: 8px; }
1223
&:last-child:rtl { margin-left: 16px; padding-left: 8px; }
1224
}
1225
1226
.media-message-cover-icon {
1227
icon-size: 32px !important;
1228
margin: 8px 0px 8px 4px !important;
1229
&:rtl { margin: 8px 4px 8px 0px !important; }
1230
&.fallback {
1231
icon-size: 16px !important;
1232
padding: 8px;
1233
border: none;
1234
border-radius: $corner-radius;
1235
background-color: $track-disabled;
1236
color: $text-disabled;
1237
}
1238
}
1239
1240
1241
// a little unstructured mess:
1242
1243
.system-switch-user-submenu-icon.user-icon {
1244
icon-size: 20px;
1245
padding: 0 2px;
1246
}
1247
.system-switch-user-submenu-icon.default-icon {
1248
icon-size: 16px;
1249
padding: 0 4px;
1250
}
1251
1252
#appMenu {
1253
spinner-image: url("process-working.svg");
1254
spacing: 4px;
1255
1256
.label-shadow { color: transparent; }
1257
}
1258
1259
.aggregate-menu {
1260
min-width: 280px;
1261
.popup-menu-icon { padding: 0 4px; }
1262
.popup-sub-menu .popup-menu-item > :first-child {
1263
&:ltr { /* 8px spacing + 2*4px padding */
1264
padding-left: 16px; margin-left: em(16px); }
1265
&:rtl { /* 8px spacing + 2*4px padding */
1266
padding-right: 16px; margin-right: em(16px); }
1267
}
1268
}
1269
1270
.system-menu-action {
1271
color: $text-secondary;
1272
border-radius: 100px; /* wish we could do 50% */
1273
padding: ($large-size - 16px) / 2;
1274
border: none;
1275
transition-duration: $duration;
1276
1277
&:hover, &:focus {
1278
background-color: $overlay-hover;
1279
color: $text;
1280
border: none;
1281
padding: ($large-size - 16px) / 2;
1282
}
1283
&:active { background-color: $overlay-active; color: $text; transition-duration: $duration-ripple; }
1284
1285
& > StIcon { icon-size: 16px; }
1286
}
1287
1288
//Activities Ripples
1289
.ripple-box {
1290
width: 48px;
1291
height: 48px;
1292
border-radius: 0 0 48px 0;
1293
background-color: on(dark, track);
1294
background-image: none;
1295
background-size: auto;
1296
}
1297
1298
.ripple-box:rtl {
1299
border-radius: 0 0 0 48px;
1300
background-image: none;
1301
}
1302
1303
// not really top bar only
1304
.popup-menu-arrow { width: 16px; height: 16px; }
1305
.popup-menu-icon { icon-size: em(16px); }
1306
1307
//close buttons
1308
1309
.window-close {
1310
// FIXME: unless disable the transition, button will distort when hovering
1311
// transition-duration: $duration;
1312
height: $medium-size;
1313
width: $medium-size;
1314
-st-background-image-shadow: $shadow-1;
1315
background-image: url("assets/window-close.svg");
1316
background-size: $medium-size;
1317
&:hover { -st-background-image-shadow: $shadow-2; }
1318
&:active {
1319
// transition-duration: $duration-ripple;
1320
background-image: url("assets/window-close-active.svg");
1321
}
1322
}
1323
.window-close {
1324
-shell-close-overlap: $medium-size / 2;
1325
&:rtl { -st-background-image-shadow: $shadow-1; }
1326
&:rtl:hover { -st-background-image-shadow: $shadow-2; }
1327
}
1328
1329
/* NETWORK DIALOGS */
1330
1331
.nm-dialog {
1332
max-height: 34em;
1333
min-height: 31em;
1334
min-width: 32em;
1335
}
1336
1337
.nm-dialog-content {
1338
spacing: 20px;
1339
padding: 24px;
1340
}
1341
.nm-dialog-header-hbox { spacing: 10px; }
1342
.nm-dialog-airplane-box { spacing: 12px; }
1343
1344
.nm-dialog-airplane-headline {
1345
font-weight: bold;
1346
text-align: center;
1347
}
1348
1349
.nm-dialog-airplane-text { color: $text; }
1350
.nm-dialog-header-icon { icon-size: 32px; }
1351
.nm-dialog-scroll-view { border: none; }
1352
.nm-dialog-header { @include font(title); }
1353
1354
.nm-dialog-item {
1355
transition-duration: $duration;
1356
font-size: 1em;
1357
border-bottom: none;
1358
border-radius: $corner-radius;
1359
padding: 12px;
1360
spacing: 20px;
1361
&:hover, &:focus { background-color: $overlay-hover; }
1362
&:active {
1363
transition-duration: $duration-ripple;
1364
background-color: $overlay-active;
1365
}
1366
}
1367
1368
.nm-dialog-item:selected {
1369
background-color: $overlay-selected;
1370
color: $text;
1371
}
1372
1373
.nm-dialog-icons { spacing: .5em; }
1374
.nm-dialog-icon { icon-size: 16px; }
1375
.no-networks-label { color: $text-disabled; }
1376
.no-networks-box { spacing: 12px; }
1377
1378
/* OVERVIEW */
1379
1380
#overview {
1381
spacing: 24px; //
1382
StScrollBar { @extend %overview_scrollbar; }
1383
}
1384
1385
.overview-controls {
1386
padding-bottom: 32px;
1387
}
1388
1389
.window-picker { //container around window thumbnails
1390
-horizontal-spacing: 32px;
1391
-vertical-spacing: 32px;
1392
padding-left: 32px;
1393
padding-right: 32px;
1394
padding-bottom: 48px;
1395
1396
&.external-monitor { padding: 32px; }
1397
}
1398
1399
.window-clone-border {
1400
border: 4px solid on(dark, track);
1401
border-radius: $corner-radius;
1402
// For window decorations with round corners we can't match
1403
// the exact shape when the window is scaled. So apply a shadow
1404
// to fix that case
1405
box-shadow: inset 0 0 0 1px on(dark, track);
1406
}
1407
.window-caption {
1408
spacing: 25px;
1409
color: on(dark);
1410
background-color: transparent;
1411
border-radius: $corner-radius;
1412
padding: 4px 8px;
1413
-shell-caption-spacing: 12px;
1414
&:hover { background-color: on(dark, track); color: on(dark); }
1415
}
1416
1417
//search entry
1418
.search-entry {
1419
width: 320px - 8px * 2;
1420
padding: 0 8px;
1421
border-radius: $corner-radius $corner-radius 0 0;
1422
color: on(dark, disabled);
1423
selection-background-color: on(dark, track);
1424
selected-color: on(dark);
1425
@include entry(normal,$fc:on(dark, track));
1426
&:hover { @include entry(hover,$fc:on(dark, track)); }
1427
&:focus {
1428
@include entry(focus,$fc:on(dark));
1429
padding: 0 8px;
1430
border-width: 0;
1431
color: on(dark);
1432
}
1433
1434
.search-entry-icon { icon-size: 16px; padding: 0 0; color: on(dark, secondary); }
1435
1436
&:hover, &:focus {
1437
.search-entry-icon { color: on(dark); }
1438
}
1439
}
1440
1441
//search results
1442
1443
#searchResultsBin {
1444
max-width: 1000px;
1445
}
1446
1447
#searchResultsContent {
1448
padding-left: 20px;
1449
padding-right: 20px;
1450
spacing: 16px;
1451
}
1452
1453
.search-section { spacing: 16px; } // This should be equal to #searchResultsContent spacing
1454
.search-section-content { spacing: 32px; } // This is the space between the provider icon and the results container
1455
.search-statustext { // "no results"
1456
@extend %status_text;
1457
}
1458
.list-search-results { spacing: 3px; }
1459
1460
.search-section-separator {
1461
-gradient-height: 1px;
1462
-gradient-start: rgba(255,255,255,0);
1463
-gradient-end: rgba(255,255,255,0.4);
1464
-margin-horizontal: 1.5em;
1465
height: 1px;
1466
}
1467
1468
.list-search-result-content { spacing: 12px; padding: 12px; }
1469
.list-search-result-title { @include font(headline); color: on(dark); }
1470
.list-search-result-description { color: on(dark, secondary); }
1471
.search-provider-icon { padding: 15px; }
1472
.search-provider-icon-more {
1473
width: 16px;
1474
height: 16px;
1475
background-image: url("assets/more-results.svg");
1476
}
1477
1478
1479
/* DASHBOARD */
1480
1481
#dash {
1482
transition-duration: $duration-panel;
1483
font-size: 1em;
1484
color: on(dark);
1485
background-color: $scrim-inverse;
1486
padding: 3px 0;
1487
border: none;
1488
border-left: 0px;
1489
border-radius: 0px $corner-radius $corner-radius 0px;
1490
1491
&:rtl {
1492
border-radius: $corner-radius 0 0 $corner-radius;
1493
}
1494
1495
.placeholder {
1496
background-image: url("assets/dash-placeholder.svg");
1497
background-size: contain;
1498
height: 24px;
1499
}
1500
1501
.empty-dash-drop-target {
1502
width: 24px;
1503
height: 24px;
1504
}
1505
1506
}
1507
1508
.dash-item-container > StWidget {
1509
padding: 3px 6px;
1510
}
1511
1512
.dash-label { //osd tooltip
1513
// min-height: 32px - 6px * 2;
1514
border-radius: $corner-radius;
1515
padding: 7px 8px;
1516
color: $text;
1517
background-color: $surface;
1518
box-shadow: $shadow-2;
1519
text-align: center;
1520
-x-offset: 8px;
1521
}
1522
1523
/* App Vault/Grid */
1524
.icon-grid {
1525
spacing: 30px;
1526
-shell-grid-horizontal-item-size: 136px;
1527
-shell-grid-vertical-item-size: 136px;
1528
1529
.overview-icon { icon-size: 96px; }
1530
}
1531
//.app-display { spacing: 20px; }
1532
1533
.app-view-controls { //favorties | all toggle container
1534
width: 320px;
1535
padding-bottom: 32px;
1536
}
1537
.app-view-control { //favorties | all toggle button
1538
padding: 0 16px;
1539
font-weight: bold;
1540
color: on(dark, secondary);
1541
&:hover {
1542
color: on(dark);
1543
background-color: $inverse-overlay-hover !important;
1544
}
1545
&:active {
1546
color: on(dark);
1547
background-color: $inverse-overlay-active !important;
1548
}
1549
&:checked {
1550
color: on(dark);
1551
background-color: rgba($scrim, 0.01) !important;
1552
box-shadow: inset 0 2px 0 on(dark);
1553
}
1554
&:first-child {
1555
border-right-width: 0;
1556
border-radius: $corner-radius;
1557
&:checked { border-radius: 0; }
1558
}
1559
&:last-child {
1560
border-radius: $corner-radius;
1561
&:checked { border-radius: 0; }
1562
}
1563
}
1564
1565
//Icon tile
1566
.search-provider-icon,
1567
.list-search-result {
1568
@extend %icon_tile;
1569
&:focus, &:selected, &:hover {
1570
background-color: $inverse-overlay-hover;
1571
transition-duration: 0ms;
1572
}
1573
&:active, &:checked {
1574
background-color: $inverse-overlay-active;
1575
transition-duration: $duration-ripple;
1576
}
1577
}
1578
.app-well-app,
1579
.app-well-app.app-folder,
1580
.show-apps,
1581
.grid-search-result {
1582
& .overview-icon {
1583
@extend %icon_tile;
1584
}
1585
&:hover .overview-icon,
1586
&:focus .overview-icon,
1587
&:selected .overview-icon {
1588
background-color: $inverse-overlay-hover;
1589
transition-duration: 0ms;
1590
border-image: none;
1591
background-image: none;
1592
}
1593
&:active .overview-icon,
1594
&:checked .overview-icon {
1595
background-color: $inverse-overlay-active;
1596
box-shadow: $shadow-0;
1597
transition-duration: $duration-ripple;
1598
}
1599
1600
}
1601
1602
.app-well-app-running-dot { //running apps indicator
1603
width: 32px; height: 2px;
1604
background-color: on(dark);
1605
margin-bottom: 0;
1606
}
1607
1608
%icon_tile {
1609
color: on(dark);
1610
border-radius: $corner-radius;
1611
padding: 6px;
1612
border: none;
1613
transition-duration: $duration;
1614
text-align: center;
1615
}
1616
1617
.app-well-app.app-folder > .overview-icon {
1618
background-color: $scrim-inverse;
1619
}
1620
1621
.show-apps .show-apps-icon {
1622
color: on(dark, secondary);
1623
}
1624
1625
.show-apps:hover .show-apps-icon,
1626
.show-apps:active .show-apps-icon,
1627
.show-apps:checked .show-apps-icon,
1628
.show-apps:focus .show-apps-icon {
1629
color: on(dark);
1630
transition-duration: $duration;
1631
}
1632
1633
1634
// Collections
1635
.app-folder-popup { //expanded collection
1636
-arrow-border-radius: $corner-radius;
1637
-arrow-background-color: $scrim-inverse;
1638
-arrow-base: 24px;
1639
-arrow-rise: 12px;
1640
}
1641
.app-folder-popup-bin { padding: 5px; }
1642
.app-folder-icon {
1643
padding: 5px;
1644
spacing-rows: 5px;
1645
spacing-columns: 5px;
1646
}
1647
1648
.page-indicator {
1649
padding: 15px 20px;
1650
1651
.page-indicator-icon {
1652
width: 12px;
1653
height: 12px;
1654
border-radius: 12px;
1655
background-image: none;
1656
background-color: on(dark, secondary-disabled);
1657
transition-duration: $duration;
1658
}
1659
&:hover .page-indicator-icon {
1660
background-image: none;
1661
background-color: on(dark, disabled);
1662
}
1663
&:active .page-indicator-icon {
1664
background-image: none;
1665
background-color: on(dark, secondary);
1666
}
1667
&:checked .page-indicator-icon {
1668
background-image: none;
1669
background-color: on(dark);
1670
transition-duration: 0ms;
1671
}
1672
&:checked:active { background-image: none; }
1673
}
1674
1675
.no-frequent-applications-label { @extend %status_text; }
1676
1677
.app-well-app > .overview-icon.overview-icon-with-label,
1678
.grid-search-result .overview-icon.overview-icon-with-label {
1679
padding: 10px 8px 5px 8px;
1680
spacing: 4px;
1681
}
1682
1683
// Workspace pager
1684
.workspace-thumbnails { //container ala dash
1685
@extend %overview-panel;
1686
visible-width: 32px; //amount visible before hover
1687
spacing: 12px;
1688
padding: 12px;
1689
border-radius: $corner-radius 0 0 $corner-radius;
1690
//border-width: 0; //fixme: can't have non unoform borders :(
1691
&:rtl { border-radius: 0 $corner-radius $corner-radius 0;}
1692
1693
.placeholder {
1694
background-image: url("assets/dash-placeholder.svg");
1695
background-size: contain;
1696
height: 24px;
1697
}
1698
}
1699
.workspace-thumbnail-indicator {
1700
border: 0 solid on(dark);
1701
border-left-width: 2px;
1702
padding: 6px 10px;
1703
border-radius: 0;
1704
}
1705
1706
//Some hacks I don't even
1707
.search-display > StBoxLayout,
1708
.all-apps,
1709
.frequent-apps > StBoxLayout {
1710
// horizontal padding to make sure scrollbars or dash don't overlap content
1711
padding: 0px 88px 10px 88px;
1712
}
1713
1714
%overview-panel {
1715
transition-duration: $duration-panel;
1716
color: on(dark);
1717
background-color: $scrim-inverse;
1718
border: none;
1719
}
1720
1721
%status_text {
1722
@include font(display-2);
1723
color: on(dark, disabled);
1724
}
1725
1726
/* NOTIFICATIONS & MESSAGE TRAY */
1727
1728
.url-highlighter { link-color: $link; }
1729
1730
// Banners
1731
.notification-banner {
1732
font-size: 1em;
1733
width: 34em;
1734
min-height: $menuitem-size * 2;
1735
margin: 5px;
1736
border-radius: $corner-radius;
1737
color: $text;
1738
background-color: $surface;
1739
border: none;
1740
box-shadow: $shadow-2;
1741
&:hover { background-color: $surface; }
1742
&:focus { background-color: $surface; }
1743
1744
.notification-icon { padding: 5px; }
1745
.notification-content { padding: 5px; spacing: 5px; }
1746
.secondary-icon { icon-size: em(16px); }
1747
.notification-actions {
1748
background-color: transparent;
1749
padding-top: 0;
1750
padding: $container-padding;
1751
spacing: $container-padding;
1752
}
1753
.notification-button {
1754
transition-duration: $duration;
1755
min-height: $medium-size;
1756
padding: 0 8px;
1757
border-radius: $corner-radius;
1758
background-color: transparent;
1759
color: $text-secondary;
1760
font-weight: 500;
1761
&:first-child { border-radius: $corner-radius; }
1762
&:last-child { border-radius: $corner-radius; }
1763
&:hover, &focus { background-color: $overlay-hover; color: $text; }
1764
&:active {
1765
transition-duration: $duration-ripple;
1766
background-color: $overlay-active;
1767
color: $text;
1768
}
1769
}
1770
}
1771
.summary-source-counter {
1772
font-size: 1em;
1773
font-weight: bold;
1774
height: 1.6em; width: 1.6em;
1775
-shell-counter-overlap-x: 3px;
1776
-shell-counter-overlap-y: 3px;
1777
background-color: $primary;
1778
color: on($primary);
1779
border: 2px solid on($primary);
1780
box-shadow: 0 2px 2px rgba(0,0,0,0.5);
1781
border-radius: 0.9em; // should be 0.8 but whatever; wish I could do 50%;
1782
}
1783
1784
.secondary-icon { icon-size: em(16px); }
1785
1786
//chat bubbles
1787
.chat-body { spacing: 5px; }
1788
.chat-response { margin: 5px; }
1789
.chat-log-message { color: $text; }
1790
.chat-new-group { padding-top: 1em; }
1791
.chat-received {
1792
padding-left: 4px;
1793
&:rtl { padding-left: 0px; padding-right: 4px; }
1794
}
1795
.chat-sent {
1796
padding-left: 18pt;
1797
color: $text-secondary;
1798
&:rtl { padding-left: 0; padding-right: 18pt; }
1799
}
1800
.chat-meta-message {
1801
padding-left: 4px;
1802
@include font(caption);
1803
color: $text-secondary;
1804
&:rtl { padding-left: 0; padding-right: 4px; }
1805
}
1806
1807
//hotplug
1808
.hotplug-transient-box {
1809
spacing: 6px;
1810
padding: 2px 72px 2px 12px;
1811
}
1812
.hotplug-notification-item {
1813
padding: 2px 10px;
1814
&:focus { padding: 1px 71px 1px 11px; }
1815
}
1816
1817
.hotplug-notification-item-icon {
1818
icon-size: 24px;
1819
padding: 2px 5px;
1820
}
1821
1822
.hotplug-resident-box { spacing: 8px; }
1823
1824
.hotplug-resident-mount {
1825
transition-duration: $duration;
1826
spacing: 8px;
1827
border-radius: $corner-radius;
1828
&:hover { background-color: $overlay-hover; }
1829
&:active {
1830
transition-duration: $duration-ripple;
1831
background-color: $overlay-active;
1832
}
1833
}
1834
1835
.hotplug-resident-mount-label {
1836
color: inherit;
1837
padding-left: 6px;
1838
}
1839
1840
.hotplug-resident-mount-icon {
1841
icon-size: 24px;
1842
padding-left: 6px;
1843
}
1844
1845
.hotplug-resident-eject-icon {
1846
icon-size: 16px;
1847
}
1848
1849
.hotplug-resident-eject-button {
1850
padding: 7px;
1851
border-radius: $corner-radius;
1852
color: $text;
1853
}
1854
1855
/* Eeeky things */
1856
1857
$legacy_icon_size: 24px;
1858
1859
.legacy-tray {
1860
background-color: $scrim;
1861
color: on($scrim);
1862
border: none;
1863
border-bottom-width: 0;
1864
&:ltr { border-radius: 0 $corner-radius 0 0; border-left-width: 0; }
1865
&:rtl { border-radius: $corner-radius 0 0 0; border-right-width: 0; }
1866
}
1867
1868
.legacy-tray-handle,
1869
.legacy-tray-icon {
1870
padding: 6px;
1871
& StIcon { icon-size: $legacy_icon_size; }
1872
&:hover,&:focus { background-color: $inverse-overlay-hover; }
1873
&:active { background-color: $inverse-overlay-active; }
1874
}
1875
1876
.legacy-tray-icon-box {
1877
spacing: 12px;
1878
&:ltr { padding-left: 12px; }
1879
&:rtl { padding-right: 12px; }
1880
& StButton { width: $legacy_icon_size; height: $legacy_icon_size }
1881
}
1882
1883
//magnifier
1884
1885
.magnifier-zoom-region {
1886
border: 2px solid $primary;
1887
&.full-screen { border-width: 0; }
1888
}
1889
1890
//Keyboard
1891
/* On-screen Keyboard */
1892
1893
#keyboard {
1894
background-color: $scrim-alt;
1895
}
1896
1897
.keyboard-layout {
1898
spacing: 10px;
1899
padding: 10px;
1900
}
1901
1902
.keyboard-row { spacing: 15px; }
1903
1904
.keyboard-key {
1905
min-height: 1.2em;
1906
min-width: 1.2em;
1907
font-size: 2em;
1908
font-weight: 500;
1909
border-radius: $corner-radius;
1910
border: none;
1911
@include button(normal);
1912
&:focus { @include button(focus); }
1913
&:hover,&:checked { @include button(hover); }
1914
&:active { @include button(active);}
1915
&:grayed { //FIXME
1916
background-color: $scrim-alt;
1917
color: on($scrim-alt);
1918
border-color: $scrim-alt;
1919
}
1920
}
1921
1922
.keyboard-subkeys { //long press on a key popup
1923
color: inherit;
1924
padding: 5px;
1925
-arrow-border-radius: 0;
1926
-arrow-background-color: transparent;
1927
-arrow-border-width: 0;
1928
-arrow-border-color: transparent;
1929
-arrow-base: 0;
1930
-arrow-rise: 0;
1931
-boxpointer-gap: 5px;
1932
background-color: $surface;
1933
border-radius: $corner-radius;
1934
box-shadow: $shadow-2;
1935
}
1936
1937
// IBus Candidate Popup
1938
1939
.candidate-popup-content {
1940
padding: 8px;
1941
spacing: 0;
1942
}
1943
1944
.candidate-index {
1945
padding: 0 4px 0 0;
1946
color: $text-secondary;
1947
}
1948
1949
.candidate-box {
1950
transition-duration: $duration;
1951
min-height: $menuitem-size;
1952
padding: 0 8px;
1953
border-radius: $corner-radius;
1954
&:hover { background-color: $overlay-hover; color: $text; transition-duration: 0ms; }
1955
&:active { background-color: $overlay-active; color: $text; transition-duration: $duration-ripple; }
1956
&:selected { background-color: $overlay-selected; color: $text; transition-duration: 0ms; }
1957
}
1958
1959
.candidate-page-button-box {
1960
height: $menuitem-size;
1961
.vertical & { padding-top: 0; }
1962
.horizontal & { padding-left: 0; }
1963
}
1964
1965
.candidate-page-button {
1966
min-width: $menuitem-size;
1967
min-height: $menuitem-size;
1968
padding: 0;
1969
}
1970
1971
.candidate-page-button-previous { border-radius: $corner-radius; border-right-width: 0; }
1972
.candidate-page-button-next { border-radius: $corner-radius; }
1973
.candidate-page-button-icon { icon-size: em(16px); }
1974
1975
/* Auth Dialogs & Screen Shield */
1976
1977
.framed-user-icon {
1978
background-size: contain;
1979
border: none;
1980
color: on($os-background);
1981
border-radius: $corner-radius;
1982
&:hover {
1983
border-color: on($os-background);
1984
color: on($os-background);
1985
}
1986
}
1987
1988
// LOGIN DIALOG
1989
1990
.login-dialog-banner-view {
1991
padding-top: 24px;
1992
max-width: 23em;
1993
}
1994
1995
.login-dialog {
1996
//reset
1997
border: none;
1998
background-color: transparent;
1999
2000
StEntry {
2001
color: on($os-background);
2002
selection-background-color: on($os-background, track);
2003
selected-color: on($os-background);
2004
@include entry(normal, $fc:on($os-background, track));
2005
&:focus { @include entry(focus, $fc:on($os-background)); }
2006
&:insensitive {
2007
@include entry(insensitive, $fc:on($os-background, track-disabled));
2008
color: on($os-background, disabled);
2009
}
2010
}
2011
2012
.modal-dialog-button-box { spacing: 3px; }
2013
.modal-dialog-button {
2014
padding: 0 16px;
2015
@include button(flat-normal, $tc: on($os-background));
2016
&:hover,&:focus { @include button(flat-hover, $tc: on($os-background)); }
2017
&:active { @include button(flat-active, $tc: on($os-background)); }
2018
&:insensitive { @include button(flat-insensitive, $tc: on($os-background)); }
2019
2020
&:default {
2021
@include button(normal, $c: $suggested, $tc: on($suggested));
2022
&:hover,&:focus { @include button(hover, $c: $suggested, $tc: on($suggested)); }
2023
&:active { @include button(active, $c: $suggested, $tc: on($suggested)); }
2024
&:insensitive { @include button(insensitive, $c: on($os-background, fill), $tc: on($os-background, disabled)); }
2025
}
2026
}
2027
}
2028
2029
.login-dialog-logo-bin { padding: 24px 0px; }
2030
.login-dialog-banner { color: on($os-background, secondary); }
2031
.login-dialog-button-box { spacing: 5px; }
2032
.login-dialog-message-warning { color: $warning; }
2033
.login-dialog-message-hint { padding-top: 0; padding-bottom: 20px; }
2034
.login-dialog-user-selection-box { padding: 100px 0px; }
2035
.login-dialog-not-listed-label {
2036
padding-left: 2px;
2037
.login-dialog-not-listed-button:focus &,
2038
.login-dialog-not-listed-button:hover & {
2039
color: on($os-background);
2040
}
2041
}
2042
.login-dialog-not-listed-label {
2043
transition-duration: $duration;
2044
font-size: 1em;
2045
font-weight: bold;
2046
color: on($os-background, secondary);
2047
padding-top: 1em;
2048
border-radius: $corner-radius;
2049
&:hover {
2050
background-color: $inverse-overlay-hover;
2051
color: on($os-background);
2052
}
2053
&:focus { background-color: $inverse-overlay-focus; }
2054
&:active {
2055
transition-duration: $duration-ripple;
2056
background-color: $inverse-overlay-active;
2057
color: on($os-background);
2058
}
2059
}
2060
2061
.login-dialog-user-list-view { -st-vfade-offset: 1em; }
2062
.login-dialog-user-list {
2063
spacing: 12px;
2064
padding: .2em;
2065
width: 23em;
2066
&:expanded .login-dialog-user-list-item:focus { background-color: $inverse-overlay-focus; color: on($os-background); }
2067
&:expanded .login-dialog-user-list-item:hover { background-color: $inverse-overlay-hover; color: on($os-background); }
2068
&:expanded .login-dialog-user-list-item:active { background-color: $inverse-overlay-active; color: on($os-background); }
2069
&:expanded .login-dialog-user-list-item:logged-in { border-right: 2px solid on($os-background); }
2070
}
2071
.login-dialog-user-list-item {
2072
transition-duration: $duration;
2073
border-radius: $corner-radius;
2074
padding: 4px 4px 0;
2075
color: on($os-background, secondary);
2076
&:ltr { padding-right: 1em; }
2077
&:rtl { padding-left: 1em; }
2078
&:hover {
2079
background-color: $inverse-overlay-hover;
2080
color: on($os-background);
2081
}
2082
&:active {
2083
transition-duration: $duration-ripple;
2084
background-color: $inverse-overlay-active;
2085
color: on($os-background);
2086
}
2087
.login-dialog-timed-login-indicator {
2088
height: 2px;
2089
margin: 2px 0 0 0;
2090
background-color: on($os-background);
2091
}
2092
&:focus .login-dialog-timed-login-indicator { background-color: on($os-background); }
2093
}
2094
2095
.login-dialog-username,
2096
.user-widget-label {
2097
color: on($os-background);
2098
@include font(title);
2099
text-align: left;
2100
padding-left: 15px;
2101
}
2102
.user-widget-label {
2103
&:ltr { padding-left: 18px; }
2104
&:rtl { padding-right: 18px; }
2105
}
2106
2107
.login-dialog-prompt-layout {
2108
padding-top: 24px;
2109
padding-bottom: 12px;
2110
spacing: 8px;
2111
width: 23em;
2112
}
2113
2114
.login-dialog-prompt-label {
2115
color: on($os-background, secondary);
2116
font-size: 1em;
2117
padding-top: 1em;
2118
}
2119
2120
.login-dialog-session-list-button StIcon {
2121
icon-size: 1.25em;
2122
}
2123
2124
.login-dialog-session-list-button {
2125
color: on($os-background, secondary);
2126
&:hover,&:focus { color: on($os-background); }
2127
&:active { color: on($os-background); }
2128
}
2129
2130
//SCREEN SHIELD
2131
2132
.screen-shield-arrows {
2133
padding-bottom: 3em;
2134
}
2135
2136
.screen-shield-arrows Gjs_Arrow {
2137
color: white;
2138
width: 80px;
2139
height: 48px;
2140
-arrow-thickness: 12px;
2141
-arrow-shadow: $shadow-1;
2142
}
2143
2144
.screen-shield-clock {
2145
color: white;
2146
text-shadow: $shadow-1;
2147
font-weight: normal;
2148
text-align: center;
2149
padding-bottom: 1.5em;
2150
}
2151
2152
.screen-shield-clock-time {
2153
@include font(display-4);
2154
text-shadow: $shadow-1;
2155
}
2156
2157
.screen-shield-clock-date { @include font(display-2); }
2158
2159
.screen-shield-notifications-container {
2160
spacing: 6px;
2161
width: 30em;
2162
background-color: transparent;
2163
max-height: 500px;
2164
.summary-notification-stack-scrollview {
2165
padding-top: 0;
2166
padding-bottom: 0;
2167
}
2168
2169
.notification,
2170
.screen-shield-notification-source {
2171
padding: 8px;
2172
border: none;
2173
background-color: $scrim-alt;
2174
color: on($scrim-alt);
2175
border-radius: $corner-radius;
2176
}
2177
.notification { margin-right: 16px; } //compensate for space allocated to the scrollbar
2178
}
2179
2180
2181
.screen-shield-notification-label {
2182
min-height: $small-size - 2px;
2183
padding: 2px 0px 0px 16px;
2184
font-weight: bold;
2185
}
2186
2187
.screen-shield-notification-count-text {
2188
min-height: $small-size - 2px;
2189
padding: 2px 0px 0px 16px;
2190
color: on($scrim-alt, secondary);
2191
}
2192
2193
#panel.lock-screen { background-color: $scrim-alt; }
2194
2195
.screen-shield-background { //just the shadow, really
2196
background: black;
2197
box-shadow: $shadow-5;
2198
}
2199
2200
#lockDialogGroup {
2201
background: $os-background;
2202
background-size: cover;
2203
}
2204
2205
#screenShieldNotifications {
2206
StScrollBar { @extend %overview_scrollbar; }
2207
}
2208
2209
2210
// Looking Glass
2211
#LookingGlassDialog {
2212
background-color: $surface;
2213
spacing: 4px;
2214
padding: 0;
2215
border: none;
2216
border-radius: $corner-radius;
2217
box-shadow: $shadow-4;
2218
& > #Toolbar {
2219
padding: 0 8px;
2220
border: none;
2221
border-radius: 0;
2222
background-color: rgba($surface, 0.01);
2223
box-shadow: inset 0 -1px 0 $divider;
2224
}
2225
.labels { spacing: 0; }
2226
.notebook-tab {
2227
-natural-hpadding: 12px;
2228
-minimum-hpadding: 6px;
2229
font-weight: bold;
2230
color: $text-secondary;
2231
transition-duration: $duration;
2232
padding-left: 16px;
2233
padding-right: 16px;
2234
min-height: $medium-size;
2235
padding: 0 16px * 2;
2236
&:hover {
2237
background-color: $overlay-hover;
2238
color: $text;
2239
text-shadow: none;
2240
}
2241
&:active {
2242
background-color: $overlay-active;
2243
color: $text;
2244
transition-duration: $duration-ripple;
2245
}
2246
&:selected {
2247
border-bottom-width: 0;
2248
border-color: transparent;
2249
background-color: rgba($surface, 0.01);
2250
box-shadow: inset 0 -2px 0px $primary;
2251
color: $text;
2252
text-shadow: none;
2253
}
2254
}
2255
StBoxLayout#EvalBox { padding: 4px; spacing: 4px; }
2256
StBoxLayout#ResultsArea { spacing: 4px; }
2257
}
2258
2259
.lg-dialog {
2260
StEntry {
2261
selection-background-color: $overlay-selected;
2262
selected-color: $text;
2263
}
2264
.shell-link {
2265
color: $link;
2266
&:hover { color: $link; }
2267
}
2268
}
2269
2270
.lg-completions-text {
2271
font-size: 1em;
2272
font-style: italic;
2273
}
2274
2275
.lg-obj-inspector-title {
2276
spacing: 4px;
2277
}
2278
2279
.lg-obj-inspector-button {
2280
min-height: $medium-size;
2281
padding: 0 16px;
2282
border: none;
2283
border-radius: $corner-radius;
2284
@include font(button);
2285
@include button(flat-normal);
2286
&:hover { @include button(flat-hover); }
2287
&:active { @include button(flat-active); }
2288
&:insensitive { @include button(flat-insensitive); }
2289
&:focus { @include button(flat-focus); }
2290
&:hover { border: none; }
2291
}
2292
2293
#lookingGlassExtensions { padding: 4px; }
2294
2295
.lg-extensions-list {
2296
padding: 4px;
2297
spacing: 6px;
2298
}
2299
2300
.lg-extension {
2301
border: none;
2302
border-radius: $corner-radius;
2303
padding: 4px;
2304
}
2305
2306
.lg-extension-name {
2307
@include font(headline);
2308
}
2309
2310
.lg-extension-meta {
2311
spacing: 6px;
2312
}
2313
2314
#LookingGlassPropertyInspector {
2315
background: $surface;
2316
border: none;
2317
border-radius: $corner-radius;
2318
padding: 6px;
2319
box-shadow: $shadow-4;
2320
}
2321