@nuvoui/core 1.3.0 → 1.3.2
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/dist/nuvoui.css +775 -1406
- 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 +2 -2
- package/src/styles/abstracts/_config.scss +30 -2
- package/src/styles/abstracts/_functions.scss +16 -5
- package/src/styles/base/_base.scss +6 -6
- package/src/styles/base/_reset.scss +0 -2
- package/src/styles/build.scss +3 -0
- package/src/styles/layouts/_container.scss +8 -1
- package/src/styles/layouts/_flex.scss +124 -228
- package/src/styles/layouts/_grid.scss +14 -43
- package/src/styles/themes/_theme.scss +10 -10
- package/src/styles/themes/refactored_borders.ipynb +37 -0
- package/src/styles/utilities/_alignment.scss +2 -1
- package/src/styles/utilities/_animations.scss +20 -32
- package/src/styles/utilities/_backdrop-filters.scss +7 -11
- package/src/styles/utilities/_borders.scss +80 -270
- package/src/styles/utilities/_container-queries.scss +17 -21
- package/src/styles/utilities/_cursor.scss +2 -1
- package/src/styles/utilities/_display.scss +73 -44
- package/src/styles/utilities/_helpers.scss +1 -0
- package/src/styles/utilities/_media-queries.scss +3 -5
- package/src/styles/utilities/_opacity.scss +52 -67
- package/src/styles/utilities/_position.scss +104 -132
- package/src/styles/utilities/_shadows.scss +9 -14
- package/src/styles/utilities/_sizing.scss +1 -1
- package/src/styles/utilities/_spacing.scss +143 -205
- package/src/styles/utilities/_tooltips.scss +203 -200
- package/src/styles/utilities/_transforms.scss +9 -11
- package/src/styles/utilities/_transitions.scss +8 -10
- package/src/styles/utilities/_typography.scss +17 -22
- package/src/styles/utilities/_z-index.scss +12 -19
|
@@ -2,398 +2,306 @@
|
|
|
2
2
|
// Module: Flex | Flex Inline
|
|
3
3
|
// Note: Gap utilities are defined in _spacing.scss
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
* @see grid
|
|
44
|
-
*/
|
|
5
|
+
// @component Flex
|
|
6
|
+
// @description Flexbox layout system for creating flexible page layouts
|
|
7
|
+
|
|
8
|
+
// @example
|
|
9
|
+
// <div class="flex row between x-center">
|
|
10
|
+
// <div class="w-6">Left column (6 units)</div>
|
|
11
|
+
// <div class="w-6">Right column (6 units)</div>
|
|
12
|
+
// </div>
|
|
13
|
+
|
|
14
|
+
// <div class="flex col@md row@lg">
|
|
15
|
+
// <!-- Changes direction based on breakpoint -->
|
|
16
|
+
// </div>
|
|
17
|
+
|
|
18
|
+
// @classes
|
|
19
|
+
// Base:
|
|
20
|
+
// - flex: Creates a flex container
|
|
21
|
+
|
|
22
|
+
// Direction:
|
|
23
|
+
// - row: Sets flex-direction to row
|
|
24
|
+
// - col: Sets flex-direction to column
|
|
25
|
+
// - row-reverse: Reverses row direction
|
|
26
|
+
// - col-reverse: Reverses column direction
|
|
27
|
+
|
|
28
|
+
// Alignment:
|
|
29
|
+
// - start/end/center: Controls justify-content
|
|
30
|
+
// - x-start/x-end/x-center: Controls align-items
|
|
31
|
+
|
|
32
|
+
// Child elements:
|
|
33
|
+
// - w-{1-12}: Sets width based on column count
|
|
34
|
+
// - grow: Allows item to grow
|
|
35
|
+
// - shrink/no-shrink: Controls shrink behavior
|
|
36
|
+
|
|
37
|
+
// @responsive
|
|
38
|
+
// All classes support responsive variants using @breakpoint suffix:
|
|
39
|
+
// - row@md: Row direction on medium screens and up
|
|
40
|
+
// - between@lg: Space-between on large screens
|
|
41
|
+
|
|
42
|
+
// @see grid
|
|
45
43
|
|
|
46
44
|
@use "sass:math";
|
|
47
45
|
@use "../utilities/media-queries" as MC;
|
|
48
46
|
@use "../abstracts/config" as VAR;
|
|
49
47
|
@use "../abstracts/functions" as FN;
|
|
50
48
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
*/
|
|
54
|
-
@mixin flex {
|
|
55
|
-
display: flex;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @description Establishes a flex-inline container.
|
|
60
|
-
*/
|
|
61
|
-
@mixin flex-inline {
|
|
62
|
-
display: inline-flex;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* @description Sets flex-direction to row.
|
|
67
|
-
* @dependencies flex | flex-inline
|
|
68
|
-
*/
|
|
49
|
+
// @description Sets flex-direction to row.
|
|
50
|
+
// @dependencies flex | flex-inline
|
|
69
51
|
@mixin row {
|
|
70
52
|
flex-direction: row;
|
|
71
53
|
}
|
|
72
54
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
* @dependencies flex | flex-inline
|
|
76
|
-
*/
|
|
55
|
+
// @description Sets flex-direction to row-reverse.
|
|
56
|
+
// @dependencies flex | flex-inline
|
|
77
57
|
@mixin row-reverse {
|
|
78
58
|
flex-direction: row-reverse;
|
|
79
59
|
}
|
|
80
60
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
* @dependencies flex | flex-inline
|
|
84
|
-
*/
|
|
61
|
+
// @description Sets flex-direction to column.
|
|
62
|
+
// @dependencies flex | flex-inline
|
|
85
63
|
@mixin col {
|
|
86
64
|
flex-direction: column;
|
|
87
65
|
}
|
|
88
66
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
* @dependencies flex | flex-inline
|
|
92
|
-
*/
|
|
67
|
+
// @description Sets flex-direction to column-reverse.
|
|
68
|
+
// @dependencies flex | flex-inline
|
|
93
69
|
@mixin col-reverse {
|
|
94
70
|
flex-direction: column-reverse;
|
|
95
71
|
}
|
|
96
72
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
* @dependencies flex | flex-inline
|
|
100
|
-
*/
|
|
73
|
+
// @description Sets flex-wrap to wrap.
|
|
74
|
+
// @dependencies flex | flex-inline
|
|
101
75
|
@mixin wrap {
|
|
102
76
|
flex-wrap: wrap;
|
|
103
77
|
}
|
|
104
78
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
* @dependencies flex | flex-inline
|
|
108
|
-
*/
|
|
79
|
+
// @description Sets flex-wrap to nowrap.
|
|
80
|
+
// @dependencies flex | flex-inline
|
|
109
81
|
@mixin nowrap {
|
|
110
82
|
flex-wrap: nowrap;
|
|
111
83
|
}
|
|
112
84
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
* @dependencies flex | flex-inline
|
|
116
|
-
*/
|
|
85
|
+
// @description Sets flex-wrap to wrap-reverse
|
|
86
|
+
// @dependencies flex | flex-inline
|
|
117
87
|
@mixin wrap-reverse {
|
|
118
88
|
flex-wrap: wrap-reverse;
|
|
119
89
|
}
|
|
120
90
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
* @dependencies flex | flex-inline
|
|
124
|
-
*/
|
|
91
|
+
// @description Sets justify-content to flex-start
|
|
92
|
+
// @dependencies flex | flex-inline
|
|
125
93
|
@mixin start {
|
|
126
94
|
justify-content: flex-start;
|
|
127
95
|
}
|
|
128
96
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
* @dependencies flex | flex-inline
|
|
132
|
-
*/
|
|
97
|
+
// @description Sets justify-content to flex-end
|
|
98
|
+
// @dependencies flex | flex-inline
|
|
133
99
|
@mixin end {
|
|
134
100
|
justify-content: flex-end;
|
|
135
101
|
}
|
|
136
102
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
* @dependencies flex | flex-inline
|
|
140
|
-
*/
|
|
103
|
+
// @description Sets justify-content to center
|
|
104
|
+
// @dependencies flex | flex-inline
|
|
141
105
|
@mixin center {
|
|
142
106
|
justify-content: center;
|
|
143
107
|
}
|
|
144
108
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
* @dependencies flex | flex-inline
|
|
148
|
-
*/
|
|
109
|
+
// @description Sets justify-content to stretch
|
|
110
|
+
// @dependencies flex | flex-inline
|
|
149
111
|
@mixin stretch {
|
|
150
112
|
justify-content: stretch;
|
|
151
113
|
}
|
|
152
114
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
* @dependencies flex | flex-inline
|
|
156
|
-
*/
|
|
115
|
+
// @description Sets justify-content to space-between
|
|
116
|
+
// @dependencies flex | flex-inline
|
|
157
117
|
@mixin between {
|
|
158
118
|
justify-content: space-between;
|
|
159
119
|
}
|
|
160
120
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
* @dependencies flex | flex-inline
|
|
164
|
-
*/
|
|
121
|
+
// @description Sets justify-content to space-around
|
|
122
|
+
// @dependencies flex | flex-inline
|
|
165
123
|
@mixin around {
|
|
166
124
|
justify-content: space-around;
|
|
167
125
|
}
|
|
168
126
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
* @dependencies flex | flex-inline
|
|
172
|
-
*/
|
|
127
|
+
// @description Sets justify-content to space-evenly
|
|
128
|
+
// @dependencies flex | flex-inline
|
|
173
129
|
@mixin evenly {
|
|
174
130
|
justify-content: space-evenly;
|
|
175
131
|
}
|
|
176
132
|
|
|
177
133
|
// Cross Axis Alignment Mixins
|
|
178
134
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
* @dependencies flex | flex-inline
|
|
182
|
-
*/
|
|
135
|
+
// @description Sets align-items to flex-start - aligns items to the start of the cross axis.
|
|
136
|
+
// @dependencies flex | flex-inline
|
|
183
137
|
@mixin x-start {
|
|
184
138
|
align-items: flex-start;
|
|
185
139
|
}
|
|
186
140
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
* @dependencies flex | flex-inline
|
|
190
|
-
*/
|
|
141
|
+
// @description Sets align-items to flex-end - aligns items to the end of the cross axis.
|
|
142
|
+
// @dependencies flex | flex-inline
|
|
191
143
|
@mixin x-end {
|
|
192
144
|
align-items: flex-end;
|
|
193
145
|
}
|
|
194
146
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
* @dependencies flex | flex-inline
|
|
198
|
-
*/
|
|
147
|
+
// @description Sets align-items to center - aligns items to the center of the cross axis.
|
|
148
|
+
// @dependencies flex | flex-inline
|
|
199
149
|
@mixin x-center {
|
|
200
150
|
align-items: center;
|
|
201
151
|
}
|
|
202
152
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
* @dependencies flex | flex-inline
|
|
206
|
-
*/
|
|
153
|
+
// @description Sets align-items to stretch - aligns items to the stretch of the cross axis.
|
|
154
|
+
// @dependencies flex | flex-inline
|
|
207
155
|
@mixin x-stretch {
|
|
208
156
|
align-items: stretch;
|
|
209
157
|
}
|
|
210
158
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
* @dependencies flex | flex-inline
|
|
214
|
-
*/
|
|
159
|
+
// @description Sets align-items to baseline - aligns items to the baseline of the cross axis.
|
|
160
|
+
// @dependencies flex | flex-inline
|
|
215
161
|
@mixin x-baseline {
|
|
216
162
|
align-items: baseline;
|
|
217
163
|
}
|
|
218
164
|
|
|
219
165
|
// Cross Axis Content Mixins
|
|
220
166
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
* @dependencies flex | flex-inline
|
|
224
|
-
*/
|
|
167
|
+
// @description Sets align-content to flex-start - aligns content to the start of the cross axis.
|
|
168
|
+
// @dependencies flex | flex-inline
|
|
225
169
|
@mixin x-content-start {
|
|
226
170
|
align-content: flex-start;
|
|
227
171
|
}
|
|
228
172
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
* @dependencies flex | flex-inline
|
|
232
|
-
*/
|
|
173
|
+
// @description Sets align-content to flex-end - aligns content to the end of the cross axis.
|
|
174
|
+
// @dependencies flex | flex-inline
|
|
233
175
|
@mixin x-content-end {
|
|
234
176
|
align-content: flex-end;
|
|
235
177
|
}
|
|
236
178
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
* @dependencies flex | flex-inline
|
|
240
|
-
*/
|
|
179
|
+
// @description Sets align-content to center - aligns content to the center of the cross axis.
|
|
180
|
+
// @dependencies flex | flex-inline
|
|
241
181
|
@mixin x-content-center {
|
|
242
182
|
align-content: center;
|
|
243
183
|
}
|
|
244
184
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
* @dependencies flex | flex-inline
|
|
248
|
-
*/
|
|
185
|
+
// @description Sets align-content to space-between - aligns content to the space between the cross axis.
|
|
186
|
+
// @dependencies flex | flex-inline
|
|
249
187
|
@mixin x-content-between {
|
|
250
188
|
align-content: space-between;
|
|
251
189
|
}
|
|
252
190
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
* @dependencies flex | flex-inline
|
|
256
|
-
*/
|
|
191
|
+
// @description Sets align-content to space-around - aligns content to the space around the cross axis.
|
|
192
|
+
// @dependencies flex | flex-inline
|
|
257
193
|
@mixin x-content-around {
|
|
258
194
|
align-content: space-around;
|
|
259
195
|
}
|
|
260
196
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
* @dependencies flex | flex-inline
|
|
264
|
-
*/
|
|
197
|
+
// @description Sets align-content to space-evenly - aligns content to the space evenly between the cross axis.
|
|
198
|
+
// @dependencies flex | flex-inline
|
|
265
199
|
@mixin x-content-evenly {
|
|
266
200
|
align-content: space-evenly;
|
|
267
201
|
}
|
|
268
202
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
* @dependencies flex | flex-inline
|
|
272
|
-
*/
|
|
203
|
+
// @description Sets align-content to stretch - aligns content to the stretch of the cross axis.
|
|
204
|
+
// @dependencies flex | flex-inline
|
|
273
205
|
@mixin x-content-stretch {
|
|
274
206
|
align-content: stretch;
|
|
275
207
|
}
|
|
276
208
|
|
|
277
209
|
// Self Alignment Mixins
|
|
278
210
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
* @dependencies flex | flex-inline
|
|
282
|
-
*/
|
|
211
|
+
// @description Sets align-self to auto
|
|
212
|
+
// @dependencies flex | flex-inline
|
|
283
213
|
@mixin self-auto {
|
|
284
214
|
align-self: auto;
|
|
285
215
|
}
|
|
286
216
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
* @dependencies flex | flex-inline
|
|
290
|
-
*/
|
|
217
|
+
// @description Sets align-self to flex-start
|
|
218
|
+
// @dependencies flex | flex-inline
|
|
291
219
|
@mixin self-start {
|
|
292
220
|
align-self: flex-start;
|
|
293
221
|
}
|
|
294
222
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
* @dependencies flex | flex-inline
|
|
298
|
-
*/
|
|
223
|
+
// @description Sets align-self to flex-end
|
|
224
|
+
// @dependencies flex | flex-inline
|
|
299
225
|
@mixin self-end {
|
|
300
226
|
align-self: flex-end;
|
|
301
227
|
}
|
|
302
228
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
* @dependencies flex | flex-inline
|
|
306
|
-
*/
|
|
229
|
+
// @description Sets align-self to center
|
|
230
|
+
// @dependencies flex | flex-inline
|
|
307
231
|
@mixin self-center {
|
|
308
232
|
align-self: center;
|
|
309
233
|
}
|
|
310
234
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
* @dependencies flex | flex-inline
|
|
314
|
-
*/
|
|
235
|
+
// @description Sets align-self to stretch
|
|
236
|
+
// @dependencies flex | flex-inline
|
|
315
237
|
@mixin self-stretch {
|
|
316
238
|
align-self: stretch;
|
|
317
239
|
}
|
|
318
240
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
* @dependencies flex | flex-inline
|
|
322
|
-
*/
|
|
241
|
+
// @description Sets align-self to baseline
|
|
242
|
+
// @dependencies flex | flex-inline
|
|
323
243
|
@mixin self-baseline {
|
|
324
244
|
align-self: baseline;
|
|
325
245
|
}
|
|
326
246
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
* @dependencies flex | flex-inline
|
|
330
|
-
*/
|
|
247
|
+
// @description Sets flex-shrink to 1 - allows the item to shrink.
|
|
248
|
+
// @dependencies flex | flex-inline
|
|
331
249
|
@mixin shrink {
|
|
332
250
|
flex-shrink: 1;
|
|
333
251
|
}
|
|
334
252
|
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
* @dependencies flex | flex-inline
|
|
338
|
-
*/
|
|
253
|
+
// @description Sets flex-shrink to 0 - prevents the item from shrinking.
|
|
254
|
+
// @dependencies flex | flex-inline
|
|
339
255
|
@mixin no-shrink {
|
|
340
256
|
flex-shrink: 0;
|
|
341
257
|
}
|
|
342
258
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
* @dependencies flex | flex-inline
|
|
346
|
-
*/
|
|
259
|
+
// @description Sets flex-shrink to 2 - allows the item to shrink twice as much as the other items.
|
|
260
|
+
// @dependencies flex | flex-inline
|
|
347
261
|
@mixin shrink-twice {
|
|
348
262
|
flex-shrink: 2;
|
|
349
263
|
}
|
|
350
264
|
|
|
351
265
|
// Flex Child Mixins
|
|
352
266
|
|
|
353
|
-
|
|
354
|
-
* @description Sets flex to 0 0 100%
|
|
355
|
-
*/
|
|
267
|
+
// @description Sets flex to 0 0 100%
|
|
356
268
|
@mixin fill-full {
|
|
357
269
|
flex: 0 0 100%;
|
|
358
270
|
}
|
|
359
271
|
|
|
360
|
-
|
|
361
|
-
* @description Sets flex to 1 1 auto - allows the item to grow and shrink.
|
|
362
|
-
*/
|
|
272
|
+
// @description Sets flex to 1 1 auto - allows the item to grow and shrink.
|
|
363
273
|
@mixin fill-auto {
|
|
364
274
|
flex: 1 1 auto;
|
|
365
275
|
}
|
|
366
276
|
|
|
367
|
-
|
|
368
|
-
* @description Sets flex to 1 1 0% - allows the item to grow but not shrink.
|
|
369
|
-
*/
|
|
277
|
+
// @description Sets flex to 1 1 0% - allows the item to grow but not shrink.
|
|
370
278
|
@mixin grow {
|
|
371
279
|
flex: 1 1 0%;
|
|
372
280
|
}
|
|
373
281
|
|
|
374
|
-
|
|
375
|
-
* @description Sets flex to none - prevents the item from growing.
|
|
376
|
-
*/
|
|
282
|
+
// @description Sets flex to none - prevents the item from growing.
|
|
377
283
|
@mixin no-grow {
|
|
378
284
|
flex: none;
|
|
379
285
|
}
|
|
380
286
|
|
|
381
|
-
|
|
382
|
-
* @description Sets flex to 1 0 auto - allows the item to grow but not shrink.
|
|
383
|
-
*/
|
|
287
|
+
// @description Sets flex to 1 0 auto - allows the item to grow but not shrink.
|
|
384
288
|
@mixin grow-only {
|
|
385
289
|
flex: 1 0 auto;
|
|
386
290
|
}
|
|
387
291
|
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
* @param {Number} $size - The number of columns to span.
|
|
391
|
-
*/
|
|
292
|
+
// @description Sets how many columns this would take using percentage of VAR.$column-count.
|
|
293
|
+
// @param {Number} $size - The number of columns to span.
|
|
392
294
|
@mixin fill($size) {
|
|
393
|
-
|
|
295
|
+
$percentage: math.percentage(math.div($size, VAR.$column-count));
|
|
296
|
+
|
|
297
|
+
$n: math.div(VAR.$column-count, $size); // How many items fit in a row
|
|
298
|
+
$gap-adjustment: calc(var(--flex-gap, 0px) * #{$n - 1} / #{$n});
|
|
299
|
+
|
|
300
|
+
// The width calculation accounts for the gap proportionally
|
|
301
|
+
flex: 0 0 calc(#{$percentage} - #{$gap-adjustment});
|
|
394
302
|
}
|
|
395
303
|
|
|
396
|
-
@if
|
|
304
|
+
@if FN.feature-enabled("flex") {
|
|
397
305
|
// Build flat selector list for all flex containers
|
|
398
306
|
$flex-selectors: "#{VAR.$parent-selector} .flex";
|
|
399
307
|
|
|
@@ -403,12 +311,6 @@
|
|
|
403
311
|
|
|
404
312
|
// Apply base flex styles to all flex variants at once
|
|
405
313
|
#{$flex-selectors} {
|
|
406
|
-
@include flex;
|
|
407
|
-
|
|
408
|
-
&.inline {
|
|
409
|
-
@include flex-inline;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
314
|
// Direction modifiers
|
|
413
315
|
&.row {
|
|
414
316
|
@include row;
|
|
@@ -595,7 +497,7 @@
|
|
|
595
497
|
|
|
596
498
|
// Handle responsive variants
|
|
597
499
|
@each $breakpoint, $width in VAR.$breakpoints {
|
|
598
|
-
$bp-val: FN.get-breakpoint-value($breakpoint);
|
|
500
|
+
$bp-val: FN.get-breakpoint-value($breakpoint); // todo: why get-breakpoint-value?
|
|
599
501
|
|
|
600
502
|
@media (min-width: #{$bp-val}) {
|
|
601
503
|
#{$flex-selectors} {
|
|
@@ -746,12 +648,6 @@
|
|
|
746
648
|
}
|
|
747
649
|
}
|
|
748
650
|
}
|
|
749
|
-
|
|
750
|
-
// Special case for inline@breakpoint
|
|
751
|
-
#{VAR.$parent-selector} .flex.inline\@#{$breakpoint},
|
|
752
|
-
#{VAR.$parent-selector} .flex\@#{$breakpoint}.inline\@#{$breakpoint} {
|
|
753
|
-
@include flex-inline;
|
|
754
|
-
}
|
|
755
651
|
}
|
|
756
652
|
}
|
|
757
653
|
}
|
|
@@ -6,20 +6,6 @@
|
|
|
6
6
|
@use "../abstracts/functions" as FN;
|
|
7
7
|
@use "../abstracts/config" as VAR;
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* @description Establishes a grid container.
|
|
11
|
-
*/
|
|
12
|
-
@mixin grid {
|
|
13
|
-
display: grid;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @description Establishes a inline-grid container.
|
|
18
|
-
*/
|
|
19
|
-
@mixin grid-inline {
|
|
20
|
-
display: inline-grid;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
9
|
// Grid Template Mixins
|
|
24
10
|
@mixin cols($count) {
|
|
25
11
|
grid-template-columns: repeat($count, minmax(0, 1fr));
|
|
@@ -28,17 +14,14 @@
|
|
|
28
14
|
grid-template-rows: repeat($count, minmax(0, 1fr));
|
|
29
15
|
}
|
|
30
16
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
* @param {number} $count - The number of columns.
|
|
17
|
+
// @description Establishes a grid container with a specified number of columns.
|
|
18
|
+
// @param {number} $count - The number of columns.
|
|
34
19
|
|
|
35
|
-
|
|
36
|
-
.custom-grid {
|
|
37
|
-
display: grid;
|
|
38
|
-
@include cols-custom("1fr_auto_1fr");
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
*/
|
|
20
|
+
// /EXAMPLE USAGE
|
|
21
|
+
// .custom-grid {
|
|
22
|
+
// display: grid;
|
|
23
|
+
// @include cols-custom("1fr_auto_1fr");
|
|
24
|
+
// }
|
|
42
25
|
|
|
43
26
|
@mixin cols-custom($template) {
|
|
44
27
|
// Convert underscores to spaces so "1fr_auto" becomes "1fr auto"
|
|
@@ -76,26 +59,20 @@ $alignments: (
|
|
|
76
59
|
"stretch": stretch,
|
|
77
60
|
);
|
|
78
61
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
* @param {string} $value - The value for the justify-items property.
|
|
82
|
-
*/
|
|
62
|
+
// @description justify-items container.
|
|
63
|
+
// @param {string} $value - The value for the justify-items property.
|
|
83
64
|
@mixin justify($value) {
|
|
84
65
|
justify-items: $value;
|
|
85
66
|
}
|
|
86
67
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
* @param {string} $value - The value for the align-items property.
|
|
90
|
-
*/
|
|
68
|
+
// @description Establishes a align-items container.
|
|
69
|
+
// @param {string} $value - The value for the align-items property.
|
|
91
70
|
@mixin align($value) {
|
|
92
71
|
align-items: $value;
|
|
93
72
|
}
|
|
94
73
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
* @param {string} $value - The value for the place-items property.
|
|
98
|
-
*/
|
|
74
|
+
// @description Establishes a place-items container.
|
|
75
|
+
// @param {string} $value - The value for the place-items property.
|
|
99
76
|
@mixin place($value) {
|
|
100
77
|
place-items: $value;
|
|
101
78
|
}
|
|
@@ -131,7 +108,7 @@ $alignments: (
|
|
|
131
108
|
grid-row: $row;
|
|
132
109
|
}
|
|
133
110
|
|
|
134
|
-
@if
|
|
111
|
+
@if FN.feature-enabled("grid") {
|
|
135
112
|
// Build the flat selector list manually with proper escaping
|
|
136
113
|
$base-grid-selector: #{VAR.$parent-selector} + " .grid";
|
|
137
114
|
$all-grid-selectors: $base-grid-selector;
|
|
@@ -142,12 +119,6 @@ $alignments: (
|
|
|
142
119
|
|
|
143
120
|
// Apply base grid styles to all grid variants at once
|
|
144
121
|
#{$all-grid-selectors} {
|
|
145
|
-
@include grid;
|
|
146
|
-
|
|
147
|
-
&.inline {
|
|
148
|
-
@include grid-inline;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
122
|
// Auto-fit/fill Classes
|
|
152
123
|
@each $size, $width in VAR.$grid-item-sizes {
|
|
153
124
|
&.auto-fit-#{$size} {
|