Debian Codegraph @

common/cinnamon/5.4/sass/_common.scss

raw
1 $asset_path: if($variant == 'dark', dark-assets, light-assets);
2
3 //
4 // Globals
5 //
6 $_bubble_bg_color: opacify($osd_bg_color,0.25);
7 $_bubble_fg_color: $osd_fg_color;
8 $_bubble_borders_color: transparentize($osd_fg_color,0.8);
9 $_shell_fg_color: white;
10
11 stage {
12 color: $fg_color;
13 }
14
15 .label-shadow {
16 color: rgba(0, 0, 0, 0);
17 }
18
19 %reset_style {
20 background-color: transparent !important;
21 background-gradient-direction: none !important;
22 border: none !important;
23 border-radius: 0 !important;
24 }
25
26 //
27 // Buttons
28 //
29 %button {
30 min-height: 20px;
31 padding: 5px 32px;
32 transition-duration: 0;
33
34 &, &:focus, &:hover, &:hover:focus, &:active, &:active:focus, &:insensitive {
35 border-radius: 2px;
36 }
37
38 @include button(normal);
39
40 @at-root %button_hover,
41 &:hover { @include button(hover); }
42
43 &:focus { @include button(focus); }
44 &:hover:focus { @include button(focus-hover); }
45 &:active, &:active:focus { @include button(active); }
46 &:insensitive { @include button(insensitive); }
47 }
48
49 %osd_button {
50 min-height: 20px;
51 padding: 5px 32px;
52 transition-duration: 0;
53 border-radius: 2px;
54
55 @include button(osd);
56
57 &:hover { @include button(osd-hover); }
58 &:focus { color: $selected_bg_color; }
59 &:active { @include button(osd-active); }
60 &:insensitive { @include button(osd-insensitive); }
61 }
62
63 //
64 // Entries
65 //
66 %entry {
67 padding: 7px;
68 caret-size: 1px;
69 selection-background-color: $selected_bg_color;
70 selected-color: $selected_fg_color;
71 transition-duration: 300ms;
72 border-radius: 3px;
73
74 @include entry(normal);
75
76 &:focus, &:hover { @include entry(focus); }
77 &:insensitive { @include entry(insensitive); }
78
79 StIcon.capslock-warning {
80 icon-size: 16px;
81 warning-color: $warning_color;
82 padding: 0 4px;
83 }
84 }
85
86 %osd_entry {
87 padding: 7px;
88 caret-size: 1px;
89 caret-color: $osd_fg_color;
90 selection-background-color: $selected_bg_color;
91 selected-color: $selected_fg_color;
92 transition-duration: 300ms;
93 border-radius: 3px;
94
95 @include entry(osd);
96
97 &:focus { @include entry(osd-focus); }
98 &:insensitive { @include entry(osd-insensitive); }
99 }
100
101 //
102 // Scrollbars
103 //
104 StScrollView {
105 &.vfade { -st-vfade-offset: 0px; }
106 &.hfade { -st-hfade-offset: 0px; }
107 }
108
109 StScrollBar {
110
111 padding: 8px;
112
113 StScrollView & {
114 min-width: 5px;
115 min-height: 5px;
116 }
117
118 StBin#trough {
119 background-color: transparentize($base_color, 0.9);
120 border-radius: 8px;
121 }
122
123 StButton#vhandle, StButton#hhandle {
124 border-radius: 2px;
125 background-color: mix($fg_color, $bg_color, 40%);
126 border: 0px solid;
127 margin: 0px;
128
129 &:hover { background-color: mix($fg_color, $bg_color, 30%); }
130
131 &:active { background-color: $selected_bg_color; }
132 }
133 }
134
135 .separator {
136 -gradient-height: 1px;
137 -gradient-start: rgba(0,0,0,0);
138 -gradient-end: rgba(0,0,0,0);
139 -margin-horizontal: 1.5em;
140 height: 1em;
141 }
142
143 //
144 // Slider
145 //
146 .popup-slider-menu-item,
147 .slider {
148 -slider-height: 4px;
149 -slider-background-color: $button_border; //background of the trough
150 -slider-border-color: transparentize(black, 1); //trough border color
151 -slider-active-background-color: $selected_bg_color; //active trough fill
152 -slider-active-border-color: transparentize(black, 1); //active trough border
153 -slider-border-width: 0;
154 -slider-handle-radius: 4px;
155 height: 18px;
156 min-width: 15em;
157 border: 0 solid transparent;
158 border-right-width: 1px;
159 border-left-width: 5px;
160 color: transparent;
161
162 .popup-menu-item:active & {
163 -slider-background-color: transparentize(black, 0.8);
164 -slider-active-background-color: $selected_fg_color;
165 }
166 }
167
168 //
169 // Check Boxes
170 //
171 .check-box {
172
173 CinnamonGenericContainer {
174 spacing: .2em;
175 min-height: 30px;
176 padding-top: 2px;
177 }
178
179 StLabel { font-weight: normal; }
180
181 StBin {
182 width: 16px;
183 height: 16px;
184 background-image: url("#{$asset_path}/checkbox/checkbox-unchecked.svg");
185 }
186
187 &:focus StBin { background-image: url("#{$asset_path}/checkbox/checkbox-unchecked-focused.svg"); }
188
189 &:checked StBin { background-image: url("#{$asset_path}/checkbox/checkbox-checked.svg"); }
190
191 &:focus:checked StBin { background-image: url("#{$asset_path}/checkbox/checkbox-checked-focused.svg"); }
192 }
193
194 //
195 // Radio Buttons
196 //
197 .radiobutton {
198
199 CinnamonGenericContainer {
200 spacing: .2em;
201 height: 26px;
202 padding-top: 2px;
203 }
204
205 StLabel {
206 padding-top: 4px;
207 font-size: 0.9em;
208 box-shadow: none;
209 }
210
211 StBin {
212 width: 16px;
213 height: 16px;
214 background-image: url("#{$asset_path}/checkbox/checkbox-unchecked.svg");
215 }
216
217 &:focus StBin { background-image: url("#{$asset_path}/checkbox/checkbox-unchecked-focused.svg"); }
218
219 &:checked StBin { background-image: url("#{$asset_path}/checkbox/checkbox-checked.svg"); }
220
221 &:focus:checked StBin { background-image: url("#{$asset_path}/checkbox/checkbox-checked-focused.svg"); }
222 }
223
224 //
225 // Switches
226 //
227 .toggle-switch {
228 width: 50px;
229 height: 20px;
230 background-size: contain;
231 background-image: url("#{$asset_path}/switch/switch-off.svg");
232
233 &:checked { background-image: url("#{$asset_path}/switch/switch-on.svg"); }
234
235 .popup-menu-item:active & {
236 background-image: url("common-assets/switch/switch-off-selected.svg");
237
238 &:checked { background-image: url("common-assets/switch/switch-on-selected.svg"); }
239 }
240 }
241
242 //
243 // Links
244 //
245 .cinnamon-link {
246 color: $link_color;
247 text-decoration: underline;
248
249 &:hover { color: lighten($link_color,10%); }
250 }
251
252 //
253 // Tooltip
254 //
255 #Tooltip {
256 border-radius: 3px;
257 padding: 5px 12px;
258 background-color: $osd_bg_color;
259 color: $osd_fg_color;
260 font-size: 1em;
261 font-weight: normal;
262 text-align: center;
263 }
264
265 //
266 // Pointer ripple
267 //
268 .ripple-pointer-location {
269 width: 50px;
270 height: 50px;
271 border-radius: 25px;
272 background-color: $selected_bg_color;
273 box-shadow: none;
274 }
275
276 //
277 // Popvers/Menus
278 //
279 .menu,
280 %menu {
281 color: $fg_color;
282 border-image: url("#{$asset_path}/menu/menu.svg") 9 9 9 9;
283 }
284
285 .popup-menu-arrow { icon-size: 16px; }
286
287 .popup-sub-menu {
288 background-gradient-direction: none;
289 box-shadow: none;
290 border-image: url("#{$asset_path}/menu/submenu.svg") 9 9 9 9;
291
292 .popup-menu-item:ltr { padding-right: 0em; }
293 .popup-menu-item:rtl { padding-left: 0em; }
294
295 StScrollBar {
296 padding: 4px;
297 StBin#trough, StBin#vhandle { border-width: 0; }
298 }
299 }
300
301 .popup-menu-content { padding: 1em 1px; }
302 .popup-menu-item {
303 padding: .4em 1.75em;
304 spacing: 1em;
305
306 &:active {
307 color: $selected_fg_color;
308 background-color: transparent;
309 border-image: url("common-assets/menu/menu-hover.svg") 9 9 1 1;
310 }
311 &:insensitive {
312 color: transparentize($fg_color, 0.5);
313 background: none;
314 }
315 }
316
317 .popup-inactive-menu-item { //all icons and other graphical elements
318 color: $fg_color;
319
320 &:insensitive { color: $insensitive_fg_color; }
321 }
322
323 .popup-menu-item:active .popup-inactive-menu-item { color: $selected_fg_color; }
324
325 .popup-menu-icon { icon-size: 16px; }
326
327 .popup-combo-menu {
328 @extend %menu;
329 padding: 10px 1px;
330 }
331 .popup-image-menu-item {}
332
333 .popup-combobox-item { spacing: 1em; }
334
335 .popup-separator-menu-item {
336 -gradient-height: 2px;
337 -gradient-start: transparent;
338 -gradient-end: transparent;
339 -margin-horizontal: 1.5em;
340 height: 1em;
341 }
342
343 .popup-alternating-menu-item:alternate {
344 font-weight: normal;
345 }
346
347 .popup-device-menu-item { spacing: .5em; }
348
349 .popup-subtitle-menu-item { font-weight: normal; }
350
351 .nm-menu-item-icons { spacing: .5em; }
352
353 //
354 // Panel
355 //
356 #panel {
357 font-weight: bold;
358 height: 27px;
359 width: 32px;
360
361 &:highlight {
362 border-image: none;
363 background-color: transparentize($error_color, 0.5);
364 }
365 }
366
367 .panel {
368 $_panel_fg_color: $_shell_fg_color;
369
370 &Left {
371 spacing: 4px;
372
373 &:dnd {
374 background-gradient-direction: vertical;
375 background-gradient-start: rgba(255,0,0,0.05);
376 background-gradient-end: rgba(255,0,0,0.2);
377 }
378 &:ltr { padding-right: 4px; }
379 &:rtl { padding-left: 4px; }
380
381 &.vertical {
382 padding: 0;
383
384 &:ltr { padding-right: 0px; }
385 &:rtl { padding-left: 0px; }
386 }
387 }
388
389 &Right {
390
391 &:dnd {
392 background-gradient-direction: vertical;
393 background-gradient-start: rgba(0,0,255,0.05);
394 background-gradient-end: rgba(0,0,255,0.2);
395 }
396 &:ltr { padding-left: 4px; spacing: 0px; }
397 &:rtl { padding-right: 4px; spacing: 0px; }
398
399 &.vertical {
400 padding: 0;
401
402 &:ltr { padding-right: 0px; }
403 &:rtl { padding-left: 0px; }
404 }
405 }
406
407 &Center {
408 spacing: 4px;
409
410 &:dnd {
411 background-gradient-direction: vertical;
412 background-gradient-start: rgba(0,255,0,0.05);
413 background-gradient-end: rgba(0,255,0,0.2);
414 }
415 }
416
417 &-top, &-bottom, &-left, &-right {
418 color: $_panel_fg_color;
419 font-size: 1em;
420 padding: 0px;
421 }
422
423 &-top { border-image: url('common-assets/panel/panel-top.svg') 1 1 1 1; }
424 &-bottom { border-image: url('common-assets/panel/panel-bottom.svg') 1 1 1 1; }
425 &-left { border-image: url('common-assets/panel/panel-left.svg') 1 1 1 1; }
426 &-right { border-image: url('common-assets/panel/panel-right.svg') 1 1 1 1; }
427
428 &-dummy {
429 background-color: transparentize($error_color, 0.5);
430
431 &:entered { background-color: transparentize($error_color, 0.4); }
432 }
433
434 &-status-button {
435 border-width: 0;
436 -natural-hpadding: 3px;
437 -minimum-hpadding: 3px;
438 font-weight: bold;
439 color: white;
440
441 &:hover {}
442 }
443
444 &-button {
445 -natural-hpadding: 6px;
446 -minimum-hpadding: 2px;
447 font-weight: bold;
448 color: green;
449 transition-duration: 100;
450
451 &:hover {}
452 }
453 }
454
455 .system-status-icon {
456 icon-size: 16px;
457 padding: 0 1px;
458 }
459
460 //
461 // Overview
462 //
463 #overview { spacing: 12px; }
464
465 .window-caption {
466 background-color: $osd_bg_color;
467 border: 1px solid $osd_bg_color;
468 color: $osd_fg_color;
469 padding: .5em .7em;
470 spacing: .5em;
471 border-radius: 2px;
472 font-size: 1em;
473 -cinnamon-caption-spacing: 8px;
474 max-width: 20em;
475
476 &:focus {
477 background-color: $selected_bg_color;
478 color: $selected_fg_color;
479 border: 1px solid $selected_bg_color;
480 }
481 }
482
483 .window-border {
484 border: 3px $selected_bg_color;
485 border-radius: 4px;
486 /* Cover rounded corners and some bad adjustment gaps */
487 box-shadow: 0 0 0 1px $selected_bg_color inset;
488 }
489
490 .overview-empty-placeholder {
491 text-align: center;
492 font-weight: bold;
493 spacing: 1em;
494 padding: 16px;
495 color: $_shell_fg_color;
496 border-image: url("common-assets/misc/osd.svg") 9 9 9 9;
497 }
498
499 .expo-workspaces-name-entry {
500 height: 1.4em;
501 border-radius: 2px;
502 font-size: 1em;
503 padding: 5px 8px;
504 -cinnamon-caption-spacing: 4px;
505 transition-duration: 300;
506 @include entry(osd);
507
508 &:focus, &#selected {
509 border: 1px solid $selected_bg_color;
510 background-color: $selected_bg_color;
511 color: $selected_fg_color;
512 font-style: italic;
513 selection-background-color: $selected_fg_color;
514 selected-color: $selected_bg_color;
515 }
516
517 &:hover {
518 border: 1px solid $selected_bg_color;
519 }
520 }
521
522 .expo-workspace-thumbnail-frame {
523 border: 4px solid rgba(255,255,255,0.0);
524 background-color: rgba(255,255,255,0.0);
525 border-radius: 2px;
526
527 &#active {
528 border: 4px solid $selected_bg_color;
529 background-color: black;
530 border-radius: 2px;
531 }
532 }
533
534 .expo-background {
535 background-color: opacify($osd_bg_color, 1);
536 }
537
538 .workspace {
539 //&-controls { visible-height: 32px; }
540
541 &-thumbnails {
542 spacing: 26px;
543
544 &-background, &-background:rtl { padding: 8px; }
545 }
546
547 &-add-button {
548 background-image: url("common-assets/misc/add-workspace.svg");
549 height: 200px;
550 width: 35px;
551 transition-duration: 100;
552
553 &:hover {
554 background-image: url("common-assets/misc/add-workspace-hover.svg");
555 transition-duration: 100;
556 }
557 &:active {
558 background-image: url("common-assets/misc/add-workspace-active.svg");
559 transition-duration: 100;
560 }
561 }
562 &-overview-background-shade { background-color: rgba(0,0,0,0.5); }
563 }
564
565 .workspace-close-button,
566 .window-close {
567 background-image: url("common-assets/misc/close.svg");
568 background-size: 26px;
569 height: 26px;
570 width: 26px;
571 -cinnamon-close-overlap: 10px;
572
573 &:hover {
574 background-image: url("common-assets/misc/close-hover.svg");
575 background-size: 26px;
576 height: 26px;
577 width: 26px;
578 }
579 &:active {
580 background-image: url("common-assets/misc/close-active.svg");
581 background-size: 26px;
582 height: 26px;
583 width: 26px;
584 }
585 }
586
587 //.workspace-thumbnail-indicator {
588 // outline: 2px solid red;
589 // border: 1px solid green;
590 //}
591 //
592 //.window-close:rtl {
593 // -st-background-image-shadow: 2px 2px 6px rgba(0,0,0,0.5);
594 //}
595
596 .window-close-area {
597 background-image: url("common-assets/misc/trash-icon.svg");
598 height: 120px;
599 width: 400px;
600 }
601
602 //
603 // About Dialog (applet.js and desklet.js)
604 //
605 .about {
606 &-content {
607 width: 550px;
608 height: 250px;
609 spacing: 8px;
610 padding-bottom: 10px;
611 }
612 &-title {
613 font-size: 2em;
614 font-weight: bold;
615 }
616 &-uuid {
617 font-size: 1.1em;
618 color: #888;
619 }
620 &-icon {
621 padding-right: 20px;
622 padding-bottom: 14px;
623 }
624 &-scrollBox {
625 border: 1px solid $borders_color;
626 border-radius: 2px;
627 background-color: $base_color;
628 padding: 4px;
629 padding-right: 0;
630 border-radius: 0;
631
632 &-innerBox {
633 padding: 1.2em;
634 spacing: 1.2em;
635 }
636 }
637 &-description {
638 padding-top: 4px;
639 padding-bottom: 16px;
640 }
641 &-version {
642 padding-left: 7px;
643 font-size: 1.1em;
644 color: #888;
645 }
646 }
647
648
649 //
650 // Calendar
651 //
652 .calendar-main-box {
653 margin: 0 .8em 0 .8em;
654 }
655
656 .calendar {
657 /*padding: 0 0.5em 0.4em;*/
658 spacing-rows: 0px;
659 spacing-columns: 0px;
660 }
661
662 .calendar-events-main-box {
663 height: 300px;
664 margin-right: 0.8em;
665 padding: .5em;
666 min-width: 350px;
667 border: none;
668 border-radius: 0;
669 }
670
671 .calendar-events-no-events-box {
672 }
673
674 .calendar-events-no-events-button {
675 border-radius: 3px;
676 margin: 0;
677 padding: 7px 10px;
678
679 &:hover {
680 background-color: transparentize(black, 0.9);
681 }
682 }
683
684 .calendar-events-no-events-icon {
685 color: $fg_color;
686 }
687
688 .calendar-events-no-events-label {
689 font-size: 1em;
690 color: $fg_color;
691 font-weight: bold;
692 text-align: center;
693 margin-top: 10px;
694 }
695
696 .calendar-events-date-label {
697 padding: .2em 0 .75em .2em;
698 font-size: 1em;
699 color: $fg_color;
700 font-weight: bold;
701 text-align: center;
702 }
703
704 .calendar-events-event-container {
705 padding: .1em;
706 }
707
708 .calendar-events-scrollbox {
709 }
710
711 .calendar-events-main-box .separator {
712 -margin-horizontal: 1em;
713 -gradient-height: 0;
714 -gradient-start: #000;
715 -gradient-end: #000;
716 }
717
718 .calendar-event-button {
719 margin: 6px 0 6px 0;
720 background-color: $shell_message_background_color;
721 border: 1px solid $shell_message_border_color;
722 border-radius: 2px;
723
724 &:hover {
725 color: $fg_color;
726 border-color: $selected_bg_color;
727 }
728 }
729
730 .calendar-event-color-strip {
731 width: 2px;
732 border-radius: 2px 0 0 2px;
733 box-shadow: 100px 0 $selected_bg_color inset;
734 }
735
736 .calendar-event-row-content {
737 margin: 7px;
738 }
739
740 .calendar-event-time-past,
741 .calendar-event-time-present,
742 .calendar-event-time-future {
743 font-weight: bold;
744 text-align: left;
745 margin-bottom: .6em;
746 }
747
748 .calendar-event-time-past {
749 }
750
751 .calendar-event-time-present {
752 }
753
754 .calendar-event-time-present:all-day {
755 }
756
757 .calendar-event-time-future {
758 }
759
760 .calendar-event-countdown {
761 color: $fg_color;
762 font-weight: bold;
763 text-align: right;
764 margin-bottom: .6em;
765 }
766
767 .calendar-event-countdown:soon {
768 }
769
770 .calendar-event-countdown:imminent {
771 color: $warning_color;
772 }
773
774 .calendar-event-countdown:current {
775 color: $success_color;
776 }
777
778 .calendar-event-summary {
779 color: $fg_color;
780 text-align: left;
781 width: 200px;
782 }
783
784 .calendar-today-home-button,
785 .calendar-today-home-button-enabled {
786 border-radius: 3px;
787 margin: 0;
788 padding: 7px 10px;
789 }
790
791 .calendar-today-home-button-enabled:hover {
792 background-color: transparentize(black, 0.9);
793 }
794
795 .calendar-today-day-label {
796 font-size: 1.5em;
797 color: $fg_color;
798 font-weight: bold;
799 text-align: center;
800 padding-bottom: .1em;
801 }
802
803 .calendar-today-date-label {
804 font-size: 1em;
805 color: $fg_color;
806 font-weight: bold;
807 text-align: center;
808 }
809
810 .calendar-month-label {
811 color: $fg_color;
812 font-weight: bold;
813 padding: 8px 0;
814 }
815
816 .calendar-change-month-back,
817 .calendar-change-month-forward {
818 width: 16px;
819 height: 16px;
820 }
821
822 //arrow back
823 .calendar-change-month-back {
824 background-image: url("common-assets/misc/calendar-arrow-left.svg");
825
826 &:focus, &:hover { background-image: url("common-assets/misc/calendar-arrow-left-hover.svg"); }
827
828 &:active { background-image: url("common-assets/misc/calendar-arrow-left.svg"); }
829
830 &:rtl {
831 background-image: url("common-assets/misc/calendar-arrow-right.svg");
832
833 &:focus, &:hover { background-image: url("common-assets/misc/calendar-arrow-right-hover.svg"); }
834
835 &:active { background-image: url("common-assets/misc/calendar-arrow-right.svg"); }
836 }
837 }
838
839 //arrow forward
840 .calendar-change-month-forward {
841 background-image: url("common-assets/misc/calendar-arrow-right.svg");
842
843 &:focus, &:hover { background-image: url("common-assets/misc/calendar-arrow-right-hover.svg"); }
844
845 &:active { background-image: url("common-assets/misc/calendar-arrow-right.svg"); }
846
847 &:rtl {
848 background-image: url("common-assets/misc/calendar-arrow-left.svg");
849
850 &:focus, &:hover { background-image: url("common-assets/misc/calendar-arrow-left-hover.svg"); }
851
852 &:active { background-image: url("common-assets/misc/calendar-arrow-left.svg"); }
853 }
854 }
855
856 .calendar-day-event-dot-box {
857 margin-top: 1.7em;
858
859 /* any other way do do something like this? */
860 max-rows: 1;
861 }
862
863 .calendar-day-event-dot {
864 margin: 1px;
865 border-radius: 2px;
866 width: 4px;
867 height: 4px;
868 }
869
870 .calendar-day-base {
871 font-size: 0.9em;
872 text-align: center;
873 width: 2.5em;
874 height: 2.5em;
875 padding: 0.1em;
876 margin: 0.1em;
877 border-radius: 999px;
878 }
879
880 .calendar-day-heading {
881 color: transparentize($fg_color, 0.15);
882 margin-top: 1em;
883 font-size: 0.7em;
884 width: 2.5em;
885 height: 2em;
886 }
887
888 .calendar-day {
889 border-width: 0;
890 color: transparentize($fg_color, 0.2);
891 }
892
893 .calendar-day-top {
894 border-top-width: 0;
895 }
896
897 .calendar-day-left {
898 border-left-width: 0;
899 }
900
901 .calendar-nonwork-day {
902 color: $fg_color;
903 background-color: transparent;
904 font-weight: bold;
905 border-width: 0;
906 }
907
908 .calendar-today,
909 .calendar-today:active,
910 .calendar-today:focus,
911 .calendar-today:hover,
912 .calendar-today:selected {
913 font-weight: bold;
914 color: $selected_fg_color;
915 background-color: $selected_bg_color;
916 border-width: 0;
917 }
918
919 .calendar-other-month-day {
920 color: transparentize($fg_color, 0.7);
921 opacity: 1;
922 }
923
924 .calendar-not-today {
925 color: transparentize($fg_color, 0.2);
926
927 &:hover, &:focus { background-color: transparentize(black, 0.9); }
928 &:selected {
929 color: $fg_color;
930 background-color: transparentize(black, 0.85);
931 }
932 }
933
934 .calendar-week-number {
935 color: transparentize($fg_color, 0.3);
936 font-size: 0.7em;
937 width: 2.5em;
938 height: 2em;
939 padding: 1.2em 0 0;
940 text-align: center;
941 }
942
943 //
944 // Notifications
945 //
946 #notification {
947 border-radius: 3px;
948 border-image: url("common-assets/misc/bg.svg") 9 9 9 9;
949 padding: 13px;
950 spacing-rows: 10px;
951 spacing-columns: 10px;
952 margin-from-right-edge-of-screen: 20px;
953 width: 34em;
954 color: $osd_fg_color;
955
956 .menu &,
957 .popup-menu & {
958 &, &.multi-line-notification { color: $fg_color; }
959 border-image: url("#{$asset_path}/misc/message.svg") 9 9 9 9;
960
961 .notification-button, .notification-icon-button {
962 @extend %button;
963 padding: 5px;
964 }
965
966 StEntry { @extend %entry; }
967 }
968
969 &.multi-line-notification {
970 padding-bottom: 13px;
971 color: $osd_fg_color;
972 }
973
974 &-scrollview {
975 max-height: 10em;
976
977 > .top-shadow, > .bottom-shadow { height: 1em; }
978
979 &:ltr > StScrollBar { padding-left: 6px; }
980 &:rtl > StScrollBar { padding-right: 6px; }
981 }
982
983 &-body { spacing: 5px; }
984 &-actions { spacing: 10px; }
985 }
986
987 .notification {
988
989 &-with-image {
990 min-height: 159px;
991 color: $osd_fg_color;
992 }
993
994 &-button, &-icon-button {
995 @extend %osd_button;
996 padding: 5px;
997 }
998
999 &-icon-button > StIcon { icon-size: 36px; }
1000
1001 StEntry { @extend %osd_entry; }
1002 }
1003
1004 //
1005 // Alt Tab
1006 ///
1007 #altTabPopup {
1008 padding: 8px;
1009 spacing: 16px;
1010 }
1011
1012 .switcher-list {
1013 color: $osd_fg_color;
1014 background: none;
1015 border: none;
1016 border-image: url("common-assets/misc/bg.svg") 9 9 9 9;
1017 border-radius: 3px;
1018 padding: 20px;
1019
1020 > StBoxLayout {
1021 padding: 4px;
1022 }
1023
1024 &-item-container { spacing: 8px; }
1025
1026 .item-box {
1027 padding: 8px;
1028 border-radius: 2px;
1029
1030 &:outlined {
1031 padding: 8px;
1032 border: 1px solid $selected_bg_color;
1033 }
1034
1035 &:selected {
1036 color: $selected_fg_color;
1037 background-color: $selected_bg_color;
1038 border: 0px solid $selected_bg_color;
1039 }
1040 }
1041
1042 .thumbnail { width: 256px; }
1043
1044 .thumbnail-box {
1045 padding: 2px;
1046 spacing: 4px;
1047 }
1048 .separator {
1049 width: 1px;
1050 background: rgba(255,255,255,0.2);
1051 }
1052 }
1053
1054 .switcher-arrow {
1055 border-color: rgba(0,0,0,0);
1056 color: $osd_fg_color;
1057
1058 &:highlighted {
1059 border-color: rgba(0,0,0,0);
1060 color: $_shell_fg_color;
1061 }
1062 }
1063
1064 //.switcher-preview-backdrop { background-color: rgba(25,25,25,0.95); }
1065
1066 .thumbnail-scroll-gradient-left {
1067 background-color: rgba(0, 0, 0, 0);
1068 border-radius: 24px;
1069 border-radius-topright: 0px;
1070 border-radius-bottomright: 0px;
1071 width: 60px;
1072 }
1073
1074 .thumbnail-scroll-gradient-right {
1075 background-color: rgba(0, 0, 0, 0);
1076 border-radius: 24px;
1077 border-radius-topleft: 0px;
1078 border-radius-bottomleft: 0px;
1079 width: 60px;
1080 }
1081
1082 //
1083 //Activities Ripples
1084 //
1085 .ripple-box {
1086 width: 104px;
1087 height: 104px;
1088 background-image: url("common-assets/misc/corner-ripple.svg");
1089 background-size: contain;
1090 }
1091
1092 //
1093 // Modal dialogs
1094 //
1095 .lightbox { background-color: rgba(0, 0, 0, 0.4); }
1096 .flashspot { background-color: white; }
1097
1098 .modal-dialog {
1099 color: $fg_color;
1100 background-color: transparentize($bg_color, 1);
1101 border: none;
1102 border-image: url("#{$asset_path}/misc/modal.svg") 9 9 9 67;
1103 padding: 0 5px 6px 5px;
1104
1105 > StBoxLayout:first-child {
1106 padding: 20px 10px 10px 10px;
1107 }
1108
1109 &-button-box {
1110 spacing: 0;
1111 margin: 0px;
1112 padding: 14px 10px;
1113 background: none;
1114 border: none;
1115 border-image: url("#{$asset_path}/misc/button-box.svg") 9 9 9 9;
1116
1117 .modal-dialog-button {
1118 padding-top: 0;
1119 padding-bottom: 0;
1120 height: 30px;
1121
1122 @extend %osd_button;
1123 }
1124 }
1125 }
1126
1127 .confirm-dialog-title {
1128 font-size: 0;
1129 padding-bottom: 0;
1130 }
1131
1132 .workspace-osd {
1133 text-align: center;
1134 font-weight: bold;
1135 padding: 16px;
1136 color: $_shell_fg_color;
1137 border-image: url("common-assets/misc/osd.svg") 9 9 9 9;
1138 }
1139
1140 //
1141 // Run dialog
1142 //
1143 .run-dialog {
1144 padding: 0px 15px 10px 15px;
1145 border-image: url("common-assets/misc/bg.svg") 9 9 9 9;
1146
1147 > * { padding: 0; }
1148
1149 &-label {
1150 font-size: 0;
1151 font-weight: bold;
1152 color: $osd_fg_color;
1153 padding-bottom: 0;
1154 }
1155
1156 &-description {
1157 color: $osd_fg_color;
1158 padding-top: 15px;
1159 text-align: center;
1160
1161 &.error { color: $error_color; }
1162 }
1163
1164 &-completion-box {
1165 padding-left: 15px;
1166 font-size: 1.1em;
1167 }
1168 &-entry {
1169 width: 21em;
1170 padding: 7px;
1171 border-radius: 3px;
1172 caret-color: $osd_fg_color;
1173 selected-color: $selected_fg_color;
1174 selection-background-color: $selected_bg_color;
1175
1176 @include entry(osd);
1177
1178 &:focus { @include entry(osd-focus); }
1179 }
1180 .modal-dialog-button-box {
1181 border: none;
1182 border-image: none;
1183 box-shadow: none;
1184 background: none;
1185 background-gradient-direction: none;
1186 }
1187 }
1188
1189 //
1190 // Magnifier
1191 //
1192 .magnifier-zoom-region {
1193 border: 2px solid rgba(128, 0, 0, 1);
1194
1195 .full-screen { border-width: 0px; }
1196 }
1197
1198 //
1199 // On-Screen Keyboard
1200 //
1201 #keyboard {
1202 background-color: $osd_bg_color;
1203 border-width: 0;
1204 border-top-width: 1px;
1205 border-color: transparentize(black, 0.6);
1206 }
1207
1208 .keyboard-layout {
1209 spacing: 10px;
1210 padding: 10px;
1211 }
1212
1213 .keyboard-row {
1214 spacing: 15px;
1215 }
1216
1217 .keyboard-key {
1218 min-height: 2em;
1219 min-width: 2em;
1220 font-size: 1.5em;
1221 font-weight: bold;
1222 border-radius: 3px;
1223 box-shadow: none;
1224
1225 @include button(osd);
1226
1227 &:hover { @include button(osd-hover); }
1228 &:active, &:checked { @include button(osd-active); }
1229
1230 &:grayed { @include button(osd-insensitive); }
1231 }
1232
1233 .keyboard-subkeys { //long press on a key popup
1234 color: $osd_fg_color;
1235 padding: 5px;
1236 -arrow-border-radius: 2px;
1237 -arrow-background-color: $osd_bg_color;
1238 -arrow-border-width: 1px;
1239 -arrow-border-color: transparentize(black, 0.6);;
1240 -arrow-base: 20px;
1241 -arrow-rise: 10px;
1242 -boxpointer-gap: 5px;
1243 }
1244
1245 //
1246 // Cinnamon Specific Section
1247 //
1248
1249 //
1250 // Menu (menu.js)
1251 //
1252 .menu {
1253 &-favorites-box {
1254 padding: .8em;
1255 transition-duration: 300;
1256 background-color: $bg_color;
1257 border: 1px solid $borders_color;
1258 spacing: 1em;
1259 }
1260
1261 &-favorites-scrollbox {
1262 padding-bottom: 1em;
1263 border-bottom: 1px solid;
1264 border-color: $borders_color;
1265 }
1266
1267 &-favorites-button {
1268 padding: .8em;
1269 border: 1px solid rgba(0,0,0,0);
1270
1271 &:hover { @extend %button_hover; }
1272 }
1273
1274 &-categories-box { padding: 10px 30px 10px 30px; }
1275
1276 &-applications-inner-box { margin: 10px 10px 0 10px; }
1277 &-applications-outer-box { padding: 10px 10px 0 10px; }
1278
1279 &-application-button {
1280 padding: 7px;
1281 border: 1px solid rgba(0,0,0,0);
1282
1283 // This style is used in menu application buttons for applications which were newly installed
1284 &:highlighted { font-weight: bold; }
1285
1286 &-selected {
1287 padding: 7px;
1288 text-shadow: 0 0 0 rgba(0,0,0,0);
1289 @extend %button_hover;
1290
1291 &:highlighted { font-weight: bold; }
1292 }
1293
1294 &-label:ltr { padding-left: 5px; }
1295 &-label:rtl { padding-right: 5px; }
1296 }
1297
1298 &-category-button {
1299 padding: 7px;
1300 border: 1px solid rgba(0,0,0,0);
1301
1302 &-selected {
1303 padding: 7px;
1304 text-shadow: 0 0 0 rgba(0,0,0,0);
1305 @extend %button_hover;
1306 }
1307 &-greyed {
1308 padding: 7px;
1309 color: $insensitive_fg_color;
1310 border: 1px solid rgba(0,0,0,0);
1311
1312 & StIcon {
1313 opacity: 0.5;
1314 }
1315 }
1316
1317 &-label:ltr { padding-left: 5px; }
1318 &-label:rtl { padding-right: 5px; }
1319 }
1320
1321 // Name and description of the currently hovered item in the menu
1322 // This appears on the bottom right hand corner of the menu
1323 &-selected-app-box {
1324 padding-right: 30px;
1325 padding-left: 28px;
1326 text-align: right;
1327 height: 2.2em;
1328
1329 &:rtl {
1330 padding-top: 10px;
1331 height: 2.2em;
1332 }
1333 }
1334
1335 &-selected-app-title { font-weight: bold; }
1336
1337 &-selected-app-description { max-width: 150px; }
1338
1339 &-top-box {
1340 spacing: 10px;
1341 }
1342
1343 &-search-box:ltr { padding-left: 30px; }
1344 &-search-box-rtl { padding-right: 30px; }
1345 }
1346
1347 #menu-search-entry {
1348 width: 250px;
1349 font-weight: normal;
1350 caret-color: $fg_color;
1351
1352 @extend %entry;
1353 }
1354
1355 .menu-search-entry-icon {
1356 icon-size: 1em;
1357 color: $fg_color;
1358 }
1359
1360 /* Context menu (at the moment only for favorites) */
1361 .menu-context-menu {
1362 padding: 1em 1px;
1363 }
1364
1365 //
1366 // OSD
1367 //
1368 .info-osd {
1369 text-align: center;
1370 font-weight: bold;
1371 spacing: 1em;
1372 padding: 16px;
1373 color: $_shell_fg_color;
1374 border-image: url("common-assets/misc/osd.svg") 9 9 9 9;
1375 }
1376
1377 .osd-window {
1378 text-align: center;
1379 font-weight: bold;
1380 spacing: 1em;
1381 padding: 20px;
1382 margin: 32px;
1383 min-width: 64px;
1384 min-height: 64px;
1385
1386 color: $_shell_fg_color;
1387 background: none;
1388 border: none;
1389 border-radius: 5px;
1390 border-image: url("common-assets/misc/osd.svg") 9 9 9 9;
1391
1392 .osd-monitor-label { font-size: 3em; }
1393
1394 .level {
1395 padding: 0;
1396 height: 4px;
1397 background-color: transparentize(black, 0.5);
1398 border-radius: 2px;
1399 color: $selected_bg_color;
1400 }
1401
1402 .level-bar {
1403 background-color: $selected_bg_color;
1404 border-radius: 2px;
1405 }
1406 }
1407
1408 //
1409 // Window list (windowList.js)
1410 //
1411 .window-list {
1412
1413 &-box {
1414 spacing: 6px;
1415 padding-left: 10px;
1416
1417 .panel-bottom & { padding-top: 1px; }
1418 .panel-top & { padding-bottom: 1px; }
1419
1420 &.vertical {
1421 spacing: 4px;
1422 padding: 10px 0;
1423 }
1424
1425 &:highlight { background-color: transparentize($error_color, 0.5); }
1426 }
1427
1428 &-item-box {
1429 font-weight: bold;
1430 background-image: none;
1431 padding: 0;
1432 spacing: 0.5em;
1433 transition-duration: 100;
1434 color: transparentize($_shell_fg_color, 0.4);
1435
1436 &:hover {color: $_shell_fg_color;}
1437
1438 &:active,
1439 &:checked,
1440 &:focus,
1441 &:running {
1442 color: $_shell_fg_color;
1443
1444 .panel-bottom & { border-image: url("common-assets/panel/window-list-active-bottom.svg") 3 3 1 3; }
1445 .panel-top & { border-image: url("common-assets/panel/window-list-active-top.svg") 3 3 3 1; }
1446 .panel-left & { border-image: url("common-assets/panel/window-list-active-left.svg") 3 1 3 3; }
1447 .panel-right & { border-image: url("common-assets/panel/window-list-active-right.svg") 1 3 3 3; }
1448 }
1449
1450 &.top, &.bottom {
1451 padding: 0 0.5em;
1452 }
1453
1454 & .progress {
1455 background-gradient-start: $selected_bg_color;
1456 background-gradient-end: $selected_bg_color;
1457 }
1458 }
1459
1460 &-item-demands-attention {
1461 background-gradient-start: $warning_color;
1462 background-gradient-end: $warning_color;
1463 }
1464
1465 &-preview {
1466 background: none;
1467 border: none;
1468 border-image: url("common-assets/misc/bg.svg") 9 9 9 9;
1469 border-radius: 3px;
1470 font-size: 1em;
1471 color: $osd_fg_color;
1472 text-shadow: none;
1473 padding: 14px;
1474 spacing: 4px;
1475 }
1476 }
1477
1478 //
1479 // Grouped window list ([email protected])
1480 //
1481
1482 .grouped-window-list {
1483 &-box {
1484 spacing: 2px;
1485 }
1486 &-box.vertical {
1487 spacing: 3px;
1488 }
1489 &-thumbnail-label {
1490 padding-left: 4px;
1491 }
1492 &-number-label {
1493 font-size: 10px;
1494 z-index: 99;
1495 text-shadow: none;
1496 font-size: 1.1em;
1497 color: $osd_fg_color;
1498 padding: 0;
1499 }
1500 &-badge {
1501 border-radius: 256px;
1502 background-color: $osd_bg_color;
1503 margin: 0;
1504 }
1505 &-button-label {
1506 padding-left: 6px;
1507 padding-right: 6px;
1508 }
1509 &-thumbnail-alert {
1510 background: transparentize($error_color, 0.5);
1511 }
1512 &-item-box {
1513 spacing: 0.5em;
1514
1515 &.top,
1516 &.bottom {
1517 padding: 0 0.5em;
1518 }
1519
1520 &.left,
1521 &.right {
1522 padding: 0.3em 0;
1523 }
1524
1525 &:active {
1526 // Trick due to St limitations. It needs a background to draw a box-shadow
1527 background: rgba(0, 0, 0, 0.01);
1528
1529 .panel-bottom & { box-shadow: inset 0 -2px $selected_bg_color; }
1530 .panel-top & { box-shadow: inset 0 2px $selected_bg_color; }
1531 .panel-left & { box-shadow: inset 2px 0 $selected_bg_color; }
1532 .panel-right & { box-shadow: inset -2px 0 $selected_bg_color; }
1533
1534 &:hover {
1535 .panel-bottom & { box-shadow: inset 0 -2px $selected_fg_color; }
1536 .panel-top & { box-shadow: inset 0 2px $selected_fg_color; }
1537 .panel-left & { box-shadow: inset 2px 0 $selected_fg_color; }
1538 .panel-right & { box-shadow: inset -2px 0 $selected_fg_color; }
1539 }
1540 }
1541
1542 &:focus { background: transparentize(black, 0.8); }
1543
1544 &:checked,
1545 &:hover,
1546 & .progress {
1547 background: $selected_bg_color;
1548 }
1549 }
1550
1551 &-item-demands-attention {
1552 background: transparentize($error_color, 0.5);
1553 }
1554
1555 &-thumbnail-menu {
1556 border-image: url("common-assets/misc/bg.svg") 9 9 9 9;
1557 border-radius: 3px;
1558 color: $osd_fg_color;
1559 padding: 8px;
1560
1561 // HACK: Dont style GWL thumbnail-menus inside the topmost thumbnail-menu
1562 & .grouped-window-list-thumbnail-menu {
1563 border-image: none;
1564 padding: 0;
1565 }
1566
1567 & .item-box {
1568 padding: 10px;
1569 border-radius: 2px;
1570 spacing: 4px;
1571 }
1572 & .item-box:outlined {
1573 padding: 4px;
1574 border: 2px solid $selected_bg_color;
1575 }
1576 & .item-box:selected {
1577 background: $selected_bg_color;
1578 color: $selected_fg_color;
1579 }
1580 & .thumbnail {
1581 width: 256px;
1582 }
1583 & .separator {
1584 width: 1px;
1585 background: rgba(255,255,255,0.12);
1586 }
1587 }
1588 }
1589
1590 ///
1591 // Sound Applet (status/volume.js)
1592 //
1593 .sound-player {
1594 padding: 0 4px;
1595
1596 > StBoxLayout:first-child {
1597 padding: 5px 10px 12px 10px;
1598 spacing: 0.5em;
1599
1600 StButton:small {
1601 width: 16px;
1602 height: 16px;
1603 color: transparentize($fg_color, 0.4);
1604
1605 &:hover {color: $fg_color;}
1606 StIcon { icon-size: 16px; }
1607 }
1608 }
1609
1610 &-generic-coverart {
1611 background: rgba(0,0,0,0.2);
1612 }
1613
1614 &-overlay {
1615 width: 290px;
1616 height: 70px;
1617 padding: 15px;
1618 spacing: 0.5em;
1619 background: transparentize(darken($osd_bg_color, 5%), 0.1);
1620 border: 0px solid darken($osd_bg_color, 10%);
1621 border-bottom: 1px ;
1622 color: $osd_fg_color;
1623
1624 StButton {
1625 width: 18px;
1626 height: 18px;
1627 padding: 5px;
1628 color: $osd_fg_color;
1629 border-radius: 2px;
1630 border: 1px solid transparentize($osd_bg_color,1);
1631
1632 StIcon { icon-size: 16px; }
1633
1634 &:hover{ @include button(osd-hover); }
1635 &:active { @include button(active); }
1636 }
1637
1638 StBoxLayout {
1639 padding-top: 2px;
1640
1641 & > StLabel { padding-left: 10px; }
1642 }
1643 }
1644
1645 .slider {
1646 height: 0.5em;
1647 padding: 0;
1648 border: none;
1649 -slider-height: 0.5em;
1650 -slider-background-color: if($variant == 'light', $button_border, darken($bg_color, 5%));
1651 -slider-border-color: rgba(0,0,0,0);
1652 -slider-active-background-color: $selected_bg_color;
1653 -slider-active-border-color: rgba(0,0,0,0);
1654 -slider-border-width: 0px;
1655 -slider-handle-radius: 0px;
1656 }
1657 }
1658
1659 //
1660 // Spacer applet
1661 //
1662 .spacer-box {
1663 border-radius: 1px;
1664 border: 1px solid transparent;
1665
1666 &:highlight {
1667 background-color: #aa5555;
1668 }
1669
1670 &.vertical {}
1671
1672 &.edit-mode {
1673 border-radius: 1px;
1674 border: 1px symbolic;
1675 }
1676 }
1677
1678 //
1679 // Workspace Switcher applet (workspaceSwitcher.js)
1680 //
1681 /* Controls the styling when using the "Simple buttons" option */
1682 .panel-top .workspace-switcher,
1683 .panel-bottom .workspace-switcher {
1684 padding: 0 3px;
1685 }
1686
1687 .panel-left .workspace-switcher,
1688 .panel-right .workspace-switcher {
1689 padding: 3px;
1690 }
1691
1692 .workspace-button {
1693 color: $selected_fg_color;
1694 padding: 1px 8px 0px 8px;
1695 transition-duration: 300;
1696
1697 &:outlined, &:outlined:hover { color: $selected_bg_color; }
1698 &:hover { color: transparentize($selected_bg_color, 0.5) }
1699 &:shaded { color: transparentize($_shell_fg_color, 0.4); }
1700
1701 .vertical & { padding: 4px 0; }
1702 }
1703
1704 /* Controls the style when using the "Visual representation" option */
1705 .workspace-graph {
1706 padding: 3px;
1707 spacing: 3px;
1708 }
1709
1710 .workspace-graph .workspace {
1711 border: 1px solid transparentize(black, 0.6);
1712 background-gradient-direction: none;
1713 background-color: transparentize(black, 0.8);
1714 }
1715
1716 .workspace-graph .workspace:active {
1717 border: 1px solid $selected_bg_color;
1718 background-gradient-direction: none;
1719 }
1720
1721 .workspace-graph .workspace .windows {
1722 -active-window-background: lighten($panel_bg, 15%);
1723 -active-window-border: rgba(0, 0, 0, 0.8);
1724 -inactive-window-background: lighten($panel_bg, 15%);
1725 -inactive-window-border: rgba(0, 0, 0, 0.8);
1726 }
1727
1728 .workspace-graph .workspace:active .windows {
1729 -active-window-background: lighten($panel_bg, 20%);
1730 -active-window-border: rgba(0, 0, 0, 0.8);
1731 -inactive-window-background: lighten($panel_bg, 5%);
1732 -inactive-window-border: rgba(0, 0, 0, 0.8);
1733 }
1734
1735 //
1736 // Panel Launchers Applet (panelLaunchers.js)
1737 //
1738 .panel-launchers {
1739 padding-left: 7px;
1740 spacing: 6px;
1741
1742 &.vertical {
1743 padding: 2px 0;
1744 }
1745 }
1746
1747 .launcher {
1748 padding: 1px;
1749 transition-duration: 200;
1750
1751 & .icon-box {
1752 padding-top: 0;
1753 }
1754
1755 &:hover {
1756 background-gradient-direction: none;
1757 // Trick due to St limitations. It needs a background to draw a box-shadow
1758 background: rgba(0, 0, 0, 0.01);
1759
1760 .panel-bottom & { box-shadow: inset 0 -2px $selected_bg_color; }
1761 .panel-top & { box-shadow: inset 0 2px $selected_bg_color; }
1762 .panel-left & { box-shadow: inset 2px 0 $selected_bg_color; }
1763 .panel-right & { box-shadow: inset -2px 0 $selected_bg_color; }
1764 }
1765 }
1766
1767 //
1768 // Overview corner
1769 //
1770 #overview-corner {
1771 background-image: url("common-assets/misc/overview.png");
1772
1773 &:hover { background-image: url("common-assets/misc/overview-hover.png"); }
1774 }
1775
1776 //
1777 // Applets (applet.js)
1778 //
1779 .applet {
1780 &-separator {
1781 padding: 1px 4px;
1782
1783 .vertical & { padding: 4px 1px; }
1784 }
1785
1786 &-separator-line {
1787 width: 1px;
1788 background: rgba(255,255,255, 0.12);
1789
1790 &-vertical {
1791 border: 0px solid rgba(255,255,255,0.12);
1792 border-bottom-width: 1px;
1793 }
1794 }
1795
1796 &-box {
1797 padding-left: 3px;
1798 padding-right: 3px;
1799 color: $_shell_fg_color;
1800 text-shadow: none;
1801 transition-duration: 100;
1802
1803 &.vertical {
1804 padding: 3px 0;
1805 }
1806
1807 &:checked, &:hover {
1808 color: $selected_fg_color;
1809 background-color: $selected_bg_color;
1810 }
1811
1812 &:highlight {
1813 background-image: none;
1814 border-image: none;
1815 background-color: transparentize($error_color, 0.5);
1816 }
1817
1818 .panel-top &,
1819 .panel-bottom & {
1820 spacing: 3px;
1821 }
1822 }
1823
1824 &-label {
1825 font-weight: bold;
1826 color: $_shell_fg_color;
1827
1828 .applet-box:checked > &,
1829 .applet-box:hover > &,
1830 &:hover {
1831 color: $selected_fg_color;
1832 text-shadow: none;
1833 }
1834 }
1835
1836 &-icon {
1837 color: $_shell_fg_color;
1838 icon-size: 22px;
1839
1840 .applet-box:checked > &,
1841 .applet-box:hover > &,
1842 &:hover {
1843 color: $selected_fg_color;
1844 text-shadow: none;
1845 }
1846 }
1847
1848 }
1849
1850 //
1851 // User Applet
1852 //
1853 .user-icon {
1854 width: 32px;
1855 height: 32px;
1856 background-color: transparent;
1857 border: none;
1858 border-radius: 0;
1859 }
1860
1861 .user-label {
1862 color: $fg_color;
1863 font-size: 1em;
1864 font-weight: bold;
1865 margin: 0px;
1866 }
1867
1868 //
1869 // Desklets (desklet.js)
1870 //
1871 .desklet {
1872 color: $osd_fg_color;
1873
1874 &:highlight {
1875 background-color: transparentize($error_color, 0.5);
1876 }
1877
1878 &-with-borders {
1879 border-image: url("common-assets/misc/bg.svg") 9 9 9 9;
1880 color: $osd_fg_color;
1881 padding: 12px;
1882 padding-bottom: 16px;
1883
1884 &:highlight {
1885 background-color: transparentize($error_color, 0.5);
1886 }
1887 }
1888 &-with-borders-and-header {
1889 border-image: url("common-assets/misc/desklet.svg") 9 9 9 9;
1890 color: $osd_fg_color;
1891 border-radius: 0;
1892 border-radius-topleft: 0;
1893 border-radius-topright: 0;
1894 padding: 12px;
1895 padding-bottom: 17px;
1896
1897 &:highlight {
1898 background-color: transparentize($error_color, 0.5);
1899 }
1900 }
1901 &-header {
1902 border-image: url("common-assets/misc/desklet-header.svg") 9 9 9 9;
1903 color: $osd_fg_color;
1904 font-size: 1em;
1905 padding: 12px;
1906 padding-bottom: 6px;
1907 }
1908 &-drag-placeholder {
1909 border: 2px solid $selected_bg_color;
1910 background-color: transparentize($selected_bg_color, 0.7);
1911 }
1912 }
1913
1914 .photoframe-box {
1915 border-image: url("common-assets/misc/bg.svg") 9 9 9 9;
1916 color: $osd_fg_color;
1917 padding: 12px;
1918 padding-bottom: 16px;
1919 }
1920
1921 //
1922 // Notification Applet
1923 //
1924 .notification-applet-padding { padding: .5em 1em; }
1925
1926 .notification-applet-container { max-height: 100px; }
1927
1928 //
1929 // Tile Preview
1930 //
1931 .tile-preview, .tile-preview.snap,
1932 .tile-hud, .tile-hud.snap {
1933 background-color: transparentize($selected_bg_color, 0.7);
1934 border: 1px solid $selected_bg_color;
1935 }
1936
1937 //
1938 // Systray Applet
1939 //
1940 .systray {
1941 spacing: 6px;
1942 }
1943
1944 //
1945 // Pointer accessibility notifications
1946 //
1947 .pie-timer {
1948 width: 30px;
1949 height: 30px;
1950 -pie-border-width: 1px;
1951 -pie-border-color: $borders_color;
1952 -pie-background-color: $bg_color;
1953 }
1954
1955 //
1956 // Xkcd Desklet
1957 //
1958 .xkcd-box {
1959 padding: 6px;
1960 border: 0px;
1961 background-color: rgba(0,0,0,0);
1962 border-radius: 0px;
1963 }