@nuvoui/core 1.3.5 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/nuvoui.css +322 -258
- package/dist/nuvoui.css.map +1 -1
- package/dist/nuvoui.min.css +23 -1
- package/dist/nuvoui.min.css.map +1 -1
- package/package.json +1 -1
- package/src/styles/base/_base.scss +148 -147
- package/src/styles/base/_reset.scss +41 -49
- package/src/styles/build.scss +25 -1
- package/src/styles/components/_tooltips.scss +271 -0
- package/src/styles/config/_borders.scss +15 -0
- package/src/styles/config/_breakpoints.scss +11 -0
- package/src/styles/config/_colors.scss +192 -0
- package/src/styles/config/_constants.scss +1 -0
- package/src/styles/config/_container-queries.scss +1 -0
- package/src/styles/config/_feature-flags.scss +33 -0
- package/src/styles/config/_layouts.scss +13 -0
- package/src/styles/config/_shadows.scss +9 -0
- package/src/styles/config/_spacing.scss +41 -0
- package/src/styles/config/_theme-validation.scss +59 -0
- package/src/styles/config/_typography.scss +45 -0
- package/src/styles/functions/_breakpoints.scss +15 -0
- package/src/styles/functions/_colors.scss +280 -0
- package/src/styles/functions/_css-vars.scss +33 -0
- package/src/styles/functions/_feature-flags.scss +20 -0
- package/src/styles/functions/_math.scss +72 -0
- package/src/styles/functions/_strings.scss +68 -0
- package/src/styles/functions/_types.scss +104 -0
- package/src/styles/functions/_units.scss +83 -0
- package/src/styles/index.scss +26 -5
- package/src/styles/layouts/_container.scss +28 -27
- package/src/styles/layouts/_flex.scss +340 -337
- package/src/styles/layouts/_grid.scss +131 -128
- package/src/styles/mixins-map.json +484 -479
- package/src/styles/mixins-map.scss +1 -1
- package/src/styles/themes/_theme.scss +230 -211
- package/src/styles/tools/_accessibility.scss +50 -0
- package/src/styles/tools/_container-queries.scss +98 -0
- package/src/styles/tools/_feature-support.scss +46 -0
- package/src/styles/tools/_media-queries.scss +70 -0
- package/src/styles/tools/_modern-layout.scss +49 -0
- package/src/styles/utilities/_alignment.scss +35 -34
- package/src/styles/utilities/_animations.scss +312 -311
- package/src/styles/utilities/_backdrop-filters.scss +194 -193
- package/src/styles/utilities/_borders.scss +243 -237
- package/src/styles/utilities/_colors.scss +16 -136
- package/src/styles/utilities/_cursor.scss +10 -10
- package/src/styles/utilities/_display.scss +192 -191
- package/src/styles/utilities/_helpers.scss +106 -106
- package/src/styles/utilities/_opacity.scss +27 -25
- package/src/styles/utilities/_position.scss +124 -121
- package/src/styles/utilities/_shadows.scss +171 -169
- package/src/styles/utilities/_sizing.scss +197 -194
- package/src/styles/utilities/_spacing.scss +230 -227
- package/src/styles/utilities/_transforms.scss +235 -234
- package/src/styles/utilities/_transitions.scss +136 -135
- package/src/styles/utilities/_typography.scss +242 -239
- package/src/styles/utilities/_z-index.scss +69 -68
- package/src/styles/abstracts/_config.scss +0 -254
- package/src/styles/abstracts/_functions.scss +0 -626
- package/src/styles/themes/refactored_borders.ipynb +0 -37
- package/src/styles/utilities/_container-queries.scss +0 -95
- package/src/styles/utilities/_media-queries.scss +0 -189
- package/src/styles/utilities/_tooltips.scss +0 -258
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
|
-
@use "../
|
|
3
|
-
@use "../
|
|
2
|
+
@use "../config/feature-flags" as config-flags;
|
|
3
|
+
@use "../config/breakpoints" as config-breakpoint;
|
|
4
|
+
@use "../functions/feature-flags" as fn-flags;
|
|
4
5
|
|
|
5
6
|
// Transform Utilities
|
|
6
7
|
// - Translate (X, Y, Z)
|
|
@@ -11,319 +12,319 @@
|
|
|
11
12
|
|
|
12
13
|
// Common transform function to avoid repetition
|
|
13
14
|
@mixin apply-transform {
|
|
14
|
-
|
|
15
|
+
transform: translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) translateZ(var(--translate-z, 0)) rotate(var(--rotate, 0)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) scaleZ(var(--scale-z, 1));
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
// Translation mixins
|
|
18
19
|
@mixin translate-x($value) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
// Store the value in a CSS variable
|
|
21
|
+
--translate-x: #{$value};
|
|
22
|
+
@include apply-transform;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
@mixin translate-y($value) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
// Store the value in a CSS variable
|
|
27
|
+
--translate-y: #{$value};
|
|
28
|
+
@include apply-transform;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
@mixin translate-z($value) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
// Store the value in a CSS variable
|
|
33
|
+
--translate-z: #{$value};
|
|
34
|
+
@include apply-transform;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
@mixin translate($x, $y: null) {
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
// Always set the x value
|
|
39
|
+
--translate-x: #{$x};
|
|
39
40
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
// Only set y if provided
|
|
42
|
+
@if $y {
|
|
43
|
+
--translate-y: #{$y};
|
|
44
|
+
}
|
|
44
45
|
|
|
45
|
-
|
|
46
|
+
@include apply-transform;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
// Scale mixins
|
|
49
50
|
@mixin scale-x($value) {
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
--scale-x: #{$value};
|
|
52
|
+
@include apply-transform;
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
@mixin scale-y($value) {
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
--scale-y: #{$value};
|
|
57
|
+
@include apply-transform;
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
@mixin scale($value) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
--scale-x: #{$value};
|
|
62
|
+
--scale-y: #{$value};
|
|
63
|
+
@include apply-transform;
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
// Rotation mixins
|
|
66
67
|
@mixin rotate($value) {
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
--rotate: #{$value};
|
|
69
|
+
@include apply-transform;
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
// Skew mixins
|
|
72
73
|
@mixin skew-x($value) {
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
--skew-x: #{$value};
|
|
75
|
+
@include apply-transform;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
@mixin skew-y($value) {
|
|
78
|
-
|
|
79
|
-
|
|
79
|
+
--skew-y: #{$value};
|
|
80
|
+
@include apply-transform;
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
// Transform origin
|
|
83
84
|
@mixin origin($value) {
|
|
84
|
-
|
|
85
|
+
transform-origin: $value;
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
// Common transform values
|
|
88
89
|
$translate-values: (
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
90
|
+
"0": 0,
|
|
91
|
+
"1": 0.25rem,
|
|
92
|
+
"2": 0.5rem,
|
|
93
|
+
"3": 0.75rem,
|
|
94
|
+
"4": 1rem,
|
|
95
|
+
"5": 1.25rem,
|
|
96
|
+
"6": 1.5rem,
|
|
97
|
+
"8": 2rem,
|
|
98
|
+
"10": 2.5rem,
|
|
99
|
+
"12": 3rem,
|
|
100
|
+
"16": 4rem,
|
|
101
|
+
"20": 5rem,
|
|
102
|
+
"25p": 25%,
|
|
103
|
+
"33p": 33.333%,
|
|
104
|
+
"50p": 50%,
|
|
105
|
+
"66p": 66.667%,
|
|
106
|
+
"75p": 75%,
|
|
107
|
+
"100p": 100%,
|
|
107
108
|
);
|
|
108
109
|
|
|
109
110
|
$negative-translate-values: (
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
111
|
+
"1": -0.25rem,
|
|
112
|
+
"2": -0.5rem,
|
|
113
|
+
"3": -0.75rem,
|
|
114
|
+
"4": -1rem,
|
|
115
|
+
"5": -1.25rem,
|
|
116
|
+
"6": -1.5rem,
|
|
117
|
+
"8": -2rem,
|
|
118
|
+
"10": -2.5rem,
|
|
119
|
+
"12": -3rem,
|
|
120
|
+
"16": -4rem,
|
|
121
|
+
"20": -5rem,
|
|
122
|
+
"25p": -25%,
|
|
123
|
+
"33p": -33.333%,
|
|
124
|
+
"50p": -50%,
|
|
125
|
+
"66p": -66.667%,
|
|
126
|
+
"75p": -75%,
|
|
127
|
+
"100p": -100%,
|
|
127
128
|
);
|
|
128
129
|
|
|
129
130
|
// Scale hover utilities
|
|
130
131
|
$scale-values: (
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
132
|
+
"0": 0,
|
|
133
|
+
"50": 0.5,
|
|
134
|
+
"75": 0.75,
|
|
135
|
+
"90": 0.9,
|
|
136
|
+
"95": 0.95,
|
|
137
|
+
"100": 1,
|
|
138
|
+
"105": 1.05,
|
|
139
|
+
"110": 1.1,
|
|
140
|
+
"125": 1.25,
|
|
141
|
+
"150": 1.5,
|
|
141
142
|
);
|
|
142
143
|
|
|
143
144
|
// Rotation hover utilities
|
|
144
145
|
$rotation-values: (
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
146
|
+
"0": 0deg,
|
|
147
|
+
"45": 45deg,
|
|
148
|
+
"90": 90deg,
|
|
149
|
+
"180": 180deg,
|
|
150
|
+
"270": 270deg,
|
|
150
151
|
);
|
|
151
152
|
|
|
152
153
|
// Separate map for negative rotations
|
|
153
154
|
$negative-rotation-values: (
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
"45": -45deg,
|
|
156
|
+
"90": -90deg,
|
|
157
|
+
"180": -180deg,
|
|
158
|
+
"270": -270deg,
|
|
158
159
|
);
|
|
159
160
|
|
|
160
161
|
// Origin hover utilities
|
|
161
162
|
$origin-values: (
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
163
|
+
"center": center,
|
|
164
|
+
"top": top,
|
|
165
|
+
"top-right": top right,
|
|
166
|
+
"right": right,
|
|
167
|
+
"bottom-right": bottom right,
|
|
168
|
+
"bottom": bottom,
|
|
169
|
+
"bottom-left": bottom left,
|
|
170
|
+
"left": left,
|
|
171
|
+
"top-left": top left,
|
|
171
172
|
);
|
|
172
173
|
|
|
173
174
|
// Generate utility classes
|
|
174
|
-
@if
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
#{VAR.$parent-selector} .translate-y-#{$key},
|
|
184
|
-
#{VAR.$parent-selector} .hover\:translate-y-#{$key}:hover,
|
|
185
|
-
#{VAR.$parent-selector} .group:hover .group-hover\:translate-y-#{$key} {
|
|
186
|
-
@include translate-y($value);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
@each $key, $value in $negative-translate-values {
|
|
190
|
-
#{VAR.$parent-selector} .-translate-x-#{$key},
|
|
191
|
-
#{VAR.$parent-selector} .hover\:-translate-x-#{$key}:hover,
|
|
192
|
-
#{VAR.$parent-selector} .group:hover .group-hover\:-translate-x-#{$key} {
|
|
193
|
-
@include translate-x($value);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
#{VAR.$parent-selector} .-translate-y-#{$key},
|
|
197
|
-
#{VAR.$parent-selector} .hover\:-translate-y-#{$key}:hover,
|
|
198
|
-
#{VAR.$parent-selector} .group:hover .group-hover\:-translate-y-#{$key} {
|
|
199
|
-
@include translate-y($value);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
175
|
+
@if fn-flags.feature-enabled("transforms") {
|
|
176
|
+
// Translate utilities
|
|
177
|
+
@each $key, $value in $translate-values {
|
|
178
|
+
#{config-flags.$parent-selector} .translate-x-#{$key},
|
|
179
|
+
#{config-flags.$parent-selector} .hover\:translate-x-#{$key}:hover,
|
|
180
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:translate-x-#{$key} {
|
|
181
|
+
@include translate-x($value);
|
|
182
|
+
}
|
|
202
183
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
184
|
+
#{config-flags.$parent-selector} .translate-y-#{$key},
|
|
185
|
+
#{config-flags.$parent-selector} .hover\:translate-y-#{$key}:hover,
|
|
186
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:translate-y-#{$key} {
|
|
187
|
+
@include translate-y($value);
|
|
188
|
+
}
|
|
208
189
|
}
|
|
190
|
+
@each $key, $value in $negative-translate-values {
|
|
191
|
+
#{config-flags.$parent-selector} .-translate-x-#{$key},
|
|
192
|
+
#{config-flags.$parent-selector} .hover\:-translate-x-#{$key}:hover,
|
|
193
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:-translate-x-#{$key} {
|
|
194
|
+
@include translate-x($value);
|
|
195
|
+
}
|
|
209
196
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
197
|
+
#{config-flags.$parent-selector} .-translate-y-#{$key},
|
|
198
|
+
#{config-flags.$parent-selector} .hover\:-translate-y-#{$key}:hover,
|
|
199
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:-translate-y-#{$key} {
|
|
200
|
+
@include translate-y($value);
|
|
201
|
+
}
|
|
214
202
|
}
|
|
215
203
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
// Rotation utilities
|
|
224
|
-
@each $key, $value in $rotation-values {
|
|
225
|
-
#{VAR.$parent-selector} .rotate-#{$key},
|
|
226
|
-
#{VAR.$parent-selector} .hover\:rotate-#{$key}:hover,
|
|
227
|
-
#{VAR.$parent-selector} .group:hover .group-hover\:rotate-#{$key} {
|
|
228
|
-
@include rotate($value);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
// Negative rotation utilities
|
|
233
|
-
@each $key, $value in $negative-rotation-values {
|
|
234
|
-
#{VAR.$parent-selector} .-rotate-#{$key},
|
|
235
|
-
#{VAR.$parent-selector} .hover\:-rotate-#{$key}:hover,
|
|
236
|
-
#{VAR.$parent-selector} .group:hover .group-hover\:-rotate-#{$key} {
|
|
237
|
-
@include rotate($value);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
// Origin utilities
|
|
242
|
-
@each $key, $value in $origin-values {
|
|
243
|
-
#{VAR.$parent-selector} .origin-#{$key},
|
|
244
|
-
#{VAR.$parent-selector} .hover\:origin-#{$key}:hover,
|
|
245
|
-
#{VAR.$parent-selector} .group:hover .group-hover\:origin-#{$key} {
|
|
246
|
-
@include origin($value);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
// Responsive variants
|
|
251
|
-
@each $breakpoint, $width in VAR.$breakpoints {
|
|
252
|
-
@media (min-width: #{$width}) {
|
|
253
|
-
@each $key, $value in $translate-values {
|
|
254
|
-
#{VAR.$parent-selector} .translate-x-#{$key}\@#{$breakpoint},
|
|
255
|
-
#{VAR.$parent-selector} .hover\:translate-x-#{$key}\@#{$breakpoint}:hover,
|
|
256
|
-
#{VAR.$parent-selector} .group:hover .group-hover\:translate-x-#{$key}\@#{$breakpoint} {
|
|
257
|
-
@include translate-x($value);
|
|
204
|
+
@each $key, $value in $scale-values {
|
|
205
|
+
#{config-flags.$parent-selector} .scale-#{$key},
|
|
206
|
+
#{config-flags.$parent-selector} .hover\:scale-#{$key}:hover,
|
|
207
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:scale-#{$key} {
|
|
208
|
+
@include scale($value);
|
|
258
209
|
}
|
|
259
210
|
|
|
260
|
-
#{
|
|
261
|
-
#{
|
|
262
|
-
#{
|
|
263
|
-
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
@each $key, $value in $negative-translate-values {
|
|
267
|
-
#{VAR.$parent-selector} .-translate-x-#{$key}\@#{$breakpoint},
|
|
268
|
-
#{VAR.$parent-selector} .hover\:-translate-x-#{$key}\@#{$breakpoint}:hover,
|
|
269
|
-
#{VAR.$parent-selector} .group:hover .group-hover\:-translate-x-#{$key}\@#{$breakpoint} {
|
|
270
|
-
@include translate-x($value);
|
|
211
|
+
#{config-flags.$parent-selector} .scale-x-#{$key},
|
|
212
|
+
#{config-flags.$parent-selector} .hover\:scale-x-#{$key}:hover,
|
|
213
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:scale-x-#{$key} {
|
|
214
|
+
@include scale-x($value);
|
|
271
215
|
}
|
|
272
216
|
|
|
273
|
-
#{
|
|
274
|
-
#{
|
|
275
|
-
#{
|
|
276
|
-
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
// Scale hover responsive
|
|
281
|
-
@each $key, $value in $scale-values {
|
|
282
|
-
#{VAR.$parent-selector} .scale-#{$key}\@#{$breakpoint},
|
|
283
|
-
#{VAR.$parent-selector} .hover\:scale-#{$key}\@#{$breakpoint}:hover,
|
|
284
|
-
#{VAR.$parent-selector} .group:hover .group-hover\:scale-#{$key}\@#{$breakpoint} {
|
|
285
|
-
@include scale($value);
|
|
217
|
+
#{config-flags.$parent-selector} .scale-y-#{$key},
|
|
218
|
+
#{config-flags.$parent-selector} .hover\:scale-y-#{$key}:hover,
|
|
219
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:scale-y-#{$key} {
|
|
220
|
+
@include scale-y($value);
|
|
286
221
|
}
|
|
222
|
+
}
|
|
287
223
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
#{
|
|
291
|
-
|
|
224
|
+
// Rotation utilities
|
|
225
|
+
@each $key, $value in $rotation-values {
|
|
226
|
+
#{config-flags.$parent-selector} .rotate-#{$key},
|
|
227
|
+
#{config-flags.$parent-selector} .hover\:rotate-#{$key}:hover,
|
|
228
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:rotate-#{$key} {
|
|
229
|
+
@include rotate($value);
|
|
292
230
|
}
|
|
231
|
+
}
|
|
293
232
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
#{
|
|
297
|
-
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
// Rotation hover responsive
|
|
302
|
-
@each $key, $value in $rotation-values {
|
|
303
|
-
#{VAR.$parent-selector} .rotate-#{$key}\@#{$breakpoint},
|
|
304
|
-
#{VAR.$parent-selector} .hover\:rotate-#{$key}\@#{$breakpoint}:hover,
|
|
305
|
-
#{VAR.$parent-selector} .group:hover .group-hover\:rotate-#{$key}\@#{$breakpoint} {
|
|
306
|
-
@include rotate($value);
|
|
233
|
+
// Negative rotation utilities
|
|
234
|
+
@each $key, $value in $negative-rotation-values {
|
|
235
|
+
#{config-flags.$parent-selector} .-rotate-#{$key},
|
|
236
|
+
#{config-flags.$parent-selector} .hover\:-rotate-#{$key}:hover,
|
|
237
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:-rotate-#{$key} {
|
|
238
|
+
@include rotate($value);
|
|
307
239
|
}
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
#{
|
|
313
|
-
#{
|
|
314
|
-
#{
|
|
315
|
-
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// Origin utilities
|
|
243
|
+
@each $key, $value in $origin-values {
|
|
244
|
+
#{config-flags.$parent-selector} .origin-#{$key},
|
|
245
|
+
#{config-flags.$parent-selector} .hover\:origin-#{$key}:hover,
|
|
246
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:origin-#{$key} {
|
|
247
|
+
@include origin($value);
|
|
316
248
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// Responsive variants
|
|
252
|
+
@each $breakpoint, $width in config-breakpoint.$breakpoints {
|
|
253
|
+
@media (min-width: #{$width}) {
|
|
254
|
+
@each $key, $value in $translate-values {
|
|
255
|
+
#{config-flags.$parent-selector} .translate-x-#{$key}\@#{$breakpoint},
|
|
256
|
+
#{config-flags.$parent-selector} .hover\:translate-x-#{$key}\@#{$breakpoint}:hover,
|
|
257
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:translate-x-#{$key}\@#{$breakpoint} {
|
|
258
|
+
@include translate-x($value);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
#{config-flags.$parent-selector} .translate-y-#{$key}\@#{$breakpoint},
|
|
262
|
+
#{config-flags.$parent-selector} .hover\:translate-y-#{$key}\@#{$breakpoint}:hover,
|
|
263
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:translate-y-#{$key}\@#{$breakpoint} {
|
|
264
|
+
@include translate-y($value);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
@each $key, $value in $negative-translate-values {
|
|
268
|
+
#{config-flags.$parent-selector} .-translate-x-#{$key}\@#{$breakpoint},
|
|
269
|
+
#{config-flags.$parent-selector} .hover\:-translate-x-#{$key}\@#{$breakpoint}:hover,
|
|
270
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:-translate-x-#{$key}\@#{$breakpoint} {
|
|
271
|
+
@include translate-x($value);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
#{config-flags.$parent-selector} .-translate-y-#{$key}\@#{$breakpoint},
|
|
275
|
+
#{config-flags.$parent-selector} .hover\:-translate-y-#{$key}\@#{$breakpoint}:hover,
|
|
276
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:-translate-y-#{$key}\@#{$breakpoint} {
|
|
277
|
+
@include translate-y($value);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
// Scale hover responsive
|
|
282
|
+
@each $key, $value in $scale-values {
|
|
283
|
+
#{config-flags.$parent-selector} .scale-#{$key}\@#{$breakpoint},
|
|
284
|
+
#{config-flags.$parent-selector} .hover\:scale-#{$key}\@#{$breakpoint}:hover,
|
|
285
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:scale-#{$key}\@#{$breakpoint} {
|
|
286
|
+
@include scale($value);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
#{config-flags.$parent-selector} .scale-x-#{$key}\@#{$breakpoint},
|
|
290
|
+
#{config-flags.$parent-selector} .hover\:scale-x-#{$key}\@#{$breakpoint}:hover,
|
|
291
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:scale-x-#{$key}\@#{$breakpoint} {
|
|
292
|
+
@include scale-x($value);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
#{config-flags.$parent-selector} .scale-y-#{$key}\@#{$breakpoint},
|
|
296
|
+
#{config-flags.$parent-selector} .hover\:scale-y-#{$key}\@#{$breakpoint}:hover,
|
|
297
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:scale-y-#{$key}\@#{$breakpoint} {
|
|
298
|
+
@include scale-y($value);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
// Rotation hover responsive
|
|
303
|
+
@each $key, $value in $rotation-values {
|
|
304
|
+
#{config-flags.$parent-selector} .rotate-#{$key}\@#{$breakpoint},
|
|
305
|
+
#{config-flags.$parent-selector} .hover\:rotate-#{$key}\@#{$breakpoint}:hover,
|
|
306
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:rotate-#{$key}\@#{$breakpoint} {
|
|
307
|
+
@include rotate($value);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
// Negative rotation utilities
|
|
312
|
+
@each $key, $value in $negative-rotation-values {
|
|
313
|
+
#{config-flags.$parent-selector} .-rotate-#{$key}\@#{$breakpoint},
|
|
314
|
+
#{config-flags.$parent-selector} .hover\:-rotate-#{$key}\@#{$breakpoint}:hover,
|
|
315
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:-rotate-#{$key}\@#{$breakpoint} {
|
|
316
|
+
@include rotate($value);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
// Add missing origin responsive variants
|
|
321
|
+
@each $key, $value in $origin-values {
|
|
322
|
+
#{config-flags.$parent-selector} .origin-#{$key}\@#{$breakpoint},
|
|
323
|
+
#{config-flags.$parent-selector} .hover\:origin-#{$key}\@#{$breakpoint}:hover,
|
|
324
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:origin-#{$key}\@#{$breakpoint} {
|
|
325
|
+
@include origin($value);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
325
328
|
}
|
|
326
|
-
}
|
|
327
329
|
}
|
|
328
|
-
}
|
|
329
330
|
}
|