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