@nuvoui/core 1.2.4 → 1.2.6
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/README.md +2 -2
- package/dist/nuvoui.css +27685 -22739
- package/dist/nuvoui.css.map +1 -1
- package/dist/nuvoui.min.css +1 -1
- package/dist/nuvoui.min.css.map +1 -1
- package/package.json +7 -8
- package/src/styles/abstracts/_config.scss +87 -34
- package/src/styles/abstracts/_functions.scss +70 -37
- package/src/styles/base/_base.scss +79 -59
- package/src/styles/base/_reset.scss +11 -8
- package/src/styles/index.scss +32 -17
- package/src/styles/layouts/_container.scss +1 -2
- package/src/styles/layouts/_flex.scss +442 -154
- package/src/styles/layouts/_grid.scss +145 -75
- package/src/styles/mixins-map.scss +1085 -1
- package/src/styles/themes/_theme.scss +95 -106
- package/src/styles/utilities/_alignment.scss +40 -13
- package/src/styles/utilities/_animations.scss +361 -92
- package/src/styles/utilities/_backdrop-filters.scss +297 -0
- package/src/styles/utilities/_borders.scss +360 -159
- package/src/styles/utilities/_colors.scss +24 -34
- package/src/styles/utilities/_container-queries.scss +7 -7
- package/src/styles/utilities/_cursor.scss +10 -17
- package/src/styles/utilities/_display.scss +234 -85
- package/src/styles/utilities/_helpers.scss +5 -5
- package/src/styles/utilities/_media-queries.scss +24 -27
- package/src/styles/utilities/_opacity.scss +15 -31
- package/src/styles/utilities/_position.scss +129 -66
- package/src/styles/utilities/_shadows.scss +23 -29
- package/src/styles/utilities/_sizing.scss +270 -92
- package/src/styles/utilities/_spacing.scss +317 -169
- package/src/styles/utilities/_tooltips.scss +36 -29
- package/src/styles/utilities/_transforms.scss +243 -154
- package/src/styles/utilities/_transitions.scss +129 -75
- package/src/styles/utilities/_typography.scss +341 -127
- package/src/styles/utilities/_z-index.scss +144 -0
- package/src/styles/abstracts/_index.scss +0 -1
- package/src/styles/base/_index.scss +0 -2
- package/src/styles/layouts/_index.scss +0 -3
- package/src/styles/themes/_index.scss +0 -1
- package/src/styles/utilities/_index.scss +0 -20
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
3
|
-
@use
|
|
4
|
-
@use
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "sass:string";
|
|
3
|
+
@use "sass:meta";
|
|
4
|
+
@use "../abstracts/config" as VAR;
|
|
5
|
+
@use "../abstracts/functions" as FN;
|
|
5
6
|
|
|
6
|
-
|
|
7
7
|
/**
|
|
8
8
|
* @component Spacing
|
|
9
9
|
* @description Controls element margins, padding, gaps, and spacing between children
|
|
@@ -73,41 +73,6 @@
|
|
|
73
73
|
* @see flex, grid, display
|
|
74
74
|
*/
|
|
75
75
|
|
|
76
|
-
// -----------------------------------------------
|
|
77
|
-
// HELPER FUNCTIONS
|
|
78
|
-
// -----------------------------------------------
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* @function format-unit-value
|
|
82
|
-
* @description Ensures values have appropriate units
|
|
83
|
-
* @param {Number|String} $value - The value to format
|
|
84
|
-
* @returns {Number|String} Value with appropriate units
|
|
85
|
-
* @internal
|
|
86
|
-
*/
|
|
87
|
-
|
|
88
|
-
@function format-unit-value($value) {
|
|
89
|
-
// Zero check
|
|
90
|
-
@if $value == 0 {
|
|
91
|
-
@return 0;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// If pure number (no units), add px
|
|
95
|
-
@if meta.type-of($value) == 'number' and math.unit($value) == "" {
|
|
96
|
-
@return $value * 1px; // Multiply by 1px instead of adding px
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// If number with units (like rem), return as is
|
|
100
|
-
@if meta.type-of($value) == 'number' and math.unit($value) != "" {
|
|
101
|
-
@return $value; // Already has units, return as is
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Convert value to string for unit checking
|
|
105
|
-
$value-str: if(meta.type-of($value) == 'string', string.unquote($value), #{$value});
|
|
106
|
-
|
|
107
|
-
@return $value-str;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
76
|
// -----------------------------------------------
|
|
112
77
|
// PADDING MIXINS
|
|
113
78
|
// -----------------------------------------------
|
|
@@ -117,17 +82,17 @@
|
|
|
117
82
|
* @description Sets padding on all sides
|
|
118
83
|
* @param {Number|String} $val - Padding value
|
|
119
84
|
*/
|
|
120
|
-
@mixin p($val) {
|
|
85
|
+
@mixin p($val) {
|
|
86
|
+
padding: FN.fix-units($val);
|
|
87
|
+
}
|
|
121
88
|
|
|
122
89
|
/**
|
|
123
90
|
* @mixin px
|
|
124
91
|
* @description Sets horizontal padding (left and right)
|
|
125
92
|
* @param {Number|String} $val - Padding value
|
|
126
93
|
*/
|
|
127
|
-
@mixin px($val) {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
padding-inline: $val;
|
|
94
|
+
@mixin px($val) {
|
|
95
|
+
padding-inline: FN.fix-units($val);
|
|
131
96
|
}
|
|
132
97
|
|
|
133
98
|
/**
|
|
@@ -135,21 +100,17 @@
|
|
|
135
100
|
* @description Sets vertical padding (top and bottom)
|
|
136
101
|
* @param {Number|String} $val - Padding value
|
|
137
102
|
*/
|
|
138
|
-
@mixin py($val) {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
padding-block: $val;
|
|
103
|
+
@mixin py($val) {
|
|
104
|
+
padding-block: FN.fix-units($val);
|
|
142
105
|
}
|
|
143
|
-
|
|
106
|
+
|
|
144
107
|
/**
|
|
145
108
|
* @mixin pt
|
|
146
109
|
* @description Sets padding-top
|
|
147
110
|
* @param {Number|String} $val - Padding value
|
|
148
111
|
*/
|
|
149
|
-
@mixin pt($val) {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
padding-top: $val;
|
|
112
|
+
@mixin pt($val) {
|
|
113
|
+
padding-top: FN.fix-units($val);
|
|
153
114
|
}
|
|
154
115
|
|
|
155
116
|
/**
|
|
@@ -157,10 +118,8 @@
|
|
|
157
118
|
* @description Sets padding-right
|
|
158
119
|
* @param {Number|String} $val - Padding value
|
|
159
120
|
*/
|
|
160
|
-
@mixin pr($val) {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
padding-right: $val;
|
|
121
|
+
@mixin pr($val) {
|
|
122
|
+
padding-right: FN.fix-units($val);
|
|
164
123
|
}
|
|
165
124
|
|
|
166
125
|
/**
|
|
@@ -168,10 +127,8 @@
|
|
|
168
127
|
* @description Sets padding-bottom
|
|
169
128
|
* @param {Number|String} $val - Padding value
|
|
170
129
|
*/
|
|
171
|
-
@mixin pb($val) {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
padding-bottom: $val;
|
|
130
|
+
@mixin pb($val) {
|
|
131
|
+
padding-bottom: FN.fix-units($val);
|
|
175
132
|
}
|
|
176
133
|
|
|
177
134
|
/**
|
|
@@ -179,10 +136,8 @@
|
|
|
179
136
|
* @description Sets padding-left
|
|
180
137
|
* @param {Number|String} $val - Padding value
|
|
181
138
|
*/
|
|
182
|
-
@mixin pl($val) {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
padding-left: $val;
|
|
139
|
+
@mixin pl($val) {
|
|
140
|
+
padding-left: FN.fix-units($val);
|
|
186
141
|
}
|
|
187
142
|
|
|
188
143
|
// -----------------------------------------------
|
|
@@ -194,10 +149,8 @@
|
|
|
194
149
|
* @description Sets margin on all sides
|
|
195
150
|
* @param {Number|String} $val - Margin value
|
|
196
151
|
*/
|
|
197
|
-
@mixin m($val) {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
margin: $val;
|
|
152
|
+
@mixin m($val) {
|
|
153
|
+
margin: FN.fix-units($val);
|
|
201
154
|
}
|
|
202
155
|
|
|
203
156
|
/**
|
|
@@ -205,10 +158,8 @@
|
|
|
205
158
|
* @description Sets horizontal margin (left and right)
|
|
206
159
|
* @param {Number|String} $val - Margin value
|
|
207
160
|
*/
|
|
208
|
-
@mixin mx($val) {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
margin-inline: $val;
|
|
161
|
+
@mixin mx($val) {
|
|
162
|
+
margin-inline: FN.fix-units($val);
|
|
212
163
|
}
|
|
213
164
|
|
|
214
165
|
/**
|
|
@@ -216,10 +167,10 @@
|
|
|
216
167
|
* @description Sets vertical margin (top and bottom)
|
|
217
168
|
* @param {Number|String} $val - Margin value
|
|
218
169
|
*/
|
|
219
|
-
@mixin my($val) {
|
|
220
|
-
$val:
|
|
170
|
+
@mixin my($val) {
|
|
171
|
+
$val: FN.fix-units($val);
|
|
221
172
|
|
|
222
|
-
margin-block: $val;
|
|
173
|
+
margin-block: FN.fix-units($val);
|
|
223
174
|
}
|
|
224
175
|
|
|
225
176
|
/**
|
|
@@ -227,21 +178,17 @@
|
|
|
227
178
|
* @description Sets margin-top
|
|
228
179
|
* @param {Number|String} $val - Margin value
|
|
229
180
|
*/
|
|
230
|
-
@mixin mt($val) {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
margin-top: $val;
|
|
181
|
+
@mixin mt($val) {
|
|
182
|
+
margin-top: FN.fix-units($val, VAR.$default-unit);
|
|
234
183
|
}
|
|
235
184
|
|
|
236
185
|
/**
|
|
237
186
|
* @mixin mr
|
|
238
|
-
* @description Sets margin-right
|
|
187
|
+
* @description Sets margin-right
|
|
239
188
|
* @param {Number|String} $val - Margin value
|
|
240
189
|
*/
|
|
241
|
-
@mixin mr($val) {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
margin-right: $val;
|
|
190
|
+
@mixin mr($val) {
|
|
191
|
+
margin-right: FN.fix-units($val);
|
|
245
192
|
}
|
|
246
193
|
|
|
247
194
|
/**
|
|
@@ -249,10 +196,8 @@
|
|
|
249
196
|
* @description Sets margin-bottom
|
|
250
197
|
* @param {Number|String} $val - Margin value
|
|
251
198
|
*/
|
|
252
|
-
@mixin mb($val) {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
margin-bottom: $val;
|
|
199
|
+
@mixin mb($val) {
|
|
200
|
+
margin-bottom: FN.fix-units($val);
|
|
256
201
|
}
|
|
257
202
|
|
|
258
203
|
/**
|
|
@@ -260,30 +205,99 @@
|
|
|
260
205
|
* @description Sets margin-left
|
|
261
206
|
* @param {Number|String} $val - Margin value
|
|
262
207
|
*/
|
|
263
|
-
@mixin ml($val) {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
margin-left: $val;
|
|
208
|
+
@mixin ml($val) {
|
|
209
|
+
margin-left: FN.fix-units($val);
|
|
267
210
|
}
|
|
268
211
|
|
|
269
212
|
/**
|
|
270
213
|
* @mixin ml-auto
|
|
271
214
|
* @description Sets margin-left to auto
|
|
272
215
|
*/
|
|
273
|
-
@mixin ml-auto {
|
|
216
|
+
@mixin ml-auto {
|
|
217
|
+
margin-left: auto;
|
|
218
|
+
}
|
|
274
219
|
|
|
275
220
|
/**
|
|
276
221
|
* @mixin mr-auto
|
|
277
222
|
* @description Sets margin-right to auto
|
|
278
223
|
*/
|
|
279
|
-
@mixin mr-auto {
|
|
224
|
+
@mixin mr-auto {
|
|
225
|
+
margin-right: auto;
|
|
226
|
+
}
|
|
280
227
|
|
|
281
228
|
/**
|
|
282
229
|
* @mixin mx-auto
|
|
283
230
|
* @description Centers element horizontally using auto margins
|
|
284
231
|
*/
|
|
285
|
-
@mixin mx-auto {
|
|
232
|
+
@mixin mx-auto {
|
|
233
|
+
@include ml-auto;
|
|
234
|
+
@include mr-auto;
|
|
235
|
+
}
|
|
286
236
|
|
|
237
|
+
// -----------------------------------------------
|
|
238
|
+
// INSET MIXINS
|
|
239
|
+
// -----------------------------------------------
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* @mixin inset
|
|
243
|
+
* @description Sets all inset properties (top, right, bottom, left)
|
|
244
|
+
* @param {Number|String} $val - Inset value
|
|
245
|
+
*/
|
|
246
|
+
@mixin inset($val) {
|
|
247
|
+
$val: FN.fix-units($val);
|
|
248
|
+
|
|
249
|
+
inset: FN.fix-units($val);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* @mixin inset-x
|
|
254
|
+
* @description Sets horizontal inset properties (left and right)
|
|
255
|
+
* @param {Number|String} $val - Inset value
|
|
256
|
+
*/
|
|
257
|
+
@mixin inset-x($val) {
|
|
258
|
+
$val: FN.fix-units($val);
|
|
259
|
+
|
|
260
|
+
left: $val;
|
|
261
|
+
right: $val;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* @mixin inset-y
|
|
266
|
+
* @description Sets vertical inset properties (top and bottom)
|
|
267
|
+
* @param {Number|String} $val - Inset value
|
|
268
|
+
*/
|
|
269
|
+
@mixin inset-y($val) {
|
|
270
|
+
$val: FN.fix-units($val);
|
|
271
|
+
|
|
272
|
+
top: $val;
|
|
273
|
+
bottom: $val;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* @mixin inset-auto
|
|
278
|
+
* @description Sets all inset properties to auto
|
|
279
|
+
*/
|
|
280
|
+
@mixin inset-auto {
|
|
281
|
+
inset: auto;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* @mixin inset-x-auto
|
|
286
|
+
* @description Sets horizontal inset properties to auto
|
|
287
|
+
*/
|
|
288
|
+
@mixin inset-x-auto {
|
|
289
|
+
left: auto;
|
|
290
|
+
right: auto;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* @mixin inset-y-auto
|
|
295
|
+
* @description Sets vertical inset properties to auto
|
|
296
|
+
*/
|
|
297
|
+
@mixin inset-y-auto {
|
|
298
|
+
top: auto;
|
|
299
|
+
bottom: auto;
|
|
300
|
+
}
|
|
287
301
|
|
|
288
302
|
// -----------------------------------------------
|
|
289
303
|
// SPACING MIXINS
|
|
@@ -296,22 +310,18 @@
|
|
|
296
310
|
*/
|
|
297
311
|
@mixin space-y($i) {
|
|
298
312
|
& > * + * {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
margin-top: $i;
|
|
313
|
+
margin-top: FN.fix-units($i);
|
|
302
314
|
}
|
|
303
315
|
}
|
|
304
316
|
|
|
305
|
-
|
|
317
|
+
/**
|
|
306
318
|
* @mixin space-x
|
|
307
319
|
* @description Adds horizontal spacing between direct children
|
|
308
320
|
* @param {Number|String} $i - Space amount
|
|
309
321
|
*/
|
|
310
322
|
@mixin space-x($i) {
|
|
311
323
|
& > * + * {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
margin-left: $i;
|
|
324
|
+
margin-left: FN.fix-units($i);
|
|
315
325
|
}
|
|
316
326
|
}
|
|
317
327
|
|
|
@@ -324,108 +334,246 @@
|
|
|
324
334
|
* @description Sets gap between grid/flex children
|
|
325
335
|
* @param {Number|String} $val - Gap value
|
|
326
336
|
*/
|
|
327
|
-
|
|
337
|
+
@mixin gap($val) {
|
|
338
|
+
gap: FN.fix-units($val);
|
|
339
|
+
}
|
|
328
340
|
|
|
329
|
-
|
|
341
|
+
/**
|
|
330
342
|
* @mixin gap-x
|
|
331
343
|
* @description Sets horizontal gap between grid/flex children
|
|
332
344
|
* @param {Number|String} $val - Gap value
|
|
333
345
|
*/
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
346
|
+
@mixin gap-x($val) {
|
|
347
|
+
column-gap: FN.fix-units($val);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/**
|
|
337
351
|
* @mixin gap-y
|
|
338
352
|
* @description Sets vertical gap between grid/flex children
|
|
339
353
|
* @param {Number|String} $val - Gap value
|
|
340
354
|
*/
|
|
341
|
-
|
|
355
|
+
@mixin gap-y($val) {
|
|
356
|
+
row-gap: FN.fix-units($val);
|
|
357
|
+
}
|
|
342
358
|
|
|
343
|
-
@if
|
|
359
|
+
@if VAR.$generate-utility-classes {
|
|
344
360
|
// -----------------------------------------------
|
|
345
361
|
// AUTO MARGIN UTILITY CLASSES
|
|
346
362
|
// -----------------------------------------------
|
|
347
363
|
|
|
348
|
-
.mx-auto {
|
|
349
|
-
|
|
350
|
-
|
|
364
|
+
#{VAR.$parent-selector} .mx-auto {
|
|
365
|
+
@include mx-auto;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
#{VAR.$parent-selector} .ml-auto {
|
|
369
|
+
@include ml-auto;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
#{VAR.$parent-selector} .mr-auto {
|
|
373
|
+
@include mr-auto;
|
|
374
|
+
}
|
|
351
375
|
|
|
352
376
|
// -----------------------------------------------
|
|
353
377
|
// GAP AUTO CLASS
|
|
354
378
|
// -----------------------------------------------
|
|
355
379
|
|
|
356
|
-
.gap-auto {
|
|
380
|
+
#{VAR.$parent-selector} .gap-auto {
|
|
381
|
+
gap: auto;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
// Auto inset utility classes
|
|
385
|
+
#{VAR.$parent-selector} .inset-auto {
|
|
386
|
+
@include inset-auto;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
#{VAR.$parent-selector} .inset-x-auto {
|
|
390
|
+
@include inset-x-auto;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
#{VAR.$parent-selector} .inset-y-auto {
|
|
394
|
+
@include inset-y-auto;
|
|
395
|
+
}
|
|
357
396
|
|
|
358
397
|
// -----------------------------------------------
|
|
359
398
|
// SPACING CLASSES
|
|
360
399
|
// -----------------------------------------------
|
|
361
400
|
|
|
362
|
-
@each $key, $value in
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
401
|
+
@each $key, $value in VAR.$spacings {
|
|
402
|
+
// Padding classes
|
|
403
|
+
#{VAR.$parent-selector} .p-#{$key} {
|
|
404
|
+
@include p($value);
|
|
405
|
+
}
|
|
406
|
+
#{VAR.$parent-selector} .px-#{$key} {
|
|
407
|
+
@include px($value);
|
|
408
|
+
}
|
|
409
|
+
#{VAR.$parent-selector} .py-#{$key} {
|
|
410
|
+
@include py($value);
|
|
411
|
+
}
|
|
412
|
+
#{VAR.$parent-selector} .pt-#{$key} {
|
|
413
|
+
@include pt($value);
|
|
414
|
+
}
|
|
415
|
+
#{VAR.$parent-selector} .pr-#{$key} {
|
|
416
|
+
@include pr($value);
|
|
417
|
+
}
|
|
418
|
+
#{VAR.$parent-selector} .pb-#{$key} {
|
|
419
|
+
@include pb($value);
|
|
420
|
+
}
|
|
421
|
+
#{VAR.$parent-selector} .pl-#{$key} {
|
|
422
|
+
@include pl($value);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
// Margin classes
|
|
426
|
+
#{VAR.$parent-selector} .m-#{$key} {
|
|
427
|
+
@include m($value);
|
|
428
|
+
}
|
|
429
|
+
#{VAR.$parent-selector} .mx-#{$key} {
|
|
430
|
+
@include mx($value);
|
|
431
|
+
}
|
|
432
|
+
#{VAR.$parent-selector} .my-#{$key} {
|
|
433
|
+
@include my($value);
|
|
434
|
+
}
|
|
435
|
+
#{VAR.$parent-selector} .mt-#{$key} {
|
|
436
|
+
@include mt($value);
|
|
437
|
+
}
|
|
438
|
+
#{VAR.$parent-selector} .mr-#{$key} {
|
|
439
|
+
@include mr($value);
|
|
440
|
+
}
|
|
441
|
+
#{VAR.$parent-selector} .mb-#{$key} {
|
|
442
|
+
@include mb($value);
|
|
443
|
+
}
|
|
444
|
+
#{VAR.$parent-selector} .ml-#{$key} {
|
|
445
|
+
@include ml($value);
|
|
446
|
+
}
|
|
390
447
|
|
|
448
|
+
// Gap classes
|
|
449
|
+
#{VAR.$parent-selector} .gap-#{$key} {
|
|
450
|
+
@include gap($value);
|
|
451
|
+
}
|
|
452
|
+
#{VAR.$parent-selector} .gap-x-#{$key} {
|
|
453
|
+
@include gap-x($value);
|
|
454
|
+
}
|
|
455
|
+
#{VAR.$parent-selector} .gap-y-#{$key} {
|
|
456
|
+
@include gap-y($value);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
// Space classes
|
|
460
|
+
#{VAR.$parent-selector} .space-x-#{$key} {
|
|
461
|
+
@include space-x($value);
|
|
462
|
+
}
|
|
463
|
+
#{VAR.$parent-selector} .space-y-#{$key} {
|
|
464
|
+
@include space-y($value);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
#{VAR.$parent-selector} .inset-#{$key} {
|
|
468
|
+
@include inset($value);
|
|
469
|
+
}
|
|
470
|
+
#{VAR.$parent-selector} .inset-x-#{$key} {
|
|
471
|
+
@include inset-x($value);
|
|
472
|
+
}
|
|
473
|
+
#{VAR.$parent-selector} .inset-y-#{$key} {
|
|
474
|
+
@include inset-y($value);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
391
477
|
|
|
392
478
|
// -----------------------------------------------
|
|
393
479
|
// RESPONSIVE SPACING CLASSES
|
|
394
480
|
// -----------------------------------------------
|
|
395
481
|
|
|
396
|
-
@each $breakpoint, $width in
|
|
482
|
+
@each $breakpoint, $width in VAR.$breakpoints {
|
|
397
483
|
@media (min-width: #{$width}) {
|
|
398
|
-
.mx-auto\@#{$breakpoint} {
|
|
399
|
-
|
|
400
|
-
|
|
484
|
+
#{VAR.$parent-selector} .mx-auto\@#{$breakpoint} {
|
|
485
|
+
@include mx-auto;
|
|
486
|
+
}
|
|
487
|
+
#{VAR.$parent-selector} .ml-auto\@#{$breakpoint} {
|
|
488
|
+
@include ml-auto;
|
|
489
|
+
}
|
|
490
|
+
#{VAR.$parent-selector} .mr-auto\@#{$breakpoint} {
|
|
491
|
+
@include mr-auto;
|
|
492
|
+
}
|
|
493
|
+
#{VAR.$parent-selector} .inset-auto\@#{$breakpoint} {
|
|
494
|
+
@include inset-auto;
|
|
495
|
+
}
|
|
496
|
+
#{VAR.$parent-selector} .inset-x-auto\@#{$breakpoint} {
|
|
497
|
+
@include inset-x-auto;
|
|
498
|
+
}
|
|
499
|
+
#{VAR.$parent-selector} .inset-y-auto\@#{$breakpoint} {
|
|
500
|
+
@include inset-y-auto;
|
|
501
|
+
}
|
|
401
502
|
|
|
402
503
|
// Generate utilities from spacing map
|
|
403
|
-
@each $key, $value in
|
|
504
|
+
@each $key, $value in VAR.$spacings {
|
|
404
505
|
// Padding classes
|
|
405
|
-
.p-#{$key}\@#{$breakpoint} {
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
.
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
.
|
|
506
|
+
#{VAR.$parent-selector} .p-#{$key}\@#{$breakpoint} {
|
|
507
|
+
@include p($value);
|
|
508
|
+
}
|
|
509
|
+
#{VAR.$parent-selector} .px-#{$key}\@#{$breakpoint} {
|
|
510
|
+
@include px($value);
|
|
511
|
+
}
|
|
512
|
+
#{VAR.$parent-selector} .py-#{$key}\@#{$breakpoint} {
|
|
513
|
+
@include py($value);
|
|
514
|
+
}
|
|
515
|
+
#{VAR.$parent-selector} .pt-#{$key}\@#{$breakpoint} {
|
|
516
|
+
@include pt($value);
|
|
517
|
+
}
|
|
518
|
+
#{VAR.$parent-selector} .pr-#{$key}\@#{$breakpoint} {
|
|
519
|
+
@include pr($value);
|
|
520
|
+
}
|
|
521
|
+
#{VAR.$parent-selector} .pb-#{$key}\@#{$breakpoint} {
|
|
522
|
+
@include pb($value);
|
|
523
|
+
}
|
|
524
|
+
#{VAR.$parent-selector} .pl-#{$key}\@#{$breakpoint} {
|
|
525
|
+
@include pl($value);
|
|
526
|
+
}
|
|
412
527
|
|
|
413
528
|
// Margin classes
|
|
414
|
-
.m-#{$key}\@#{$breakpoint} {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
.
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
.
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
.
|
|
424
|
-
|
|
425
|
-
|
|
529
|
+
#{VAR.$parent-selector} .m-#{$key}\@#{$breakpoint} {
|
|
530
|
+
@include m($value);
|
|
531
|
+
}
|
|
532
|
+
#{VAR.$parent-selector} .mx-#{$key}\@#{$breakpoint} {
|
|
533
|
+
@include mx($value);
|
|
534
|
+
}
|
|
535
|
+
#{VAR.$parent-selector} .my-#{$key}\@#{$breakpoint} {
|
|
536
|
+
@include my($value);
|
|
537
|
+
}
|
|
538
|
+
#{VAR.$parent-selector} .mt-#{$key}\@#{$breakpoint} {
|
|
539
|
+
@include mt($value);
|
|
540
|
+
}
|
|
541
|
+
#{VAR.$parent-selector} .mr-#{$key}\@#{$breakpoint} {
|
|
542
|
+
@include mr($value);
|
|
543
|
+
}
|
|
544
|
+
#{VAR.$parent-selector} .mb-#{$key}\@#{$breakpoint} {
|
|
545
|
+
@include mb($value);
|
|
546
|
+
}
|
|
547
|
+
#{VAR.$parent-selector} .ml-#{$key}\@#{$breakpoint} {
|
|
548
|
+
@include ml($value);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
#{VAR.$parent-selector} .gap-#{$key}\@#{$breakpoint} {
|
|
552
|
+
gap: $value;
|
|
553
|
+
}
|
|
554
|
+
#{VAR.$parent-selector} .gap-x-#{$key}\@#{$breakpoint} {
|
|
555
|
+
column-gap: $value;
|
|
556
|
+
}
|
|
557
|
+
#{VAR.$parent-selector} .gap-y-#{$key}\@#{$breakpoint} {
|
|
558
|
+
row-gap: $value;
|
|
559
|
+
}
|
|
560
|
+
|
|
426
561
|
// Space classes
|
|
427
|
-
.space-x-#{$key}\@#{$breakpoint} {
|
|
428
|
-
|
|
562
|
+
#{VAR.$parent-selector} .space-x-#{$key}\@#{$breakpoint} {
|
|
563
|
+
@include space-x($value);
|
|
564
|
+
}
|
|
565
|
+
#{VAR.$parent-selector} .space-y-#{$key}\@#{$breakpoint} {
|
|
566
|
+
@include space-y($value);
|
|
567
|
+
}
|
|
568
|
+
#{VAR.$parent-selector} .inset-#{$key}\@#{$breakpoint} {
|
|
569
|
+
@include inset($value);
|
|
570
|
+
}
|
|
571
|
+
#{VAR.$parent-selector} .inset-x-#{$key}\@#{$breakpoint} {
|
|
572
|
+
@include inset-x($value);
|
|
573
|
+
}
|
|
574
|
+
#{VAR.$parent-selector} .inset-y-#{$key}\@#{$breakpoint} {
|
|
575
|
+
@include inset-y($value);
|
|
576
|
+
}
|
|
429
577
|
}
|
|
430
578
|
}
|
|
431
579
|
}
|