Debian Codegraph @

common/cinnamon/3.8/sass/_common.scss

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