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