|
35 | 35 | // Generate RTL version
|
36 | 36 | $generate-rtl: if(map-has-key($utility, rtl), map-get($utility, rtl), false);
|
37 | 37 |
|
38 |
| - // // Add theme prefix |
39 |
| - // $theme-prefix: if(map-has-key($utility, theme-prefix), map-get($utility, theme-prefix), false); |
| 38 | + // Add theme prefix |
| 39 | + $theme-prefix: if(map-has-key($utility, theme-prefix), map-get($utility, theme-prefix), false); |
40 | 40 |
|
41 | 41 | @if map-get($utility, rfs) {
|
42 | 42 | // Inside the media query
|
|
60 | 60 | /* rtl:begin:remove */
|
61 | 61 | }
|
62 | 62 |
|
63 |
| - // .#{$property-class + $infix + $property-class-modifier} { |
64 |
| - // @each $property in $properties { |
65 |
| - // @if $generate-vars == true or $generate-only-vars == true { |
66 |
| - // @if $generate-only-vars { |
67 |
| - // @if $generate-rtl == true { |
68 |
| - // @include ltr-rtl($property, var(--#{$variable-prefix}#{$key}), null, null, if($enable-important-utilities, !important, null)); |
69 |
| - // } |
70 |
| - // @else { |
71 |
| - // #{$property}: var(--#{$variable-prefix}#{$key}) if($enable-important-utilities, !important, null); |
72 |
| - // } |
73 |
| - // } |
74 |
| - // @else { |
75 |
| - // @if $generate-rtl == true { |
76 |
| - // @include ltr-rtl($property, var(--#{$variable-prefix}#{$key}, $value), null, null, if($enable-important-utilities, !important, null)); |
77 |
| - // } |
78 |
| - // @else { |
79 |
| - // #{$property}: var(--#{$variable-prefix}#{$key}, $value) if($enable-important-utilities, !important, null); |
80 |
| - // } |
81 |
| - // } |
82 |
| - // } |
83 |
| - // @else { |
84 |
| - // @if $generate-rtl == true { |
85 |
| - // @include ltr-rtl($property, $value, null, null, if($enable-important-utilities, !important, null)); |
86 |
| - // } |
87 |
| - // @else { |
88 |
| - // #{$property}: $value if($enable-important-utilities, !important, null); |
89 |
| - // } |
90 |
| - // } |
91 | 63 | @if $is-css-var {
|
92 | 64 | .#{$property-class + $infix + $property-class-modifier} {
|
93 | 65 | --#{$variable-prefix}#{$property-class}: #{$value};
|
|
106 | 78 | --#{$variable-prefix}#{$local-var}: #{$value};
|
107 | 79 | }
|
108 | 80 | }
|
109 |
| - #{$property}: $value if($enable-important-utilities, !important, null); |
| 81 | + @if $generate-rtl == true { |
| 82 | + @include ltr-rtl($property, $value, null, null, if($enable-important-utilities, !important, null)); |
| 83 | + } |
| 84 | + @else { |
| 85 | + #{$property}: $value if($enable-important-utilities, !important, null); |
| 86 | + } |
110 | 87 | }
|
111 | 88 | }
|
112 | 89 |
|
|
0 commit comments