_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
$small_size: if($laptop == 'true', 20px, 24px);
30
$medium_size: if($laptop == 'true', 32px, 36px);
31
$large_size: if($laptop == 'true', 44px, 48px);
32
33
$menuitem_size: if($laptop == 'true', 28px, 32px);
34
35
* {
36
transition-timing-function : cubic-bezier(0.4, 0, 0.2, 1);
37
transition-duration: 0.2s;
38
}
39
40
/* GLOBALS */
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: 48px;
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: 48px;
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 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: ($menuitem_size - 16px) / 2;
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: ($small_size - 16px) / 2;
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: 20px;
1207
padding: 0 2px;
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: ($large_size - 16px) / 2;
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 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: none; }
1299
.nm-dialog-header { @include font(title); }
1300
1301
.nm-dialog-item {
1302
font-size: 1em;
1303
border-bottom: none;
1304
border-radius: 2px;
1305
padding: 12px;
1306
spacing: 20px;
1307
&:hover, &:focus { background-color: $semi_track_color; }
1308
&:active { background-color: $track_color; }
1309
}
1310
1311
.nm-dialog-item:selected {
1312
background-color: $selected_bg_color;
1313
color: $selected_fg_color;
1314
}
1315
1316
.nm-dialog-icons { spacing: .5em; }
1317
.nm-dialog-icon { icon-size: 16px; }
1318
.no-networks-label { color: $tertiary_fg_color; }
1319
.no-networks-box { spacing: 12px; }
1320
1321
/* OVERVIEW */
1322
1323
#overview {
1324
spacing: 24px; //
1325
StScrollBar { @extend %overview_scrollbar; }
1326
}
1327
1328
.overview-controls {
1329
padding-bottom: 32px;
1330
}
1331
1332
.window-picker { //container around window thumbnails
1333
-horizontal-spacing: 32px;
1334
-vertical-spacing: 32px;
1335
padding-left: 32px;
1336
padding-right: 32px;
1337
padding-bottom: 48px;
1338
1339
&.external-monitor { padding: 32px; }
1340
}
1341
1342
.window-clone-border {
1343
border: 4px solid $selected_track_color;
1344
border-radius: 2px;
1345
// For window decorations with round corners we can't match
1346
// the exact shape when the window is scaled. So apply a shadow
1347
// to fix that case
1348
box-shadow: inset 0 0 0 1px $selected_track_color;
1349
}
1350
.window-caption {
1351
spacing: 25px;
1352
color: $selected_fg_color;
1353
background-color: transparent;
1354
border-radius: 2px;
1355
padding: 4px 8px;
1356
-shell-caption-spacing: 12px;
1357
&:hover { background-color: $selected_track_color; color: $selected_fg_color; }
1358
}
1359
1360
//search entry
1361
.search-entry {
1362
width: 320px - 8px * 2;
1363
padding: 0 8px;
1364
border-radius: 0;
1365
color: $tertiary_selected_fg_color;
1366
selection-background-color: $selected_track_color;
1367
selected-color: $selected_fg_color;
1368
@include entry(normal,$fc:$selected_track_color);
1369
&:focus {
1370
@include entry(focus,$fc:$selected_fg_color);
1371
padding: 0 8px;
1372
border-width: 0;
1373
color: $selected_fg_color;
1374
}
1375
1376
.search-entry-icon { icon-size: 16px; padding: 0 0; color: $tertiary_selected_fg_color; }
1377
1378
&:hover, &:focus {
1379
.search-entry-icon { color: $selected_fg_color; }
1380
}
1381
}
1382
1383
//search results
1384
1385
#searchResultsBin {
1386
max-width: 1000px;
1387
}
1388
1389
#searchResultsContent {
1390
padding-left: 20px;
1391
padding-right: 20px;
1392
spacing: 16px;
1393
}
1394
1395
.search-section { spacing: 16px; } // This should be equal to #searchResultsContent spacing
1396
.search-section-content { spacing: 32px; } // This is the space between the provider icon and the results container
1397
.search-statustext { // "no results"
1398
@extend %status_text;
1399
}
1400
.list-search-results { spacing: 3px; }
1401
1402
.search-section-separator {
1403
-gradient-height: 1px;
1404
-gradient-start: rgba(255,255,255,0);
1405
-gradient-end: rgba(255,255,255,0.4);
1406
-margin-horizontal: 1.5em;
1407
height: 1px;
1408
}
1409
1410
.list-search-result-content { spacing: 12px; padding: 12px; }
1411
.list-search-result-title { @include font(headline); color: $selected_fg_color; }
1412
.list-search-result-description { color: $secondary_selected_fg_color; }
1413
.search-provider-icon { padding: 15px; }
1414
.search-provider-icon-more {
1415
width: 16px;
1416
height: 16px;
1417
background-image: url("assets/more-results.svg");
1418
}
1419
1420
1421
/* DASHBOARD */
1422
1423
#dash {
1424
font-size: 1em;
1425
color: $selected_fg_color;
1426
background-color: $overview_bg_color;
1427
padding: 3px 0;
1428
border: none;
1429
border-left: 0px;
1430
border-radius: 0px 2px 2px 0px;
1431
1432
&:rtl {
1433
border-radius: 2px 0 0 2px;
1434
}
1435
1436
.placeholder {
1437
background-image: url("assets/dash-placeholder.svg");
1438
background-size: contain;
1439
height: 24px;
1440
}
1441
1442
.empty-dash-drop-target {
1443
width: 24px;
1444
height: 24px;
1445
}
1446
1447
}
1448
1449
.dash-item-container > StWidget {
1450
padding: 3px 6px;
1451
}
1452
1453
.dash-label { //osd tooltip
1454
min-height: 32px - 6px * 2;
1455
border-radius: 2px;
1456
padding: 6px 8px;
1457
color: $fg_color;
1458
background-color: $base_color;
1459
box-shadow: $z-depth-2;
1460
text-align: center;
1461
-x-offset: 8px;
1462
}
1463
1464
/* App Vault/Grid */
1465
.icon-grid {
1466
spacing: 30px;
1467
-shell-grid-horizontal-item-size: 136px;
1468
-shell-grid-vertical-item-size: 136px;
1469
1470
.overview-icon { icon-size: 96px; }
1471
}
1472
//.app-display { spacing: 20px; }
1473
1474
.app-view-controls { //favorties | all toggle container
1475
width: 320px;
1476
padding-bottom: 32px;
1477
}
1478
.app-view-control { //favorties | all toggle button
1479
padding: 0 16px;
1480
font-weight: bold;
1481
color: $secondary_selected_fg_color;
1482
&:hover {
1483
color: $selected_fg_color;
1484
background-color: $selected_semi_track_color !important;
1485
}
1486
&:active {
1487
color: $selected_fg_color;
1488
background-color: $selected_track_color !important;
1489
}
1490
&:checked {
1491
color: $selected_fg_color;
1492
background-color: rgba($bg_color, 0.01) !important;
1493
box-shadow: inset 0 2px 0 $selected_fg_color;
1494
}
1495
&:first-child {
1496
border-right-width: 0;
1497
border-radius: 2px;
1498
&:checked { border-radius: 0; }
1499
}
1500
&:last-child {
1501
border-radius: 2px;
1502
&:checked { border-radius: 0; }
1503
}
1504
}
1505
1506
//Icon tile
1507
.search-provider-icon,
1508
.list-search-result {
1509
@extend %icon_tile;
1510
&:focus, &:selected, &:hover {
1511
background-color: $selected_semi_track_color;
1512
transition-duration: 0s;
1513
}
1514
&:active, &:checked {
1515
background-color: $selected_track_color;
1516
transition-duration: 0.2s;
1517
}
1518
}
1519
.app-well-app,
1520
.app-well-app.app-folder,
1521
.show-apps,
1522
.grid-search-result {
1523
& .overview-icon {
1524
@extend %icon_tile;
1525
}
1526
&:hover .overview-icon,
1527
&:focus .overview-icon,
1528
&:selected .overview-icon {
1529
background-color: $selected_semi_track_color;
1530
transition-duration: 0s;
1531
border-image: none;
1532
background-image: none;
1533
}
1534
&:active .overview-icon,
1535
&:checked .overview-icon {
1536
background-color: $selected_track_color;
1537
box-shadow: $z-depth-0;
1538
transition-duration: 0.2s;
1539
}
1540
1541
}
1542
1543
.app-well-app-running-dot { //running apps indicator
1544
width: 32px; height: 2px;
1545
background-color: $selected_fg_color;
1546
margin-bottom: 0;
1547
}
1548
1549
%icon_tile {
1550
color: $selected_fg_color;
1551
border-radius: 2px;
1552
padding: 6px;
1553
border: none;
1554
transition-duration: 0.2s;
1555
text-align: center;
1556
}
1557
1558
.app-well-app.app-folder > .overview-icon {
1559
background-color: $overview_bg_color;
1560
}
1561
1562
.show-apps .show-apps-icon {
1563
color: $secondary_selected_fg_color;
1564
}
1565
1566
.show-apps:hover .show-apps-icon,
1567
.show-apps:active .show-apps-icon,
1568
.show-apps:checked .show-apps-icon,
1569
.show-apps:focus .show-apps-icon {
1570
color: $selected_fg_color;
1571
transition-duration: 0.2s;
1572
}
1573
1574
1575
// Collections
1576
.app-folder-popup { //expanded collection
1577
-arrow-border-radius: 2px;
1578
-arrow-background-color: $overview_bg_color;
1579
-arrow-base: 24px;
1580
-arrow-rise: 12px;
1581
}
1582
.app-folder-popup-bin { padding: 5px; }
1583
.app-folder-icon {
1584
padding: 5px;
1585
spacing-rows: 5px;
1586
spacing-columns: 5px;
1587
}
1588
1589
.page-indicator {
1590
padding: 15px 20px;
1591
1592
.page-indicator-icon {
1593
width: 12px;
1594
height: 12px;
1595
border-radius: 12px;
1596
background-image: none;
1597
background-color: scale-alpha($selected_fg_color, $lower_opacity);
1598
}
1599
&:hover .page-indicator-icon {
1600
background-image: none;
1601
background-color: scale-alpha($selected_fg_color, $middle_opacity);
1602
}
1603
&:active .page-indicator-icon {
1604
background-image: none;
1605
background-color: scale-alpha($selected_fg_color, $higher_opacity);
1606
}
1607
&:checked .page-indicator-icon,
1608
&:checked:active {
1609
background-image: none;
1610
background-color: $selected_fg_color;
1611
transition-duration: 0s;
1612
}
1613
}
1614
1615
.no-frequent-applications-label { @extend %status_text; }
1616
1617
.app-well-app > .overview-icon.overview-icon-with-label,
1618
.grid-search-result .overview-icon.overview-icon-with-label {
1619
padding: 10px 8px 5px 8px;
1620
spacing: 4px;
1621
}
1622
1623
// Workspace pager
1624
.workspace-thumbnails { //container ala dash
1625
@extend %overview-panel;
1626
visible-width: 32px; //amount visible before hover
1627
spacing: 12px;
1628
padding: 12px;
1629
border-radius: 2px 0 0 2px;
1630
//border-width: 0; //fixme: can't have non unoform borders :(
1631
&:rtl { border-radius: 0 2px 2px 0;}
1632
}
1633
.workspace-thumbnail-indicator {
1634
border: 0 solid $selected_fg_color;
1635
border-left-width: 2px;
1636
padding: 6px;
1637
border-radius: 0;
1638
}
1639
1640
//Some hacks I don't even
1641
.search-display > StBoxLayout,
1642
.all-apps,
1643
.frequent-apps > StBoxLayout {
1644
// horizontal padding to make sure scrollbars or dash don't overlap content
1645
padding: 0px 88px 10px 88px;
1646
}
1647
1648
%overview-panel {
1649
color: $selected_fg_color;
1650
background-color: $overview_bg_color;
1651
border: none;
1652
}
1653
1654
%status_text {
1655
@include font(display-2);
1656
color: $tertiary_selected_fg_color;
1657
}
1658
1659
/* NOTIFICATIONS & MESSAGE TRAY */
1660
1661
.url-highlighter { link-color: $link_color; }
1662
1663
// Banners
1664
.notification-banner {
1665
font-size: 1em;
1666
width: 34em;
1667
min-height: $menuitem_size * 2;
1668
margin: 5px;
1669
border-radius: 2px;
1670
color: $fg_color;
1671
background-color: $base_color;
1672
border: none;
1673
box-shadow: $z-depth-2;
1674
&:hover { background-color: $base_color; }
1675
&:focus { background-color: $base_color; }
1676
1677
.notification-icon { padding: 5px; }
1678
.notification-content { padding: 5px; spacing: 5px; }
1679
.secondary-icon { @include em(16px); }
1680
.notification-actions {
1681
background-color: transparent;
1682
padding-top: 0;
1683
border-top: 1px solid $borders_color;
1684
spacing: 1px;
1685
}
1686
.notification-button {
1687
min-height: 40px;
1688
padding: 0 16px;
1689
background-color: transparent;
1690
color: $secondary_fg_color;
1691
font-weight: 500;
1692
&:first-child { border-radius: 0 0 0 2px; }
1693
&:last-child { border-radius: 0 0 2px 0; }
1694
&:hover, &focus { background-color: $semi_track_color; color: $fg_color; }
1695
&:active { background-color: $track_color; color: $fg_color; }
1696
}
1697
}
1698
.summary-source-counter {
1699
font-size: 1em;
1700
font-weight: bold;
1701
height: 1.6em; width: 1.6em;
1702
-shell-counter-overlap-x: 3px;
1703
-shell-counter-overlap-y: 3px;
1704
background-color: $selected_bg_color;
1705
color: $selected_fg_color;
1706
border: 2px solid $selected_fg_color;
1707
box-shadow: 0 2px 2px rgba(0,0,0,0.5);
1708
border-radius: 0.9em; // should be 0.8 but whatever; wish I could do 50%;
1709
}
1710
1711
.secondary-icon { @include em(16px); }
1712
1713
//chat bubbles
1714
.chat-body { spacing: 5px; }
1715
.chat-response { margin: 5px; }
1716
.chat-log-message { color: $fg_color; }
1717
.chat-new-group { padding-top: 1em; }
1718
.chat-received {
1719
padding-left: 4px;
1720
&:rtl { padding-left: 0px; padding-right: 4px; }
1721
}
1722
.chat-sent {
1723
padding-left: 18pt;
1724
color: $secondary_fg_color;
1725
&:rtl { padding-left: 0; padding-right: 18pt; }
1726
}
1727
.chat-meta-message {
1728
padding-left: 4px;
1729
@include font(caption);
1730
color: $tertiary_fg_color;
1731
&:rtl { padding-left: 0; padding-right: 4px; }
1732
}
1733
1734
//hotplug
1735
.hotplug-transient-box {
1736
spacing: 6px;
1737
padding: 2px 72px 2px 12px;
1738
}
1739
.hotplug-notification-item {
1740
padding: 2px 10px;
1741
&:focus { padding: 1px 71px 1px 11px; }
1742
}
1743
1744
.hotplug-notification-item-icon {
1745
icon-size: 24px;
1746
padding: 2px 5px;
1747
}
1748
1749
.hotplug-resident-box { spacing: 8px; }
1750
1751
.hotplug-resident-mount {
1752
spacing: 8px;
1753
border-radius: 2px;
1754
&:hover { background-color: $semi_track_color; }
1755
&:active { background-color: $track_color; }
1756
}
1757
1758
.hotplug-resident-mount-label {
1759
color: inherit;
1760
padding-left: 6px;
1761
}
1762
1763
.hotplug-resident-mount-icon {
1764
icon-size: 24px;
1765
padding-left: 6px;
1766
}
1767
1768
.hotplug-resident-eject-icon {
1769
icon-size: 16px;
1770
}
1771
1772
.hotplug-resident-eject-button {
1773
padding: 7px;
1774
border-radius: 2px;
1775
color: $fg_color;
1776
}
1777
1778
/* Eeeky things */
1779
1780
$legacy_icon_size: 24px;
1781
1782
.legacy-tray {
1783
background-color: $bg_color;
1784
color: $selected_fg_color;
1785
border: none;
1786
border-bottom-width: 0;
1787
&:ltr { border-radius: 0 2px 0 0; border-left-width: 0; }
1788
&:rtl { border-radius: 2px 0 0 0; border-right-width: 0; }
1789
}
1790
1791
.legacy-tray-handle,
1792
.legacy-tray-icon {
1793
padding: 6px;
1794
& StIcon { icon-size: $legacy_icon_size; }
1795
&:hover,&:focus { background-color: $selected_semi_track_color; }
1796
&:active { background-color: $selected_track_color; }
1797
}
1798
1799
.legacy-tray-icon-box {
1800
spacing: 12px;
1801
&:ltr { padding-left: 12px; }
1802
&:rtl { padding-right: 12px; }
1803
& StButton { width: $legacy_icon_size; height: $legacy_icon_size }
1804
}
1805
1806
//magnifier
1807
1808
.magnifier-zoom-region {
1809
border: 2px solid $selected_bg_color;
1810
&.full-screen { border-width: 0; }
1811
}
1812
1813
//Keyboard
1814
/* On-screen Keyboard */
1815
1816
#keyboard {
1817
background-color: $osd_bg_color;
1818
}
1819
1820
.keyboard-layout {
1821
spacing: 10px;
1822
padding: 10px;
1823
}
1824
1825
.keyboard-row { spacing: 15px; }
1826
1827
.keyboard-key {
1828
min-height: $medium_size * 2;
1829
min-width: $medium_size * 2;
1830
font-size: 2em;
1831
font-weight: 500;
1832
border-radius: 2px;
1833
border: none;
1834
color: inherit;
1835
@include button(normal);
1836
&:focus { @include button(focus); }
1837
&:hover,&:checked { @include button(hover); }
1838
&:active { @include button(active);}
1839
&:grayed { //FIXME
1840
background-color: $osd_bg_color;
1841
color: $selected_fg_color;
1842
border-color: $osd_bg_color;
1843
}
1844
}
1845
1846
.keyboard-subkeys { //long press on a key popup
1847
color: inherit;
1848
padding: 5px;
1849
-arrow-border-radius: 0;
1850
-arrow-background-color: transparent;
1851
-arrow-border-width: 0;
1852
-arrow-border-color: transparent;
1853
-arrow-base: 0;
1854
-arrow-rise: 0;
1855
-boxpointer-gap: 5px;
1856
background-color: $base_color;
1857
border-radius: 2px;
1858
box-shadow: $z-depth-2;
1859
}
1860
1861
// IBus Candidate Popup
1862
1863
.candidate-popup-content {
1864
padding: 8px;
1865
spacing: 0;
1866
}
1867
1868
.candidate-index {
1869
padding: 0 4px 0 0;
1870
color: $tertiary_fg_color;
1871
.candidate-box:selected & { color: $tertiary_selected_fg_color; }
1872
}
1873
1874
.candidate-box {
1875
transition-duration: 0s;
1876
min-height: $menuitem_size;
1877
padding: 0 8px;
1878
border-radius: 2px;
1879
&:hover { background-color: $semi_track_color; color: $fg_color; }
1880
&:active { background-color: $track_color; color: $fg_color; }
1881
&:selected { background-color: $selected_bg_color; color: $selected_fg_color; }
1882
}
1883
1884
.candidate-page-button-box {
1885
height: $menuitem_size;
1886
.vertical & { padding-top: 0; }
1887
.horizontal & { padding-left: 0; }
1888
}
1889
1890
.candidate-page-button {
1891
min-width: $menuitem_size;
1892
min-height: $menuitem_size;
1893
padding: 0;
1894
}
1895
1896
.candidate-page-button-previous { border-radius: 2px; border-right-width: 0; }
1897
.candidate-page-button-next { border-radius: 2px; }
1898
.candidate-page-button-icon { @include em(16px); }
1899
1900
/* Auth Dialogs & Screen Shield */
1901
1902
.framed-user-icon {
1903
background-size: contain;
1904
border: none;
1905
color: $selected_fg_color;
1906
border-radius: 2px;
1907
&:hover {
1908
border-color: $selected_fg_color;
1909
color: $selected_fg_color;
1910
}
1911
}
1912
1913
// LOGIN DIALOG
1914
1915
.login-dialog-banner-view {
1916
padding-top: 24px;
1917
max-width: 23em;
1918
}
1919
1920
.login-dialog {
1921
//reset
1922
border: none;
1923
background-color: transparent;
1924
1925
StEntry {
1926
color: $selected_fg_color;
1927
selection-background-color: $selected_track_color;
1928
selected-color: $selected_fg_color;
1929
@include entry(normal, $fc:$selected_track_color);
1930
&:focus { @include entry(focus, $fc:$selected_fg_color); }
1931
&:insensitive {
1932
@include entry(insensitive, $fc:$selected_insensitive_track_color);
1933
color: $insensitive_selected_fg_color;
1934
}
1935
}
1936
1937
.modal-dialog-button-box { spacing: 3px; }
1938
.modal-dialog-button {
1939
padding: 0 16px;
1940
@include button(flat-normal, $tc:$secondary_selected_fg_color);
1941
&:hover,&:focus { @include button(flat-hover, $c:$selected_semi_track_color, $tc:$selected_fg_color); }
1942
&:active { @include button(flat-active, $c:$selected_track_color, $tc:$selected_fg_color); }
1943
&:insensitive { @include button(flat-insensitive, $tc:$insensitive_secondary_selected_fg_color); }
1944
&:default {
1945
@include button(normal, $c:$suggested_color, $tc:$selected_fg_color);
1946
&:hover,&:focus { @include button(hover, $c:$suggested_color, $tc:$selected_fg_color); }
1947
&:active { @include button(active, $c:$suggested_color, $tc:$selected_fg_color); }
1948
&:insensitive { @include button(insensitive, $c:$selected_insensitive_track_color, $tc:$insensitive_selected_fg_color); }
1949
1950
}
1951
}
1952
1953
}
1954
1955
.login-dialog-logo-bin { padding: 24px 0px; }
1956
.login-dialog-banner { color: $secondary_selected_fg_color; }
1957
.login-dialog-button-box { spacing: 5px; }
1958
.login-dialog-message-warning { color: $warning_color; }
1959
.login-dialog-message-hint { padding-top: 0; padding-bottom: 20px; }
1960
.login-dialog-user-selection-box {
1961
padding: 100px 0px;
1962
.login-dialog-not-listed-label {
1963
padding-left: 2px;
1964
.login-dialog-not-listed-button:focus &,
1965
.login-dialog-not-listed-button:hover & {
1966
color: $selected_fg_color;
1967
}
1968
}
1969
}
1970
.login-dialog-not-listed-label {
1971
font-size: 1em;
1972
font-weight: bold;
1973
color: $secondary_selected_fg_color;
1974
padding-top: 1em;
1975
&:hover { color: $selected_fg_color; }
1976
&:focus { background-color: $selected_semi_track_color; }
1977
}
1978
1979
.login-dialog-user-list-view { -st-vfade-offset: 1em; }
1980
.login-dialog-user-list {
1981
spacing: 12px;
1982
padding: .2em;
1983
width: 23em;
1984
&:expanded .login-dialog-user-list-item:focus { background-color: $selected_semi_track_color; color: $selected_fg_color; }
1985
&:expanded .login-dialog-user-list-item:hover { background-color: $selected_semi_track_color; color: $selected_fg_color; }
1986
&:expanded .login-dialog-user-list-item:active { background-color: $selected_track_color; color: $selected_fg_color; }
1987
&:expanded .login-dialog-user-list-item:logged-in { border-right: 2px solid $selected_fg_color; }
1988
}
1989
.login-dialog-user-list-item {
1990
border-radius: 2px;
1991
padding: 4px 4px 0;
1992
color: $secondary_selected_fg_color;
1993
&:ltr { padding-right: 1em; }
1994
&:rtl { padding-left: 1em; }
1995
&:hover { background-color: $selected_semi_track_color; color: $selected_fg_color; }
1996
&:active { background-color: $selected_track_color; color: $selected_fg_color; }
1997
.login-dialog-timed-login-indicator {
1998
height: 2px;
1999
margin: 2px 0 0 0;
2000
background-color: $selected_fg_color;
2001
}
2002
&:focus .login-dialog-timed-login-indicator { background-color: $selected_fg_color; }
2003
}
2004
2005
.login-dialog-username,
2006
.user-widget-label {
2007
color: $selected_fg_color;
2008
@include font(title);
2009
text-align: left;
2010
padding-left: 15px;
2011
}
2012
.user-widget-label {
2013
&:ltr { padding-left: 18px; }
2014
&:rtl { padding-right: 18px; }
2015
}
2016
2017
.login-dialog-prompt-layout {
2018
padding-top: 24px;
2019
padding-bottom: 12px;
2020
spacing: 8px;
2021
width: 23em;
2022
}
2023
2024
.login-dialog-prompt-label {
2025
color: $tertiary_selected_fg_color;
2026
font-size: 1em;
2027
padding-top: 1em;
2028
}
2029
2030
.login-dialog-session-list-button StIcon {
2031
icon-size: 1.25em;
2032
}
2033
2034
.login-dialog-session-list-button {
2035
color: $secondary_selected_fg_color;
2036
&:hover,&:focus { color: $selected_fg_color; }
2037
&:active { color: $selected_fg_color; }
2038
}
2039
2040
//SCREEN SHIELD
2041
2042
.screen-shield-arrows {
2043
padding-bottom: 3em;
2044
}
2045
2046
.screen-shield-arrows Gjs_Arrow {
2047
color: white;
2048
width: 80px;
2049
height: 48px;
2050
-arrow-thickness: 12px;
2051
-arrow-shadow: $z-depth-1;
2052
}
2053
2054
.screen-shield-clock {
2055
color: white;
2056
text-shadow: $z-depth-1;
2057
font-weight: normal;
2058
text-align: center;
2059
padding-bottom: 1.5em;
2060
}
2061
2062
.screen-shield-clock-time {
2063
@include font(display-4);
2064
text-shadow: $z-depth-1;
2065
}
2066
2067
.screen-shield-clock-date { @include font(display-2); }
2068
2069
.screen-shield-notifications-container {
2070
spacing: 6px;
2071
width: 30em;
2072
background-color: transparent;
2073
max-height: 500px;
2074
.summary-notification-stack-scrollview {
2075
padding-top: 0;
2076
padding-bottom: 0;
2077
}
2078
2079
.notification,
2080
.screen-shield-notification-source {
2081
padding: 8px;
2082
border: none;
2083
background-color: $osd_bg_color;
2084
color: $selected_fg_color;
2085
border-radius: 2px;
2086
}
2087
.notification { margin-right: 16px; } //compensate for space allocated to the scrollbar
2088
}
2089
2090
2091
.screen-shield-notification-label {
2092
min-height: $small_size - 2px;
2093
padding: 2px 0px 0px 16px;
2094
font-weight: bold;
2095
}
2096
2097
.screen-shield-notification-count-text {
2098
min-height: $small_size - 2px;
2099
padding: 2px 0px 0px 16px;
2100
color: $secondary_selected_fg_color;
2101
}
2102
2103
#panel.lock-screen { background-color: $osd_bg_color; }
2104
2105
.screen-shield-background { //just the shadow, really
2106
background: black;
2107
box-shadow: $z-depth-5;
2108
}
2109
2110
#lockDialogGroup {
2111
background: #607D8B url("assets/noise-texture.svg");
2112
background-size: cover;
2113
}
2114
2115
#screenShieldNotifications {
2116
StScrollBar { @extend %overview_scrollbar; }
2117
}
2118
2119
2120
// Looking Glass
2121
#LookingGlassDialog {
2122
background-color: $base_color;
2123
spacing: 4px;
2124
padding: 0;
2125
border: none;
2126
border-radius: 2px;
2127
box-shadow: $z-depth-4;
2128
& > #Toolbar {
2129
padding: 0 8px;
2130
border: none;
2131
border-radius: 0;
2132
background-color: rgba($base_color, 0.01);
2133
box-shadow: inset 0 -1px 0 $borders_color;
2134
}
2135
.labels { spacing: 0; }
2136
.notebook-tab {
2137
-natural-hpadding: 12px;
2138
-minimum-hpadding: 6px;
2139
font-weight: bold;
2140
color: $tertiary_fg_color;
2141
transition-duration: 0.2s;
2142
padding-left: 16px;
2143
padding-right: 16px;
2144
min-height: $medium_size;
2145
padding: 0 16px * 2;
2146
&:hover {
2147
box-shadow: inset 0 -2px 0px $track_color;
2148
color: $fg_color;
2149
text-shadow: none;
2150
}
2151
&:selected {
2152
border-bottom-width: 0;
2153
border-color: transparent;
2154
background-color: rgba($base_color, 0.01);
2155
box-shadow: inset 0 -2px 0px $selected_bg_color;
2156
color: $fg_color;
2157
text-shadow: none;
2158
}
2159
}
2160
StBoxLayout#EvalBox { padding: 4px; spacing: 4px; }
2161
StBoxLayout#ResultsArea { spacing: 4px; }
2162
}
2163
2164
.lg-dialog {
2165
StEntry {
2166
selection-background-color: $selected_bg_color;
2167
selected-color: $selected_fg_color;
2168
}
2169
.shell-link {
2170
color: $link_color;
2171
&:hover { color: $link_color; }
2172
}
2173
}
2174
2175
.lg-completions-text {
2176
font-size: 1em;
2177
font-style: italic;
2178
}
2179
2180
.lg-obj-inspector-title {
2181
spacing: 4px;
2182
}
2183
2184
.lg-obj-inspector-button {
2185
min-height: $medium_size;
2186
padding: 0 16px;
2187
border: none;
2188
border-radius: 2px;
2189
@include font(button);
2190
@include button(flat-normal);
2191
&:hover { @include button(flat-hover); }
2192
&:active { @include button(flat-active); }
2193
&:insensitive { @include button(flat-insensitive); }
2194
&:focus { @include button(flat-focus); }
2195
&:hover { border: none; }
2196
}
2197
2198
#lookingGlassExtensions { padding: 4px; }
2199
2200
.lg-extensions-list {
2201
padding: 4px;
2202
spacing: 6px;
2203
}
2204
2205
.lg-extension {
2206
border: none;
2207
border-radius: 2px;
2208
padding: 4px;
2209
}
2210
2211
.lg-extension-name {
2212
@include font(headline);
2213
}
2214
2215
.lg-extension-meta {
2216
spacing: 6px;
2217
}
2218
2219
#LookingGlassPropertyInspector {
2220
background: $base_color;
2221
border: none;
2222
border-radius: 2px;
2223
padding: 6px;
2224
box-shadow: $z-depth-4;
2225
}
2226