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