Debian Codegraph @

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

raw
1 //This is the RIGHT PLACE to edit the stylesheet
2
3 $asset_path: if($variant == 'dark', dark-assets, light-assets);
4
5 /* Copyright 2009, 2015 Red Hat, Inc.
6 *
7 * Portions adapted from Mx's data/style/default.css
8 * Copyright 2009 Intel Corporation
9 *
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms and conditions of the GNU Lesser General Public License,
12 * version 2.1, as published by the Free Software Foundation.
13 *
14 * This program is distributed in the hope it will be useful, but WITHOUT ANY
15 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
17 * more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public License
20 * along with this program; if not, write to the Free Software Foundation,
21 * Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
22 */
23
24 //
25 // Globals
26 //
27 $font-size: 11;
28 $_bubble_bg_color: opacify($osd_bg_color,0.25);
29 $_bubble_fg_color: $osd_fg_color;
30 $_bubble_borders_color: transparentize($osd_fg_color,0.8);
31 $_shell_fg_color: white;
32 $_panel_fg_color: $_shell_fg_color;
33 $_system_bg_color: opacify(desaturate(darken($dark_sidebar_bg, 9%), 5%), 1);
34
35 $_popup_shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.19);
36 $_popup_menu_shadow: if($variant!='dark', 0 1px 3px 2.1px rgba(0, 0, 0, 0.06), $_popup_shadow);
37
38 $panel_transition_duration: 250ms;
39
40 // Chroma key to flag when a background-color is always occluded, not visible.
41 // This allows any box-shadow behind it to be rendered more efficiently by
42 // omitting the middle rectangle.
43 $invisible_occluded_bg_color: rgba(3,2,1,0);
44
45 stage {
46 @include fontsize($font-size);
47 color: $fg_color;
48 }
49
50 %reset_style {
51 background-color: transparent !important;
52 background-gradient-direction: none !important;
53 border: none !important;
54 border-radius: 0 !important;
55 }
56
57 //
58 // Buttons
59 //
60 .button {
61 min-height: 20px;
62 padding: 5px 32px;
63 transition-duration: 0;
64 border-radius: 2px;
65 font-weight: normal;
66
67 @extend %button;
68 }
69
70 .icon-button {
71 @extend %button;
72
73 border-radius: 99px;
74 border-style: solid;
75 border-width: 1px;
76 font-weight: bold;
77 padding: 4px;
78 min-height: 16px;
79
80 &.flat {
81 background-color: transparent;
82 border-color: transparent;
83 }
84
85 & > StIcon {
86 icon-size: 16px;
87 -st-icon-style: symbolic;
88 }
89 }
90
91 %button {
92 @include button(normal);
93
94 &:focus { @include button(focus); }
95 &:hover { @include button(hover); }
96 &:hover:focus { @include button(focus-hover); }
97 &:active, &:active:focus,
98 &:checked, &:checked:focus { @include button(active); }
99 &:insensitive { @include button(insensitive); }
100 }
101
102 %osd_button {
103 @include button(osd);
104
105 &:hover { @include button(osd-hover); }
106 &:focus { color: $selected_bg_color; }
107 &:active, &:active:focus,
108 &:checked, &:checked:focus { @include button(osd-active); }
109 &:insensitive { @include button(osd-insensitive); }
110 }
111
112 //
113 // Entries
114 //
115 StEntry {
116 padding: 7px;
117 caret-size: 1px;
118 caret-color: $fg_color;
119 selection-background-color: $selected_bg_color;
120 selected-color: $selected_fg_color;
121 transition-duration: 300ms;
122 border-radius: 3px;
123
124 @include entry(normal);
125
126 &:focus, &:hover { @include entry(focus); }
127 &:insensitive { @include entry(insensitive); }
128
129 StIcon.capslock-warning {
130 icon-size: 16px;
131 warning-color: $warning_color;
132 padding: 0 4px;
133 }
134
135 StIcon.peek-password {
136 icon-size: 16px;
137 padding: 0 4px;
138 }
139
140 StLabel.hint-text {
141 margin-left: 2px;
142 color: transparentize($text_color, 0.3);
143 }
144 }
145
146 //
147 // Scrollbars
148 //
149 StScrollView {
150 &.vfade { -st-vfade-offset: 0px; }
151 &.hfade { -st-hfade-offset: 0px; }
152 }
153
154 StScrollBar {
155
156 padding: 8px;
157
158 StScrollView & {
159 min-width: 5px;
160 min-height: 5px;
161 }
162
163 StBin#trough {
164 background-color: transparentize($base_color, 0.9);
165 border-radius: 8px;
166 }
167
168 StButton#vhandle, StButton#hhandle {
169 border-radius: 4px;
170 background-color: mix($fg_color, $bg_color, 40%);
171 margin: 0px;
172
173 &:hover { background-color: mix($fg_color, $bg_color, 30%); }
174
175 &:active { background-color: $selected_bg_color; }
176 }
177 }
178
179 //
180 // Slider
181 //
182 .slider {
183 -barlevel-height: 4px;
184 -barlevel-background-color: $button_border; //background of the trough
185 -barlevel-border-color: transparentize(black, 1); //trough border color
186 -barlevel-active-background-color: $selected_bg_color; //active trough fill
187 -barlevel-active-border-color: transparentize(black, 1); //active trough border
188 -barlevel-overdrive-color: $warning_color;
189 -barlevel-overdrive-border-color: transparentize(black, 1);
190 -barlevel-overdrive-separator-width: 1px;
191 -barlevel-border-width: 0;
192 -slider-handle-radius: 0px;
193 height: 18px;
194 border: 0 solid transparent;
195 border-right-width: 1px;
196 border-left-width: 5px;
197 color: $selected_bg_color;
198
199 .popup-menu-item:hover &,
200 .popup-menu-item:active &,
201 .popup-menu-item:focus & {
202 -barlevel-background-color: transparentize(black, 0.8);
203 -barlevel-active-background-color: $selected_fg_color;
204 color: $selected_fg_color;
205 }
206 }
207
208 //
209 // Check Boxes
210 //
211 .check-box {
212
213 StBoxLayout { spacing: .8em; }
214
215 StBin {
216 width: 16px;
217 height: 16px;
218 background-image: url("#{$asset_path}/checkbox/checkbox-unchecked.svg");
219 }
220
221 &:focus StBin { background-image: url("#{$asset_path}/checkbox/checkbox-unchecked-focused.svg"); }
222
223 &:checked StBin { background-image: url("#{$asset_path}/checkbox/checkbox-checked.svg"); }
224
225 &:focus:checked StBin { background-image: url("#{$asset_path}/checkbox/checkbox-checked-focused.svg"); }
226 }
227
228 //
229 // Switches
230 //
231 .toggle-switch {
232 width: 50px;
233 height: 20px;
234 background-size: contain;
235 background-image: url("#{$asset_path}/switch/switch-off.svg");
236
237 &:checked { background-image: url("#{$asset_path}/switch/switch-on.svg"); }
238
239 .popup-menu-item.selected & {
240 background-image: url("common-assets/switch/switch-off-selected.svg");
241
242 &:checked { background-image: url("common-assets/switch/switch-on-selected.svg"); }
243 }
244 }
245
246 //
247 // Links
248 //
249 .shell-link {
250 color: $link_color;
251
252 &:hover { color: lighten($link_color,10%); }
253 }
254
255 //
256 // App Icons
257 //
258 /* Outline for low res icons */
259 .lowres-icon {
260 icon-shadow: none;
261 }
262
263 /* Drapshadow for large icons */
264 .icon-dropshadow {
265 icon-shadow: none;
266 }
267
268 //
269 // Modal Dialogs
270 //
271 .headline { @include fontsize($font-size * 1.1); }
272 .lightbox { background-color: black; }
273 .flashspot { background-color: white; }
274
275 .modal-dialog {
276 color: $fg_color;
277 background-color: transparentize($bg_color, 1);
278 border: 1px solid $shell_modal_border_color;
279 border-radius: 2px;
280 padding: 0;
281 box-shadow: $_popup_menu_shadow;
282
283 .modal-dialog-content-box {
284 margin: 0;
285 padding: 25px 20px;
286
287 @extend %modal_dialog_content_box;
288 }
289
290 &-linked-button {
291 height: if($variant=='light', 39px, 38px);
292 margin: 0;
293 padding: 0;
294 box-shadow: inset 0 0 black;
295 border-top-width: if($variant=='light', 0px, 1px);
296 border-bottom-width: 0;
297 border-right-width: 1px;
298 font-weight: normal !important;
299
300 color: $osd_fg_color;
301 background-color: $osd_bg_color;
302 border-color: if($variant!='dark', darken($osd_bg_color, 5%), darken($osd_bg_color, 8%));
303
304 &:hover { background-color: lighten($osd_bg_color, 5%); }
305 &:focus {
306 color: $selected_bg_color;
307 box-shadow: none !important;
308 }
309 &:active {
310 color: $selected_fg_color;
311 background-color: $selected_bg_color;
312 }
313 &:insensitive {
314 color: transparentize($osd_fg_color, 0.5);
315 background-color: darken($osd_bg_color, 2%);
316 }
317
318 &:first-child:ltr {
319 border-radius: 0px 0px 0px 2px;
320 }
321 &:last-child:ltr {
322 border-right-width: 0px;
323 border-radius: 0px 0px 2px 0px;
324 }
325 &:first-child:rtl {
326 border-left-width: 0px;
327 border-radius: 0px 0px 2px 0px;
328 }
329 &:last-child:rtl {
330 border-radius: 0px 0px 0px 2px;
331 }
332 &:first-child:last-child {
333 border-right-width: 0px;
334 border-radius: 0px 0px 2px 2px;
335 }
336 }
337 }
338
339 %modal_dialog_content_box {
340 background-color: $shell_modal_background_color;
341 }
342
343 //
344 // Message Dialog
345 //
346 .message-dialog-content {
347 spacing: 18px;
348
349 .message-dialog-title {
350 text-align: center;
351 @include fontsize($font-size * 1.6);
352 font-weight: 800;
353
354 &.lightweight {
355 @include fontsize($font-size * 1.2);
356 font-weight: 800;
357 }
358 }
359 .message-dialog-description { text-align: center; }
360 }
361
362 //
363 // Run Dialog
364 //
365 .run-dialog {
366 .modal-dialog-content-box {
367 margin-top: 0;
368 margin-bottom: 0;
369 padding-top: 12px;
370 padding-bottom: 14px;
371 }
372
373 .message-dialog-title {
374 font-size: 0;
375 }
376
377 &-entry {
378 width: 21em;
379 }
380 &-description {
381 @include fontsize($font-size - 1);
382 text-align: center;
383 color: $fg_color;
384 }
385 }
386
387 //
388 // Dialog List
389 //
390 .dialog-list {
391 spacing: 18px;
392
393 .dialog-list-title {
394 text-align: center;
395 font-weight: bold;
396 }
397
398 .dialog-list-scrollview { max-height: 200px; }
399 .dialog-list-box {
400 spacing: 1em;
401
402 .dialog-list-item {
403 spacing: 1em;
404
405 .dialog-list-item-title { font-weight: bold; }
406 .dialog-list-item-description {
407 color: darken($fg_color,5%);
408 @include fontsize($font-size - 1);
409 }
410 }
411 }
412 }
413
414
415 //
416 // End Session Dialog
417 //
418 .end-session-dialog {
419 width: 30em;
420
421 &-battery-warning,
422 .dialog-list-title {
423 color: $warning_color;
424 }
425
426 .modal-dialog-linked-button:last-child {
427 color: $destructive_fg_color;
428 background-color: $destructive_color;
429
430 &:hover {
431 color: $destructive_fg_color;
432 background-color: lighten($destructive_color, 9%);
433 }
434 &:active {
435 color: $destructive_fg_color;
436 background-color: darken($destructive_color, 5%);
437 }
438 }
439 }
440
441 //
442 // Password or Authentication Dialog
443 //
444 .prompt-dialog {
445 width: 28em;
446
447 .modal-dialog-content-box {
448 padding-bottom: 24px;
449 }
450
451 &-password-grid {
452 spacing-rows: 8px;
453 spacing-columns: 4px;
454 }
455
456 &-password-grid &-password-entry {
457 width: auto;
458
459 // 4px (spacing) + 16px (spinner-width)
460 &:ltr { margin-left: 20px; }
461 &:rtl { margin-right: 20px; }
462 }
463
464 &-password-layout {
465 spacing: 8px;
466 }
467
468 &-password-entry {
469 width: 20em;
470 }
471
472 &-error-label,
473 &-info-label,
474 &-null-label {
475 text-align: center;
476 @include fontsize($font-size);
477 }
478
479 &-error-label {
480 color: $warning_color;
481 }
482 }
483
484 .hidden {
485 color: transparentize(black, 1);
486 }
487
488 .caps-lock-warning-label {
489 text-align: center;
490 padding-bottom: 8px;
491 @include fontsize($font-size);
492 color: $warning_color;
493 }
494
495 //
496 // Workspace animation
497 //
498 .workspace-animation {
499 background-color: $_system_bg_color;
500 }
501
502 //
503 // Polkit Dialog
504 //
505 .polkit-dialog-user {
506 &-layout {
507 text-align: center;
508 spacing: 8px;
509 margin-bottom: 6px;
510 }
511
512 &-layout &-root-label {
513 color: $warning_color;
514 }
515 }
516
517 //
518 // Audio selection dialog
519 //
520 .audio-device-selection-dialog {
521 .modal-dialog-content-box { padding-bottom: 28px; }
522 .audio-selection-box { spacing: 20px; }
523 }
524
525 .audio-selection {
526 &-device {
527 border: 1px solid $borders_color;
528 border-radius: 3px;
529
530 &:active,&:hover,&:focus {
531 background-color: $selected_bg_color;
532 border-color: $selected_bg_color;
533 }
534 }
535
536 &-device-box {
537 padding: 20px;
538 spacing: 20px;
539 }
540
541 &-device-icon { icon-size: 64px; }
542 }
543
544 //
545 // Welcome dialog
546 //
547 .welcome-dialog-image {
548 background-image: url("resource:///org/gnome/shell/theme/gnome-shell-start.svg");
549 background-size: contain;
550 /* Reasonable maximum dimensions */
551 height: 300px;
552 width: 300px;
553 }
554
555 //
556 // Access portal dialog
557 //
558 .access-dialog {
559 text-align: center;
560 }
561
562 //
563 // Popvers/Menus
564 //
565
566 $_popup_submenu_background_color: if($variant!='dark', rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.15));
567 $_popup_submenu_border_color: if($variant!='dark', rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.15));
568
569 // the popover itself
570 .popup-menu-boxpointer {
571 -arrow-rise: 0px; // distance from the panel & screen edge
572 }
573
574 // container of the popover menu
575 .popup-menu {
576 min-width: 15em;
577 color: $fg_color;
578
579 &.panel-menu {
580 margin-bottom: 1.75em; // so it doesn't touch the bottom of the screen
581 }
582 }
583
584 // popover content
585 .popup-menu-content {
586 padding: .7em 0em .7em 0em;
587 margin: if($variant!='dark', 4px, 3px);
588
589 @extend %popup_menu;
590 }
591
592 // menu items
593 .popup-menu-item {
594 border-radius: 0;
595 spacing: 12px;
596 background-color: transparent;
597
598 &:ltr { padding: .4em 16px .4em 0em; }
599 &:rtl { padding: .4em 0em .4em 16px; }
600
601 &:hover, &:active, &:focus {
602 &, &:checked {
603 color: $selected_fg_color;
604 background-color: $selected_bg_color !important;
605 box-shadow: none;
606 }
607 }
608
609 &:checked {
610 background-color: $_popup_submenu_background_color !important;
611 box-shadow: inset 0 1px $_popup_submenu_border_color;
612 }
613
614 &:insensitive {color: transparentize($fg_color,0.5);}
615
616 // add margin to switches in menu items
617 .toggle-switch {
618 &:ltr { margin-left: 16px;}
619 &:rtl { margin-right: 16px;}
620 }
621 }
622
623
624 // all other graphical elements (sliders)
625 .popup-inactive-menu-item {
626 color: $fg_color;
627 &:insensitive { color: $insensitive_fg_color; }
628 }
629
630 // symbolic icons in popover
631 .popup-menu-arrow,
632 .popup-menu-icon {
633 icon-size: 16px !important; // for some reason the variable doesn't work here
634 }
635
636 .popup-menu-arrow {
637 }
638
639 // popover submenus
640 .popup-sub-menu {
641 padding-bottom: 1px;
642 background-color: $_popup_submenu_background_color;
643 box-shadow: inset 0 -1px $_popup_submenu_border_color;
644 border-radius: 0;
645
646 .popup-menu-ornament {
647 min-width: 16px !important;
648 }
649 }
650
651 // container for radio and check boxes
652 .popup-menu-ornament {
653 width: 1.2em;
654 text-align: center !important;
655
656 &:ltr { text-align: right;}
657 &:rtl { text-align: left;}
658 }
659
660 // separator
661 .popup-separator-menu-item {
662 &, .popup-sub-menu & {
663 margin: 0;
664 padding: 0 !important;
665
666 .popup-separator-menu-item-separator {
667 height: 6px;
668 margin: 0;
669 background-color: transparent;
670 border: none;
671 }
672
673 // separators in submenus
674 .popup-sub-menu & {
675 background-color: transparent;
676 height: 6px;
677 }
678 }
679 }
680
681 // desktop ackground menu
682 .background-menu { -boxpointer-gap: 4px; -arrow-rise: 0px; }
683
684 // right-click (and panel) app menu
685 .app-menu {
686 max-width: 27.25em;
687
688 // this is unneeded at the top-level in this menu, hide it
689 .popup-menu-ornament { width: 0 !important; }
690
691 .popup-separator-menu-item:first-child {
692 margin: .4em 4px;
693 spacing: 0;
694 }
695
696 .popup-inactive-menu-item:first-child {
697 // "Open Windows" label
698 > StLabel {
699 @include fontsize($font-size);
700 font-weight: normal;
701 &:ltr {margin-right: 8px;}
702 &:rtl {margin-left: 8px;}
703 }
704 }
705 }
706
707
708 // Rename popup
709 .rename-folder-popup {
710 .rename-folder-popup-item {
711 spacing: 6px;
712 &:ltr, &:rtl { padding: 0, 12px; }
713 }
714 }
715
716 //
717 // OSD
718 //
719 .osd-window {
720 padding: 10px;
721 text-align: center;
722 font-weight: bold;
723 margin: 4em;
724 &, & > * { spacing: 1em; }
725
726 color: $_panel_fg_color;
727 @extend %shell_osd;
728
729 StIcon {
730 icon-size: 32px;
731
732 &:first-child:last-child { padding: 0 12px; }
733 }
734
735 .osd-monitor-label { @include fontsize($font-size * 3); }
736
737 .level {
738 height: 4px;
739 min-width: 160px;
740 -barlevel-height: 4px;
741 -barlevel-background-color: transparentize(black, 0.5);
742 -barlevel-active-background-color: $selected_bg_color;
743 -barlevel-overdrive-color: $warning_color;
744 -barlevel-overdrive-separator-width: 1px;
745 color: $selected_bg_color;
746 }
747 }
748
749 .resize-popup {
750 color: $osd_fg_color;
751 padding: 12px;
752 @extend %shell_osd;
753 }
754
755 %shell_osd {
756 border: 1px solid $shell_osd_border_color;
757 border-radius: 2px;
758 background: $shell_osd_background_color;
759 //background-clip: padding-box;
760 box-shadow: $_popup_shadow;
761 }
762
763 //
764 // Pad OSD
765 //
766 .pad-osd-window {
767 padding: 32px;
768 background-color: $osd_bg_color;
769
770 .pad-osd-title-box { spacing: 12px; }
771 .pad-osd-title-menu-box { spacing: 6px; }
772 }
773
774 .combo-box-label {
775 width: 15em;
776 }
777
778 //
779 // Alt Tab Switcher
780 //
781 .switcher-popup {
782 padding: 8px;
783 spacing: 16px;
784 }
785
786 .switcher-list {
787 padding: 15px;
788 @extend %shell_bg;
789
790 &-item-container { spacing: 8px; }
791
792 .item-box {
793 padding: 8px;
794 color: $_panel_fg_color;
795 border-radius: 2px;
796 border: 1px solid transparent;
797
798 &:outlined, &:selected {
799 color: $selected_fg_color;
800 background-color: $selected_bg_color;
801 border: 1px solid $selected_bg_color;
802 }
803 }
804
805 .thumbnail-box {
806 padding: 2px;
807 spacing: 4px;
808 }
809
810 .thumbnail {
811 width: 256px;
812 }
813
814 .separator {
815 width: 1px;
816 background: transparentize($fg_color, 0.67);
817 }
818 }
819
820 .switcher-arrow {
821 border-color: rgba(0,0,0,0);
822 color: $osd_fg_color;
823
824 &:highlighted {
825 color: $_panel_fg_color;
826 }
827 }
828
829 .input-source-switcher-symbol {
830 font-size: 34pt;
831 width: 96px;
832 height: 96px;
833 }
834
835 %shell_bg {
836 background: $dark_sidebar_bg;
837 //background-clip: padding-box;
838 border: 1px solid $shell_bg_border_color;
839 border-radius: 2px;
840 box-shadow: $_popup_shadow;
841 }
842
843 //
844 //Window Cycler
845 //
846 .cycler-highlight { border: 5px solid $selected_bg_color; }
847
848 //
849 // Workspace Switcher
850 //
851 $ws_indicator_height: 32px;
852 $ws_dot_active: $ws_indicator_height / 3;
853 $ws_dot_inactive: $ws_indicator_height / 6;
854
855 .workspace-switcher {
856 @extend %shell_osd;
857 padding: 10px;
858 margin: 4em;
859 spacing: 8px;
860 }
861
862 .ws-switcher-indicator {
863 background-color: $_shell_fg_color;
864 padding: $ws_dot_inactive / 2;
865 margin: ($ws_indicator_height - $ws_dot_inactive) / 2;
866 border-radius: $ws_indicator_height;
867
868 &:active {
869 background-color: $selected_bg_color;
870 padding: $ws_dot_active / 2;
871 margin: ($ws_indicator_height - $ws_dot_active) / 2;
872 }
873 }
874
875 //
876 // Tiled window previews
877 //
878 .tile-preview {
879 background-color: transparentize($selected_bg_color, 0.65);
880 border: 1px solid $selected_bg_color;
881 }
882
883 //
884 // Top Bar
885 //
886 #panel {
887 font-weight: bold;
888 font-feature-settings: "tnum";
889 height: 2.1em;
890 min-height: 26px;
891 background-gradient-direction: none;
892 background-color: $shell_osd_background_color;
893 //background-clip: padding-box;
894 border: 0 solid $shell_osd_border_color;
895 border-bottom-width: 1px;
896 transition-duration: $panel_transition_duration;
897
898 // Fix dynamic top bar extension
899 &.dynamic-top-bar-white-btn { border-image: none; }
900
901 &.unlock-screen,
902 &.login-screen,
903 &:overview {
904 background-color: transparent;
905 border-color: transparent;
906
907 .panel-button {
908 &:focus, &:active, &:checked {
909 &, &.clock-display .clock {
910 color: $selected_fg_color;
911 border-color: transparent;
912 }
913 }
914 }
915 }
916 &.unlock-screen {
917 .panel-button {
918 color: $_shell_fg_color;
919
920 &:hover {
921 color: $_shell_fg_color;
922 }
923 }
924 }
925
926 .panel-button {
927 -natural-hpadding: 10px;
928 -minimum-hpadding: 6px;
929 font-weight: bold;
930 color: $_panel_fg_color;
931 transition-duration: 100ms;
932 border-width: 0;
933 border-bottom-width: 1px;
934 border-color: transparent;
935 border-radius: 0;
936
937 // Hide icon for the application menu
938 .app-menu-icon {
939 width: 0;
940 height: 0;
941 }
942
943 &.screen-recording-indicator {
944 box-shadow: inset 0 0 0 100px $error_color;
945 }
946 &.screen-sharing-indicator {
947 box-shadow: inset 0 0 0 100px $warning_color;
948 StBoxLayout { margin: 0 4px; }
949 }
950
951 &.screen-recording-indicator,
952 &.screen-sharing-indicator {
953 StBoxLayout {
954 spacing: 4px;
955 }
956
957 StIcon {
958 icon-size: 16px;
959 }
960 }
961
962 @at-root %panel_button_hover,
963 &:hover {
964 box-shadow: inset 0 0 0 100px transparentize(black, 0.83);
965 border-color: transparent;
966
967 &.screen-recording-indicator {
968 box-shadow: inset 0 0 0 100px transparentize($error_color, 0.1);
969 }
970 &.screen-sharing-indicator {
971 box-shadow: inset 0 0 0 100px transparentize($warning_color, 0.1);
972 }
973 }
974
975 @at-root %panel_button_active,
976 &:active, &:overview, &:focus, &:checked {
977 color: $selected_fg_color;
978 box-shadow: inset 0 0 0 100px $selected_bg_color;
979 border-color: black;
980
981 &.screen-recording-indicator {
982 box-shadow: inset 0 0 0 100px transparentize($error_color, 0.15);
983 }
984 &.screen-sharing-indicator {
985 box-shadow: inset 0 0 0 100px transparentize($warning_color, 0.15);
986 }
987 }
988
989 .system-status-icon { icon-size: 16px; padding: 0 4px; }
990
991 &.clock-display {
992 // Move highlight from .panel-button to .clock
993 background: transparent;
994 border-bottom-width: 0;
995
996 .clock {
997 @extend .panel-button;
998
999 padding: 0 10px;
1000 box-shadow: none;
1001
1002 //HACK: compensate for bottom border to ensure the clock stays vertically centered
1003 padding-top: 1px;
1004 }
1005
1006 &:hover .clock { @extend %panel_button_hover; }
1007
1008 &:active, &:overview, &:focus, &:checked {
1009 .clock { @extend %panel_button_active; }
1010 }
1011
1012 & StIcon {
1013 color: $_panel_fg_color;
1014 margin: 0 4px;
1015 }
1016 }
1017 }
1018
1019 #panelActivities.panel-button { -natural-hpadding: 12px; }
1020
1021 .panel-status-indicators-box,
1022 .panel-status-menu-box {
1023 spacing: 2px;
1024 }
1025
1026 // spacing between power icon and (optional) percentage label
1027 .power-status.panel-status-indicators-box {
1028 spacing: 0;
1029 }
1030
1031 .screencast-indicator { color: $error_color; }
1032
1033 .remote-access-indicator { color: $error_color; }
1034
1035 .popup-menu-arrow { width: 0; }
1036 }
1037
1038 // Activities button
1039 #panel #panelActivities.panel-button {
1040
1041 > * {
1042 background-image: url("common-assets/panel/activities.svg");
1043 background-size: contain;
1044 width: 24px;
1045 height: 24px;
1046 background-color: transparent !important;
1047 background-gradient-direction: none !important;
1048 border: 0 solid transparent !important;
1049 text-shadow: 0 0 transparent !important;
1050 transition-duration: 0ms !important;
1051 box-shadow: none !important;
1052 color: transparent;
1053 }
1054
1055 &:active, &:overview, &:focus, &:checked {
1056 background-color: transparent;
1057 box-shadow: none;
1058 border-bottom-width: 1px;
1059 border-color: transparent;
1060
1061 > * { background-image: url("common-assets/panel/activities-active.svg"); }
1062 }
1063 }
1064
1065 // a little unstructured mess:
1066
1067 #appMenu {
1068 spacing: 0;
1069 padding: 0;
1070
1071 .label-shadow { color: transparent; }
1072 }
1073
1074 #appMenu .panel-status-menu-box {
1075 padding: 0;
1076 spacing: 4px;
1077 }
1078
1079 //
1080 // Calendar popover
1081 //
1082
1083 @mixin datemenu_bubble {
1084 box-shadow: none;
1085 background: transparent;
1086 color: inherit;
1087 text-shadow: none;
1088 border: none;
1089 border-radius: 3px;
1090 margin: 0;
1091 padding: 7px 10px;
1092
1093 &:hover, &:focus { background-color: transparentize(black, 0.9); }
1094 &:active {
1095 background-color: $selected_bg_color;
1096 color: $selected_fg_color;
1097 }
1098 }
1099
1100 /* Date/Time Menu */
1101
1102 // overall menu
1103 #calendarArea {
1104 padding: 0;
1105 }
1106
1107 // Calendar menu side column
1108 .datemenu-calendar-column {
1109 spacing: 5px;
1110 border: 0 solid transparent;
1111 padding: 9px 0;
1112
1113 &:ltr {margin-right: 13px; border-left-width: 1px; }
1114 &:rtl {margin-left: 13px; border-right-width: 1px; }
1115
1116 .datemenu-displays-section {
1117 }
1118
1119 .datemenu-displays-box {
1120 spacing: 10px;
1121 }
1122 }
1123
1124 .events-section-title {
1125 @include datemenu_bubble;
1126 color: transparentize($fg_color, 0.6);
1127 font-weight: bold;
1128 }
1129
1130
1131 /* today button (the date) */
1132 .datemenu-today-button {
1133 @include datemenu_bubble;
1134
1135 // weekday label
1136 .day-label {
1137 @include fontsize($font-size);
1138 font-weight: 400;
1139 }
1140
1141 // date label
1142 .date-label {
1143 @include fontsize($font-size * 1.5);
1144 font-weight: 300;
1145 }
1146 }
1147
1148 /* Calendar */
1149 .calendar {
1150 @include datemenu_bubble;
1151 padding: 0;
1152
1153 // month header
1154 .calendar-month-header {
1155
1156 // month label
1157 .calendar-month-label {
1158 color: $fg_color;
1159 font-weight: bold;
1160 padding: 8px 0;
1161 &:focus {}
1162 }
1163
1164 // prev/next month icons
1165 .calendar-change-month-back,
1166 .calendar-change-month-forward:rtl {
1167 background-image: url("#{$asset_path}/misc/calendar-arrow-left.svg");
1168 &:focus, &:hover { background-image: url("#{$asset_path}/misc/calendar-arrow-left-hover.svg"); }
1169 &:active { background-image: url("#{$asset_path}/misc/calendar-arrow-left.svg"); }
1170 }
1171
1172 .calendar-change-month-forward,
1173 .calendar-change-month-back:rtl {
1174 background-image: url("#{$asset_path}/misc/calendar-arrow-right.svg");
1175 &:focus, &:hover { background-image: url("#{$asset_path}/misc/calendar-arrow-right-hover.svg"); }
1176 &:active { background-image: url("#{$asset_path}/misc/calendar-arrow-right.svg"); }
1177 }
1178
1179 .pager-button {
1180 color: transparent;
1181 background-color: transparent;
1182 height: 32px;
1183 width: 32px;
1184 border-radius: 2px;
1185 &:focus, &:hover, &:active { background-color: transparent; }
1186 }
1187 }
1188
1189 $calendar_day_size: 2.25em;
1190
1191 .calendar-day-base {
1192 @include fontsize($font-size * 0.8);
1193 text-align: center;
1194 width: $calendar_day_size !important;
1195 height: $calendar_day_size !important;
1196 padding: 0;
1197 margin: 2px;
1198 border-radius: $calendar_day_size * 0.5;
1199 border: 0 solid transparent;
1200 font-feature-settings: "tnum";
1201 &:hover, &:focus {
1202 background-color: transparentize(black, 0.9);
1203 box-shadow: none;
1204 }
1205 &:active,&:selected {
1206 color: $fg_color;
1207 background-color: transparentize(black, 0.85);
1208 }
1209
1210 // day of week heading
1211 &.calendar-day-heading {
1212 color: transparentize($fg_color, 0.15);
1213 margin-top: 9px;
1214 font-weight: normal;
1215 @include fontsize($font-size * 0.7);
1216 height: 23px !important;//adjusts bottom margin
1217 }
1218 }
1219
1220 .calendar-day { //border collapse hack - see calendar.js
1221 border-width: 0;
1222 color: transparentize($fg_color, 0.2);
1223 }
1224
1225 .calendar-day-top {
1226 border-top-width: 0;
1227 }
1228
1229 .calendar-day-left {
1230 border-left-width: 0;
1231 }
1232
1233 .calendar-work-day {}
1234
1235 .calendar-nonwork-day {
1236 color: $fg_color;
1237 font-weight: bold;
1238 }
1239
1240 // Today
1241 .calendar-today {
1242 font-weight: bold;
1243 border: 0 solid transparent;
1244
1245 &, &:hover, &:focus, &:active, &:selected {
1246 background-color: $selected_bg_color;
1247 color: $selected_fg_color;
1248 }
1249 }
1250
1251 .calendar-day-with-events {
1252 font-weight: bold;
1253 background-image: url("common-assets/misc/calendar-today.svg");
1254
1255 &.calendar-today {
1256 background-image: url("common-assets/misc/calendar-today-active.svg");
1257 }
1258 }
1259
1260 .calendar-other-month-day {
1261 color: transparentize($fg_color, 0.7);
1262 }
1263
1264 .calendar-week-number {
1265 @include fontsize($font-size * 0.7);
1266 font-weight: bold;
1267 font-feature-settings: "tnum";
1268 border-radius: 2px;
1269 margin: 6px;
1270 padding: 0 4px;
1271 background-color: if($variant!='dark', transparentize($fg_color,0.9), transparentize($fg_color,0.7));
1272 color: if($variant!='dark', transparentize($fg_color,0.5), $bg_color);
1273 }
1274 }
1275
1276 /* Events */
1277 .events-button {
1278 @include datemenu_bubble;
1279
1280 .events-box {
1281 spacing: 5px;
1282 }
1283
1284 .events-list {
1285 spacing: 10px;
1286 }
1287
1288 .events-title {
1289 color: transparentize($fg_color, 0.6);
1290 font-weight: bold;
1291 }
1292 &:active .events-title {
1293 color: $selected_fg_color;
1294 }
1295
1296 .event-time {
1297 color: transparentize($fg_color, 0.4);
1298 font-feature-settings: "tnum";
1299 @include fontsize($font-size * 0.9);
1300 }
1301 &:active .event-time {
1302 color: transparentize($selected_fg_color, 0.4);
1303 }
1304 }
1305
1306 /* World clocks */
1307 .world-clocks-button {
1308 @include datemenu_bubble;
1309
1310 .world-clocks-grid {
1311 spacing-rows: 5px;
1312 spacing-columns: 10px;
1313 }
1314
1315 // title
1316 .world-clocks-header {
1317 color: transparentize($fg_color, 0.6);
1318 font-weight: bold;
1319 }
1320 &:active .world-clocks-header {
1321 color: $selected_fg_color;
1322 }
1323
1324 // city label
1325 .world-clocks-city {
1326 color: inherit;
1327 @include fontsize($font-size * 0.9);
1328 font-weight: bold;
1329 }
1330
1331 // timezone time
1332 .world-clocks-time {
1333 font-weight: normal;
1334 color: transparentize($fg_color, 0.2);
1335 font-feature-settings: "tnum";
1336 @include fontsize($font-size * 1.2);
1337
1338 &:ltr { text-align: right; }
1339 &:rtl { text-align: left; }
1340 }
1341 &:active .world-clocks-time { color: transparentize($selected_fg_color, 0.2); }
1342
1343 // timezone offset label
1344 .world-clocks-timezone {
1345 color: transparentize($fg_color, 0.4);
1346 font-feature-settings: "tnum";
1347 @include fontsize($font-size * 0.9);
1348 }
1349 &:active .world-clocks-timezone { color: transparentize($selected_fg_color, 0.4); }
1350 }
1351
1352 /* Weather */
1353 .weather-button {
1354 @include datemenu_bubble;
1355
1356 .weather-box {
1357 spacing: 5px;
1358 }
1359
1360 .weather-header-box {
1361 spacing: 5px;
1362 }
1363
1364 .weather-header {
1365 color: transparentize($fg_color, 0.6);
1366 font-weight: bold;
1367
1368 &.location {
1369 font-weight: normal;
1370 @include fontsize($font-size * 0.9);
1371 }
1372 }
1373 &:active .weather-header {
1374 color: $selected_fg_color;
1375 }
1376
1377 .weather-grid {
1378 spacing-rows: 5px;
1379 spacing-columns: 10px;
1380 }
1381
1382 .weather-forecast-time {
1383 color: transparentize($fg_color, 0.4);
1384 font-feature-settings: "tnum";
1385 @include fontsize($font-size * 0.8);
1386 font-weight: normal;
1387 padding-top: 2px;
1388 padding-bottom: 4px;
1389 }
1390 &:active .weather-forecast-time { color: transparentize($selected_fg_color, 0.4); }
1391
1392 .weather-forecast-icon {
1393 icon-size: 26px;
1394 }
1395
1396 .weather-forecast-temp {
1397 font-weight: bold;
1398 }
1399 }
1400
1401 //
1402 // Message list
1403 //
1404
1405 // main list
1406 .message-list {
1407 width: 31.5em;
1408 padding: 9px 0;
1409 border-width: 0;
1410
1411 .message-list-placeholder {
1412 StIcon { width: 0; height: 0; }
1413 StLabel {
1414 color: $insensitive_fg_color;
1415 font-weight: normal;
1416 @include fontsize($font-size);
1417 }
1418 }
1419
1420 StScrollBar { padding: 2px 0; }
1421 }
1422
1423 .message-list-sections {
1424 spacing: 12px;
1425 margin: 0 18px; // to account for scrollbar
1426
1427 &:ltr { margin-right: 9px; }
1428 &:rtl { margin-left: 9px; }
1429 }
1430
1431 .message-list-section,
1432 .message-list-section-list {
1433 spacing: 5px;
1434 }
1435
1436 // do-not-disturb + clear button
1437 .message-list-controls {
1438 font-weight: normal;
1439 margin: 18px 18px 0;
1440 padding: 0;
1441 spacing: 10px;
1442
1443 &:ltr { margin-right: 9px; }
1444 &:rtl { margin-left: 9px; }
1445
1446 .dnd-button {
1447 // We need this because the focus outline isn't inset like for the buttons
1448 // so the dnd button would grow when it gets focus if we didn't change only
1449 // its color when focusing.
1450 border-width: 1px;
1451 border-color: transparent;
1452 border-radius: 99px;
1453 border-style: solid;
1454
1455 &:focus {
1456 border-color: $selected_bg_color;
1457 }
1458 }
1459 }
1460
1461 .message-list-clear-button {
1462 margin: 0;
1463 padding: 4px 12px;
1464 }
1465
1466 // message bubbles
1467 .message {
1468 margin: 0;
1469 text-shadow: none;
1470
1471 padding: 3px;
1472 color: $fg_color;
1473 background-color: $shell_message_background_color;
1474 border: 1px solid $shell_message_border_color;
1475 border-radius: 2px;
1476 box-shadow: inset 4px 0 0 if($variant!='dark', -1px, -2px) $selected_bg_color;
1477 text-shadow: none;
1478
1479 &:hover, &:focus {
1480 color: $fg_color;
1481 border-color: $selected_bg_color;
1482 }
1483
1484 &:active {
1485 color: $selected_fg_color;
1486 background-color: $selected_bg_color;
1487 }
1488
1489 // icon container
1490 $message_icon_size: 16px;
1491
1492 .message-icon-bin {
1493 &:ltr { padding: 8px 2px 8px 8px; }
1494 &:rtl { padding: 8px 8px 8px 2px; }
1495
1496 // icon size and color
1497 > StIcon {
1498 color: inherit;
1499 icon-size: $message_icon_size;
1500 -st-icon-style: symbolic;
1501 margin-top: 0.035em;
1502 }
1503
1504 // fallback
1505 > .fallback-app-icon {
1506 width: $message_icon_size;
1507 height: $message_icon_size;
1508 }
1509 }
1510
1511 // content
1512 .message-content {
1513 padding: 8px;
1514 spacing: 0;
1515 margin: 0;
1516 }
1517
1518 // title
1519 .message-title {
1520 font-weight: bold;
1521 padding: 0;
1522 }
1523
1524 // secondary container in title box
1525 .message-secondary-bin {
1526 padding: 0 10px;
1527
1528 // notification time stamp
1529 > .event-time {
1530 color: transparentize($fg_color, 0.4);
1531 @include fontsize($font-size * 0.9);
1532 /* HACK: the label should be baseline-aligned with a 1em label, fake this with some bottom padding */
1533 padding-bottom: 0.04em;//Use em instead of px, since this depends on font-size
1534
1535 &:ltr { text-align: right };
1536 &:rtl { text-align: left };
1537 }
1538 }
1539
1540 &:active .message-secondary-bin,
1541 &:active .message-secondary-bin > .event-time {
1542 color: transparentize($selected_fg_color, 0.4);
1543 }
1544
1545 // close button
1546 .message-close-button {
1547 color: $fg_color;
1548 background-color: transparent;
1549 padding: 0;
1550 margin: 0;
1551 &:hover { color: transparentize($fg_color, 0.3); }
1552 &:active { color: $selected_bg_color }
1553
1554 & StIcon { icon-size: 16px; }
1555 }
1556
1557 // body
1558 .message-body {
1559 color: inherit;
1560 }
1561 }
1562
1563 // URLs in messages
1564 .url-highlighter {
1565 link-color: $link_color;
1566 }
1567
1568 /* Media Controls */
1569 .message-media-control {
1570 padding: 12px;
1571 margin: 0;
1572 color: $fg_color;
1573 background-color: transparent;
1574
1575 &:hover { color: transparentize($fg_color, 0.3); }
1576 &:active { color: $selected_bg_color; }
1577 &:insensitive { color: $insensitive_fg_color; }
1578
1579 &:last-child:ltr { padding-right: 18px; }
1580 &:last-child:rtl { padding-left: 18px; }
1581
1582 & StIcon { icon-size: 16px; }
1583 }
1584
1585 .message:active .message-media-control {
1586 color: $selected_fg_color;
1587 }
1588
1589 // album-art
1590 .media-message-cover-icon {
1591 icon-size: 48px !important;
1592
1593 // when there is no artwork
1594 &.fallback {
1595 color: $insensitive_fg_color !important;
1596 background-color: $bg_color;
1597 border-radius: 2px;
1598 icon-size: 32px !important;
1599 padding: 6px;
1600 border: 1px solid $borders_color;
1601 }
1602
1603 .message:active &.fallback {
1604 color: transparentize($selected_fg_color, 0.2) !important;
1605 background-color: lighten($selected_bg_color, 7%);
1606 border-color: transparentize($selected_fg_color, 0.2);
1607 }
1608 }
1609
1610
1611 //
1612 // Activities Ripples
1613 //
1614 .ripple-box {
1615 width: 52px;
1616 height: 52px;
1617 border-radius: 0 0 52px 0; // radius the size of the box give us the curve
1618 background-color: transparentize($selected_bg_color, 0.5);
1619
1620 &:rtl { border-radius: 0 0 0 52px; } // just a simple change to the border radius position
1621 }
1622
1623 // Rubberband for select-area screenshots
1624 .select-area-rubberband {
1625 background-color: transparentize($selected_bg_color,0.7);
1626 border: 1px solid $selected_bg_color;
1627 }
1628
1629 // Pointer location
1630 .ripple-pointer-location {
1631 width: 50px;
1632 height: 50px;
1633 border-radius: 25px 25px 25px 25px; // radius the size of the box give us the curve
1634 background-color: transparentize($selected_bg_color, 0.5);
1635 }
1636
1637 // not really top bar only
1638 .popup-menu-arrow { icon-size: 16px; }
1639 .popup-menu-icon { icon-size: 16px; }
1640
1641
1642 //
1643 // Close buttons
1644 //
1645 $window_close_button_size: 26px;
1646 $window_close_button_padding: 0;
1647
1648 .window-close {
1649 background-color: lighten(saturate($destructive_color, 6%), 4%);
1650 border-radius: $window_close_button_size * 0.5 + $window_close_button_padding * 2;;
1651 border: none;
1652 box-shadow: 0 1px 0 0 rgba(0,0,0,0.1);;
1653 color: $destructive_fg_color;
1654 height: $window_close_button_size;
1655 width: $window_close_button_size;
1656 padding: $window_close_button_padding;
1657 transition-duration: 100ms;
1658
1659 & > StIcon { icon-size: 18px; }
1660
1661 &:hover {
1662 background-color: lighten(saturate($destructive_color, 15%), 12%);
1663 color: $destructive_fg_color;
1664 }
1665
1666 &:active {
1667 background-color: darken(adjust-hue(desaturate($destructive_color, 18%), -5%), 9%);
1668 color: $destructive_fg_color;
1669 }
1670 }
1671
1672 .workspace-background {
1673 // keep in sync with BACKGROUND_CORNER_RADIUS_PIXELS in workspace.js
1674 border-radius: 30px;
1675 background-color: $invisible_occluded_bg_color;
1676 box-shadow: 0 8px 16px 0 transparentize(black, 0.8);
1677 }
1678
1679 // Pointer accessibility notifications
1680 .pie-timer {
1681 width: 60px;
1682 height: 60px;
1683 -pie-border-width: 2px;
1684 -pie-border-color: $selected_bg_color;
1685 -pie-background-color: transparentize($selected_bg_color, 0.5);
1686 }
1687
1688 //
1689 // Overview
1690 //
1691 .controls-manager,
1692 .secondary-monitor-workspaces {
1693 spacing: 12px;
1694 }
1695
1696 #overviewGroup {
1697 background-color: $_system_bg_color;
1698 }
1699
1700 .overview-controls { padding-bottom: 32px; }
1701
1702 .window-picker { //container around window thumbnails
1703 spacing: 6px;
1704 }
1705
1706 .window-caption {
1707 spacing: 25px;
1708 color: $selected_fg_color;
1709 background-color: $selected_bg_color;
1710 border-radius: 2px;
1711 padding: 4px 12px;
1712 border-width: 0;
1713 @include fontsize($font-size);
1714 font-weight: normal;
1715 }
1716
1717 //
1718 // Search Entry
1719 //
1720 .search-entry {
1721 width: 320px;
1722 padding: 7px 9px;
1723 border-radius: 20px;
1724 border: 1px solid transparentize(black, 0.75);
1725 background-color: transparentize($entry_bg, 0.1);
1726 transition-duration: 0ms;
1727 margin-top: 10px;
1728 margin-bottom: 5px;
1729
1730 &:focus {
1731 padding: 7px 9px;
1732 }
1733
1734 .search-entry-icon,
1735 .hint-text {
1736 color: $fg_color;
1737 }
1738
1739 .search-entry-icon {
1740 icon-size: 16px;
1741 padding: 0 4px;
1742 }
1743
1744 .hint-text { margin-left: 0; }
1745
1746 &:hover, &:focus {
1747 color: $selected_fg_color;
1748 caret-color: $selected_fg_color;
1749 background-color: $selected_bg_color;
1750
1751 selection-background-color: $selected_fg_color;
1752 selected-color: $selected_bg_color;
1753
1754 .search-entry-icon,
1755 .hint-text {
1756 color: $selected_fg_color;
1757 }
1758 }
1759 }
1760
1761 //
1762 // Search Results
1763 //
1764 #searchResultsContent {
1765 max-width: 1000px;
1766 spacing: 16px;
1767 }
1768
1769 // This should be equal to #searchResultsContent spacing
1770 .search-section { spacing: 16px; }
1771
1772 // This is the space between the provider icon and the results container
1773 .search-section-content {
1774 background-color: transparent;
1775 border: none;
1776 box-shadow: none;
1777 text-shadow: none;
1778 color: $_shell_fg_color;
1779 spacing: 32px;
1780 }
1781
1782 // "no results"
1783 .search-statustext {
1784 @extend %status_text;
1785 }
1786
1787 .grid-search-results {
1788 spacing: 30px;
1789 }
1790
1791 .list-search-results { spacing: 3px; }
1792
1793 .search-section-separator {
1794 background-color: transparentize(white, 0.8);
1795 height: 1px;
1796
1797 .search-section:last-child & { background-color: transparent; }
1798 }
1799
1800 .list-search-result-content { spacing: 30px; }
1801
1802 .list-search-result-title { color: $_shell_fg_color; spacing: 12px; }
1803
1804 .list-search-result-description { color: transparentize(darken($_shell_fg_color, 20%), 0.3); }
1805
1806 .list-search-provider-details { width: 150px; color: darken($_shell_fg_color,10%); margin-top: 0.1em; }
1807
1808 .list-search-provider-content { spacing: 20px; }
1809
1810 .search-provider-icon { padding: 15px; }
1811
1812 //
1813 // Dash
1814 //
1815
1816 $_dash_placeholder_size: 24px;
1817 $_dash_padding: 10px;
1818 $_dash_spacing: 4px;
1819
1820 $_dash_bottom_margin: 20px;
1821
1822 #dash {
1823 @include fontsize($font-size);
1824 margin-top: 15px;
1825 padding: 0 $_dash_padding;
1826
1827 .placeholder {
1828 background-image: none;
1829 background-size: contain;
1830 height: $_dash_placeholder_size;
1831 }
1832
1833 .empty-dash-drop-target {
1834 width: $_dash_placeholder_size;
1835 height: $_dash_placeholder_size;
1836 }
1837
1838 .overview-icon {
1839 padding: $_dash_padding / 2;
1840 }
1841 }
1842
1843 .dash-background {
1844 background-color: $dark_sidebar_bg;
1845 margin-bottom: $_dash_bottom_margin;
1846 padding: $_dash_padding;
1847 border: 1px solid rgba(0,0,0,0.4);
1848 border-radius: 3px;
1849 }
1850
1851 .dash-item-container .app-well-app, .show-apps {
1852 padding: $_dash_padding $_dash_spacing $_dash_padding + $_dash_bottom_margin;
1853 }
1854
1855 .dash-separator {
1856 width: 1px;
1857 margin: 0 ($_dash_spacing + ($_dash_padding / 2)) $_dash_bottom_margin;
1858 background-color: transparentize(black, 0.5);
1859 }
1860
1861 //osd tooltip
1862 .dash-label {
1863 border-radius: 3px;
1864 padding: 4px 12px;
1865 color: $_shell_fg_color;
1866 background-color: transparentize(black, 0.3);
1867 border: 0;
1868 text-align: center;
1869 -y-offset: 3px;
1870 box-shadow: none;
1871 }
1872
1873 // Dash Buttons
1874 #dash .app-well-app {
1875
1876 & .overview-icon {
1877 border: none;
1878 }
1879
1880 &:hover .overview-icon {
1881 background-color: $selected_bg_color;
1882 }
1883
1884 &:active .overview-icon {
1885 box-shadow: none;
1886 background-color: darken($selected_bg_color, 10%);
1887 }
1888
1889 &-running-dot {
1890 width: 11px;
1891 height: 2px;
1892 margin-bottom: 2px;
1893 background-color: $selected_bg_color;
1894 }
1895
1896 &:hover .app-well-app-running-dot {
1897 background-color: $selected_fg_color;
1898 }
1899 }
1900
1901 #dashtodockContainer {
1902
1903 &.bottom #dash {
1904 margin-top: 1px;
1905 }
1906
1907 .app-well-app.focused .overview-icon {
1908 background-color: transparentize(black, 0.75);
1909 }
1910
1911 .app-well-app.focused:hover .overview-icon {
1912 background-color: $selected_bg_color;
1913 }
1914
1915 &.running-dots {
1916 .app-well-app .app-well-app-running-dot,
1917 .app-well-app.focused:hover .app-well-app-running-dot {
1918 background-color: $selected_bg_color;
1919 }
1920
1921 .app-well-app:hover .app-well-app-running-dot {
1922 background-color: $selected_fg_color;
1923 }
1924 }
1925
1926 .app-well-app-running-dot,
1927 .app-well-app:hover .app-well-app-running-dot {
1928 background: none;
1929 width: 28px;
1930 height: 4px;
1931 }
1932
1933 @each $var in 1, 2, 3, 4 {
1934 .running#{$var} .app-well-app-running-dot {
1935 background-image: url("common-assets/dash/running#{$var}.svg");
1936 }
1937 .running#{$var}:hover .app-well-app-running-dot {
1938 background-image: url("common-assets/dash/running#{$var}-hover.svg");
1939 }
1940 }
1941
1942 & .show-apps {
1943 margin: 0 1px 1px 0;
1944 }
1945 }
1946
1947 .show-apps {
1948
1949 .overview-icon {
1950 background-color: transparentize(black, 0.5);
1951 border-radius: 2px;
1952 border: 0px;
1953 padding: 6px;
1954 transition-duration: 0ms;
1955 text-align: center;
1956 color: $_panel_fg_color;
1957 }
1958
1959 &:hover .overview-icon {
1960 background-color: transparentize(black, 0.3);
1961 color: $selected_bg_color;
1962 }
1963
1964 &:active .overview-icon,
1965 &:active .show-apps-icon,
1966 &:checked .overview-icon,
1967 &:checked .show-apps-icon {
1968 color: $selected_fg_color;
1969 background-color: $selected_bg_color;
1970 box-shadow: none;
1971 transition-duration: 0ms;
1972 }
1973 }
1974
1975 //
1976 // App Vault/Grid
1977 //
1978 .icon-grid {
1979 row-spacing: 10px;
1980 column-spacing: 10px;
1981 max-row-spacing: 60px;
1982 max-column-spacing: 60px;
1983 page-padding-top: 20px;
1984 page-padding-bottom: 20px;
1985 page-padding-left: 10px;
1986 page-padding-right: 10px;
1987 }
1988
1989 .system-action-icon {
1990 background-color: $bg_color;
1991 color: $fg_color;
1992 border-radius: 99px;
1993 icon-size: 48px;
1994 }
1995
1996 .page-navigation-hint {
1997 &.dnd {
1998 background: rgba(255, 255, 255, 0.1);
1999 }
2000
2001 &.next:ltr,
2002 &.previous:rtl {
2003 background-gradient-start: rgba(255, 255, 255, 0.05);
2004 background-gradient-end: transparent;
2005 background-gradient-direction: horizontal;
2006 border-radius: 15px 0px 0px 15px;
2007 }
2008
2009 &.previous:ltr,
2010 &.next:rtl {
2011 background-gradient-start: transparent;
2012 background-gradient-end: rgba(255, 255, 255, 0.05);
2013 background-gradient-direction: horizontal;
2014 border-radius: 0px 15px 15px 0px;
2015 }
2016 }
2017
2018 .page-navigation-arrow {
2019 & > StIcon {
2020 margin: 6px;
2021 padding: 18px;
2022 width: 24px;
2023 height: 24px;
2024 border-radius: 99px;
2025 }
2026
2027 &:insensitive > StIcon { @include button(osd-insensitive);}
2028 &:hover > StIcon { @include button(osd-hover);}
2029 &:active > StIcon { @include button(osd-active);}
2030 }
2031
2032 //
2033 // Icon Tile
2034 //
2035 .search-provider-icon,
2036 .list-search-result {
2037 @extend %icon_tile;
2038
2039 &:active, &:checked { background-color: transparentize(darken($osd_bg_color,10%),.1); }
2040
2041 &:focus, &:selected, &:hover {
2042 background-color: transparentize($osd_fg_color,.6);
2043 transition-duration: 200ms;
2044 }
2045 }
2046 .app-well-app,
2047 .app-well-app.app-folder,
2048 .grid-search-result {
2049
2050 .overview-icon {
2051 @extend %icon_tile;
2052 }
2053
2054 &:active .overview-icon,
2055 &:checked .overview-icon {
2056 background-color: transparentize(darken($osd_bg_color,10%),.1);
2057 box-shadow: inset 0 0 $selected_bg_color;
2058 }
2059
2060 &:hover .overview-icon,
2061 &:focus .overview-icon,
2062 &:selected .overview-icon {
2063 background-color: transparentize($osd_fg_color,.6);
2064 transition-duration: 0ms;
2065 border-image: none;
2066 background-image: none;
2067 }
2068
2069 &:drop .overview-icon {
2070 background-color: $selected_bg_color;
2071 }
2072 }
2073
2074 .app-well-app-running-dot { //running apps indicator
2075 width: 20px;
2076 height: 2px;
2077 margin-bottom: 4px;
2078 background-color: $selected_bg_color;
2079 }
2080
2081 %icon_tile {
2082 color: $_shell_fg_color;
2083 border-radius: 2px;
2084 padding: 6px;
2085 border: 1px solid transparent;
2086 transition-duration: 0ms;
2087 text-align: center;
2088 }
2089
2090 //
2091 // App folders
2092 //
2093 .app-well-app.app-folder {
2094
2095 > .overview-icon {
2096 background-color: darken($dark_sidebar_bg, 8%);
2097 border: 1px solid transparentize(darken($dark_sidebar_bg, 25%), 0.5);
2098 }
2099
2100 &:hover > .overview-icon, &:focus > .overview-icon {
2101 background-color: lighten($dark_sidebar_bg, 3%);
2102 }
2103
2104 &:active > .overview-icon, &:checked > .overview-icon {
2105 color: $selected_fg_color;
2106 background-color: $selected_bg_color;
2107 box-shadow: none;
2108 }
2109 }
2110
2111 // expanded folder
2112 .app-folder-dialog {
2113 border-radius: 2px;
2114 border: 1px solid transparentize(darken($dark_sidebar_bg, 25%), 0.5);
2115 background-color: darken($dark_sidebar_bg, 8%);
2116 padding: 12px 0;
2117
2118 & .folder-name-container {
2119 padding: 24px 36px 0;
2120 spacing: 12px;
2121
2122 & .folder-name-label,
2123 & .folder-name-entry {
2124 @include fontsize($font-size * 1.6);
2125 font-weight: 800;
2126 }
2127
2128 & .folder-name-entry { width: 300px; }
2129
2130 /* FIXME: this is to keep the label in sync with the entry */
2131 & .folder-name-label { padding: 5px 7px; color: $fg_color; }
2132
2133 & .edit-folder-button {
2134 @extend %button;
2135
2136 padding: 0;
2137 width: 36px;
2138 height: 36px;
2139 border-radius: 18px;
2140
2141 & > StIcon { icon-size: 16px }
2142 }
2143 }
2144
2145 & .icon-grid {
2146 row-spacing: 10px;
2147 column-spacing: 25px;
2148 page-padding-top: 0;
2149 page-padding-bottom: 0;
2150 page-padding-left: 0;
2151 page-padding-right: 0;
2152 }
2153
2154 & .page-indicators {
2155 margin-bottom: 18px;
2156 }
2157 }
2158 .app-folder-dialog-container {
2159 padding: 12px;
2160 width: 680px;
2161 height: 680px;
2162 }
2163
2164 .page-indicator {
2165 padding: 5px 20px 0;
2166
2167 .page-indicator-icon {
2168 width: 8px;
2169 height: 8px;
2170 background-color: $_shell_fg_color;
2171 border-radius: 4px;
2172 }
2173
2174 &:active .page-indicator-icon { background-color: $selected_bg_color; }
2175 }
2176
2177 .app-well-app .overview-icon.overview-icon-with-label,
2178 .grid-search-result .overview-icon.overview-icon-with-label {
2179 padding: 10px 8px 5px 8px;
2180 spacing: 4px;
2181 }
2182
2183 //
2184 // Workspace pager
2185 //
2186 .workspace-thumbnails {
2187 visible-width: 40px; //amount visible before hover
2188 spacing: 5px;
2189 padding: 5px;
2190
2191 .workspace-thumbnail {
2192 background-color: $dark_sidebar_bg;
2193 background-clip: padding-box;
2194 border: 1px solid $shell_bg_border_color;
2195 border-radius: 0;
2196 }
2197
2198 .placeholder {
2199 background-image: url("common-assets/dash/dash-placeholder-horizontal.svg");
2200 background-size: contain;
2201 width: 18px;
2202 }
2203 }
2204
2205 .workspace-thumbnail-indicator {
2206 border: 3px solid transparentize($selected_bg_color, 0.2);
2207 border-radius: 1px;
2208 padding: 0;
2209 }
2210
2211 .apps-scroll-view {
2212 padding: 0;
2213 }
2214
2215 %status_text {
2216 @include fontsize($font-size * 2);
2217 font-weight: bold;
2218 color: $fg_color;
2219 }
2220
2221 //
2222 // Notifications & Message Tray
2223 //
2224
2225 // Banners
2226 .notification-banner,
2227 .notification-banner:hover,
2228 .notification-banner:focus {
2229 @include fontsize($font-size);
2230 width: 34em;
2231 min-height: 0;
2232 margin: 9px;
2233 padding: 6px;
2234
2235 @extend %popup_menu;
2236
2237 .notification-actions {
2238 background-color: transparent;
2239 border: 0;
2240 padding: 2px 2px 0 2px;
2241 spacing: 3px;
2242 }
2243 .notification-button {
2244 marging: 0;
2245 padding: 4px 4px 5px;
2246 min-height: 0;
2247 border-radius: 2px !important;
2248 font-weight: normal !important;
2249 @extend %button;
2250
2251 &:first-child, &:last-child { border-radius: 2px; }
2252 }
2253 }
2254
2255 %popup_menu {
2256 color: $fg_color;
2257 background-color: $shell_popup_menu_background_color;
2258 //background-clip: padding-box;
2259 border: if($variant!='dark', 0, 1px) solid $shell_popup_menu_border_color;
2260 border-radius: 2px;
2261 box-shadow: $_popup_menu_shadow;
2262 }
2263
2264 // Chat Bubbles
2265 .chat-body { spacing: 5px; }
2266 .chat-response { margin: 5px; }
2267 .chat-log-message { color: $fg_color; }
2268 .chat-new-group { padding-top: 1em; }
2269 .chat-received {
2270 padding-left: 4px;
2271
2272 &:rtl { padding-left: 0px; padding-right: 4px; }
2273 }
2274
2275 .chat-sent {
2276 padding-left: 18pt;
2277 color: $selected_bg_color;
2278
2279 &:rtl { padding-left: 0; padding-right: 18pt; }
2280 }
2281
2282 .chat-meta-message {
2283 padding-left: 4px;
2284 @include fontsize($font-size * 0.8);
2285 font-weight: bold;
2286 color: transparentize($fg_color, 0.4);
2287
2288 &:rtl { padding-left: 0; padding-right: 4px; }
2289 }
2290
2291 .subscription-message { font-style: italic; }
2292
2293 // Hotplug
2294 .hotplug-transient-box {
2295 spacing: 6px;
2296 padding: 2px 72px 2px 12px;
2297 }
2298
2299 .hotplug-notification-item {
2300 margin: 0;
2301 padding: 2px 10px;
2302 font-weight: normal !important;
2303 @extend %button;
2304
2305 &:focus { padding: 2px 10px; }
2306 }
2307
2308 .hotplug-notification-item-icon {
2309 icon-size: 24px;
2310 padding: 2px 5px;
2311 }
2312
2313 .hotplug-resident-box { spacing: 8px; }
2314
2315 .hotplug-resident-mount {
2316 spacing: 8px;
2317 border-radius: 4px;
2318 &:hover { background-color: transparentize($bg_color,0.7); }
2319 }
2320
2321 .hotplug-resident-mount-label {
2322 color: inherit;
2323 padding-left: 6px;
2324 }
2325
2326 .hotplug-resident-mount-icon {
2327 icon-size: 24px;
2328 padding-left: 6px;
2329 }
2330
2331 .hotplug-resident-eject-icon {
2332 icon-size: 16px;
2333 }
2334
2335 .hotplug-resident-eject-button {
2336 padding: 7px;
2337 border-radius: 5px;
2338 color: pink;
2339 }
2340
2341 // Eeeky things
2342
2343 // Magnifier
2344
2345 .magnifier-zoom-region {
2346 border: 2px solid $selected_bg_color;
2347 &.full-screen { border-width: 0; }
2348 }
2349
2350 //
2351 // On-Screen Keyboard
2352 //
2353 .word-suggestions {
2354 @include fontsize($font-size * 1.25);
2355 spacing: 12px;
2356 min-height: 20pt;
2357
2358 StButton {
2359 padding: 0 0.5em;
2360 border-radius: 2px;
2361 color: $osd_fg_color;
2362
2363 &:hover, &:focus, &:active { background-color: $selected_bg_color; color: $selected_fg_color; }
2364 }
2365 }
2366
2367 #keyboard {
2368 background-color: $osd_bg_color;
2369 border-width: 0;
2370 border-top-width: 1px;
2371 border-color: transparentize(black, 0.8);
2372
2373 .page-indicator {
2374 padding: 4px 4px;
2375
2376 .page-indicator-icon {
2377 width: 8px;
2378 height: 8px
2379 }
2380 }
2381 }
2382
2383 .key-container {
2384 padding: 4px;
2385 spacing: 4px;
2386 }
2387
2388 .keyboard-key {
2389 min-height: 1.2em;
2390 min-width: 1.2em;
2391 @include fontsize($font-size * 1.44);
2392 border-radius: 3px;
2393 box-shadow: none;
2394
2395 @include button(osd);
2396
2397 &:hover { @include button(osd-hover); }
2398 &:active, &:checked { @include button(osd-active); }
2399
2400 &:grayed { @include button(osd-insensitive); }
2401
2402 &.default-key {
2403 background-color: darken($osd_button_bg, 13%);
2404
2405 &:hover { background-color: darken($osd_button_bg, 5%); }
2406 &:active, &:checked { @include button(osd-active); }
2407 }
2408
2409 // keys that may be latched: ctrl/alt/shift
2410 &:latched, &:latched:hover {
2411 @include button(osd-active);
2412 }
2413
2414 &.enter-key {
2415 @include button(osd-active);
2416
2417 &:hover { background-color: darken($selected_bg_color, 5%); }
2418 &:active, &:checked { @include button(osd-active); }
2419 }
2420
2421 &.shift-key-lowercase {}
2422 &.shift-key-uppercase,
2423 &.shift-key-uppercase:latched {
2424 color: $selected_bg_color;
2425 }
2426 &.hide-key,
2427 &.layout-key {
2428 &:active, &:checked { color: $selected_fg_color; }
2429 }
2430
2431 StIcon { icon-size: 1.125em; }
2432 }
2433
2434 .keyboard-subkeys { //long press on a key popup
2435 color: $osd_fg_color;
2436 -arrow-border-radius: 2px;
2437 -arrow-background-color: $osd_bg_color;
2438 -arrow-border-width: 1px;
2439 -arrow-border-color: transparentize(black, 0.6);;
2440 -arrow-base: 20px;
2441 -arrow-rise: 10px;
2442 -boxpointer-gap: 5px;
2443 }
2444
2445 .emoji-page {
2446 .keyboard-key {
2447 background-color: transparent;
2448 border: none;
2449 }
2450 }
2451
2452 .emoji-panel {
2453 .keyboard-key:latched {
2454 @include button(osd-active);
2455
2456 &:hover { background-color: darken($selected_bg_color, 5%); }
2457 &:active, &:checked { @include button(osd-active); }
2458 }
2459 }
2460
2461 //
2462 // IBus Candidate Popup
2463 //
2464 .candidate-popup-boxpointer {
2465 @extend .popup-menu-boxpointer;
2466 }
2467
2468 .candidate-popup-content {
2469 padding: 0.5em;
2470 spacing: 0.3em;
2471 @include fontsize($font-size * 1.15);
2472 @extend .popup-menu-content;
2473 }
2474
2475 .candidate-index {
2476 padding: 0 0.5em 0 0;
2477 color: lighten($osd_fg_color, 10%);
2478 }
2479
2480 .candidate-box {
2481 padding: 0.3em 0.5em 0.3em 0.5em;
2482 border-radius: 2px;
2483 color: $osd_fg_color;
2484 &:selected,&:hover { background-color: $selected_bg_color; color: $selected_fg_color; }
2485 }
2486
2487 .candidate-page-button-box {
2488 height: 2em;
2489 .vertical & { padding-top: 0.5em; }
2490 .horizontal & { padding-left: 0.5em; }
2491 }
2492
2493 .candidate-page-button {
2494 padding: 4px;
2495
2496 & StIcon { icon-size: 1em; }
2497 }
2498
2499 .candidate-page-button-previous { border-radius: 2px 0px 0px 2px; border-right-width: 0; }
2500 .candidate-page-button-next { border-radius: 0px 2px 2px 0px; }
2501
2502 //
2503 // Auth Dialogs & Screen Shield
2504 //
2505 .user-icon {
2506 background-size: contain;
2507 color: $osd_fg_color;
2508 border-radius: 99px;
2509 border: 0;
2510 icon-size: 64px;
2511
2512 .login-dialog-user-list-item:selected & { color: $selected_fg_color; }
2513
2514 .unlock-dialog & { color: $_shell_fg_color; }
2515
2516 &:hover {
2517 color: $osd_fg_color;
2518 }
2519
2520 & StIcon {
2521 background-color: transparentize($osd_fg_color, 0.75);
2522 border-radius: 99px;
2523 padding: 12px;
2524 width: 40px; height: 40px;
2525
2526 .login-dialog-user-list-item:selected & { background-color: transparentize($selected_fg_color, 0.75); }
2527
2528 .unlock-dialog & { background-color: transparentize($_shell_fg_color, 0.75); }
2529 }
2530
2531 &.user-avatar {
2532 border: none;
2533 }
2534 }
2535
2536 .user-widget.vertical .user-icon {
2537 icon-size: 128px;
2538
2539 & StIcon {
2540 padding: 20px;
2541 padding-top: 18px;
2542 padding-bottom: 22px;
2543 width: 88px; height: 88px;
2544 }
2545 }
2546
2547 //
2548 // Login Dialog
2549 //
2550 .login-dialog-banner-view {
2551 padding-top: 24px;
2552 max-width: 23em;
2553 }
2554
2555 .login-dialog,
2556 .unlock-dialog {
2557 //reset
2558 border: none;
2559 background-color: transparent;
2560
2561 StEntry {
2562 caret-color: $selected_fg_color;
2563 selection-background-color: $selected_bg_color;
2564 selected-color: $selected_fg_color;
2565
2566 @include entry(osd);
2567
2568 StLabel.hint-text { color: transparentize($osd_fg_color, 0.3); }
2569
2570 &:focus {
2571 selection-background-color: $selected_fg_color;
2572 selected-color: $selected_bg_color;
2573
2574 @include entry(osd-focus);
2575
2576 StLabel.hint-text { color: transparentize($selected_fg_color, 0.3); }
2577 }
2578 }
2579
2580 .modal-dialog-button-box { spacing: 3px; }
2581 .modal-dialog-button {
2582 padding: 3px 18px;
2583 &, &:default {
2584 @extend %osd_button;
2585 }
2586 }
2587
2588 .cancel-button,
2589 .switch-user-button,
2590 .login-dialog-session-list-button {
2591 padding: 0;
2592 border-radius: 99px;
2593 width: 32px;
2594 height: 32px;
2595
2596 StIcon { icon-size: 16px; }
2597 }
2598
2599 .caps-lock-warning-label,
2600 .login-dialog-message-warning {
2601 color: $osd_fg_color;
2602 }
2603 }
2604
2605 .login-dialog-logo-bin { padding: 24px 0px; }
2606 .login-dialog-banner { color: $osd_fg_color; @include fontsize($font-size * 1.1); }
2607 .login-dialog-button-box { width: 23em; spacing: 5px; }
2608 .login-dialog-message { text-align: center; }
2609 .login-dialog-user-selection-box { padding: 100px 0px; }
2610 .login-dialog-not-listed-label {
2611 padding-left: 2px;
2612 .login-dialog-not-listed-button:focus &,
2613 .login-dialog-not-listed-button:hover & {
2614 color: lighten($osd_fg_color, 25%);
2615 }
2616 }
2617 .login-dialog-not-listed-label {
2618 @include fontsize($font-size * 0.9);
2619 font-weight: bold;
2620 color: $osd_fg_color;
2621 padding-top: 1em;
2622 }
2623
2624 .login-dialog-auth-list-view { -st-vfade-offset: 1em; }
2625 .login-dialog-auth-list {
2626 spacing: 6px;
2627 margin-left: 2em;
2628 }
2629
2630 .login-dialog-auth-list-title {
2631 margin-left: 2em;
2632 }
2633
2634 .login-dialog-auth-list-item {
2635 border-radius: 5px;
2636 padding: 6px;
2637 color: $osd_fg_color;
2638 &:focus, &:selected { background-color: $selected_bg_color; color: $selected_fg_color; }
2639 }
2640
2641 .login-dialog-auth-list-label {
2642 @include fontsize($font-size * 1.2);
2643 font-weight: bold;
2644 padding-left: 15px;
2645
2646 &:ltr { padding-left: 14px; text-align: left; }
2647 &:rtl { padding-right: 14px; text-align: right; }
2648 }
2649
2650 .login-dialog-user-list-view { -st-vfade-offset: 1em; }
2651 .login-dialog-user-list {
2652 spacing: 12px;
2653 width: 23em;
2654 &:expanded .login-dialog-user-list-item:selected { background-color: $selected_bg_color; color: $selected_fg_color; }
2655 &:expanded .login-dialog-user-list-item:logged-in { border-right: 2px solid $selected_bg_color; }
2656 }
2657 .login-dialog-user-list-item {
2658 border-radius: 5px;
2659 padding: 6px;
2660 color: $osd_fg_color;
2661 &:ltr .user-widget { padding-right: 1em; }
2662 &:rtl .user-widget { padding-left: 1em; }
2663 .login-dialog-timed-login-indicator {
2664 margin-top: 6px;
2665 }
2666 &:selected .login-dialog-timed-login-indicator { background-color: $selected_fg_color; }
2667 }
2668
2669 .user-widget-label {
2670 color: $osd_fg_color;
2671
2672 .login-dialog-user-list-item:selected & { color: $selected_fg_color; }
2673
2674 .unlock-dialog & { color: $_shell_fg_color; }
2675 }
2676
2677 .user-widget.horizontal .user-widget-label {
2678 @include fontsize($font-size * 1.2);
2679 font-weight: bold;
2680 padding-left: 15px;
2681
2682 &:ltr { padding-left: 14px; text-align: left; }
2683 &:rtl { padding-right: 14px; text-align: right; }
2684 }
2685
2686 .user-widget.vertical .user-widget-label {
2687 @include fontsize($font-size * 1.5);
2688 text-align: center;
2689 font-weight: normal;
2690 padding-top: 16px;
2691 }
2692
2693 .login-dialog-timed-login-indicator {
2694 height: 2px;
2695 background-color: $osd_fg_color;
2696 }
2697
2698 .login-dialog-prompt-layout {
2699 padding-top: 24px;
2700 padding-bottom: 12px;
2701 spacing: 8px;
2702 width: 23em;
2703 }
2704
2705 .login-dialog-prompt-entry {
2706 height: 1.5em;
2707 }
2708
2709 .login-dialog-prompt-label {
2710 color: $osd_fg_color;
2711 @include fontsize($font-size * 1.1);
2712 padding-top: 1em;
2713 }
2714
2715 //
2716 // Screen Shield
2717 //
2718 .unlock-dialog-clock {
2719 color: $_shell_fg_color;
2720 font-weight: 300;
2721 text-align: center;
2722 spacing: 24px;
2723 padding-bottom: 2.5em;
2724 }
2725
2726 .unlock-dialog-clock-time {
2727 font-size: 64pt;
2728 padding-top: 42px;
2729 font-feature-settings: "tnum";
2730 }
2731
2732 .unlock-dialog-clock-date {
2733 font-size: 16pt;
2734 font-weight: normal;
2735 }
2736
2737 .unlock-dialog-clock-hint {
2738 font-weight: normal;
2739 padding-top: 48px;
2740 }
2741
2742 .unlock-dialog-notifications-container {
2743 margin: 12px 0;
2744 spacing: 6px;
2745 width: 23em;
2746 background-color: transparent;
2747 .summary-notification-stack-scrollview {
2748 padding-top: 0;
2749 padding-bottom: 0;
2750 }
2751
2752 .notification,
2753 .unlock-dialog-notification-source {
2754 padding: 12px 6px;
2755 @extend %popup_menu;
2756
2757 StIcon { -st-icon-style: symbolic; }
2758
2759 // &.critical { background-color: transparentize($osd_bg_color,0.1) } // FIXME
2760 }
2761 }
2762
2763 .unlock-dialog-notification-label {
2764 padding-left: 12px;
2765 padding-right: 0;
2766 &:rtl { padding-right: 12px; padding-left: 0; }
2767 }
2768
2769 .unlock-dialog-notification-count-text {
2770 font-weight: bold;
2771 padding: 0 6px;
2772 color: $fg_color;
2773 border: 1px solid transparentize(white, 0.9);
2774 background-color: transparentize(white, 0.8);
2775 border-radius: 99px;
2776 margin-right: 12px;
2777 }
2778
2779 .screen-shield-background { //just the shadow, really
2780 background: black;
2781 box-shadow: 0px 2px 4px transparentize(black,0.6);
2782 }
2783
2784 #lockDialogGroup {
2785 background-color: $_system_bg_color;
2786 }
2787
2788 #unlockDialogNotifications {
2789 StButton#vhandle, StButton#hhandle {
2790 background-color: transparentize($bg_color,0.7);
2791 &:hover, &:focus { background-color: transparentize($bg_color,0.5); }
2792 &:active { background-color: transparentize($selected_bg_color,0.5); }
2793 }
2794 }
2795
2796 //
2797 // Looking Glass
2798 //
2799 #LookingGlassDialog {
2800 margin: 4px;
2801 spacing: 4px;
2802 padding: 4px 4px 6px 4px;
2803 color: $osd_fg_color;
2804 @extend %shell_bg;
2805
2806 & > #Toolbar {
2807 padding: 3px;
2808 border: none;
2809 background-color: transparent;
2810 border-radius: 0px;
2811 spacing: 6px;
2812
2813 .lg-toolbar-button {
2814 padding: 5px 10px;
2815 border-radius: 2px;
2816 @extend %button;
2817
2818 & > StIcon { icon-size: 16px; }
2819 }
2820 }
2821 .labels { spacing: 4px; }
2822
2823 .notebook-tab {
2824 -natural-hpadding: 12px;
2825 -minimum-hpadding: 6px;
2826 font-weight: bold;
2827 color: $osd_fg_color;
2828 transition-duration: 100ms;
2829 padding-left: .3em;
2830 padding-right: .3em;
2831 border-radius: 2px;
2832
2833 &:hover {
2834 color: $_panel_fg_color;
2835 background-color: transparentize($_panel_fg_color, 0.95);
2836 }
2837 &:selected {
2838 border-bottom-width: 0px;
2839 color: $selected_fg_color;
2840 background-color: $selected_bg_color;
2841 }
2842 }
2843 StBoxLayout#EvalBox { padding: 4px; spacing: 4px; }
2844 StBoxLayout#ResultsArea { spacing: 4px; }
2845 }
2846
2847 .lg-dialog {
2848
2849 StEntry {
2850 caret-color: $selected_fg_color;
2851 selection-background-color: $selected_bg_color;
2852 selected-color: $selected_fg_color;
2853
2854 @include entry(osd);
2855 &:focus {
2856 @include entry(osd-focus);
2857
2858 selection-background-color: $selected_fg_color;
2859 selected-color: $selected_bg_color;
2860 }
2861 }
2862 .shell-link {
2863 color: $link_color;
2864 &:hover { color: lighten($link_color,10%); }
2865 }
2866 .actor-link {
2867 color: $osd_fg_color;
2868 &:hover { color: lighten($osd_fg_color, 10%); }
2869 &:active { color: darken($osd_fg_color, 10%); }
2870
2871 & StIcon { icon-size: 12px; }
2872 }
2873 }
2874
2875 .lg-completions-text {
2876 @include fontsize($font-size * 0.9);
2877 font-style: italic;
2878 }
2879
2880 .lg-obj-inspector-title {
2881 spacing: 4px;
2882 }
2883
2884 .lg-obj-inspector-button {
2885 border: 1px solid gray;
2886 padding: 4px;
2887 border-radius: 4px;
2888 &:hover { border: 1px solid #ffffff; }
2889 }
2890
2891 #lookingGlassExtensions { padding: 4px; }
2892
2893 .lg-extensions-list {
2894 padding: 4px;
2895 spacing: 6px;
2896 }
2897
2898 .lg-extension {
2899 border: 1px solid $osd_borders_color;
2900 border-radius: 2px;
2901 background-color: $osd_bg_color;
2902 padding: 4px;
2903 }
2904
2905 .lg-extension-name {
2906 font-weight: bold;
2907 }
2908
2909 .lg-extension-meta {
2910 spacing: 6px;
2911 }
2912
2913 #LookingGlassPropertyInspector {
2914 background: transparentize(black, 0.3);
2915 border: 1px solid grey;
2916 border-radius: 2px;
2917 color: $_shell_fg_color;
2918 padding: 6px;
2919 }
2920
2921 .lg-debug-flag-button {
2922 StLabel { padding: 6px, 12px; }
2923
2924 color: $osd_fg_color;
2925 &:hover { color: lighten($osd_fg_color, 10%); }
2926 &:active { color: darken($osd_fg_color, 10%); }
2927 }
2928
2929 .lg-debug-flags-header {
2930 padding-top: 12px;
2931 font-size: 120%;
2932 font-weight: bold;
2933 }
2934
2935 //
2936 // Screenshot UI
2937 //
2938 .icon-label-button-container {
2939 spacing: 6px;
2940 font-weight: normal;
2941 @include fontsize($font-size * 0.9);
2942
2943 StIcon { icon-size: 32px;}
2944 }
2945
2946 $_screenshot_ui_panel_padding: 15px;
2947
2948 .screenshot-ui-panel {
2949 @extend %shell_osd;
2950 border-radius: 3px;
2951 padding: $_screenshot_ui_panel_padding;
2952 // Reduce the bottom padding a little to accommodate the large capture button.
2953 padding-bottom: $_screenshot_ui_panel_padding - 6px;
2954 margin-bottom: 4em;
2955 spacing: 10px;
2956 }
2957
2958 .screenshot-ui-close-button {
2959 @extend .window-close; // copy window close button
2960 padding: $window_close_button_padding !important;
2961 &.left { margin-left: 8px;}
2962 &.right { margin-right: 8px;}
2963 }
2964
2965 .screenshot-ui-type-button {
2966 @extend %osd_button;
2967 min-width: 48px;
2968 padding: 10px 15px !important;
2969 border-radius: 3px;
2970 }
2971
2972 .screenshot-ui-capture-button {
2973 width: 36px;
2974 height: 36px;
2975 border-radius: 99px;
2976 border: 4px $_shell_fg_color;
2977 padding: 4px;
2978
2979 .screenshot-ui-capture-button-circle {
2980 background-color: $_shell_fg_color;
2981 transition-duration: 200ms;
2982 &:hover, &:focus {
2983 background-color: $selected_bg_color;
2984 color: $selected_fg_color;
2985 }
2986 border-radius: 99px;
2987 }
2988
2989 &:hover, &:focus {
2990 .screenshot-ui-capture-button-circle {
2991 background-color: $selected_bg_color;
2992 color: $selected_fg_color;
2993 }
2994 }
2995
2996 &:active {
2997 .screenshot-ui-capture-button-circle {
2998 background-color: darken($selected_bg_color, 10%);
2999 }
3000 }
3001
3002 &:cast {
3003 .screenshot-ui-capture-button-circle {
3004 background-color: $error_color;
3005 }
3006 &:hover, &:focus {
3007 .screenshot-ui-capture-button-circle {
3008 background-color: lighten($error_color, 10%);
3009 }
3010 }
3011 &:active {
3012 .screenshot-ui-capture-button-circle {
3013 background-color: darken($error_color, 10%);
3014 }
3015 }
3016 }
3017 }
3018
3019 .screenshot-ui-shot-cast-container {
3020 @extend %osd_button;
3021 border-radius: 2px;
3022 padding: 0;
3023 spacing: 0;
3024 }
3025
3026 .screenshot-ui-shot-cast-button {
3027 padding: 5px 10px;
3028 background-color: transparent;
3029 color: $osd_fg_color;
3030
3031 &:checked {
3032 background-color: $selected_bg_color;
3033 color: $selected_fg_color;
3034 }
3035 &:insensitive {
3036 color: $osd_insensitive_fg_color;
3037 }
3038
3039 &:first-child:ltr {
3040 border-radius: 2px 0px 0px 2px;
3041 }
3042 &:last-child:ltr {
3043 border-right-width: 0px;
3044 border-radius: 0px 2px 2px 0px;
3045 }
3046 &:first-child:rtl {
3047 border-left-width: 0px;
3048 border-radius: 0px 2px 2px 0px;
3049 }
3050 &:last-child:rtl {
3051 border-radius: 2px 0px 0px 2px;
3052 }
3053
3054 StIcon { icon-size: 16px;}
3055 }
3056
3057 .screenshot-ui-show-pointer-button {
3058 @extend %osd_button;
3059 border-radius: 99px;
3060 padding: 10px !important;
3061 StIcon { icon-size: 16px;}
3062 }
3063
3064 .screenshot-ui-area-indicator-shade {
3065 background-color: rgba(0,0,0,.3);
3066 }
3067
3068 .screenshot-ui-area-selector {
3069 .screenshot-ui-area-indicator-shade {
3070 background-color: rgba(0,0,0,.5);
3071 }
3072
3073 .screenshot-ui-area-indicator-selection {
3074 border: 2px white;
3075 }
3076 }
3077
3078 .screenshot-ui-area-selector-handle {
3079 border-radius: 99px;
3080 background-color: white;
3081 box-shadow: 0 1px 3px 2px rgba(0,0,0,0.2);
3082 width: 24px;
3083 height: 24px;
3084 }
3085
3086 .screenshot-ui-window-selector {
3087 background-color: $_system_bg_color;
3088
3089 .screenshot-ui-window-selector-window-container {
3090 margin: 100px;
3091 }
3092
3093 &:primary-monitor {
3094 .screenshot-ui-window-selector-window-container {
3095 // Make some room for the panel.
3096 margin-bottom: 200px;
3097 }
3098 }
3099 }
3100
3101 .screenshot-ui-window-selector-window-border {
3102 transition-duration: 200ms;
3103 border-radius: 3px;
3104 border: 6px transparent;
3105 }
3106
3107 .screenshot-ui-window-selector-check {
3108 transition-duration: 200ms;
3109 color: transparent;
3110 border-radius: 99px;
3111 border-width: 12px;
3112 icon-size: 24px;
3113 }
3114
3115 .screenshot-ui-window-selector-window {
3116 &:hover {
3117 .screenshot-ui-window-selector-window-border {
3118 border-color: $selected_bg_color;
3119 }
3120 }
3121 &:checked {
3122 .screenshot-ui-window-selector-window-border {
3123 border-color: $selected_bg_color;
3124 background-color: transparent;
3125 }
3126
3127 .screenshot-ui-window-selector-check {
3128 color: $selected_fg_color;
3129 background-color: $selected_bg_color;
3130 }
3131 }
3132 }
3133
3134 .screenshot-ui-screen-selector {
3135 transition-duration: 200ms;
3136 background-color: rgba(0,0,0,.5);
3137
3138 &:hover { background-color: rgba(0,0,0,.3);}
3139 &:active { background-color: rgba(0,0,0,.7);}
3140 &:checked {
3141 background-color: transparent;
3142 border: 2px white;
3143 }
3144 }
3145
3146 .screenshot-ui-tooltip {
3147 color: $osd_fg_color;
3148 background-color: $osd_bg_color;
3149 border-radius: 99px;
3150 padding: 5px 10px;
3151 text-align: center;
3152 -y-offset: 24px;
3153 }
3154
3155 //
3156 // Quick settings
3157 //
3158 .quick-settings {
3159 padding: 12px;
3160 @extend %popup_menu;
3161
3162 .icon-button, .button {
3163 padding: 7px;
3164 }
3165 }
3166
3167 .quick-settings-grid {
3168 spacing-rows: 8px;
3169 spacing-columns: 8px;
3170 }
3171
3172 .quick-toggle {
3173 border-radius: 3px;
3174 min-width: 12em;
3175 max-width: 12em;
3176 min-height: 40px;
3177
3178 &:first-child { border-radius: 99px}
3179
3180 &:checked { @include button(default); }
3181
3182 & > StBoxLayout { spacing: 4px; }
3183
3184 /* Move padding into the box; this is to allow menu arrows
3185 to extend to the border */
3186 &.button { padding: 0; }
3187 & > StBoxLayout { padding: 0 8px; }
3188 &:ltr > StBoxLayout { padding-left: 10px; }
3189 &:rtl > StBoxLayout { padding-right: 10px; }
3190
3191 .quick-toggle-label { font-weight: normal; }
3192 .quick-toggle-icon, .quick-toggle-arrow { icon-size: 16px; }
3193 }
3194
3195 .quick-menu-toggle {
3196 &:ltr > StBoxLayout { padding-right: 0; }
3197 &:rtl > StBoxLayout { padding-left: 0; }
3198
3199 & .quick-toggle-arrow {
3200 background-color: transparentize($fg_color, 0.9);
3201 padding: 4px 7px;
3202
3203 &:ltr { border-radius: 0 3px 3px 0; }
3204 &:rtl { border-radius: 3px 0 0 3px; }
3205 }
3206
3207 &:checked .quick-toggle-arrow {
3208 background-color: transparentize($selected_fg_color, 0.9);
3209 }
3210 }
3211
3212 .quick-slider {
3213 & > StBoxLayout { spacing: 4px; }
3214
3215 .slider-bin {
3216 &:focus {@include button(focus);}
3217 min-height: 16px; // slider size
3218 padding: 4px;
3219 border-radius: 99px;
3220 }
3221 .quick-toggle-icon {
3222 icon-size: 16px;
3223
3224 &:ltr { margin-left: 4px; }
3225 &:rtl { margin-right: 4px; }
3226 }
3227 }
3228
3229 .quick-toggle-menu {
3230 background-color: $shell_popup_menu_background_color;
3231 border-color: $borders_color;
3232 border-radius: 3px;
3233 padding: 8px;
3234 margin: 8px 16px 0;
3235
3236 .popup-menu-item {
3237 border-radius: 2px;
3238 padding-left: 5px;
3239 padding-right: 5px;
3240 }
3241
3242 .popup-menu-item > StIcon { -st-icon-style: symbolic; }
3243
3244 & .header {
3245 spacing-rows: 2px;
3246 spacing-columns: 8px;
3247 padding-bottom: 8px;
3248
3249 & .icon {
3250 icon-size: 16px;
3251 border-radius: 999px;
3252 padding: 6px;
3253 border: 1px solid $button_border;
3254 background-color: $button_bg;
3255
3256 &.active {
3257 background-color: $selected_bg_color;
3258 color: $selected_fg_color;
3259 border: 1px solid if($variant!='dark', $selected_bg_color, $button_border);
3260 }
3261 }
3262
3263 & .title {
3264 @include fontsize($font-size * 1.4);
3265 font-weight: 800;
3266 }
3267
3268 & .subtitle {
3269 @include fontsize($font-size);
3270 font-weight: 800;
3271 }
3272 }
3273 }
3274
3275 .quick-toggle-menu-container {
3276 }
3277
3278 .quick-settings-system-item {
3279 & > StBoxLayout { spacing: 8px; }
3280
3281 & .power-item {
3282 min-height: 0;
3283 min-width: 0;
3284
3285 &:insensitive {
3286 @include button(normal);
3287 background-color: transparent;
3288 }
3289 }
3290 }
3291
3292 .nm-network-item {
3293 .wireless-secure-icon { icon-size: 8px; }
3294 }
3295
3296 //
3297 // OpenWeather extension
3298 //
3299 .openweather-current-summarybox,
3300 .openweather-forecast-icon,
3301 .openweather-current-databox-captions,
3302 .openweather-current-databox-values,
3303 .openweather-current-icon,
3304 .openweather-forecast-summary,
3305 .openweather-forecast-temperature {
3306 color: $fg_color;
3307 }