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