@nuvoui/core 1.2.0 → 1.2.1
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.map +1 -1
- package/dist/nuvoui.min.css.map +1 -1
- package/package.json +1 -1
- package/src/styles/layouts/_container.scss +6 -3
- package/src/styles/layouts/_flex.scss +113 -111
- package/src/styles/layouts/_grid.scss +67 -65
- package/src/styles/mixins-map.scss +1 -913
- package/src/styles/themes/_theme.scss +91 -89
- package/src/styles/utilities/_alignment.scss +8 -6
- package/src/styles/utilities/_borders.scss +146 -145
- package/src/styles/utilities/_container-queries.scss +13 -11
- package/src/styles/utilities/_display.scss +57 -55
- package/src/styles/utilities/_media-queries.scss +22 -3
- package/src/styles/utilities/_opacity.scss +49 -43
- package/src/styles/utilities/_position.scss +33 -32
- package/src/styles/utilities/_shadows.scss +105 -99
- package/src/styles/utilities/_sizing.scss +53 -51
- package/src/styles/utilities/_spacing.scss +87 -85
- package/src/styles/utilities/_transitions.scss +76 -72
- package/src/styles/utilities/_typography.scss +20 -23
package/package.json
CHANGED
|
@@ -299,119 +299,121 @@
|
|
|
299
299
|
flex: 0 0 math.percentage(math.div($size, VAR.$column-count));
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
302
|
+
@if VAR.$generate-utility-classes {
|
|
303
|
+
// Base flex container
|
|
304
|
+
.flex {
|
|
305
|
+
display: flex;
|
|
306
|
+
|
|
307
|
+
// Direction modifiers
|
|
308
|
+
&.row { flex-direction: row; }
|
|
309
|
+
&.row-reverse { flex-direction: row-reverse; }
|
|
310
|
+
&.col { flex-direction: column; }
|
|
311
|
+
&.col-reverse { flex-direction: column-reverse; }
|
|
312
|
+
|
|
313
|
+
// Wrap modifiers
|
|
314
|
+
&.wrap { flex-wrap: wrap; }
|
|
315
|
+
&.nowrap { flex-wrap: nowrap; }
|
|
316
|
+
&.wrap-reverse { flex-wrap: wrap-reverse; }
|
|
317
|
+
|
|
318
|
+
// Justify modifiers
|
|
319
|
+
&.start { justify-content: flex-start; }
|
|
320
|
+
&.end { justify-content: flex-end; }
|
|
321
|
+
&.center { justify-content: center; }
|
|
322
|
+
&.between { justify-content: space-between; }
|
|
323
|
+
&.around { justify-content: space-around; }
|
|
324
|
+
&.evenly { justify-content: space-evenly; }
|
|
325
|
+
|
|
326
|
+
// Align modifiers
|
|
327
|
+
&.x-start { align-items: flex-start; }
|
|
328
|
+
&.x-end { align-items: flex-end; }
|
|
329
|
+
&.x-center { align-items: center; }
|
|
330
|
+
&.x-baseline { align-items: baseline; }
|
|
331
|
+
&.x-stretch { align-items: stretch; }
|
|
332
|
+
|
|
333
|
+
&.x-content-start { align-content: flex-start; }
|
|
334
|
+
&.x-content-end { align-content: flex-end; }
|
|
335
|
+
&.x-content-center { align-content: center; }
|
|
336
|
+
&.x-content-between { align-content: space-between; }
|
|
337
|
+
&.x-content-around { align-content: space-around; }
|
|
338
|
+
&.x-content-evenly { align-content: space-evenly; }
|
|
339
|
+
&.x-content-stretch { align-content: stretch; }
|
|
340
|
+
|
|
341
|
+
// Child flex items (using column count)
|
|
342
|
+
> .w-auto { @include f-w-auto; }
|
|
343
|
+
> .w-full { @include f-w-full; }
|
|
344
|
+
> .grow { @include grow; }
|
|
345
|
+
> .no-grow { @include no-grow; }
|
|
346
|
+
|
|
347
|
+
> .order-first { order: -1; }
|
|
348
|
+
> .order-last { order: 9999; }
|
|
349
|
+
> .order-none { order: 0; }
|
|
350
|
+
|
|
351
|
+
> .shrink { @include shrink; }
|
|
352
|
+
> .shrink-0 { @include shrink-0; }
|
|
353
|
+
> .shrink-2 { @include shrink-2; }
|
|
354
|
+
@for $i from 1 through VAR.$column-count {
|
|
355
|
+
> .w-#{$i} { @include w-col($i); }
|
|
356
|
+
> .order-#{$i} { order: $i; }
|
|
357
|
+
}
|
|
356
358
|
}
|
|
357
|
-
}
|
|
358
359
|
|
|
359
|
-
@each $breakpoint, $width in VAR.$breakpoints {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
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
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
360
|
+
@each $breakpoint, $width in VAR.$breakpoints {
|
|
361
|
+
// Get breakpoint value using FN function
|
|
362
|
+
$bp-val: FN.get-breakpoint-value($breakpoint);
|
|
363
|
+
|
|
364
|
+
@media (min-width: #{$bp-val}) {
|
|
365
|
+
.flex {
|
|
366
|
+
// Direction
|
|
367
|
+
&.row\@#{$breakpoint} { flex-direction: row; }
|
|
368
|
+
&.row-reverse\@#{$breakpoint} { flex-direction: row-reverse; }
|
|
369
|
+
&.col\@#{$breakpoint} { flex-direction: column; }
|
|
370
|
+
&.col-reverse\@#{$breakpoint} { flex-direction: column-reverse; }
|
|
371
|
+
|
|
372
|
+
// Wrap
|
|
373
|
+
&.wrap\@#{$breakpoint} { flex-wrap: wrap; }
|
|
374
|
+
&.nowrap\@#{$breakpoint} { flex-wrap: nowrap; }
|
|
375
|
+
&.wrap-reverse\@#{$breakpoint} { flex-wrap: wrap-reverse; }
|
|
376
|
+
|
|
377
|
+
// Justify
|
|
378
|
+
&.start\@#{$breakpoint} { justify-content: flex-start; }
|
|
379
|
+
&.end\@#{$breakpoint} { justify-content: flex-end; }
|
|
380
|
+
&.center\@#{$breakpoint} { justify-content: center; }
|
|
381
|
+
&.between\@#{$breakpoint} { justify-content: space-between; }
|
|
382
|
+
&.around\@#{$breakpoint} { justify-content: space-around; }
|
|
383
|
+
&.evenly\@#{$breakpoint} { justify-content: space-evenly; }
|
|
384
|
+
|
|
385
|
+
// Align
|
|
386
|
+
&.x-start\@#{$breakpoint} { align-items: flex-start; }
|
|
387
|
+
&.x-end\@#{$breakpoint} { align-items: flex-end; }
|
|
388
|
+
&.x-center\@#{$breakpoint} { align-items: center; }
|
|
389
|
+
&.x-baseline\@#{$breakpoint} { align-items: baseline; }
|
|
390
|
+
&.x-stretch\@#{$breakpoint} { align-items: stretch; }
|
|
391
|
+
|
|
392
|
+
&.x-content-start\@#{$breakpoint} { align-content: flex-start; }
|
|
393
|
+
&.x-content-end\@#{$breakpoint} { align-content: flex-end; }
|
|
394
|
+
&.x-content-center\@#{$breakpoint} { align-content: center; }
|
|
395
|
+
&.x-content-between\@#{$breakpoint} { align-content: space-between; }
|
|
396
|
+
&.x-content-around\@#{$breakpoint} { align-content: space-around; }
|
|
397
|
+
&.x-content-evenly\@#{$breakpoint} { align-content: space-evenly; }
|
|
398
|
+
&.x-content-stretch\@#{$breakpoint} { align-content: stretch; }
|
|
399
|
+
|
|
400
|
+
// Width (using column count)
|
|
401
|
+
& > .w-auto\@#{$breakpoint} { @include f-w-auto; }
|
|
402
|
+
& > .w-full\@#{$breakpoint} { @include f-w-full; }
|
|
403
|
+
& > .grow\@#{$breakpoint} { @include grow; }
|
|
404
|
+
& > .no-grow\@#{$breakpoint} { @include no-grow; }
|
|
405
|
+
& > .order-first\@#{$breakpoint} { order: -1; }
|
|
406
|
+
& > .order-last\@#{$breakpoint} { order: 9999; }
|
|
407
|
+
& > .order-none\@#{$breakpoint} { order: 0; }
|
|
408
|
+
& > .shrink\@#{$breakpoint} { @include shrink; }
|
|
409
|
+
& > .shrink-0\@#{$breakpoint} { @include shrink-0; }
|
|
410
|
+
& > .shrink-2\@#{$breakpoint} { @include shrink-2; }
|
|
411
|
+
|
|
412
|
+
@for $i from 1 through VAR.$column-count {
|
|
413
|
+
& > .w-#{$i}\@#{$breakpoint} { @include w-col($i); }
|
|
414
|
+
& > .col-#{$i}\@#{$breakpoint} { @include w-col($i); }
|
|
415
|
+
& > .order-#{$i}\@#{$breakpoint} { order: $i; }
|
|
416
|
+
}
|
|
415
417
|
}
|
|
416
418
|
}
|
|
417
419
|
}
|
|
@@ -51,6 +51,14 @@
|
|
|
51
51
|
|
|
52
52
|
// Grid Alignment Mixins
|
|
53
53
|
|
|
54
|
+
// Alignment Classes
|
|
55
|
+
$alignments: (
|
|
56
|
+
'start': start,
|
|
57
|
+
'end': end,
|
|
58
|
+
'center': center,
|
|
59
|
+
'stretch': stretch
|
|
60
|
+
);
|
|
61
|
+
|
|
54
62
|
/**
|
|
55
63
|
* @description justify-items container.
|
|
56
64
|
* @param {string} $value - The value for the justify-items property.
|
|
@@ -88,87 +96,81 @@
|
|
|
88
96
|
grid-row: $row;
|
|
89
97
|
}
|
|
90
98
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
.grid
|
|
99
|
+
@if VAR.$generate-utility-classes {
|
|
100
|
+
// Classes
|
|
101
|
+
.grid { @include grid; }
|
|
102
|
+
.grid.inline { @include grid-inline; }
|
|
94
103
|
|
|
95
104
|
|
|
96
|
-
@for $i from 1 through VAR.$column-count {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
105
|
+
@for $i from 1 through VAR.$column-count {
|
|
106
|
+
.grid.cols-#{$i} { @include cols($i); }
|
|
107
|
+
.grid.rows-#{$i} { @include rows($i); }
|
|
108
|
+
}
|
|
100
109
|
|
|
101
|
-
// Grid Template Classes
|
|
102
|
-
@each $breakpoint, $width in VAR.$breakpoints {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
110
|
+
// Grid Template Classes
|
|
111
|
+
@each $breakpoint, $width in VAR.$breakpoints {
|
|
112
|
+
// Responsive grid columns
|
|
113
|
+
@media (min-width: #{$width}) {
|
|
114
|
+
@for $i from 1 through VAR.$column-count {
|
|
115
|
+
.grid.cols-#{$i}\@#{$breakpoint} { @include cols($i); }
|
|
116
|
+
.grid.rows-#{$i}\@#{$breakpoint} { @include rows($i); }
|
|
117
|
+
}
|
|
108
118
|
}
|
|
109
119
|
}
|
|
110
|
-
}
|
|
111
120
|
|
|
112
121
|
|
|
113
|
-
// Generate Column Span Classes with Responsive Variants
|
|
114
|
-
@for $i from 1 through VAR.$column-count {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
122
|
+
// Generate Column Span Classes with Responsive Variants
|
|
123
|
+
@for $i from 1 through VAR.$column-count {
|
|
124
|
+
.span-col-#{$i} {
|
|
125
|
+
@include span-col($i);
|
|
126
|
+
}
|
|
118
127
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
128
|
+
.span-row-#{$i} {
|
|
129
|
+
@include span-row($i);
|
|
130
|
+
}
|
|
122
131
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
132
|
+
@each $breakpoint, $width in VAR.$breakpoints {
|
|
133
|
+
@media (min-width: #{$width}) {
|
|
134
|
+
.span-col-#{$i}\@#{$breakpoint} {
|
|
135
|
+
@include span-col($i);
|
|
136
|
+
}
|
|
128
137
|
|
|
129
|
-
|
|
130
|
-
|
|
138
|
+
.span-row-#{$i}\@#{$breakpoint} {
|
|
139
|
+
@include span-row($i);
|
|
140
|
+
}
|
|
131
141
|
}
|
|
132
142
|
}
|
|
133
143
|
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
// Auto-fit/fill Classes
|
|
138
|
-
@each $size, $width in VAR.$grid-item-sizes {
|
|
139
|
-
.grid.auto-fit-#{$size} { @include auto-fit($width); }
|
|
140
|
-
.grid.auto-fill-#{$size} { @include auto-fill($width); }
|
|
141
|
-
}
|
|
142
144
|
|
|
143
|
-
// Flow Classes
|
|
144
|
-
.grid.flow-row { @include flow-in-row; }
|
|
145
|
-
.grid.flow-col { @include flow-in-col; }
|
|
146
|
-
.grid.flow-dense { @include flow-dense-items; }
|
|
147
145
|
|
|
148
|
-
//
|
|
149
|
-
$
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
'stretch': stretch
|
|
154
|
-
);
|
|
155
|
-
|
|
156
|
-
@each $name, $value in $alignments {
|
|
157
|
-
.justify-items-#{$name} { justify-items: $value; }
|
|
158
|
-
.align-items-#{$name} { align-items: $value; }
|
|
159
|
-
.place-items-#{$name} { place-items: $value; }
|
|
146
|
+
// Auto-fit/fill Classes
|
|
147
|
+
@each $size, $width in VAR.$grid-item-sizes {
|
|
148
|
+
.grid.auto-fit-#{$size} { @include auto-fit($width); }
|
|
149
|
+
.grid.auto-fill-#{$size} { @include auto-fill($width); }
|
|
150
|
+
}
|
|
160
151
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
152
|
+
// Flow Classes
|
|
153
|
+
.grid.flow-row { @include flow-in-row; }
|
|
154
|
+
.grid.flow-col { @include flow-in-col; }
|
|
155
|
+
.grid.flow-dense { @include flow-dense-items; }
|
|
156
|
+
|
|
157
|
+
@each $name, $value in $alignments {
|
|
158
|
+
.justify-items-#{$name} { justify-items: $value; }
|
|
159
|
+
.align-items-#{$name} { align-items: $value; }
|
|
160
|
+
.place-items-#{$name} { place-items: $value; }
|
|
161
|
+
|
|
162
|
+
@each $breakpoint, $width in VAR.$breakpoints {
|
|
163
|
+
@media (min-width: #{$width}) {
|
|
164
|
+
.justify-items-#{$name}\@#{$breakpoint} {
|
|
165
|
+
justify-items: $value;
|
|
166
|
+
}
|
|
167
|
+
.align-items-#{$name}\@#{$breakpoint} {
|
|
168
|
+
align-items: $value;
|
|
169
|
+
}
|
|
170
|
+
.place-items-#{$name}\@#{$breakpoint} {
|
|
171
|
+
place-items: $value;
|
|
172
|
+
}
|
|
171
173
|
}
|
|
172
174
|
}
|
|
173
175
|
}
|
|
174
|
-
}
|
|
176
|
+
}
|