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