@nuvoui/core 1.3.4 → 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 +424 -342
- 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 -341
- 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 +231 -224
- 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 -253
- 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,443 +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
|
-
|
|
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});
|
|
300
|
+
flex: 0 0 calc((100% - (#{$columns - 1} * var(--flex-gap, 0px))) / #{$columns});
|
|
302
301
|
}
|
|
303
302
|
|
|
304
|
-
@if
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
@each $breakpoint, $width in VAR.$breakpoints {
|
|
309
|
-
$flex-selectors: "#{$flex-selectors}, #{VAR.$parent-selector} .flex\\@#{$breakpoint}";
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
// Apply base flex styles to all flex variants at once
|
|
313
|
-
#{$flex-selectors} {
|
|
314
|
-
// Direction modifiers
|
|
315
|
-
&.row {
|
|
316
|
-
@include row;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
&.row-reverse {
|
|
320
|
-
@include row-reverse;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
&.col {
|
|
324
|
-
@include col;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
&.col-reverse {
|
|
328
|
-
@include col-reverse;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
// Wrap modifiers
|
|
332
|
-
&.wrap {
|
|
333
|
-
@include wrap;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
&.nowrap {
|
|
337
|
-
@include nowrap;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
&.wrap-reverse {
|
|
341
|
-
@include wrap-reverse;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
// Justify modifiers
|
|
345
|
-
&.start {
|
|
346
|
-
@include start;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
&.end {
|
|
350
|
-
@include end;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
&.center {
|
|
354
|
-
@include center;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
&.stretch {
|
|
358
|
-
@include stretch;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
&.between {
|
|
362
|
-
@include between;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
&.around {
|
|
366
|
-
@include around;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
&.evenly {
|
|
370
|
-
@include evenly;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
// Align modifiers
|
|
374
|
-
&.x-start {
|
|
375
|
-
@include x-start;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
&.x-end {
|
|
379
|
-
@include x-end;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
&.x-center {
|
|
383
|
-
@include x-center;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
&.x-baseline {
|
|
387
|
-
@include x-baseline;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
&.x-stretch {
|
|
391
|
-
@include x-stretch;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
// Content alignment
|
|
395
|
-
&.x-content-start {
|
|
396
|
-
@include x-content-start;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
&.x-content-end {
|
|
400
|
-
@include x-content-end;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
&.x-content-center {
|
|
404
|
-
@include x-content-center;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
&.x-content-between {
|
|
408
|
-
@include x-content-between;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
&.x-content-around {
|
|
412
|
-
@include x-content-around;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
&.x-content-evenly {
|
|
416
|
-
@include x-content-evenly;
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
&.x-content-stretch {
|
|
420
|
-
@include x-content-stretch;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
// Child flex items
|
|
424
|
-
> .fill-auto {
|
|
425
|
-
@include fill-auto;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
> .fill-full {
|
|
429
|
-
@include fill-full;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
> .grow {
|
|
433
|
-
@include grow;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
> .no-grow {
|
|
437
|
-
@include no-grow;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
> .order-first {
|
|
441
|
-
order: -1;
|
|
442
|
-
}
|
|
303
|
+
@if fn-flags.feature-enabled("flex") {
|
|
304
|
+
// Build flat selector list for all flex containers
|
|
305
|
+
$flex-selectors: "#{config-flags.$parent-selector} .flex";
|
|
443
306
|
|
|
444
|
-
|
|
445
|
-
|
|
307
|
+
@each $breakpoint, $width in config-breakpoint.$breakpoints {
|
|
308
|
+
$flex-selectors: "#{$flex-selectors}, #{config-flags.$parent-selector} .flex\\@#{$breakpoint}";
|
|
446
309
|
}
|
|
447
310
|
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
> .shrink {
|
|
453
|
-
@include shrink;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
> .no-shrink {
|
|
457
|
-
@include no-shrink;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
> .shrink-twice {
|
|
461
|
-
@include shrink-twice;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
> .self-end {
|
|
465
|
-
@include self-end;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
> .self-start {
|
|
469
|
-
@include self-start;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
> .self-center {
|
|
473
|
-
@include self-center;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
> .self-stretch {
|
|
477
|
-
@include self-stretch;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
> .self-baseline {
|
|
481
|
-
@include self-baseline;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
> .self-auto {
|
|
485
|
-
@include self-auto;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
@for $i from 1 through VAR.$column-count {
|
|
489
|
-
> .fill-#{$i} {
|
|
490
|
-
@include fill($i);
|
|
491
|
-
}
|
|
492
|
-
> .order-#{$i} {
|
|
493
|
-
order: $i;
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
// Handle responsive variants
|
|
499
|
-
@each $breakpoint, $width in VAR.$breakpoints {
|
|
500
|
-
$bp-val: FN.get-breakpoint-value($breakpoint); // todo: why get-breakpoint-value?
|
|
501
|
-
|
|
502
|
-
@media (min-width: #{$bp-val}) {
|
|
503
|
-
#{$flex-selectors} {
|
|
311
|
+
// Apply base flex styles to all flex variants at once
|
|
312
|
+
#{$flex-selectors} {
|
|
504
313
|
// Direction modifiers
|
|
505
|
-
&.row
|
|
506
|
-
|
|
314
|
+
&.row {
|
|
315
|
+
@include row;
|
|
507
316
|
}
|
|
508
|
-
|
|
509
|
-
|
|
317
|
+
|
|
318
|
+
&.row-reverse {
|
|
319
|
+
@include row-reverse;
|
|
510
320
|
}
|
|
511
|
-
|
|
512
|
-
|
|
321
|
+
|
|
322
|
+
&.col {
|
|
323
|
+
@include col;
|
|
513
324
|
}
|
|
514
|
-
|
|
515
|
-
|
|
325
|
+
|
|
326
|
+
&.col-reverse {
|
|
327
|
+
@include col-reverse;
|
|
516
328
|
}
|
|
517
329
|
|
|
518
330
|
// Wrap modifiers
|
|
519
|
-
&.wrap
|
|
520
|
-
|
|
331
|
+
&.wrap {
|
|
332
|
+
@include wrap;
|
|
521
333
|
}
|
|
522
|
-
|
|
523
|
-
|
|
334
|
+
|
|
335
|
+
&.nowrap {
|
|
336
|
+
@include nowrap;
|
|
524
337
|
}
|
|
525
|
-
|
|
526
|
-
|
|
338
|
+
|
|
339
|
+
&.wrap-reverse {
|
|
340
|
+
@include wrap-reverse;
|
|
527
341
|
}
|
|
528
342
|
|
|
529
343
|
// Justify modifiers
|
|
530
|
-
&.start
|
|
531
|
-
|
|
344
|
+
&.start {
|
|
345
|
+
@include start;
|
|
532
346
|
}
|
|
533
|
-
|
|
534
|
-
|
|
347
|
+
|
|
348
|
+
&.end {
|
|
349
|
+
@include end;
|
|
535
350
|
}
|
|
536
|
-
|
|
537
|
-
|
|
351
|
+
|
|
352
|
+
&.center {
|
|
353
|
+
@include center;
|
|
538
354
|
}
|
|
539
|
-
|
|
540
|
-
|
|
355
|
+
|
|
356
|
+
&.stretch {
|
|
357
|
+
@include stretch;
|
|
541
358
|
}
|
|
542
|
-
|
|
543
|
-
|
|
359
|
+
|
|
360
|
+
&.between {
|
|
361
|
+
@include between;
|
|
544
362
|
}
|
|
545
|
-
|
|
546
|
-
|
|
363
|
+
|
|
364
|
+
&.around {
|
|
365
|
+
@include around;
|
|
547
366
|
}
|
|
548
|
-
|
|
549
|
-
|
|
367
|
+
|
|
368
|
+
&.evenly {
|
|
369
|
+
@include evenly;
|
|
550
370
|
}
|
|
551
371
|
|
|
552
372
|
// Align modifiers
|
|
553
|
-
&.x-start
|
|
554
|
-
|
|
373
|
+
&.x-start {
|
|
374
|
+
@include x-start;
|
|
555
375
|
}
|
|
556
|
-
|
|
557
|
-
|
|
376
|
+
|
|
377
|
+
&.x-end {
|
|
378
|
+
@include x-end;
|
|
558
379
|
}
|
|
559
|
-
|
|
560
|
-
|
|
380
|
+
|
|
381
|
+
&.x-center {
|
|
382
|
+
@include x-center;
|
|
561
383
|
}
|
|
562
|
-
|
|
563
|
-
|
|
384
|
+
|
|
385
|
+
&.x-baseline {
|
|
386
|
+
@include x-baseline;
|
|
564
387
|
}
|
|
565
|
-
|
|
566
|
-
|
|
388
|
+
|
|
389
|
+
&.x-stretch {
|
|
390
|
+
@include x-stretch;
|
|
567
391
|
}
|
|
568
392
|
|
|
569
393
|
// Content alignment
|
|
570
|
-
&.x-content-start
|
|
571
|
-
|
|
394
|
+
&.x-content-start {
|
|
395
|
+
@include x-content-start;
|
|
572
396
|
}
|
|
573
|
-
|
|
574
|
-
|
|
397
|
+
|
|
398
|
+
&.x-content-end {
|
|
399
|
+
@include x-content-end;
|
|
575
400
|
}
|
|
576
|
-
|
|
577
|
-
|
|
401
|
+
|
|
402
|
+
&.x-content-center {
|
|
403
|
+
@include x-content-center;
|
|
578
404
|
}
|
|
579
|
-
|
|
580
|
-
|
|
405
|
+
|
|
406
|
+
&.x-content-between {
|
|
407
|
+
@include x-content-between;
|
|
581
408
|
}
|
|
582
|
-
|
|
583
|
-
|
|
409
|
+
|
|
410
|
+
&.x-content-around {
|
|
411
|
+
@include x-content-around;
|
|
584
412
|
}
|
|
585
|
-
|
|
586
|
-
|
|
413
|
+
|
|
414
|
+
&.x-content-evenly {
|
|
415
|
+
@include x-content-evenly;
|
|
587
416
|
}
|
|
588
|
-
|
|
589
|
-
|
|
417
|
+
|
|
418
|
+
&.x-content-stretch {
|
|
419
|
+
@include x-content-stretch;
|
|
590
420
|
}
|
|
591
421
|
|
|
592
|
-
// Child
|
|
593
|
-
> .fill-auto
|
|
594
|
-
|
|
422
|
+
// Child flex items
|
|
423
|
+
> .fill-auto {
|
|
424
|
+
@include fill-auto;
|
|
595
425
|
}
|
|
596
|
-
|
|
597
|
-
|
|
426
|
+
|
|
427
|
+
> .fill-full {
|
|
428
|
+
@include fill-full;
|
|
598
429
|
}
|
|
599
|
-
|
|
600
|
-
|
|
430
|
+
|
|
431
|
+
> .grow {
|
|
432
|
+
@include grow;
|
|
601
433
|
}
|
|
602
|
-
|
|
603
|
-
|
|
434
|
+
|
|
435
|
+
> .no-grow {
|
|
436
|
+
@include no-grow;
|
|
604
437
|
}
|
|
605
|
-
|
|
606
|
-
|
|
438
|
+
|
|
439
|
+
> .order-first {
|
|
440
|
+
order: -1;
|
|
607
441
|
}
|
|
608
|
-
|
|
609
|
-
|
|
442
|
+
|
|
443
|
+
> .order-last {
|
|
444
|
+
order: 9999;
|
|
610
445
|
}
|
|
611
|
-
|
|
612
|
-
|
|
446
|
+
|
|
447
|
+
> .order-none {
|
|
448
|
+
order: 0;
|
|
613
449
|
}
|
|
614
|
-
|
|
615
|
-
|
|
450
|
+
|
|
451
|
+
> .shrink {
|
|
452
|
+
@include shrink;
|
|
616
453
|
}
|
|
617
|
-
|
|
618
|
-
|
|
454
|
+
|
|
455
|
+
> .no-shrink {
|
|
456
|
+
@include no-shrink;
|
|
619
457
|
}
|
|
620
|
-
|
|
621
|
-
|
|
458
|
+
|
|
459
|
+
> .shrink-twice {
|
|
460
|
+
@include shrink-twice;
|
|
622
461
|
}
|
|
623
|
-
|
|
624
|
-
|
|
462
|
+
|
|
463
|
+
> .self-end {
|
|
464
|
+
@include self-end;
|
|
625
465
|
}
|
|
626
|
-
|
|
627
|
-
|
|
466
|
+
|
|
467
|
+
> .self-start {
|
|
468
|
+
@include self-start;
|
|
628
469
|
}
|
|
629
|
-
|
|
630
|
-
|
|
470
|
+
|
|
471
|
+
> .self-center {
|
|
472
|
+
@include self-center;
|
|
631
473
|
}
|
|
632
|
-
|
|
633
|
-
|
|
474
|
+
|
|
475
|
+
> .self-stretch {
|
|
476
|
+
@include self-stretch;
|
|
634
477
|
}
|
|
635
|
-
|
|
636
|
-
|
|
478
|
+
|
|
479
|
+
> .self-baseline {
|
|
480
|
+
@include self-baseline;
|
|
637
481
|
}
|
|
638
|
-
|
|
639
|
-
|
|
482
|
+
|
|
483
|
+
> .self-auto {
|
|
484
|
+
@include self-auto;
|
|
640
485
|
}
|
|
641
486
|
|
|
642
|
-
@for $i from 1 through
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
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
|
+
}
|
|
649
650
|
}
|
|
650
|
-
}
|
|
651
651
|
}
|
|
652
|
-
}
|
|
653
652
|
}
|