@nuvoui/core 1.2.5 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/nuvoui.css +22277 -22831
- 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 +124 -56
- package/src/styles/abstracts/_functions.scss +21 -61
- package/src/styles/base/_base.scss +67 -59
- package/src/styles/base/_reset.scss +11 -8
- package/src/styles/index.scss +28 -10
- package/src/styles/layouts/_container.scss +1 -2
- package/src/styles/layouts/_flex.scss +442 -154
- package/src/styles/layouts/_grid.scss +145 -75
- package/src/styles/mixins-map.json +482 -0
- package/src/styles/mixins-map.scss +1 -1
- package/src/styles/themes/_theme.scss +114 -94
- package/src/styles/utilities/_alignment.scss +40 -13
- package/src/styles/utilities/_animations.scss +165 -105
- package/src/styles/utilities/_backdrop-filters.scss +156 -107
- package/src/styles/utilities/_borders.scss +329 -143
- package/src/styles/utilities/_colors.scss +24 -25
- package/src/styles/utilities/_container-queries.scss +7 -7
- package/src/styles/utilities/_cursor.scss +10 -17
- package/src/styles/utilities/_display.scss +234 -85
- package/src/styles/utilities/_helpers.scss +5 -5
- package/src/styles/utilities/_media-queries.scss +24 -27
- package/src/styles/utilities/_opacity.scss +15 -31
- package/src/styles/utilities/_position.scss +129 -66
- package/src/styles/utilities/_shadows.scss +25 -31
- package/src/styles/utilities/_sizing.scss +269 -108
- package/src/styles/utilities/_spacing.scss +254 -156
- package/src/styles/utilities/_tooltips.scss +35 -31
- package/src/styles/utilities/_transforms.scss +179 -156
- package/src/styles/utilities/_transitions.scss +134 -68
- package/src/styles/utilities/_typography.scss +341 -127
- package/src/styles/utilities/_z-index.scss +79 -49
- package/src/styles/abstracts/_index.scss +0 -1
- package/src/styles/base/_index.scss +0 -2
- package/src/styles/layouts/_index.scss +0 -3
- package/src/styles/themes/_index.scss +0 -1
- package/src/styles/utilities/_index.scss +0 -23
|
@@ -2,24 +2,31 @@
|
|
|
2
2
|
// Module: Grid | Grid Inline
|
|
3
3
|
// Note: Gap utilities are defined in _spacing.scss
|
|
4
4
|
|
|
5
|
-
@use
|
|
6
|
-
@use
|
|
7
|
-
@use
|
|
5
|
+
@use "sass:math";
|
|
6
|
+
@use "../abstracts/functions" as FN;
|
|
7
|
+
@use "../abstracts/config" as VAR;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @description Establishes a grid container.
|
|
11
11
|
*/
|
|
12
|
-
@mixin grid {
|
|
12
|
+
@mixin grid {
|
|
13
|
+
display: grid;
|
|
14
|
+
}
|
|
13
15
|
|
|
14
16
|
/**
|
|
15
17
|
* @description Establishes a inline-grid container.
|
|
16
18
|
*/
|
|
17
|
-
@mixin grid-inline {
|
|
19
|
+
@mixin grid-inline {
|
|
20
|
+
display: inline-grid;
|
|
21
|
+
}
|
|
18
22
|
|
|
19
23
|
// Grid Template Mixins
|
|
20
|
-
@mixin cols($count) {
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
@mixin cols($count) {
|
|
25
|
+
grid-template-columns: repeat($count, minmax(0, 1fr));
|
|
26
|
+
}
|
|
27
|
+
@mixin rows($count) {
|
|
28
|
+
grid-template-rows: repeat($count, minmax(0, 1fr));
|
|
29
|
+
}
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
* @description Establishes a grid container with a specified number of columns.
|
|
@@ -41,49 +48,77 @@
|
|
|
41
48
|
}
|
|
42
49
|
|
|
43
50
|
// Auto-fit/fill Mixins
|
|
44
|
-
@mixin auto-fit($min-width) {
|
|
45
|
-
|
|
51
|
+
@mixin auto-fit($min-width) {
|
|
52
|
+
grid-template-columns: repeat(auto-fit, minmax($min-width, 1fr));
|
|
53
|
+
}
|
|
54
|
+
@mixin auto-fill($min-width) {
|
|
55
|
+
grid-template-columns: repeat(auto-fill, minmax($min-width, 1fr));
|
|
56
|
+
}
|
|
46
57
|
|
|
47
58
|
// Grid Flow Mixins
|
|
48
|
-
@mixin flow-in-row {
|
|
49
|
-
|
|
50
|
-
|
|
59
|
+
@mixin flow-in-row {
|
|
60
|
+
grid-auto-flow: row;
|
|
61
|
+
}
|
|
62
|
+
@mixin flow-in-col {
|
|
63
|
+
grid-auto-flow: column;
|
|
64
|
+
}
|
|
65
|
+
@mixin flow-dense-items {
|
|
66
|
+
grid-auto-flow: dense;
|
|
67
|
+
}
|
|
51
68
|
|
|
52
69
|
// Grid Alignment Mixins
|
|
53
70
|
|
|
54
71
|
// Alignment Classes
|
|
55
72
|
$alignments: (
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
73
|
+
"start": start,
|
|
74
|
+
"end": end,
|
|
75
|
+
"center": center,
|
|
76
|
+
"stretch": stretch,
|
|
60
77
|
);
|
|
61
78
|
|
|
62
79
|
/**
|
|
63
80
|
* @description justify-items container.
|
|
64
81
|
* @param {string} $value - The value for the justify-items property.
|
|
65
82
|
*/
|
|
66
|
-
@mixin justify($value) {
|
|
83
|
+
@mixin justify($value) {
|
|
84
|
+
justify-items: $value;
|
|
85
|
+
}
|
|
67
86
|
|
|
68
87
|
/**
|
|
69
88
|
* @description Establishes a align-items container.
|
|
70
89
|
* @param {string} $value - The value for the align-items property.
|
|
71
90
|
*/
|
|
72
|
-
@mixin align($value) {
|
|
91
|
+
@mixin align($value) {
|
|
92
|
+
align-items: $value;
|
|
93
|
+
}
|
|
73
94
|
|
|
74
95
|
/**
|
|
75
96
|
* @description Establishes a place-items container.
|
|
76
97
|
* @param {string} $value - The value for the place-items property.
|
|
77
98
|
*/
|
|
78
|
-
@mixin place($value) {
|
|
99
|
+
@mixin place($value) {
|
|
100
|
+
place-items: $value;
|
|
101
|
+
}
|
|
79
102
|
|
|
80
103
|
// Grid Item Placement Mixins
|
|
81
|
-
@mixin col-span($span) {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
@mixin
|
|
85
|
-
|
|
86
|
-
|
|
104
|
+
@mixin col-span($span) {
|
|
105
|
+
grid-column: span $span / span $span;
|
|
106
|
+
}
|
|
107
|
+
@mixin row-span($span) {
|
|
108
|
+
grid-row: span $span / span $span;
|
|
109
|
+
}
|
|
110
|
+
@mixin col-start($start) {
|
|
111
|
+
grid-column-start: $start;
|
|
112
|
+
}
|
|
113
|
+
@mixin col-end($end) {
|
|
114
|
+
grid-column-end: $end;
|
|
115
|
+
}
|
|
116
|
+
@mixin row-start($start) {
|
|
117
|
+
grid-row-start: $start;
|
|
118
|
+
}
|
|
119
|
+
@mixin row-end($end) {
|
|
120
|
+
grid-row-end: $end;
|
|
121
|
+
}
|
|
87
122
|
|
|
88
123
|
@mixin grid-position($col, $row) {
|
|
89
124
|
grid-column: $col;
|
|
@@ -98,77 +133,112 @@ $alignments: (
|
|
|
98
133
|
|
|
99
134
|
@if VAR.$generate-utility-classes {
|
|
100
135
|
// Classes
|
|
101
|
-
.grid {
|
|
102
|
-
|
|
103
|
-
|
|
136
|
+
#{VAR.$parent-selector} .grid {
|
|
137
|
+
@include grid;
|
|
138
|
+
}
|
|
104
139
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
.grid.rows-#{$i} { @include rows($i); }
|
|
140
|
+
#{VAR.$parent-selector} .grid.inline {
|
|
141
|
+
@include grid-inline;
|
|
108
142
|
}
|
|
109
143
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
144
|
+
#{VAR.$parent-selector} .grid {
|
|
145
|
+
// Auto-fit/fill Classes
|
|
146
|
+
@each $size, $width in VAR.$grid-item-sizes {
|
|
147
|
+
&.auto-fit-#{$size} {
|
|
148
|
+
@include auto-fit($width);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&.auto-fill-#{$size} {
|
|
152
|
+
@include auto-fill($width);
|
|
117
153
|
}
|
|
118
154
|
}
|
|
119
|
-
}
|
|
120
155
|
|
|
156
|
+
// Flow Classes
|
|
157
|
+
&.flow-row {
|
|
158
|
+
@include flow-in-row;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&.flow-col {
|
|
162
|
+
@include flow-in-col;
|
|
163
|
+
}
|
|
121
164
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
.col-span-#{$i} {
|
|
125
|
-
@include col-span($i);
|
|
165
|
+
&.flow-dense {
|
|
166
|
+
@include flow-dense-items;
|
|
126
167
|
}
|
|
127
168
|
|
|
128
|
-
|
|
129
|
-
|
|
169
|
+
@for $i from 1 through VAR.$column-count {
|
|
170
|
+
&.cols-#{$i} {
|
|
171
|
+
@include cols($i);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&.rows-#{$i} {
|
|
175
|
+
@include rows($i);
|
|
176
|
+
}
|
|
130
177
|
}
|
|
131
178
|
|
|
179
|
+
// Grid Template Classes
|
|
132
180
|
@each $breakpoint, $width in VAR.$breakpoints {
|
|
181
|
+
// Responsive grid columns
|
|
133
182
|
@media (min-width: #{$width}) {
|
|
134
|
-
|
|
135
|
-
|
|
183
|
+
@for $i from 1 through VAR.$column-count {
|
|
184
|
+
&.cols-#{$i}\@#{$breakpoint} {
|
|
185
|
+
@include cols($i);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&.rows-#{$i}\@#{$breakpoint} {
|
|
189
|
+
@include rows($i);
|
|
190
|
+
}
|
|
136
191
|
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// Generate Column Span Classes with Responsive Variants
|
|
196
|
+
@for $i from 1 through VAR.$column-count {
|
|
197
|
+
& .col-span-#{$i} {
|
|
198
|
+
@include col-span($i);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
& .row-span-#{$i} {
|
|
202
|
+
@include row-span($i);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
@each $breakpoint, $width in VAR.$breakpoints {
|
|
206
|
+
@media (min-width: #{$width}) {
|
|
207
|
+
& .col-span-#{$i}\@#{$breakpoint} {
|
|
208
|
+
@include col-span($i);
|
|
209
|
+
}
|
|
137
210
|
|
|
138
|
-
|
|
139
|
-
|
|
211
|
+
& .row-span-#{$i}\@#{$breakpoint} {
|
|
212
|
+
@include row-span($i);
|
|
213
|
+
}
|
|
140
214
|
}
|
|
141
215
|
}
|
|
142
216
|
}
|
|
143
|
-
}
|
|
144
217
|
|
|
218
|
+
@each $name, $value in $alignments {
|
|
219
|
+
&.justify-#{$name} {
|
|
220
|
+
@include justify($value);
|
|
221
|
+
}
|
|
145
222
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
.grid.auto-fill-#{$size} { @include auto-fill($width); }
|
|
150
|
-
}
|
|
151
|
-
|
|
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; }
|
|
223
|
+
&.align-#{$name} {
|
|
224
|
+
@include align($value);
|
|
225
|
+
}
|
|
156
226
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
.place-#{$name} { @include place($value); }
|
|
227
|
+
&.place-#{$name} {
|
|
228
|
+
@include place($value);
|
|
229
|
+
}
|
|
161
230
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
231
|
+
@each $breakpoint, $width in VAR.$breakpoints {
|
|
232
|
+
@media (min-width: #{$width}) {
|
|
233
|
+
&.justify-#{$name}\@#{$breakpoint} {
|
|
234
|
+
@include justify($value);
|
|
235
|
+
}
|
|
236
|
+
&.align-#{$name}\@#{$breakpoint} {
|
|
237
|
+
@include align($value);
|
|
238
|
+
}
|
|
239
|
+
&.place-#{$name}\@#{$breakpoint} {
|
|
240
|
+
@include place($value);
|
|
241
|
+
}
|
|
172
242
|
}
|
|
173
243
|
}
|
|
174
244
|
}
|