]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/sass/include/_mixins.scss
8de23e64d94a1a42161bd37f3024d6a74d945a28
[github/Chocobozzz/PeerTube.git] / client / src / sass / include / _mixins.scss
1 @use 'sass:math';
2 @use '_variables' as *;
3
4 @mixin disable-default-a-behaviour {
5 &:hover,
6 &:focus,
7 &:active {
8 text-decoration: none !important;
9 outline: none !important;
10 }
11 }
12
13 @mixin disable-outline {
14 &:focus:not(.focus-visible) {
15 outline: none;
16 }
17 }
18
19 @mixin ellipsis {
20 white-space: nowrap;
21 overflow: hidden;
22 text-overflow: ellipsis;
23 }
24
25 @mixin ellipsis-multiline($font-size: 16px, $number-of-lines: 2) {
26 display: block;
27 /* Fallback for non-webkit */
28 display: -webkit-box; /* stylelint-disable-line value-no-vendor-prefix */
29 -webkit-line-clamp: $number-of-lines;
30 /* Fallback for non-webkit */
31 font-size: $font-size;
32 line-height: $font-size;
33 overflow: hidden;
34 text-overflow: ellipsis;
35 max-height: $font-size * $number-of-lines;
36 }
37
38 @mixin fade-text ($fade-after, $background-color) {
39 position: relative;
40 overflow: hidden;
41
42 &::after {
43 content: '';
44 pointer-events: none;
45 width: 100%;
46 height: 100%;
47 position: absolute;
48 left: 0;
49 top: 0;
50 background: linear-gradient(transparent $fade-after, $background-color);
51 }
52 }
53
54 @mixin peertube-word-wrap ($with-hyphen: true) {
55 word-break: break-word;
56 word-wrap: break-word;
57 overflow-wrap: break-word;
58
59 @if $with-hyphen {
60 hyphens: auto;
61 }
62 }
63
64 @mixin apply-svg-color ($color) {
65 ::ng-deep .feather,
66 ::ng-deep .material,
67 ::ng-deep .misc {
68 color: $color;
69 }
70 }
71
72 @mixin fill-svg-color ($color) {
73 ::ng-deep svg {
74 path {
75 fill: $color;
76 }
77 }
78 }
79
80 @mixin button-focus($color) {
81 &:focus,
82 &.focus-visible {
83 box-shadow: #{$focus-box-shadow-form} $color;
84 }
85 }
86
87 @mixin peertube-input-text($width) {
88 padding: 0 15px;
89 display: inline-block;
90 height: $button-height;
91 width: $width;
92 color: pvar(--inputForegroundColor);
93 background-color: pvar(--inputBackgroundColor);
94 border: 1px solid #C6C6C6;
95 border-radius: 3px;
96 font-size: 15px;
97
98 &::placeholder {
99 color: pvar(--inputPlaceholderColor);
100 }
101
102 &[readonly] {
103 opacity: 0.7;
104 }
105
106 @media screen and (max-width: calc(#{$width} + 40px)) {
107 width: 100%;
108 }
109 }
110
111 @mixin peertube-input-group($width) {
112 width: $width;
113 min-height: $button-height;
114 padding-top: 0;
115 padding-bottom: 0;
116 flex-wrap: nowrap;
117
118 .input-group-text {
119 font-size: 14px;
120 color: #808080;
121 }
122 }
123
124 @mixin peertube-textarea ($width, $height) {
125 @include peertube-input-text($width);
126
127 color: pvar(--textareaForegroundColor) !important;
128 background-color: pvar(--textareaBackgroundColor) !important;
129 height: $height;
130 padding: 5px 15px;
131 font-size: 15px;
132 }
133
134 @mixin orange-button {
135 @include button-focus(pvar(--mainColorLightest));
136
137 &,
138 &:active,
139 &:focus {
140 color: #fff;
141 background-color: pvar(--mainColor);
142 }
143
144 &:hover {
145 color: #fff;
146 background-color: pvar(--mainHoverColor);
147 }
148
149 &[disabled],
150 &.disabled {
151 cursor: default;
152 color: #fff;
153 background-color: #C6C6C6;
154 }
155
156 my-global-icon {
157 @include apply-svg-color(#fff);
158 }
159 }
160
161 @mixin orange-button-inverted {
162 @include button-focus(pvar(--mainColorLightest));
163
164 border: 2px solid pvar(--mainColor);
165 font-weight: $font-semibold;
166
167 &,
168 &:active,
169 &:focus {
170 color: pvar(--mainColor);
171 background-color: pvar(--mainBackgroundColor);
172 }
173
174 &:hover {
175 color: pvar(--mainColor);
176 background-color: pvar(--mainColorLightest);
177 }
178
179 &[disabled],
180 &.disabled {
181 cursor: default;
182 color: pvar(--mainColor);
183 background-color: #C6C6C6;
184 }
185
186 my-global-icon {
187 @include apply-svg-color(pvar(--mainColor));
188 }
189 }
190
191 @mixin tertiary-button {
192 @include button-focus($grey-button-outline-color);
193
194 color: pvar(--greyForegroundColor);
195 background-color: transparent;
196
197 &[disabled],
198 .disabled {
199 cursor: default;
200 }
201
202 my-global-icon {
203 @include apply-svg-color(transparent);
204 }
205 }
206
207 @mixin grey-button {
208 @include button-focus($grey-button-outline-color);
209
210 background-color: pvar(--greyBackgroundColor);
211 color: pvar(--greyForegroundColor);
212
213 &:hover,
214 &:active,
215 &:focus,
216 &[disabled],
217 &.disabled {
218 color: pvar(--greyForegroundColor);
219 background-color: pvar(--greySecondaryBackgroundColor);
220 }
221
222 &[disabled],
223 &.disabled {
224 cursor: default;
225 }
226
227 my-global-icon {
228 @include apply-svg-color(pvar(--greyForegroundColor));
229 }
230 }
231
232 @mixin danger-button {
233 $color: lighten($color: #c54130, $amount: 10);
234 $text: #fff6f5;
235
236 @include button-focus(scale-color($color, $alpha: -95%));
237
238 background-color: $color;
239 color: $text;
240
241 &:hover,
242 &:active,
243 &:focus,
244 &[disabled],
245 &.disabled {
246 background-color: lighten($color: $color, $amount: 10);
247 }
248
249 &[disabled],
250 &.disabled {
251 cursor: default;
252 }
253
254 my-global-icon {
255 @include apply-svg-color($text);
256 }
257 }
258
259 @mixin peertube-button {
260 padding: 0 13px;
261
262 border: 0;
263 font-weight: $font-semibold;
264 font-size: 15px;
265 height: $button-height;
266 line-height: $button-height;
267
268 // Because of primeng that redefines border-radius of all input[type="..."]
269 border-radius: 3px !important;
270
271 text-align: center;
272 cursor: pointer;
273
274 my-global-icon + * {
275 @include margin-right(4px);
276 }
277 }
278
279 @mixin peertube-button-link {
280 @include disable-default-a-behaviour;
281 @include peertube-button;
282
283 display: inline-block;
284 }
285
286 @mixin peertube-button-outline {
287 @include disable-default-a-behaviour;
288 @include peertube-button;
289
290 display: inline-block;
291 border: 1px solid;
292 }
293
294 @mixin button-with-icon($width: 20px, $margin-right: 3px, $top: -1px) {
295 display: inline-flex;
296 align-items: center;
297 line-height: normal !important;
298
299 my-global-icon {
300 @include margin-right($margin-right);
301
302 position: relative;
303 width: $width;
304 top: $top;
305 }
306 }
307
308 @mixin peertube-file {
309 position: relative;
310 overflow: hidden;
311 display: inline-block;
312 min-height: 30px;
313
314 input[type=file] {
315 position: absolute;
316 top: 0;
317 right: 0;
318 width: 100%;
319 height: 100%;
320 font-size: 100px;
321 text-align: end;
322 filter: alpha(opacity=0);
323 opacity: 0;
324 outline: none;
325 background: #fff;
326 cursor: inherit;
327 display: block;
328 }
329 }
330
331 @mixin peertube-button-file ($width) {
332 @include peertube-file;
333 @include peertube-button;
334
335 width: $width;
336 }
337
338 @mixin icon ($size) {
339 display: inline-block;
340 background-repeat: no-repeat;
341 background-size: contain;
342 width: $size;
343 height: $size;
344 vertical-align: middle;
345 cursor: pointer;
346 }
347
348 @mixin responsive-width ($width) {
349 width: $width;
350
351 @media screen and (max-width: $width) {
352 width: 100%;
353 }
354 }
355
356 @mixin peertube-select-container ($width) {
357 padding: 0;
358 margin: 0;
359 width: $width;
360 border-radius: 3px;
361 color: pvar(--inputForegroundColor);
362 background: pvar(--inputBackgroundColor);
363 position: relative;
364 font-size: 15px;
365 height: min-content;
366
367 &.disabled {
368 background-color: #E5E5E5;
369
370 select {
371 cursor: default;
372 }
373 }
374 select[disabled] {
375 background-color: #f9f9f9;
376 }
377
378 @media screen and (max-width: $width) {
379 width: 100%;
380 }
381
382 &::after {
383 top: 50%;
384 right: calc(0% + 15px);
385 content: ' ';
386 height: 0;
387 width: 0;
388 position: absolute;
389 pointer-events: none;
390 border: 5px solid rgba(0, 0, 0, 0);
391 border-top-color: #000;
392 margin-top: -2px;
393 z-index: 100;
394 }
395
396 select {
397 padding: 0 35px 0 12px;
398 position: relative;
399 border: 1px solid #C6C6C6;
400 background: transparent none;
401 appearance: none;
402 cursor: pointer;
403 height: $button-height;
404 text-overflow: ellipsis;
405 color: pvar(--mainForegroundColor);
406
407 &:focus {
408 outline: none;
409 }
410
411 &:-moz-focusring {
412 color: transparent;
413 text-shadow: 0 0 0 #000;
414 }
415
416 option {
417 color: #000;
418 }
419 }
420
421 &.peertube-select-button {
422 @include grey-button;
423
424 select,
425 option {
426 font-weight: $font-semibold;
427 color: pvar(--greyForegroundColor);
428 border: 0;
429 }
430 }
431 }
432
433 // Thanks: https://codepen.io/manabox/pen/raQmpL
434 @mixin peertube-radio-container {
435 [type=radio]:checked,
436 [type=radio]:not(:checked) {
437 position: absolute;
438 left: -9999px;
439 }
440
441 [type=radio]:checked + label,
442 [type=radio]:not(:checked) + label {
443 position: relative;
444 padding-left: 28px;
445 cursor: pointer;
446 line-height: 20px;
447 display: inline-block;
448 font-size: 15px;
449 font-weight: $font-regular;
450 }
451
452 [type=radio]:checked + label::before,
453 [type=radio]:not(:checked) + label::before {
454 content: '';
455 position: absolute;
456 left: 0;
457 top: 0;
458 width: 18px;
459 height: 18px;
460 border: 1px solid #C6C6C6;
461 border-radius: 100%;
462 background: #fff;
463 }
464
465 [type=radio]:checked + label::after,
466 [type=radio]:not(:checked) + label::after {
467 content: '';
468 width: 10px;
469 height: 10px;
470 background: pvar(--mainColor);
471 position: absolute;
472 top: 4px;
473 left: 4px;
474 border-radius: 100%;
475 transition: all 0.2s ease;
476 }
477 [type=radio]:not(:checked) + label::after {
478 opacity: 0;
479 transform: scale(0);
480 }
481 [type=radio]:checked + label::after {
482 opacity: 1;
483 transform: scale(1);
484 }
485
486 .form-group-description {
487 display: block;
488 margin-top: -7px;
489 margin-bottom: 10px;
490 margin-left: 29px;
491 }
492 }
493
494 @mixin peertube-checkbox ($border-width) {
495 opacity: 0;
496 position: absolute;
497
498 &:focus + span {
499 box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest);
500 }
501
502 + span {
503 position: relative;
504 width: 18px;
505 min-width: 18px;
506 height: 18px;
507 border: $border-width solid #C6C6C6;
508 border-radius: 3px;
509 vertical-align: middle;
510 cursor: pointer;
511
512 &::after {
513 content: '';
514 position: absolute;
515 top: calc(2px - #{$border-width});
516 left: 5px;
517 width: 5px;
518 height: 12px;
519 opacity: 0;
520 transform: rotate(45deg) scale(0);
521 border-right: 2px solid $bg-color;
522 border-bottom: 2px solid $bg-color;
523 }
524 }
525
526 &:checked + span {
527 border-color: transparent;
528 background: pvar(--mainColor);
529 animation: jelly 0.6s ease;
530
531 &::after {
532 opacity: 1;
533 transform: rotate(45deg) scale(1);
534 }
535 }
536
537 + span + span {
538 @include margin-left(5px);
539
540 font-size: 15px;
541 font-weight: $font-regular;
542 cursor: pointer;
543 display: inline;
544 }
545
546 &[disabled] + span,
547 &[disabled] + span + span {
548 opacity: 0.5;
549 cursor: default;
550 }
551 }
552
553 @mixin peertube-badge {
554 border-radius: 2px;
555 padding: 1/4em 1/2em;
556 text-transform: uppercase;
557 font-weight: $font-bold;
558 font-size: 12px;
559 letter-spacing: 1/3px;
560
561 &.badge-banned,
562 &.badge-red {
563 background-color: #ffcdd2;
564 color: #c63737;
565 }
566
567 &.badge-banned {
568 text-decoration: line-through;
569 }
570
571 &.badge-yellow {
572 background-color: #feedaf;
573 color: #8a5340;
574 }
575
576 &.badge-brown {
577 background-color: #ffd8b2;
578 color: #805b36;
579 }
580
581 &.badge-green {
582 background-color: #c8e6c9;
583 color: #256029;
584 }
585
586 &.badge-blue {
587 background-color: #b3e5fc;
588 color: #23547b;
589 }
590
591 &.badge-purple {
592 background-color: #eccfff;
593 color: #694382;
594 }
595 }
596
597 @mixin actor-avatar-size ($size) {
598 display: inline-block;
599 width: $size;
600 height: $size;
601 min-width: $size;
602 min-height: $size;
603 }
604
605 @mixin actor-counters ($separator-margin: 10px) {
606 color: pvar(--greyForegroundColor);
607 font-size: 16px;
608 display: flex;
609 align-items: center;
610
611 > *:not(:last-child)::after {
612 content: '•';
613 margin: 0 $separator-margin;
614 color: pvar(--mainColor);
615 }
616 }
617
618 @mixin chevron ($size, $border-width) {
619 border-style: solid;
620 border-width: $border-width $border-width 0 0;
621 content: '';
622 display: inline-block;
623 transform: rotate(-45deg);
624 height: $size;
625 width: $size;
626 }
627
628 @mixin chevron-right ($size, $border-width) {
629 @include chevron($size, $border-width);
630
631 left: 0;
632 transform: rotate(45deg);
633 }
634
635 @mixin chevron-left ($size, $border-width) {
636 @include chevron($size, $border-width);
637
638 left: 0.25em;
639 transform: rotate(-135deg);
640 }
641
642 @mixin in-content-small-title {
643 text-transform: uppercase;
644 color: pvar(--mainColor);
645 font-weight: $font-bold;
646 font-size: 13px;
647 }
648
649 @mixin settings-big-title {
650 text-transform: uppercase;
651 color: pvar(--mainColor);
652 font-weight: $font-bold;
653 font-size: 110%;
654 margin-bottom: 10px;
655 }
656
657 @mixin create-button {
658 @include peertube-button-link;
659 @include orange-button;
660 @include button-with-icon(20px, 5px, -1px);
661 }
662
663 @mixin row-blocks ($column-responsive: true, $min-height: 130px, $separator: true) {
664 display: flex;
665 min-height: $min-height;
666 padding-bottom: 20px;
667 margin-bottom: 20px;
668
669 @if $separator {
670 border-bottom: 1px solid #C6C6C6;
671 }
672
673 @media screen and (max-width: $small-view) {
674 @if $column-responsive {
675 flex-direction: column;
676 height: auto;
677 align-items: center;
678 } @else {
679 min-height: initial;
680 padding-bottom: 10px;
681 margin-bottom: 10px;
682 }
683 }
684 }
685
686 @mixin dropdown-with-icon-item {
687 padding: 6px 15px;
688
689 my-global-icon {
690 @include margin-right(10px);
691
692 width: 22px;
693 opacity: .7;
694 position: relative;
695 top: -2px;
696 }
697 }
698
699 @mixin progressbar($small: false) {
700 background-color: $grey-background-color;
701 display: flex;
702 height: 1rem;
703 overflow: hidden;
704 font-size: 0.75rem;
705 border-radius: 0.25rem;
706 position: relative;
707
708 span {
709 position: absolute;
710 color: $grey-foreground-color;
711
712 @if $small {
713 top: -1px;
714 }
715
716 &:nth-of-type(1) {
717 left: .2rem;
718 }
719 &:nth-of-type(2) {
720 right: .2rem;
721 }
722 }
723
724 .progress-bar {
725 color: pvar(--mainBackgroundColor);
726 background-color: pvar(--mainColor);
727 display: flex;
728 flex-direction: column;
729 justify-content: center;
730 text-align: center;
731 white-space: nowrap;
732 transition: width 0.6s ease;
733
734 &.secondary {
735 background-color: pvar(--secondaryColor);
736 }
737
738 &.red {
739 background-color: lighten($color: #c54130, $amount: 10);
740 }
741 }
742 }
743
744 @mixin breadcrumb {
745 display: flex;
746 flex-wrap: wrap;
747 padding: 0.75rem 1rem;
748 margin-bottom: 1rem;
749 list-style: none;
750 background-color: pvar(--submenuBackgroundColor);
751 border-radius: 0.25rem;
752
753 .breadcrumb-item {
754 display: flex;
755
756 a {
757 color: pvar(--mainColor);
758 }
759
760 + .breadcrumb-item {
761 @include padding-left(0.5rem);
762
763 &::before {
764 @include padding-right(0.5rem);
765
766 display: inline-block;
767 color: #6c757d;
768 content: '/';
769 }
770 }
771
772 &.active {
773 color: #6c757d;
774 }
775 }
776 }
777
778 @mixin dashboard {
779 display: flex;
780 flex-wrap: wrap;
781 margin: 0 -5px;
782
783 > div {
784 box-sizing: border-box;
785 flex: 0 0 percentage(math.div(1, 3));
786 padding: 0 5px;
787 margin-bottom: 10px;
788
789 > a {
790 @include disable-default-a-behaviour;
791
792 text-decoration: none;
793 color: inherit;
794 display: block;
795 font-size: 18px;
796
797 &:active,
798 &:focus,
799 &:hover {
800 opacity: .8;
801 }
802 }
803
804 > a,
805 > div {
806 padding: 20px;
807 background: pvar(--submenuBackgroundColor);
808 border-radius: 4px;
809 box-sizing: border-box;
810 height: 100%;
811 }
812 }
813
814 .dashboard-num,
815 .dashboard-text {
816 text-align: center;
817 font-size: 130%;
818 color: pvar(--mainForegroundColor);
819 line-height: 30px;
820 margin-bottom: 20px;
821 }
822
823 .dashboard-label {
824 font-size: 90%;
825 color: pvar(--inputPlaceholderColor);
826 text-align: center;
827 }
828 }
829
830 @mixin divider($color: pvar(--submenuBackgroundColor), $background: pvar(--mainBackgroundColor)) {
831 width: 95%;
832 border-top: .05rem solid $color;
833 height: .05rem;
834 text-align: center;
835 display: block;
836 position: relative;
837
838 &[data-content] {
839 margin: .8rem 0;
840
841 &::after {
842 background: $background;
843 color: $color;
844 content: attr(data-content);
845 display: inline-block;
846 font-size: .7rem;
847 padding: 0 .4rem;
848 transform: translateY(-.65rem);
849 }
850 }
851 }
852
853 @mixin chip {
854 --chip-radius: 5rem;
855 --chip-padding: .2rem .4rem;
856 $avatar-height: 1.2rem;
857
858 align-items: center;
859 border-radius: var(--chip-radius);
860 display: inline-flex;
861 font-size: 90%;
862 color: pvar(--mainForegroundColor);
863 height: $avatar-height;
864 line-height: 1rem;
865 margin: .1rem;
866 max-width: 320px;
867 overflow: hidden;
868 padding: var(--chip-padding);
869 text-decoration: none;
870 text-overflow: ellipsis;
871 vertical-align: middle;
872 white-space: nowrap;
873
874 &.rectangular {
875 --chip-radius: .2rem;
876 --chip-padding: .2rem .3rem;
877 }
878
879 my-actor-avatar {
880 @include margin-left(-.4rem);
881 @include margin-right(.2rem);
882 }
883
884 &.two-lines {
885 $avatar-height: 2rem;
886
887 height: $avatar-height;
888
889 my-actor-avatar {
890 display: inline-block;
891 }
892
893 div {
894 margin: 0 .1rem;
895
896 display: flex;
897 flex-direction: column;
898 height: $avatar-height;
899 justify-content: center;
900 }
901 }
902 }
903
904 // applies ratio (default to 16:9) to a child element (using $selector) only using
905 // an immediate's parent size. This allows to set a ratio without explicit
906 // dimensions, as width/height cannot be computed from each other.
907 @mixin block-ratio ($selector: 'div', $inverted-ratio: math.div(9, 16)) {
908 $padding-percent: percentage($inverted-ratio);
909
910 position: relative;
911 height: 0;
912 width: 100%;
913 padding-top: $padding-percent;
914
915 #{$selector} {
916 position: absolute;
917 width: 100%;
918 height: 100%;
919 top: 0;
920
921 @content;
922 }
923 }
924
925 @mixin sub-menu-h1 {
926 ::ng-deep h1 {
927 font-size: 1.3rem;
928 border-bottom: 2px solid $grey-background-color;
929 padding-bottom: 15px;
930 margin-bottom: $sub-menu-margin-bottom;
931
932 > span > my-global-icon,
933 > my-global-icon {
934 @include margin-right(10px);
935 width: 24px;
936 height: 24px;
937 vertical-align: top;
938 }
939
940 .badge {
941 @include margin-left(7px);
942 vertical-align: top;
943 }
944 }
945 }
946
947 @mixin play-icon ($width, $height) {
948 width: 0;
949 height: 0;
950
951 position: absolute;
952 left: 50%;
953 top: 50%;
954 transform: translate(-50%, -50%) scale(0.5);
955
956 border-top: #{math.div($height, 2)} solid transparent;
957 border-bottom: #{math.div($height, 2)} solid transparent;
958
959 border-left: $width solid rgba(255, 255, 255, 0.95);
960 }
961
962 @mixin on-small-main-col () {
963 :host-context(.main-col:not(.expanded)) {
964 @media screen and (max-width: $small-view + $menu-width) {
965 @content;
966 }
967 }
968
969 :host-context(.main-col.expanded) {
970 @media screen and (max-width: $small-view) {
971 @content;
972 }
973 }
974 }
975
976 @mixin on-mobile-main-col () {
977 :host-context(.main-col:not(.expanded)) {
978 @media screen and (max-width: $mobile-view + $menu-width) {
979 @content;
980 }
981 }
982
983 :host-context(.main-col.expanded) {
984 @media screen and (max-width: $mobile-view) {
985 @content;
986 }
987 }
988 }
989
990 @mixin margin ($block-start, $inline-end, $block-end, $inline-start) {
991 @include margin-left($inline-start);
992 @include margin-right($inline-end);
993
994 margin-top: $block-start;
995 margin-bottom: $block-end;
996 }
997
998 @mixin padding ($block-start, $inline-end, $block-end, $inline-start) {
999 @include padding-left($inline-start);
1000 @include padding-right($inline-end);
1001
1002 padding-top: $block-start;
1003 padding-bottom: $block-end;
1004 }
1005
1006 @mixin margin-left ($value) {
1007 @supports (margin-inline-start: $value) {
1008 margin-inline-start: $value;
1009 }
1010
1011 @supports not (margin-inline-start: $value) {
1012 margin-left: $value;
1013 }
1014 }
1015
1016 @mixin margin-right ($value) {
1017 @supports (margin-inline-end: $value) {
1018 margin-inline-end: $value;
1019 }
1020
1021 @supports not (margin-inline-end: $value) {
1022 margin-right: $value;
1023 }
1024 }
1025
1026 @mixin padding-left ($value) {
1027 @supports (padding-inline-start: $value) {
1028 padding-inline-start: $value;
1029 }
1030
1031 @supports not (padding-inline-start: $value) {
1032 padding-left: $value;
1033 }
1034 }
1035
1036 @mixin padding-right ($value) {
1037 @supports (padding-inline-end: $value) {
1038 padding-inline-end: $value;
1039 }
1040
1041 @supports not (padding-inline-end: $value) {
1042 padding-right: $value;
1043 }
1044 }