Debian Codegraph @

common/gnome-shell/3.28/sass/_common.scss

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