A fork of the Materia GTK theme.

Important information: Google announced that, from September 2026, Android devices will require ALL apps to be signed by Google, effectively leading to an iOS situation. Value your right to a computer that does what you want; do not tolerate this monopolistic practice! Contact me if you don't understand why it is bad. Click to learn more.

 _common.scss

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