Debian Codegraph @

common/cinnamon/4.0/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 padding: .5em .7em;
463 spacing: .5em;
464 border-radius: 2px;
465 font-size: 9pt;
466 -cinnamon-caption-spacing: 8px;
467 max-width: 20em;
468
469 &:focus {
470 background-color: $selected_bg_color;
471 color: $selected_fg_color;
472 border: 1px solid $selected_bg_color;
473 }
474 }
475
476 .window-border {
477 border: 3px $selected_bg_color;
478 border-radius: 4px;
479 /* Cover rounded corners and some bad adjustment gaps */
480 box-shadow: 0 0 0 1px $selected_bg_color inset;
481 }
482
483 .overview-empty-placeholder {
484 text-align: center;
485 font-weight: bold;
486 spacing: 1em;
487 padding: 16px;
488 color: $_shell_fg_color;
489 border-image: url("common-assets/misc/osd.svg") 9 9 9 9;
490 }
491
492 .expo-workspaces-name-entry {
493 height: 1.4em;
494 border-radius: 2px;
495 font-size: 9pt;
496 padding: 5px 8px;
497 -cinnamon-caption-spacing: 4px;
498 transition-duration: 300;
499 @include entry(osd);
500
501 &:focus, &#selected {
502 border: 1px solid $selected_bg_color;
503 background-color: $selected_bg_color;
504 color: $selected_fg_color;
505 font-style: italic;
506 selection-background-color: $selected_fg_color;
507 selected-color: $selected_bg_color;
508 }
509
510 &:hover {
511 border: 1px solid $selected_bg_color;
512 }
513 }
514
515 .expo-workspace-thumbnail-frame {
516 border: 4px solid rgba(255,255,255,0.0);
517 background-color: rgba(255,255,255,0.0);
518 border-radius: 2px;
519
520 &#active {
521 border: 4px solid $selected_bg_color;
522 background-color: black;
523 border-radius: 2px;
524 }
525 }
526
527 .expo-background {
528 background-color: opacify($osd_bg_color, 1);
529 }
530
531 .workspace {
532 //&-controls { visible-height: 32px; }
533
534 &-thumbnails {
535 spacing: 26px;
536
537 &-background, &-background:rtl { padding: 8px; }
538 }
539
540 &-add-button {
541 background-image: url("common-assets/misc/add-workspace.svg");
542 height: 200px;
543 width: 35px;
544 transition-duration: 100;
545
546 &:hover {
547 background-image: url("common-assets/misc/add-workspace-hover.svg");
548 transition-duration: 100;
549 }
550 &:active {
551 background-image: url("common-assets/misc/add-workspace-active.svg");
552 transition-duration: 100;
553 }
554 }
555 &-overview-background-shade { background-color: rgba(0,0,0,0.5); }
556 }
557
558 .workspace-close-button,
559 .window-close {
560 background-image: url("common-assets/misc/close.svg");
561 background-size: 26px;
562 height: 26px;
563 width: 26px;
564 -cinnamon-close-overlap: 10px;
565
566 &:hover {
567 background-image: url("common-assets/misc/close-hover.svg");
568 background-size: 26px;
569 height: 26px;
570 width: 26px;
571 }
572 &:active {
573 background-image: url("common-assets/misc/close-active.svg");
574 background-size: 26px;
575 height: 26px;
576 width: 26px;
577 }
578 }
579
580 //.workspace-thumbnail-indicator {
581 // outline: 2px solid red;
582 // border: 1px solid green;
583 //}
584 //
585 //.window-close:rtl {
586 // -st-background-image-shadow: 2px 2px 6px rgba(0,0,0,0.5);
587 //}
588
589 .window-close-area {
590 background-image: url("common-assets/misc/trash-icon.svg");
591 height: 120px;
592 width: 400px;
593 }
594
595 //
596 // About Dialog (applet.js and desklet.js)
597 //
598 .about {
599 &-content {
600 width: 550px;
601 height: 250px;
602 spacing: 8px;
603 padding-bottom: 10px;
604 }
605 &-title {
606 font-size: 2em;
607 font-weight: bold;
608 }
609 &-uuid {
610 font-size: 10px;
611 color: #888;
612 }
613 &-icon {
614 padding-right: 20px;
615 padding-bottom: 14px;
616 }
617 &-scrollBox {
618 border: 1px solid $borders_color;
619 border-radius: 2px;
620 background-color: $base_color;
621 padding: 4px;
622 padding-right: 0;
623 border-radius: 0;
624
625 &-innerBox {
626 padding: 1.2em;
627 spacing: 1.2em;
628 }
629 }
630 &-description {
631 padding-top: 4px;
632 padding-bottom: 16px;
633 }
634 &-version {
635 padding-left: 7px;
636 font-size: 10px;
637 color: #888;
638 }
639 }
640
641
642 //
643 // Calendar
644 //
645 .calendar {
646 padding: .4em 1.75em;
647 spacing-rows: 0px;
648 spacing-columns: 0px;
649 }
650
651 .calendar-month-label {
652 color: $fg_color;
653 font-weight: bold;
654 padding: 8px 0;
655 }
656
657 .calendar-change-month-back,
658 .calendar-change-month-forward {
659 width: 16px;
660 height: 16px;
661 }
662
663 //arrow back
664 .calendar-change-month-back {
665 background-image: url("common-assets/misc/calendar-arrow-left.svg");
666
667 &:focus, &:hover { background-image: url("common-assets/misc/calendar-arrow-left-hover.svg"); }
668
669 &:active { background-image: url("common-assets/misc/calendar-arrow-left.svg"); }
670
671 &:rtl {
672 background-image: url("common-assets/misc/calendar-arrow-right.svg");
673
674 &:focus, &:hover { background-image: url("common-assets/misc/calendar-arrow-right-hover.svg"); }
675
676 &:active { background-image: url("common-assets/misc/calendar-arrow-right.svg"); }
677 }
678 }
679
680 //arrow forward
681 .calendar-change-month-forward {
682 background-image: url("common-assets/misc/calendar-arrow-right.svg");
683
684 &:focus, &:hover { background-image: url("common-assets/misc/calendar-arrow-right-hover.svg"); }
685
686 &:active { background-image: url("common-assets/misc/calendar-arrow-right.svg"); }
687
688 &:rtl {
689 background-image: url("common-assets/misc/calendar-arrow-left.svg");
690
691 &:focus, &:hover { background-image: url("common-assets/misc/calendar-arrow-left-hover.svg"); }
692
693 &:active { background-image: url("common-assets/misc/calendar-arrow-left.svg"); }
694 }
695 }
696
697 .datemenu-date-label {
698 padding: .4em 1.75em;
699 font-weight: bold;
700 text-align: center;
701 color: $fg_color;
702 border-radius: 2px;
703 }
704
705 .calendar-day-base {
706 font-size: 8pt;
707 text-align: center;
708 width: 2.5em;
709 height: 2.5em;
710 padding: 0.1em;
711 margin: 0.1em;
712 border-radius: 999px;
713 }
714
715 .calendar-day-heading {
716 color: transparentize($fg_color, 0.15);
717 margin-top: 1em;
718 font-size: 6pt;
719 width: 2.5em;
720 height: 2em;
721 }
722
723 .calendar-day {
724 border-width: 0;
725 color: transparentize($fg_color, 0.2);
726 }
727
728 .calendar-day-top {
729 border-top-width: 0;
730 }
731
732 .calendar-day-left {
733 border-left-width: 0;
734 }
735
736 .calendar-nonwork-day {
737 color: $fg_color;
738 background-color: transparent;
739 font-weight: bold;
740 border-width: 0;
741 }
742
743 .calendar-today,
744 .calendar-today:active,
745 .calendar-today:focus,
746 .calendar-today:hover {
747 font-weight: bold;
748 color: $selected_fg_color;
749 background-color: $selected_bg_color;
750 border-width: 0;
751 }
752
753 .calendar-other-month-day {
754 color: transparentize($fg_color, 0.7);
755 opacity: 1;
756 }
757
758 .calendar-week-number {
759 color: transparentize($fg_color, 0.3);
760 font-size: 6pt;
761 width: 2.5em;
762 height: 2em;
763 padding: 1.2em 0 0;
764 text-align: center;
765 }
766
767 //
768 // Notifications
769 //
770 #notification {
771 border-radius: 3px;
772 border-image: url("common-assets/misc/bg.svg") 9 9 9 9;
773 padding: 13px;
774 spacing-rows: 10px;
775 spacing-columns: 10px;
776 margin-from-right-edge-of-screen: 20px;
777 width: 34em;
778 color: $osd_fg_color;
779
780 .menu &,
781 .popup-menu & {
782 &, &.multi-line-notification { color: $fg_color; }
783 border-image: url("#{$asset_path}/misc/message.svg") 9 9 9 9;
784
785 .notification-button, .notification-icon-button {
786 @extend %button;
787 padding: 5px;
788 }
789
790 StEntry { @extend %entry; }
791 }
792
793 &.multi-line-notification {
794 padding-bottom: 13px;
795 color: $osd_fg_color;
796 }
797
798 &-scrollview {
799 max-height: 10em;
800
801 > .top-shadow, > .bottom-shadow { height: 1em; }
802
803 &:ltr > StScrollBar { padding-left: 6px; }
804 &:rtl > StScrollBar { padding-right: 6px; }
805 }
806
807 &-body { spacing: 5px; }
808 &-actions { spacing: 10px; }
809 }
810
811 .notification {
812
813 &-with-image {
814 min-height: 159px;
815 color: $osd_fg_color;
816 }
817
818 &-button, &-icon-button {
819 @extend %osd_button;
820 padding: 5px;
821 }
822
823 &-icon-button > StIcon { icon-size: 36px; }
824
825 StEntry { @extend %osd_entry; }
826 }
827
828 //
829 // Alt Tab
830 ///
831 #altTabPopup {
832 padding: 8px;
833 spacing: 16px;
834 }
835
836 .switcher-list {
837 color: $osd_fg_color;
838 background: none;
839 border: none;
840 border-image: url("common-assets/misc/bg.svg") 9 9 9 9;
841 border-radius: 3px;
842 padding: 20px;
843
844 > StBoxLayout {
845 padding: 4px;
846 }
847
848 &-item-container { spacing: 8px; }
849
850 .item-box {
851 padding: 8px;
852 border-radius: 2px;
853
854 &:outlined {
855 padding: 8px;
856 border: 1px solid $selected_bg_color;
857 }
858
859 &:selected {
860 color: $selected_fg_color;
861 background-color: $selected_bg_color;
862 border: 0px solid $selected_bg_color;
863 }
864 }
865
866 .thumbnail { width: 256px; }
867
868 .thumbnail-box {
869 padding: 2px;
870 spacing: 4px;
871 }
872 .separator {
873 width: 1px;
874 background: rgba(255,255,255,0.2);
875 }
876 }
877
878 .switcher-arrow {
879 border-color: rgba(0,0,0,0);
880 color: $osd_fg_color;
881
882 &:highlighted {
883 border-color: rgba(0,0,0,0);
884 color: $_shell_fg_color;
885 }
886 }
887
888 //.switcher-preview-backdrop { background-color: rgba(25,25,25,0.95); }
889
890 .thumbnail-scroll-gradient-left {
891 background-color: rgba(0, 0, 0, 0);
892 border-radius: 24px;
893 border-radius-topright: 0px;
894 border-radius-bottomright: 0px;
895 width: 60px;
896 }
897
898 .thumbnail-scroll-gradient-right {
899 background-color: rgba(0, 0, 0, 0);
900 border-radius: 24px;
901 border-radius-topleft: 0px;
902 border-radius-bottomleft: 0px;
903 width: 60px;
904 }
905
906 //
907 //Activities Ripples
908 //
909 .ripple-box {
910 width: 104px;
911 height: 104px;
912 background-image: url("common-assets/misc/corner-ripple.svg");
913 background-size: contain;
914 }
915
916 //
917 // Modal dialogs
918 //
919 .lightbox { background-color: rgba(0, 0, 0, 0.4); }
920 .flashspot { background-color: white; }
921
922 .modal-dialog {
923 color: $fg_color;
924 background-color: transparentize($bg_color, 1);
925 border: none;
926 border-image: url("#{$asset_path}/misc/modal.svg") 9 9 9 67;
927 padding: 0 5px 6px 5px;
928
929 > StBoxLayout:first-child {
930 padding: 20px 10px 10px 10px;
931 }
932
933 &-button-box {
934 spacing: 0;
935 margin: 0px;
936 padding: 14px 10px;
937 background: none;
938 border: none;
939 border-image: url("#{$asset_path}/misc/button-box.svg") 9 9 9 9;
940
941 .modal-dialog-button {
942 padding-top: 0;
943 padding-bottom: 0;
944 height: 30px;
945
946 @extend %osd_button;
947 }
948 }
949 }
950
951 //
952 // Run dialog
953 //
954 .run-dialog {
955 padding: 0px 15px 10px 15px;
956 border-image: url("common-assets/misc/bg.svg") 9 9 9 9;
957
958 > * { padding: 0; }
959
960 &-label {
961 font-size: 0;
962 font-weight: bold;
963 color: $osd_fg_color;
964 padding-bottom: 0;
965 }
966
967 &-error-label { color: $error_color; }
968
969 &-error-box {
970 padding-top: 15px;
971 spacing: 5px;
972 }
973 &-completion-box {
974 padding-left: 15px;
975 font-size: 10px;
976 }
977 &-entry {
978 width: 21em;
979 padding: 7px;
980 border-radius: 3px;
981 caret-color: $osd_fg_color;
982 selected-color: $selected_fg_color;
983 selection-background-color: $selected_bg_color;
984
985 @include entry(osd);
986
987 &:focus { @include entry(osd-focus); }
988 }
989 .modal-dialog-button-box {
990 border: none;
991 border-image: none;
992 box-shadow: none;
993 background: none;
994 background-gradient-direction: none;
995 }
996 }
997
998 /* CinnamonMountOperation Dialogs */
999 .cinnamon-mount-operation-icon {
1000 icon-size: 48px;
1001 }
1002
1003 .mount-password-reask {
1004 color: $warning_color;
1005 }
1006
1007 .show-processes-dialog,
1008 .mount-question-dialog {
1009 spacing: 24px;
1010
1011 &-subject {
1012 padding-top: 10px;
1013 padding-left: 17px;
1014 padding-bottom: 6px;
1015
1016 &:rtl {
1017 padding-left: 0px;
1018 padding-right: 17px;
1019 }
1020 }
1021 &-description {
1022 padding-left: 17px;
1023 width: 28em;
1024
1025 &:rtl { padding-right: 17px; }
1026 }
1027 }
1028
1029 .show-processes-dialog-app-list {
1030 max-height: 200px;
1031 padding-top: 24px;
1032 padding-left: 49px;
1033 padding-right: 32px;
1034
1035 &:rtl {
1036 padding-right: 49px;
1037 padding-left: 32px;
1038 }
1039
1040 &-item {
1041 color: #ccc;
1042
1043 &:hover { color: white }
1044
1045 &:ltr { padding-right: 1em; }
1046 &:rtl { padding-left: 1em; }
1047
1048 &-icon:ltr { padding-right: 17px; }
1049 &-icon:rtl { padding-left: 17px; }
1050
1051 &-name { font-size: 1.1em; }
1052 }
1053 }
1054
1055 //
1056 // Magnifier
1057 //
1058 .magnifier-zoom-region {
1059 border: 2px solid rgba(128, 0, 0, 1);
1060
1061 .full-screen { border-width: 0px; }
1062 }
1063
1064 //
1065 // On-Screen Keyboard
1066 //
1067 #keyboard {
1068 background-color: $osd_bg_color;
1069 border-width: 0;
1070 border-top-width: 1px;
1071 border-color: transparentize(black, 0.6);
1072 }
1073
1074 .keyboard-layout {
1075 spacing: 10px;
1076 padding: 10px;
1077 }
1078
1079 .keyboard-row {
1080 spacing: 15px;
1081 }
1082
1083 .keyboard-key {
1084 min-height: 2em;
1085 min-width: 2em;
1086 font-size: 14pt;
1087 font-weight: bold;
1088 border-radius: 3px;
1089 box-shadow: none;
1090
1091 @include button(osd);
1092
1093 &:hover { @include button(osd-hover); }
1094 &:active, &:checked { @include button(osd-active); }
1095
1096 &:grayed { @include button(osd-insensitive); }
1097 }
1098
1099 .keyboard-subkeys { //long press on a key popup
1100 color: $osd_fg_color;
1101 padding: 5px;
1102 -arrow-border-radius: 2px;
1103 -arrow-background-color: $osd_bg_color;
1104 -arrow-border-width: 1px;
1105 -arrow-border-color: transparentize(black, 0.6);;
1106 -arrow-base: 20px;
1107 -arrow-rise: 10px;
1108 -boxpointer-gap: 5px;
1109 }
1110
1111 //
1112 // Cinnamon Specific Section
1113 //
1114
1115 //
1116 // Menu (menu.js)
1117 //
1118 .menu {
1119 &-favorites-box {
1120 padding: .8em;
1121 transition-duration: 300;
1122 background-color: $bg_color;
1123 border: 1px solid $borders_color;
1124 spacing: 1em;
1125 }
1126
1127 &-favorites-scrollbox {
1128 padding-bottom: 1em;
1129 border-bottom: 1px solid;
1130 border-color: $borders_color;
1131 }
1132
1133 &-favorites-button {
1134 padding: .8em;
1135 border: 1px solid rgba(0,0,0,0);
1136
1137 &:hover { @extend %button_hover; }
1138 }
1139
1140 &-categories-box { padding: 10px 30px 10px 30px; }
1141
1142 &-applications-inner-box,
1143 &-applications-outer-box { padding: 10px 10px 0 10px; }
1144
1145 &-application-button {
1146 padding: 7px;
1147 border: 1px solid rgba(0,0,0,0);
1148
1149 // This style is used in menu application buttons for applications which were newly installed
1150 &:highlighted { font-weight: bold; }
1151
1152 &-selected {
1153 padding: 7px;
1154 text-shadow: 0 0 0 rgba(0,0,0,0);
1155 @extend %button_hover;
1156
1157 &:highlighted { font-weight: bold; }
1158 }
1159
1160 &-label:ltr { padding-left: 5px; }
1161 &-label:rtl { padding-right: 5px; }
1162 }
1163
1164 &-category-button {
1165 padding: 7px;
1166 border: 1px solid rgba(0,0,0,0);
1167
1168 &-selected {
1169 padding: 7px;
1170 text-shadow: 0 0 0 rgba(0,0,0,0);
1171 @extend %button_hover;
1172 }
1173 &-greyed {
1174 padding: 7px;
1175 color: $insensitive_fg_color;
1176 border: 1px solid rgba(0,0,0,0);
1177
1178 & StIcon {
1179 opacity: 0.5;
1180 }
1181 }
1182
1183 &-label:ltr { padding-left: 5px; }
1184 &-label:rtl { padding-right: 5px; }
1185 }
1186
1187 // Name and description of the currently hovered item in the menu
1188 // This appears on the bottom right hand corner of the menu
1189 &-selected-app-box {
1190 padding-right: 30px;
1191 padding-left: 28px;
1192 text-align: right;
1193 height: 30px;
1194
1195 &:rtl {
1196 padding-top: 10px;
1197 height: 30px;
1198 }
1199 }
1200
1201 &-selected-app-title { font-weight: bold; }
1202
1203 &-selected-app-description { max-width: 150px; }
1204
1205 &-top-box {
1206 spacing: 10px;
1207 }
1208
1209 &-search-box:ltr { padding-left: 30px; }
1210 &-search-box-rtl { padding-right: 30px; }
1211 }
1212
1213 #menu-search-entry {
1214 width: 250px;
1215 font-weight: normal;
1216 caret-color: $fg_color;
1217
1218 @extend %entry;
1219 }
1220
1221 .menu-search-entry-icon {
1222 icon-size: 1em;
1223 color: $fg_color;
1224 }
1225
1226 /* Context menu (at the moment only for favorites) */
1227 .menu-context-menu {
1228 padding: 1em 1px;
1229 }
1230
1231 //
1232 // OSD
1233 //
1234 .info-osd {
1235 text-align: center;
1236 font-weight: bold;
1237 spacing: 1em;
1238 padding: 16px;
1239 color: $_shell_fg_color;
1240 border-image: url("common-assets/misc/osd.svg") 9 9 9 9;
1241 }
1242
1243 .osd-window {
1244 text-align: center;
1245 font-weight: bold;
1246 spacing: 1em;
1247 padding: 20px;
1248 margin: 32px;
1249 min-width: 64px;
1250 min-height: 64px;
1251
1252 color: $_shell_fg_color;
1253 background: none;
1254 border: none;
1255 border-radius: 5px;
1256 border-image: url("common-assets/misc/osd.svg") 9 9 9 9;
1257
1258 .osd-monitor-label { font-size: 3em; }
1259
1260 .level {
1261 padding: 0;
1262 height: 4px;
1263 background-color: transparentize(black, 0.5);
1264 border-radius: 2px;
1265 color: $selected_bg_color;
1266 }
1267
1268 .level-bar {
1269 background-color: $selected_bg_color;
1270 border-radius: 2px;
1271 }
1272 }
1273
1274 //
1275 // Window list (windowList.js)
1276 //
1277 .window-list {
1278
1279 &-box {
1280 spacing: 6px;
1281 padding-left: 10px;
1282
1283 .panel-bottom & { padding-top: 1px; }
1284 .panel-top & { padding-bottom: 1px; }
1285
1286 &.vertical {
1287 spacing: 4px;
1288 padding: 10px 0;
1289 }
1290
1291 &:highlight { background-color: transparentize($error_color, 0.5); }
1292 }
1293
1294 &-item-box {
1295 font-weight: bold;
1296 background-image: none;
1297 padding: 0;
1298 spacing: 0.5em;
1299 transition-duration: 100;
1300 color: transparentize($_shell_fg_color, 0.4);
1301
1302 &:hover {color: $_shell_fg_color;}
1303
1304 &:active,
1305 &:checked,
1306 &:focus,
1307 &:running {
1308 color: $_shell_fg_color;
1309
1310 .panel-bottom & { border-image: url("common-assets/panel/window-list-active-bottom.svg") 3 3 1 3; }
1311 .panel-top & { border-image: url("common-assets/panel/window-list-active-top.svg") 3 3 3 1; }
1312 .panel-left & { border-image: url("common-assets/panel/window-list-active-left.svg") 3 1 3 3; }
1313 .panel-right & { border-image: url("common-assets/panel/window-list-active-right.svg") 1 3 3 3; }
1314 }
1315
1316 &.top, &.bottom {
1317 padding: 0 0.5em;
1318 }
1319
1320 & .progress {
1321 background-gradient-start: $selected_bg_color;
1322 background-gradient-end: $selected_bg_color;
1323 }
1324 }
1325
1326 &-item-demands-attention {
1327 background-gradient-start: $warning_color;
1328 background-gradient-end: $warning_color;
1329 }
1330
1331 &-preview {
1332 background: none;
1333 border: none;
1334 border-image: url("common-assets/misc/bg.svg") 9 9 9 9;
1335 border-radius: 3px;
1336 font-size: 9pt;
1337 color: $osd_fg_color;
1338 text-shadow: none;
1339 padding: 14px;
1340 spacing: 4px;
1341 }
1342 }
1343
1344 //
1345 // Grouped window list ([email protected])
1346 //
1347
1348 .grouped-window-list {
1349 &-thumbnail-label {
1350 padding-left: 4px;
1351 }
1352 &-number-label {
1353 z-index: 99;
1354 text-shadow: none;
1355 font-size: 10px;
1356 color: $osd_fg_color;
1357 padding: 0;
1358 }
1359 &-badge {
1360 border-radius: 256px;
1361 background-color: $osd_bg_color;
1362 }
1363 &-button-label {
1364 padding-left: 4px;
1365 }
1366 &-thumbnail-alert {
1367 background: transparentize($error_color, 0.5);
1368 }
1369 &-item-box {
1370 spacing: 0.5em;
1371
1372 &.top,
1373 &.bottom {
1374 padding: 0 0.5em;
1375 }
1376
1377 &.left,
1378 &.right {
1379 padding: 0.3em 0;
1380 }
1381
1382 &:active {
1383 // Trick due to St limitations. It needs a background to draw a box-shadow
1384 background: rgba(0, 0, 0, 0.01);
1385
1386 .panel-bottom & { box-shadow: inset 0 -2px $selected_bg_color; }
1387 .panel-top & { box-shadow: inset 0 2px $selected_bg_color; }
1388 .panel-left & { box-shadow: inset 2px 0 $selected_bg_color; }
1389 .panel-right & { box-shadow: inset -2px 0 $selected_bg_color; }
1390
1391 &:hover {
1392 .panel-bottom & { box-shadow: inset 0 -2px $selected_fg_color; }
1393 .panel-top & { box-shadow: inset 0 2px $selected_fg_color; }
1394 .panel-left & { box-shadow: inset 2px 0 $selected_fg_color; }
1395 .panel-right & { box-shadow: inset -2px 0 $selected_fg_color; }
1396 }
1397 }
1398
1399 &:focus { background: transparentize(black, 0.8); }
1400
1401 &:checked,
1402 &:hover,
1403 & .progress {
1404 background: $selected_bg_color;
1405 }
1406 }
1407
1408 &-item-demands-attention {
1409 background: transparentize($error_color, 0.5);
1410 }
1411
1412 &-thumbnail-menu {
1413 & .item-box {
1414 padding: 10px;
1415 border-radius: 2px;
1416 spacing: 4px;
1417 }
1418 & .item-box:outlined {
1419 padding: 4px;
1420 border: 2px solid $selected_bg_color;
1421 }
1422 & .item-box:selected {
1423 background: none;
1424 }
1425 & .thumbnail {
1426 width: 256px;
1427 }
1428 & .separator {
1429 width: 1px;
1430 background: rgba(255,255,255,0.12);
1431 }
1432 }
1433 }
1434
1435 ///
1436 // Sound Applet (status/volume.js)
1437 //
1438 .sound-player {
1439 padding: 0 4px;
1440
1441 > StBoxLayout:first-child {
1442 padding: 5px 10px 12px 10px;
1443 spacing: 0.5em;
1444
1445 StButton:small {
1446 width: 16px;
1447 height: 16px;
1448 color: transparentize($fg_color, 0.4);
1449
1450 &:hover {color: $fg_color;}
1451 StIcon { icon-size: 16px; }
1452 }
1453 }
1454
1455 &-generic-coverart {
1456 background: rgba(0,0,0,0.2);
1457 }
1458
1459 &-overlay {
1460 width: 290px;
1461 height: 70px;
1462 padding: 15px;
1463 spacing: 0.5em;
1464 background: transparentize(darken($osd_bg_color, 5%), 0.1);
1465 border: 0px solid darken($osd_bg_color, 10%);
1466 border-bottom: 1px ;
1467 color: $osd_fg_color;
1468
1469 StButton {
1470 width: 18px;
1471 height: 18px;
1472 padding: 5px;
1473 color: $osd_fg_color;
1474 border-radius: 2px;
1475 border: 1px solid transparentize($osd_bg_color,1);
1476
1477 StIcon { icon-size: 16px; }
1478
1479 &:hover{ @include button(osd-hover); }
1480 &:active { @include button(active); }
1481 }
1482
1483 StBoxLayout {
1484 padding-top: 2px;
1485
1486 & > StLabel { padding-left: 10px; }
1487 }
1488 }
1489
1490 .slider {
1491 height: 0.5em;
1492 padding: 0;
1493 border: none;
1494 -slider-height: 0.5em;
1495 -slider-background-color: if($variant == 'light', $button_border, darken($bg_color, 5%));
1496 -slider-border-color: rgba(0,0,0,0);
1497 -slider-active-background-color: $selected_bg_color;
1498 -slider-active-border-color: rgba(0,0,0,0);
1499 -slider-border-width: 0px;
1500 -slider-handle-radius: 0px;
1501 }
1502 }
1503
1504 //
1505 // Workspace Switcher applet (workspaceSwitcher.js)
1506 //
1507 /* Controls the styling when using the "Simple buttons" option */
1508 .panel-top .workspace-switcher,
1509 .panel-bottom .workspace-switcher {
1510 padding: 0 3px;
1511 }
1512
1513 .panel-left .workspace-switcher,
1514 .panel-right .workspace-switcher {
1515 padding: 3px;
1516 }
1517
1518 .workspace-button {
1519 color: $selected_fg_color;
1520 padding: 1px 8px 0px 8px;
1521 transition-duration: 300;
1522
1523 &:outlined, &:outlined:hover { color: $selected_bg_color; }
1524 &:hover { color: transparentize($selected_bg_color, 0.5) }
1525
1526 .vertical & { padding: 4px 0; }
1527 }
1528
1529 /* Controls the style when using the "Visual representation" option */
1530 .workspace-graph {
1531 padding: 3px;
1532 spacing: 3px;
1533 }
1534
1535 .workspace-graph .workspace {
1536 border: 1px solid transparentize(black, 0.6);
1537 background-gradient-direction: none;
1538 background-color: transparentize(black, 0.8);
1539 }
1540
1541 .workspace-graph .workspace:active {
1542 border: 1px solid $selected_bg_color;
1543 background-gradient-direction: none;
1544 }
1545
1546 .workspace-graph .workspace .windows {
1547 -active-window-background: lighten($panel_bg, 15%);
1548 -active-window-border: rgba(0, 0, 0, 0.8);
1549 -inactive-window-background: lighten($panel_bg, 15%);
1550 -inactive-window-border: rgba(0, 0, 0, 0.8);
1551 }
1552
1553 .workspace-graph .workspace:active .windows {
1554 -active-window-background: lighten($panel_bg, 20%);
1555 -active-window-border: rgba(0, 0, 0, 0.8);
1556 -inactive-window-background: lighten($panel_bg, 5%);
1557 -inactive-window-border: rgba(0, 0, 0, 0.8);
1558 }
1559
1560 //
1561 // Panel Launchers Applet (panelLaunchers.js)
1562 //
1563 .panel-launchers {
1564 padding-left: 7px;
1565 spacing: 6px;
1566
1567 &.vertical {
1568 padding: 2px 0;
1569 }
1570 }
1571
1572 .launcher {
1573 padding: 1px;
1574 transition-duration: 200;
1575
1576 & .icon-box {
1577 padding-top: 0;
1578 }
1579
1580 &:hover {
1581 background-gradient-direction: none;
1582 // Trick due to St limitations. It needs a background to draw a box-shadow
1583 background: rgba(0, 0, 0, 0.01);
1584
1585 .panel-bottom & { box-shadow: inset 0 -2px $selected_bg_color; }
1586 .panel-top & { box-shadow: inset 0 2px $selected_bg_color; }
1587 .panel-left & { box-shadow: inset 2px 0 $selected_bg_color; }
1588 .panel-right & { box-shadow: inset -2px 0 $selected_bg_color; }
1589 }
1590 }
1591
1592 //
1593 // Overview corner
1594 //
1595 #overview-corner {
1596 background-image: url("common-assets/misc/overview.png");
1597
1598 &:hover { background-image: url("common-assets/misc/overview-hover.png"); }
1599 }
1600
1601 //
1602 // Applets (applet.js)
1603 //
1604 .applet {
1605 &-separator {
1606 padding: 1px 4px;
1607
1608 .vertical & { padding: 4px 1px; }
1609 }
1610
1611 &-separator-line {
1612 width: 1px;
1613 background: rgba(255,255,255, 0.12);
1614
1615 &-vertical {
1616 border: 0px solid rgba(255,255,255,0.12);
1617 border-bottom-width: 1px;
1618 }
1619 }
1620
1621 &-box {
1622 padding-left: 3px;
1623 padding-right: 3px;
1624 color: $_shell_fg_color;
1625 text-shadow: none;
1626 transition-duration: 100;
1627
1628 &.vertical {
1629 padding: 3px 0;
1630 }
1631
1632 &:checked, &:hover {
1633 color: $selected_fg_color;
1634 background-color: $selected_bg_color;
1635 }
1636
1637 &:highlight {
1638 background-image: none;
1639 border-image: none;
1640 background-color: transparentize($error_color, 0.5);
1641 }
1642
1643 .panel-top &,
1644 .panel-bottom & {
1645 spacing: 3px;
1646 }
1647 }
1648
1649 &-label {
1650 font-weight: bold;
1651 color: $_shell_fg_color;
1652
1653 .applet-box:checked > &,
1654 .applet-box:hover > &,
1655 &:hover {
1656 color: $selected_fg_color;
1657 text-shadow: none;
1658 }
1659 }
1660
1661 &-icon {
1662 color: $_shell_fg_color;
1663 icon-size: 22px;
1664
1665 .applet-box:checked > &,
1666 .applet-box:hover > &,
1667 &:hover {
1668 color: $selected_fg_color;
1669 text-shadow: none;
1670 }
1671 }
1672
1673 }
1674
1675 //
1676 // User Applet
1677 //
1678 .user-icon {
1679 width: 32px;
1680 height: 32px;
1681 background-color: transparent;
1682 border: none;
1683 border-radius: 0;
1684 }
1685
1686 .user-label {
1687 color: $fg_color;
1688 font-size: 1em;
1689 font-weight: bold;
1690 margin: 0px;
1691 }
1692
1693 //
1694 // Desklets (desklet.js)
1695 //
1696 .desklet {
1697 color: $osd_fg_color;
1698
1699 &:highlight {
1700 background-color: transparentize($error_color, 0.5);
1701 }
1702
1703 &-with-borders {
1704 border-image: url("common-assets/misc/bg.svg") 9 9 9 9;
1705 color: $osd_fg_color;
1706 padding: 12px;
1707 padding-bottom: 16px;
1708
1709 &:highlight {
1710 background-color: transparentize($error_color, 0.5);
1711 }
1712 }
1713 &-with-borders-and-header {
1714 border-image: url("common-assets/misc/desklet.svg") 9 9 9 9;
1715 color: $osd_fg_color;
1716 border-radius: 0;
1717 border-radius-topleft: 0;
1718 border-radius-topright: 0;
1719 padding: 12px;
1720 padding-bottom: 17px;
1721
1722 &:highlight {
1723 background-color: transparentize($error_color, 0.5);
1724 }
1725 }
1726 &-header {
1727 border-image: url("common-assets/misc/desklet-header.svg") 9 9 9 9;
1728 color: $osd_fg_color;
1729 font-size: 1em;
1730 padding: 12px;
1731 padding-bottom: 6px;
1732 }
1733 &-drag-placeholder {
1734 border: 2px solid $selected_bg_color;
1735 background-color: transparentize($selected_bg_color, 0.7);
1736 }
1737 }
1738
1739 .photoframe-box {
1740 border-image: url("common-assets/misc/bg.svg") 9 9 9 9;
1741 color: $osd_fg_color;
1742 padding: 12px;
1743 padding-bottom: 16px;
1744 }
1745
1746 //
1747 // Workspace OSD
1748 //
1749 .workspace-osd {
1750 text-align: center;
1751 font-weight: bold;
1752 spacing: 1em;
1753 padding: 16px;
1754 color: $_shell_fg_color;
1755 border-image: url("common-assets/misc/osd.svg") 9 9 9 9;
1756 }
1757
1758 //
1759 // Notification Applet
1760 //
1761 .notification-applet-padding { padding: .5em 1em; }
1762
1763 .notification-applet-container { max-height: 100px; }
1764
1765 //
1766 // Tile Preview
1767 //
1768 .tile-preview, .tile-preview.snap,
1769 .tile-hud, .tile-hud.snap {
1770 background-color: transparentize($selected_bg_color, 0.7);
1771 border: 1px solid $selected_bg_color;
1772 }
1773
1774 //
1775 // Systray Applet
1776 //
1777 .systray {
1778 spacing: 6px;
1779 }
1780
1781 //
1782 // Xkcd Desklet
1783 //
1784 .xkcd-box {
1785 padding: 6px;
1786 border: 0px;
1787 background-color: rgba(0,0,0,0);
1788 border-radius: 0px;
1789 }