@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
|
@@ -42,92 +42,95 @@
|
|
|
42
42
|
// @see grid
|
|
43
43
|
|
|
44
44
|
@use "sass:math";
|
|
45
|
-
@use "../
|
|
46
|
-
@use "../
|
|
47
|
-
@use "../
|
|
45
|
+
@use "../tools/media-queries" as MC;
|
|
46
|
+
@use "../config/feature-flags" as config-flags;
|
|
47
|
+
@use "../config/layouts" as config-layout;
|
|
48
|
+
@use "../config/breakpoints" as config-breakpoint;
|
|
49
|
+
@use "../functions/feature-flags" as fn-flags;
|
|
50
|
+
@use "../functions/breakpoints" as fn-breakpoints;
|
|
48
51
|
|
|
49
52
|
// @description Sets flex-direction to row.
|
|
50
53
|
// @dependencies flex | flex-inline
|
|
51
54
|
@mixin row {
|
|
52
|
-
|
|
55
|
+
flex-direction: row;
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
// @description Sets flex-direction to row-reverse.
|
|
56
59
|
// @dependencies flex | flex-inline
|
|
57
60
|
@mixin row-reverse {
|
|
58
|
-
|
|
61
|
+
flex-direction: row-reverse;
|
|
59
62
|
}
|
|
60
63
|
|
|
61
64
|
// @description Sets flex-direction to column.
|
|
62
65
|
// @dependencies flex | flex-inline
|
|
63
66
|
@mixin col {
|
|
64
|
-
|
|
67
|
+
flex-direction: column;
|
|
65
68
|
}
|
|
66
69
|
|
|
67
70
|
// @description Sets flex-direction to column-reverse.
|
|
68
71
|
// @dependencies flex | flex-inline
|
|
69
72
|
@mixin col-reverse {
|
|
70
|
-
|
|
73
|
+
flex-direction: column-reverse;
|
|
71
74
|
}
|
|
72
75
|
|
|
73
76
|
// @description Sets flex-wrap to wrap.
|
|
74
77
|
// @dependencies flex | flex-inline
|
|
75
78
|
@mixin wrap {
|
|
76
|
-
|
|
79
|
+
flex-wrap: wrap;
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
// @description Sets flex-wrap to nowrap.
|
|
80
83
|
// @dependencies flex | flex-inline
|
|
81
84
|
@mixin nowrap {
|
|
82
|
-
|
|
85
|
+
flex-wrap: nowrap;
|
|
83
86
|
}
|
|
84
87
|
|
|
85
88
|
// @description Sets flex-wrap to wrap-reverse
|
|
86
89
|
// @dependencies flex | flex-inline
|
|
87
90
|
@mixin wrap-reverse {
|
|
88
|
-
|
|
91
|
+
flex-wrap: wrap-reverse;
|
|
89
92
|
}
|
|
90
93
|
|
|
91
94
|
// @description Sets justify-content to flex-start
|
|
92
95
|
// @dependencies flex | flex-inline
|
|
93
96
|
@mixin start {
|
|
94
|
-
|
|
97
|
+
justify-content: flex-start;
|
|
95
98
|
}
|
|
96
99
|
|
|
97
100
|
// @description Sets justify-content to flex-end
|
|
98
101
|
// @dependencies flex | flex-inline
|
|
99
102
|
@mixin end {
|
|
100
|
-
|
|
103
|
+
justify-content: flex-end;
|
|
101
104
|
}
|
|
102
105
|
|
|
103
106
|
// @description Sets justify-content to center
|
|
104
107
|
// @dependencies flex | flex-inline
|
|
105
108
|
@mixin center {
|
|
106
|
-
|
|
109
|
+
justify-content: center;
|
|
107
110
|
}
|
|
108
111
|
|
|
109
112
|
// @description Sets justify-content to stretch
|
|
110
113
|
// @dependencies flex | flex-inline
|
|
111
114
|
@mixin stretch {
|
|
112
|
-
|
|
115
|
+
justify-content: stretch;
|
|
113
116
|
}
|
|
114
117
|
|
|
115
118
|
// @description Sets justify-content to space-between
|
|
116
119
|
// @dependencies flex | flex-inline
|
|
117
120
|
@mixin between {
|
|
118
|
-
|
|
121
|
+
justify-content: space-between;
|
|
119
122
|
}
|
|
120
123
|
|
|
121
124
|
// @description Sets justify-content to space-around
|
|
122
125
|
// @dependencies flex | flex-inline
|
|
123
126
|
@mixin around {
|
|
124
|
-
|
|
127
|
+
justify-content: space-around;
|
|
125
128
|
}
|
|
126
129
|
|
|
127
130
|
// @description Sets justify-content to space-evenly
|
|
128
131
|
// @dependencies flex | flex-inline
|
|
129
132
|
@mixin evenly {
|
|
130
|
-
|
|
133
|
+
justify-content: space-evenly;
|
|
131
134
|
}
|
|
132
135
|
|
|
133
136
|
// Cross Axis Alignment Mixins
|
|
@@ -135,31 +138,31 @@
|
|
|
135
138
|
// @description Sets align-items to flex-start - aligns items to the start of the cross axis.
|
|
136
139
|
// @dependencies flex | flex-inline
|
|
137
140
|
@mixin x-start {
|
|
138
|
-
|
|
141
|
+
align-items: flex-start;
|
|
139
142
|
}
|
|
140
143
|
|
|
141
144
|
// @description Sets align-items to flex-end - aligns items to the end of the cross axis.
|
|
142
145
|
// @dependencies flex | flex-inline
|
|
143
146
|
@mixin x-end {
|
|
144
|
-
|
|
147
|
+
align-items: flex-end;
|
|
145
148
|
}
|
|
146
149
|
|
|
147
150
|
// @description Sets align-items to center - aligns items to the center of the cross axis.
|
|
148
151
|
// @dependencies flex | flex-inline
|
|
149
152
|
@mixin x-center {
|
|
150
|
-
|
|
153
|
+
align-items: center;
|
|
151
154
|
}
|
|
152
155
|
|
|
153
156
|
// @description Sets align-items to stretch - aligns items to the stretch of the cross axis.
|
|
154
157
|
// @dependencies flex | flex-inline
|
|
155
158
|
@mixin x-stretch {
|
|
156
|
-
|
|
159
|
+
align-items: stretch;
|
|
157
160
|
}
|
|
158
161
|
|
|
159
162
|
// @description Sets align-items to baseline - aligns items to the baseline of the cross axis.
|
|
160
163
|
// @dependencies flex | flex-inline
|
|
161
164
|
@mixin x-baseline {
|
|
162
|
-
|
|
165
|
+
align-items: baseline;
|
|
163
166
|
}
|
|
164
167
|
|
|
165
168
|
// Cross Axis Content Mixins
|
|
@@ -167,43 +170,43 @@
|
|
|
167
170
|
// @description Sets align-content to flex-start - aligns content to the start of the cross axis.
|
|
168
171
|
// @dependencies flex | flex-inline
|
|
169
172
|
@mixin x-content-start {
|
|
170
|
-
|
|
173
|
+
align-content: flex-start;
|
|
171
174
|
}
|
|
172
175
|
|
|
173
176
|
// @description Sets align-content to flex-end - aligns content to the end of the cross axis.
|
|
174
177
|
// @dependencies flex | flex-inline
|
|
175
178
|
@mixin x-content-end {
|
|
176
|
-
|
|
179
|
+
align-content: flex-end;
|
|
177
180
|
}
|
|
178
181
|
|
|
179
182
|
// @description Sets align-content to center - aligns content to the center of the cross axis.
|
|
180
183
|
// @dependencies flex | flex-inline
|
|
181
184
|
@mixin x-content-center {
|
|
182
|
-
|
|
185
|
+
align-content: center;
|
|
183
186
|
}
|
|
184
187
|
|
|
185
188
|
// @description Sets align-content to space-between - aligns content to the space between the cross axis.
|
|
186
189
|
// @dependencies flex | flex-inline
|
|
187
190
|
@mixin x-content-between {
|
|
188
|
-
|
|
191
|
+
align-content: space-between;
|
|
189
192
|
}
|
|
190
193
|
|
|
191
194
|
// @description Sets align-content to space-around - aligns content to the space around the cross axis.
|
|
192
195
|
// @dependencies flex | flex-inline
|
|
193
196
|
@mixin x-content-around {
|
|
194
|
-
|
|
197
|
+
align-content: space-around;
|
|
195
198
|
}
|
|
196
199
|
|
|
197
200
|
// @description Sets align-content to space-evenly - aligns content to the space evenly between the cross axis.
|
|
198
201
|
// @dependencies flex | flex-inline
|
|
199
202
|
@mixin x-content-evenly {
|
|
200
|
-
|
|
203
|
+
align-content: space-evenly;
|
|
201
204
|
}
|
|
202
205
|
|
|
203
206
|
// @description Sets align-content to stretch - aligns content to the stretch of the cross axis.
|
|
204
207
|
// @dependencies flex | flex-inline
|
|
205
208
|
@mixin x-content-stretch {
|
|
206
|
-
|
|
209
|
+
align-content: stretch;
|
|
207
210
|
}
|
|
208
211
|
|
|
209
212
|
// Self Alignment Mixins
|
|
@@ -211,439 +214,439 @@
|
|
|
211
214
|
// @description Sets align-self to auto
|
|
212
215
|
// @dependencies flex | flex-inline
|
|
213
216
|
@mixin self-auto {
|
|
214
|
-
|
|
217
|
+
align-self: auto;
|
|
215
218
|
}
|
|
216
219
|
|
|
217
220
|
// @description Sets align-self to flex-start
|
|
218
221
|
// @dependencies flex | flex-inline
|
|
219
222
|
@mixin self-start {
|
|
220
|
-
|
|
223
|
+
align-self: flex-start;
|
|
221
224
|
}
|
|
222
225
|
|
|
223
226
|
// @description Sets align-self to flex-end
|
|
224
227
|
// @dependencies flex | flex-inline
|
|
225
228
|
@mixin self-end {
|
|
226
|
-
|
|
229
|
+
align-self: flex-end;
|
|
227
230
|
}
|
|
228
231
|
|
|
229
232
|
// @description Sets align-self to center
|
|
230
233
|
// @dependencies flex | flex-inline
|
|
231
234
|
@mixin self-center {
|
|
232
|
-
|
|
235
|
+
align-self: center;
|
|
233
236
|
}
|
|
234
237
|
|
|
235
238
|
// @description Sets align-self to stretch
|
|
236
239
|
// @dependencies flex | flex-inline
|
|
237
240
|
@mixin self-stretch {
|
|
238
|
-
|
|
241
|
+
align-self: stretch;
|
|
239
242
|
}
|
|
240
243
|
|
|
241
244
|
// @description Sets align-self to baseline
|
|
242
245
|
// @dependencies flex | flex-inline
|
|
243
246
|
@mixin self-baseline {
|
|
244
|
-
|
|
247
|
+
align-self: baseline;
|
|
245
248
|
}
|
|
246
249
|
|
|
247
250
|
// @description Sets flex-shrink to 1 - allows the item to shrink.
|
|
248
251
|
// @dependencies flex | flex-inline
|
|
249
252
|
@mixin shrink {
|
|
250
|
-
|
|
253
|
+
flex-shrink: 1;
|
|
251
254
|
}
|
|
252
255
|
|
|
253
256
|
// @description Sets flex-shrink to 0 - prevents the item from shrinking.
|
|
254
257
|
// @dependencies flex | flex-inline
|
|
255
258
|
@mixin no-shrink {
|
|
256
|
-
|
|
259
|
+
flex-shrink: 0;
|
|
257
260
|
}
|
|
258
261
|
|
|
259
262
|
// @description Sets flex-shrink to 2 - allows the item to shrink twice as much as the other items.
|
|
260
263
|
// @dependencies flex | flex-inline
|
|
261
264
|
@mixin shrink-twice {
|
|
262
|
-
|
|
265
|
+
flex-shrink: 2;
|
|
263
266
|
}
|
|
264
267
|
|
|
265
268
|
// Flex Child Mixins
|
|
266
269
|
|
|
267
270
|
// @description Sets flex to 0 0 100%
|
|
268
271
|
@mixin fill-full {
|
|
269
|
-
|
|
272
|
+
flex: 0 0 100%;
|
|
270
273
|
}
|
|
271
274
|
|
|
272
275
|
// @description Sets flex to 1 1 auto - allows the item to grow and shrink.
|
|
273
276
|
@mixin fill-auto {
|
|
274
|
-
|
|
277
|
+
flex: 1 1 auto;
|
|
275
278
|
}
|
|
276
279
|
|
|
277
280
|
// @description Sets flex to 1 1 0% - allows the item to grow but not shrink.
|
|
278
281
|
@mixin grow {
|
|
279
|
-
|
|
282
|
+
flex: 1 1 0%;
|
|
280
283
|
}
|
|
281
284
|
|
|
282
285
|
// @description Sets flex to none - prevents the item from growing.
|
|
283
286
|
@mixin no-grow {
|
|
284
|
-
|
|
287
|
+
flex: none;
|
|
285
288
|
}
|
|
286
289
|
|
|
287
290
|
// @description Sets flex to 1 0 auto - allows the item to grow but not shrink.
|
|
288
291
|
@mixin grow-only {
|
|
289
|
-
|
|
292
|
+
flex: 1 0 auto;
|
|
290
293
|
}
|
|
291
294
|
|
|
292
|
-
// @description Sets how many columns this would take using percentage of
|
|
295
|
+
// @description Sets how many columns this would take using percentage of config-layout.$column-count.
|
|
293
296
|
// @param {Number} $size - The number of columns to span.
|
|
294
297
|
@mixin fill($size) {
|
|
295
|
-
|
|
298
|
+
$columns: math.div(config-layout.$column-count, $size); // How many items per row
|
|
296
299
|
|
|
297
|
-
|
|
300
|
+
flex: 0 0 calc((100% - (#{$columns - 1} * var(--flex-gap, 0px))) / #{$columns});
|
|
298
301
|
}
|
|
299
302
|
|
|
300
|
-
@if
|
|
301
|
-
|
|
302
|
-
|
|
303
|
+
@if fn-flags.feature-enabled("flex") {
|
|
304
|
+
// Build flat selector list for all flex containers
|
|
305
|
+
$flex-selectors: "#{config-flags.$parent-selector} .flex";
|
|
303
306
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
// Apply base flex styles to all flex variants at once
|
|
309
|
-
#{$flex-selectors} {
|
|
310
|
-
// Direction modifiers
|
|
311
|
-
&.row {
|
|
312
|
-
@include row;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
&.row-reverse {
|
|
316
|
-
@include row-reverse;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
&.col {
|
|
320
|
-
@include col;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
&.col-reverse {
|
|
324
|
-
@include col-reverse;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
// Wrap modifiers
|
|
328
|
-
&.wrap {
|
|
329
|
-
@include wrap;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
&.nowrap {
|
|
333
|
-
@include nowrap;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
&.wrap-reverse {
|
|
337
|
-
@include wrap-reverse;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
// Justify modifiers
|
|
341
|
-
&.start {
|
|
342
|
-
@include start;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
&.end {
|
|
346
|
-
@include end;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
&.center {
|
|
350
|
-
@include center;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
&.stretch {
|
|
354
|
-
@include stretch;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
&.between {
|
|
358
|
-
@include between;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
&.around {
|
|
362
|
-
@include around;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
&.evenly {
|
|
366
|
-
@include evenly;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
// Align modifiers
|
|
370
|
-
&.x-start {
|
|
371
|
-
@include x-start;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
&.x-end {
|
|
375
|
-
@include x-end;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
&.x-center {
|
|
379
|
-
@include x-center;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
&.x-baseline {
|
|
383
|
-
@include x-baseline;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
&.x-stretch {
|
|
387
|
-
@include x-stretch;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
// Content alignment
|
|
391
|
-
&.x-content-start {
|
|
392
|
-
@include x-content-start;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
&.x-content-end {
|
|
396
|
-
@include x-content-end;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
&.x-content-center {
|
|
400
|
-
@include x-content-center;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
&.x-content-between {
|
|
404
|
-
@include x-content-between;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
&.x-content-around {
|
|
408
|
-
@include x-content-around;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
&.x-content-evenly {
|
|
412
|
-
@include x-content-evenly;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
&.x-content-stretch {
|
|
416
|
-
@include x-content-stretch;
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
// Child flex items
|
|
420
|
-
> .fill-auto {
|
|
421
|
-
@include fill-auto;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
> .fill-full {
|
|
425
|
-
@include fill-full;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
> .grow {
|
|
429
|
-
@include grow;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
> .no-grow {
|
|
433
|
-
@include no-grow;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
> .order-first {
|
|
437
|
-
order: -1;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
> .order-last {
|
|
441
|
-
order: 9999;
|
|
307
|
+
@each $breakpoint, $width in config-breakpoint.$breakpoints {
|
|
308
|
+
$flex-selectors: "#{$flex-selectors}, #{config-flags.$parent-selector} .flex\\@#{$breakpoint}";
|
|
442
309
|
}
|
|
443
310
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
> .shrink {
|
|
449
|
-
@include shrink;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
> .no-shrink {
|
|
453
|
-
@include no-shrink;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
> .shrink-twice {
|
|
457
|
-
@include shrink-twice;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
> .self-end {
|
|
461
|
-
@include self-end;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
> .self-start {
|
|
465
|
-
@include self-start;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
> .self-center {
|
|
469
|
-
@include self-center;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
> .self-stretch {
|
|
473
|
-
@include self-stretch;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
> .self-baseline {
|
|
477
|
-
@include self-baseline;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
> .self-auto {
|
|
481
|
-
@include self-auto;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
@for $i from 1 through VAR.$column-count {
|
|
485
|
-
> .fill-#{$i} {
|
|
486
|
-
@include fill($i);
|
|
487
|
-
}
|
|
488
|
-
> .order-#{$i} {
|
|
489
|
-
order: $i;
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
// Handle responsive variants
|
|
495
|
-
@each $breakpoint, $width in VAR.$breakpoints {
|
|
496
|
-
$bp-val: FN.get-breakpoint-value($breakpoint); // todo: why get-breakpoint-value?
|
|
497
|
-
|
|
498
|
-
@media (min-width: #{$bp-val}) {
|
|
499
|
-
#{$flex-selectors} {
|
|
311
|
+
// Apply base flex styles to all flex variants at once
|
|
312
|
+
#{$flex-selectors} {
|
|
500
313
|
// Direction modifiers
|
|
501
|
-
&.row
|
|
502
|
-
|
|
314
|
+
&.row {
|
|
315
|
+
@include row;
|
|
503
316
|
}
|
|
504
|
-
|
|
505
|
-
|
|
317
|
+
|
|
318
|
+
&.row-reverse {
|
|
319
|
+
@include row-reverse;
|
|
506
320
|
}
|
|
507
|
-
|
|
508
|
-
|
|
321
|
+
|
|
322
|
+
&.col {
|
|
323
|
+
@include col;
|
|
509
324
|
}
|
|
510
|
-
|
|
511
|
-
|
|
325
|
+
|
|
326
|
+
&.col-reverse {
|
|
327
|
+
@include col-reverse;
|
|
512
328
|
}
|
|
513
329
|
|
|
514
330
|
// Wrap modifiers
|
|
515
|
-
&.wrap
|
|
516
|
-
|
|
331
|
+
&.wrap {
|
|
332
|
+
@include wrap;
|
|
517
333
|
}
|
|
518
|
-
|
|
519
|
-
|
|
334
|
+
|
|
335
|
+
&.nowrap {
|
|
336
|
+
@include nowrap;
|
|
520
337
|
}
|
|
521
|
-
|
|
522
|
-
|
|
338
|
+
|
|
339
|
+
&.wrap-reverse {
|
|
340
|
+
@include wrap-reverse;
|
|
523
341
|
}
|
|
524
342
|
|
|
525
343
|
// Justify modifiers
|
|
526
|
-
&.start
|
|
527
|
-
|
|
344
|
+
&.start {
|
|
345
|
+
@include start;
|
|
528
346
|
}
|
|
529
|
-
|
|
530
|
-
|
|
347
|
+
|
|
348
|
+
&.end {
|
|
349
|
+
@include end;
|
|
531
350
|
}
|
|
532
|
-
|
|
533
|
-
|
|
351
|
+
|
|
352
|
+
&.center {
|
|
353
|
+
@include center;
|
|
534
354
|
}
|
|
535
|
-
|
|
536
|
-
|
|
355
|
+
|
|
356
|
+
&.stretch {
|
|
357
|
+
@include stretch;
|
|
537
358
|
}
|
|
538
|
-
|
|
539
|
-
|
|
359
|
+
|
|
360
|
+
&.between {
|
|
361
|
+
@include between;
|
|
540
362
|
}
|
|
541
|
-
|
|
542
|
-
|
|
363
|
+
|
|
364
|
+
&.around {
|
|
365
|
+
@include around;
|
|
543
366
|
}
|
|
544
|
-
|
|
545
|
-
|
|
367
|
+
|
|
368
|
+
&.evenly {
|
|
369
|
+
@include evenly;
|
|
546
370
|
}
|
|
547
371
|
|
|
548
372
|
// Align modifiers
|
|
549
|
-
&.x-start
|
|
550
|
-
|
|
373
|
+
&.x-start {
|
|
374
|
+
@include x-start;
|
|
551
375
|
}
|
|
552
|
-
|
|
553
|
-
|
|
376
|
+
|
|
377
|
+
&.x-end {
|
|
378
|
+
@include x-end;
|
|
554
379
|
}
|
|
555
|
-
|
|
556
|
-
|
|
380
|
+
|
|
381
|
+
&.x-center {
|
|
382
|
+
@include x-center;
|
|
557
383
|
}
|
|
558
|
-
|
|
559
|
-
|
|
384
|
+
|
|
385
|
+
&.x-baseline {
|
|
386
|
+
@include x-baseline;
|
|
560
387
|
}
|
|
561
|
-
|
|
562
|
-
|
|
388
|
+
|
|
389
|
+
&.x-stretch {
|
|
390
|
+
@include x-stretch;
|
|
563
391
|
}
|
|
564
392
|
|
|
565
393
|
// Content alignment
|
|
566
|
-
&.x-content-start
|
|
567
|
-
|
|
394
|
+
&.x-content-start {
|
|
395
|
+
@include x-content-start;
|
|
568
396
|
}
|
|
569
|
-
|
|
570
|
-
|
|
397
|
+
|
|
398
|
+
&.x-content-end {
|
|
399
|
+
@include x-content-end;
|
|
571
400
|
}
|
|
572
|
-
|
|
573
|
-
|
|
401
|
+
|
|
402
|
+
&.x-content-center {
|
|
403
|
+
@include x-content-center;
|
|
574
404
|
}
|
|
575
|
-
|
|
576
|
-
|
|
405
|
+
|
|
406
|
+
&.x-content-between {
|
|
407
|
+
@include x-content-between;
|
|
577
408
|
}
|
|
578
|
-
|
|
579
|
-
|
|
409
|
+
|
|
410
|
+
&.x-content-around {
|
|
411
|
+
@include x-content-around;
|
|
580
412
|
}
|
|
581
|
-
|
|
582
|
-
|
|
413
|
+
|
|
414
|
+
&.x-content-evenly {
|
|
415
|
+
@include x-content-evenly;
|
|
583
416
|
}
|
|
584
|
-
|
|
585
|
-
|
|
417
|
+
|
|
418
|
+
&.x-content-stretch {
|
|
419
|
+
@include x-content-stretch;
|
|
586
420
|
}
|
|
587
421
|
|
|
588
|
-
// Child
|
|
589
|
-
> .fill-auto
|
|
590
|
-
|
|
422
|
+
// Child flex items
|
|
423
|
+
> .fill-auto {
|
|
424
|
+
@include fill-auto;
|
|
591
425
|
}
|
|
592
|
-
|
|
593
|
-
|
|
426
|
+
|
|
427
|
+
> .fill-full {
|
|
428
|
+
@include fill-full;
|
|
594
429
|
}
|
|
595
|
-
|
|
596
|
-
|
|
430
|
+
|
|
431
|
+
> .grow {
|
|
432
|
+
@include grow;
|
|
597
433
|
}
|
|
598
|
-
|
|
599
|
-
|
|
434
|
+
|
|
435
|
+
> .no-grow {
|
|
436
|
+
@include no-grow;
|
|
600
437
|
}
|
|
601
|
-
|
|
602
|
-
|
|
438
|
+
|
|
439
|
+
> .order-first {
|
|
440
|
+
order: -1;
|
|
603
441
|
}
|
|
604
|
-
|
|
605
|
-
|
|
442
|
+
|
|
443
|
+
> .order-last {
|
|
444
|
+
order: 9999;
|
|
606
445
|
}
|
|
607
|
-
|
|
608
|
-
|
|
446
|
+
|
|
447
|
+
> .order-none {
|
|
448
|
+
order: 0;
|
|
609
449
|
}
|
|
610
|
-
|
|
611
|
-
|
|
450
|
+
|
|
451
|
+
> .shrink {
|
|
452
|
+
@include shrink;
|
|
612
453
|
}
|
|
613
|
-
|
|
614
|
-
|
|
454
|
+
|
|
455
|
+
> .no-shrink {
|
|
456
|
+
@include no-shrink;
|
|
615
457
|
}
|
|
616
|
-
|
|
617
|
-
|
|
458
|
+
|
|
459
|
+
> .shrink-twice {
|
|
460
|
+
@include shrink-twice;
|
|
618
461
|
}
|
|
619
|
-
|
|
620
|
-
|
|
462
|
+
|
|
463
|
+
> .self-end {
|
|
464
|
+
@include self-end;
|
|
621
465
|
}
|
|
622
|
-
|
|
623
|
-
|
|
466
|
+
|
|
467
|
+
> .self-start {
|
|
468
|
+
@include self-start;
|
|
624
469
|
}
|
|
625
|
-
|
|
626
|
-
|
|
470
|
+
|
|
471
|
+
> .self-center {
|
|
472
|
+
@include self-center;
|
|
627
473
|
}
|
|
628
|
-
|
|
629
|
-
|
|
474
|
+
|
|
475
|
+
> .self-stretch {
|
|
476
|
+
@include self-stretch;
|
|
630
477
|
}
|
|
631
|
-
|
|
632
|
-
|
|
478
|
+
|
|
479
|
+
> .self-baseline {
|
|
480
|
+
@include self-baseline;
|
|
633
481
|
}
|
|
634
|
-
|
|
635
|
-
|
|
482
|
+
|
|
483
|
+
> .self-auto {
|
|
484
|
+
@include self-auto;
|
|
636
485
|
}
|
|
637
486
|
|
|
638
|
-
@for $i from 1 through
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
487
|
+
@for $i from 1 through config-layout.$column-count {
|
|
488
|
+
> .fill-#{$i} {
|
|
489
|
+
@include fill($i);
|
|
490
|
+
}
|
|
491
|
+
> .order-#{$i} {
|
|
492
|
+
order: $i;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
// Handle responsive variants
|
|
498
|
+
@each $breakpoint, $width in config-breakpoint.$breakpoints {
|
|
499
|
+
$bp-val: fn-breakpoints.get-breakpoint-value($breakpoint); // todo: why get-breakpoint-value?
|
|
500
|
+
|
|
501
|
+
@media (min-width: #{$bp-val}) {
|
|
502
|
+
#{$flex-selectors} {
|
|
503
|
+
// Direction modifiers
|
|
504
|
+
&.row\@#{$breakpoint} {
|
|
505
|
+
@include row;
|
|
506
|
+
}
|
|
507
|
+
&.row-reverse\@#{$breakpoint} {
|
|
508
|
+
@include row-reverse;
|
|
509
|
+
}
|
|
510
|
+
&.col\@#{$breakpoint} {
|
|
511
|
+
@include col;
|
|
512
|
+
}
|
|
513
|
+
&.col-reverse\@#{$breakpoint} {
|
|
514
|
+
@include col-reverse;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
// Wrap modifiers
|
|
518
|
+
&.wrap\@#{$breakpoint} {
|
|
519
|
+
@include wrap;
|
|
520
|
+
}
|
|
521
|
+
&.nowrap\@#{$breakpoint} {
|
|
522
|
+
@include nowrap;
|
|
523
|
+
}
|
|
524
|
+
&.wrap-reverse\@#{$breakpoint} {
|
|
525
|
+
@include wrap-reverse;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
// Justify modifiers
|
|
529
|
+
&.start\@#{$breakpoint} {
|
|
530
|
+
@include start;
|
|
531
|
+
}
|
|
532
|
+
&.end\@#{$breakpoint} {
|
|
533
|
+
@include end;
|
|
534
|
+
}
|
|
535
|
+
&.center\@#{$breakpoint} {
|
|
536
|
+
@include center;
|
|
537
|
+
}
|
|
538
|
+
&.stretch\@#{$breakpoint} {
|
|
539
|
+
@include stretch;
|
|
540
|
+
}
|
|
541
|
+
&.between\@#{$breakpoint} {
|
|
542
|
+
@include between;
|
|
543
|
+
}
|
|
544
|
+
&.around\@#{$breakpoint} {
|
|
545
|
+
@include around;
|
|
546
|
+
}
|
|
547
|
+
&.evenly\@#{$breakpoint} {
|
|
548
|
+
@include evenly;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
// Align modifiers
|
|
552
|
+
&.x-start\@#{$breakpoint} {
|
|
553
|
+
@include x-start;
|
|
554
|
+
}
|
|
555
|
+
&.x-end\@#{$breakpoint} {
|
|
556
|
+
@include x-end;
|
|
557
|
+
}
|
|
558
|
+
&.x-center\@#{$breakpoint} {
|
|
559
|
+
@include x-center;
|
|
560
|
+
}
|
|
561
|
+
&.x-baseline\@#{$breakpoint} {
|
|
562
|
+
@include x-baseline;
|
|
563
|
+
}
|
|
564
|
+
&.x-stretch\@#{$breakpoint} {
|
|
565
|
+
@include x-stretch;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
// Content alignment
|
|
569
|
+
&.x-content-start\@#{$breakpoint} {
|
|
570
|
+
@include x-content-start;
|
|
571
|
+
}
|
|
572
|
+
&.x-content-end\@#{$breakpoint} {
|
|
573
|
+
@include x-content-end;
|
|
574
|
+
}
|
|
575
|
+
&.x-content-center\@#{$breakpoint} {
|
|
576
|
+
@include x-content-center;
|
|
577
|
+
}
|
|
578
|
+
&.x-content-between\@#{$breakpoint} {
|
|
579
|
+
@include x-content-between;
|
|
580
|
+
}
|
|
581
|
+
&.x-content-around\@#{$breakpoint} {
|
|
582
|
+
@include x-content-around;
|
|
583
|
+
}
|
|
584
|
+
&.x-content-evenly\@#{$breakpoint} {
|
|
585
|
+
@include x-content-evenly;
|
|
586
|
+
}
|
|
587
|
+
&.x-content-stretch\@#{$breakpoint} {
|
|
588
|
+
@include x-content-stretch;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
// Child elements
|
|
592
|
+
> .fill-auto\@#{$breakpoint} {
|
|
593
|
+
@include fill-auto;
|
|
594
|
+
}
|
|
595
|
+
> .fill-full\@#{$breakpoint} {
|
|
596
|
+
@include fill-full;
|
|
597
|
+
}
|
|
598
|
+
> .grow\@#{$breakpoint} {
|
|
599
|
+
@include grow;
|
|
600
|
+
}
|
|
601
|
+
> .no-grow\@#{$breakpoint} {
|
|
602
|
+
@include no-grow;
|
|
603
|
+
}
|
|
604
|
+
> .order-first\@#{$breakpoint} {
|
|
605
|
+
order: -1;
|
|
606
|
+
}
|
|
607
|
+
> .order-last\@#{$breakpoint} {
|
|
608
|
+
order: 9999;
|
|
609
|
+
}
|
|
610
|
+
> .order-none\@#{$breakpoint} {
|
|
611
|
+
order: 0;
|
|
612
|
+
}
|
|
613
|
+
> .shrink\@#{$breakpoint} {
|
|
614
|
+
@include shrink;
|
|
615
|
+
}
|
|
616
|
+
> .no-shrink\@#{$breakpoint} {
|
|
617
|
+
@include no-shrink;
|
|
618
|
+
}
|
|
619
|
+
> .shrink-twice\@#{$breakpoint} {
|
|
620
|
+
@include shrink-twice;
|
|
621
|
+
}
|
|
622
|
+
> .self-end\@#{$breakpoint} {
|
|
623
|
+
@include self-end;
|
|
624
|
+
}
|
|
625
|
+
> .self-start\@#{$breakpoint} {
|
|
626
|
+
@include self-start;
|
|
627
|
+
}
|
|
628
|
+
> .self-center\@#{$breakpoint} {
|
|
629
|
+
@include self-center;
|
|
630
|
+
}
|
|
631
|
+
> .self-stretch\@#{$breakpoint} {
|
|
632
|
+
@include self-stretch;
|
|
633
|
+
}
|
|
634
|
+
> .self-baseline\@#{$breakpoint} {
|
|
635
|
+
@include self-baseline;
|
|
636
|
+
}
|
|
637
|
+
> .self-auto\@#{$breakpoint} {
|
|
638
|
+
@include self-auto;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
@for $i from 1 through config-layout.$column-count {
|
|
642
|
+
> .fill-#{$i}\@#{$breakpoint} {
|
|
643
|
+
@include fill($i);
|
|
644
|
+
}
|
|
645
|
+
> .order-#{$i}\@#{$breakpoint} {
|
|
646
|
+
order: $i;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
645
650
|
}
|
|
646
|
-
}
|
|
647
651
|
}
|
|
648
|
-
}
|
|
649
652
|
}
|