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