@nuvoui/core 1.2.5 → 1.2.6
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 +21899 -22748
- 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 +81 -47
- 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.scss +1085 -1
- package/src/styles/themes/_theme.scss +127 -91
- package/src/styles/utilities/_alignment.scss +40 -13
- package/src/styles/utilities/_animations.scss +165 -105
- package/src/styles/utilities/_backdrop-filters.scss +111 -83
- 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 +23 -29
- 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
|
@@ -1,133 +1,294 @@
|
|
|
1
1
|
// _spacing.scss
|
|
2
2
|
|
|
3
|
-
@use
|
|
4
|
-
@use
|
|
5
|
-
@use
|
|
6
|
-
@use
|
|
7
|
-
@use
|
|
8
|
-
@use
|
|
9
|
-
|
|
10
|
-
@mixin width($value) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@mixin
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
@mixin min-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
@mixin max-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
@mixin
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
@mixin
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
@mixin
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
@mixin min-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
@mixin
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
@mixin
|
|
3
|
+
@use "sass:math";
|
|
4
|
+
@use "sass:string" as str;
|
|
5
|
+
@use "../abstracts/config" as VAR;
|
|
6
|
+
@use "../abstracts/functions" as FN;
|
|
7
|
+
@use "./container-queries" as Q;
|
|
8
|
+
@use "./media-queries" as MQ;
|
|
9
|
+
|
|
10
|
+
@mixin width($value) {
|
|
11
|
+
width: FN.fix-units($value);
|
|
12
|
+
}
|
|
13
|
+
@mixin height($value) {
|
|
14
|
+
height: FN.fix-units($value);
|
|
15
|
+
}
|
|
16
|
+
@mixin min-width($value) {
|
|
17
|
+
min-width: FN.fix-units($value);
|
|
18
|
+
}
|
|
19
|
+
@mixin min-height($value) {
|
|
20
|
+
min-height: FN.fix-units($value);
|
|
21
|
+
}
|
|
22
|
+
@mixin max-width($value) {
|
|
23
|
+
max-width: FN.fix-units($value);
|
|
24
|
+
}
|
|
25
|
+
@mixin max-height($value) {
|
|
26
|
+
max-height: FN.fix-units($value);
|
|
27
|
+
}
|
|
28
|
+
@mixin width-percent($i) {
|
|
29
|
+
width: str.unquote($i + "%");
|
|
30
|
+
}
|
|
31
|
+
@mixin height-percent($i) {
|
|
32
|
+
height: str.unquote($i + "%");
|
|
33
|
+
}
|
|
34
|
+
@mixin min-width-percent($i) {
|
|
35
|
+
min-width: str.unquote($i + "%");
|
|
36
|
+
}
|
|
37
|
+
@mixin min-height-percent($i) {
|
|
38
|
+
min-height: str.unquote($i + "%");
|
|
39
|
+
}
|
|
40
|
+
@mixin max-width-percent($i) {
|
|
41
|
+
max-width: str.unquote($i + "%");
|
|
42
|
+
}
|
|
43
|
+
@mixin max-height-percent($i) {
|
|
44
|
+
max-height: str.unquote($i + "%");
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@mixin w-auto {
|
|
48
|
+
@include width(auto);
|
|
49
|
+
}
|
|
50
|
+
@mixin w-full {
|
|
51
|
+
@include width(100%);
|
|
52
|
+
}
|
|
53
|
+
@mixin h-auto {
|
|
54
|
+
@include height(auto);
|
|
55
|
+
}
|
|
56
|
+
@mixin h-full {
|
|
57
|
+
@include height(100%);
|
|
58
|
+
}
|
|
59
|
+
@mixin w-max {
|
|
60
|
+
@include width(max-content);
|
|
61
|
+
}
|
|
62
|
+
@mixin h-max {
|
|
63
|
+
@include height(max-content);
|
|
64
|
+
}
|
|
65
|
+
@mixin w-min {
|
|
66
|
+
@include width(min-content);
|
|
67
|
+
}
|
|
68
|
+
@mixin h-min {
|
|
69
|
+
@include height(min-content);
|
|
70
|
+
}
|
|
71
|
+
@mixin w-fit {
|
|
72
|
+
@include width(fit-content);
|
|
73
|
+
}
|
|
74
|
+
@mixin h-fit {
|
|
75
|
+
@include height(fit-content);
|
|
76
|
+
}
|
|
77
|
+
@mixin min-w-full {
|
|
78
|
+
@include min-width(100%);
|
|
79
|
+
}
|
|
80
|
+
@mixin max-w-full {
|
|
81
|
+
@include max-width(100%);
|
|
82
|
+
}
|
|
83
|
+
@mixin min-h-full {
|
|
84
|
+
@include min-height(100%);
|
|
85
|
+
}
|
|
86
|
+
@mixin max-h-full {
|
|
87
|
+
@include max-height(100%);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@mixin w-screen {
|
|
91
|
+
width: 100vw;
|
|
92
|
+
}
|
|
93
|
+
@mixin h-screen {
|
|
94
|
+
height: 100dvh;
|
|
95
|
+
}
|
|
41
96
|
|
|
42
97
|
@if VAR.$generate-utility-classes {
|
|
43
|
-
.w-screen {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
98
|
+
#{VAR.$parent-selector} .w-screen {
|
|
99
|
+
@include w-screen;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
#{VAR.$parent-selector} .h-screen {
|
|
103
|
+
@include h-screen;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
#{VAR.$parent-selector} .w-auto {
|
|
107
|
+
@include w-auto;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
#{VAR.$parent-selector} .w-full {
|
|
111
|
+
@include w-full;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
#{VAR.$parent-selector} .h-auto {
|
|
115
|
+
@include h-auto;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
#{VAR.$parent-selector} .h-full {
|
|
119
|
+
@include h-full;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
#{VAR.$parent-selector} .w-min {
|
|
123
|
+
@include w-min;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
#{VAR.$parent-selector} .h-min {
|
|
127
|
+
@include h-min;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
#{VAR.$parent-selector} .w-fit {
|
|
131
|
+
@include w-fit;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
#{VAR.$parent-selector} .h-fit {
|
|
135
|
+
@include h-fit;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
#{VAR.$parent-selector} .min-w-full {
|
|
139
|
+
@include min-w-full;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
#{VAR.$parent-selector} .max-w-full {
|
|
143
|
+
@include max-w-full;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
#{VAR.$parent-selector} .min-h-full {
|
|
147
|
+
@include min-h-full;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
#{VAR.$parent-selector} .max-h-full {
|
|
151
|
+
@include max-h-full;
|
|
152
|
+
}
|
|
59
153
|
|
|
60
154
|
// Percentage widths
|
|
61
155
|
@each $i in VAR.$percentages {
|
|
62
|
-
.w-#{$i}p {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
.
|
|
66
|
-
|
|
67
|
-
|
|
156
|
+
#{VAR.$parent-selector} .w-#{$i}p {
|
|
157
|
+
@include width-percent($i);
|
|
158
|
+
}
|
|
159
|
+
#{VAR.$parent-selector} .h-#{$i}p {
|
|
160
|
+
@include height-percent($i);
|
|
161
|
+
}
|
|
162
|
+
#{VAR.$parent-selector} .min-w-#{$i}p {
|
|
163
|
+
@include min-width-percent($i);
|
|
164
|
+
}
|
|
165
|
+
#{VAR.$parent-selector} .min-h-#{$i}p {
|
|
166
|
+
@include min-height-percent($i);
|
|
167
|
+
}
|
|
168
|
+
#{VAR.$parent-selector} .max-w-#{$i}p {
|
|
169
|
+
@include max-width-percent($i);
|
|
170
|
+
}
|
|
171
|
+
#{VAR.$parent-selector} .max-h-#{$i}p {
|
|
172
|
+
@include max-height-percent($i);
|
|
173
|
+
}
|
|
68
174
|
}
|
|
69
175
|
|
|
70
176
|
// Generate utilities from spacing map
|
|
71
177
|
@each $key, $value in VAR.$spacings {
|
|
72
|
-
.w-#{$key},
|
|
73
|
-
.hover\:w-#{$key}:hover,
|
|
74
|
-
.group:hover .group-hover\:w-#{$key} {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
178
|
+
#{VAR.$parent-selector} .w-#{$key},
|
|
179
|
+
#{VAR.$parent-selector} .hover\:w-#{$key}:hover,
|
|
180
|
+
#{VAR.$parent-selector} .group:hover .group-hover\:w-#{$key} {
|
|
181
|
+
@include width($value);
|
|
182
|
+
}
|
|
183
|
+
#{VAR.$parent-selector} .h-#{$key},
|
|
184
|
+
#{VAR.$parent-selector} .hover\:h-#{$key}:hover,
|
|
185
|
+
#{VAR.$parent-selector} .group:hover .group-hover\:h-#{$key} {
|
|
186
|
+
@include height($value);
|
|
187
|
+
}
|
|
78
188
|
|
|
79
|
-
.min-w-#{$key} {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
.
|
|
189
|
+
#{VAR.$parent-selector} .min-w-#{$key} {
|
|
190
|
+
@include min-width($value);
|
|
191
|
+
}
|
|
192
|
+
#{VAR.$parent-selector} .min-h-#{$key} {
|
|
193
|
+
@include min-height($value);
|
|
194
|
+
}
|
|
195
|
+
#{VAR.$parent-selector} .max-w-#{$key} {
|
|
196
|
+
@include max-width($value);
|
|
197
|
+
}
|
|
198
|
+
#{VAR.$parent-selector} .max-h-#{$key} {
|
|
199
|
+
@include max-height($value);
|
|
200
|
+
}
|
|
83
201
|
}
|
|
84
202
|
|
|
85
203
|
// Pixel widths based on spacing scale
|
|
86
204
|
@each $breakpoint, $width in VAR.$breakpoints {
|
|
205
|
+
#{VAR.$parent-selector} .w-#{$breakpoint} {
|
|
206
|
+
@include width($width);
|
|
207
|
+
}
|
|
208
|
+
#{VAR.$parent-selector} .min-w-#{$breakpoint} {
|
|
209
|
+
@include min-width($width);
|
|
210
|
+
}
|
|
211
|
+
#{VAR.$parent-selector} .max-w-#{$breakpoint} {
|
|
212
|
+
@include max-width($width);
|
|
213
|
+
}
|
|
87
214
|
|
|
88
|
-
.w
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
.
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
.
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
.
|
|
101
|
-
|
|
102
|
-
|
|
215
|
+
#{VAR.$parent-selector} .w-auto\@#{$breakpoint} {
|
|
216
|
+
@include w-auto;
|
|
217
|
+
}
|
|
218
|
+
#{VAR.$parent-selector} .w-full\@#{$breakpoint} {
|
|
219
|
+
@include w-full;
|
|
220
|
+
}
|
|
221
|
+
#{VAR.$parent-selector} .h-auto\@#{$breakpoint} {
|
|
222
|
+
@include h-auto;
|
|
223
|
+
}
|
|
224
|
+
#{VAR.$parent-selector} .h-full\@#{$breakpoint} {
|
|
225
|
+
@include h-full;
|
|
226
|
+
}
|
|
227
|
+
#{VAR.$parent-selector} .w-min\@#{$breakpoint} {
|
|
228
|
+
@include w-min;
|
|
229
|
+
}
|
|
230
|
+
#{VAR.$parent-selector} .h-min\@#{$breakpoint} {
|
|
231
|
+
@include h-min;
|
|
232
|
+
}
|
|
233
|
+
#{VAR.$parent-selector} .w-fit\@#{$breakpoint} {
|
|
234
|
+
@include w-fit;
|
|
235
|
+
}
|
|
236
|
+
#{VAR.$parent-selector} .h-fit\@#{$breakpoint} {
|
|
237
|
+
@include h-fit;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
@include MQ.media-up($breakpoint) {
|
|
103
241
|
// Generate utilities from spacing map
|
|
104
242
|
@each $i in VAR.$percentages {
|
|
105
|
-
.w-#{$i}\@#{$breakpoint},
|
|
106
|
-
.hover\:w-#{$i}\@#{$breakpoint}:hover,
|
|
107
|
-
.group:hover .group-hover\:w-#{$i}\@#{$breakpoint} {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
.
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
243
|
+
#{VAR.$parent-selector} .w-#{$i}p\@#{$breakpoint},
|
|
244
|
+
#{VAR.$parent-selector} .hover\:w-#{$i}p\@#{$breakpoint}:hover,
|
|
245
|
+
#{VAR.$parent-selector} .group:hover .group-hover\:w-#{$i}p\@#{$breakpoint} {
|
|
246
|
+
@include width-percent($i);
|
|
247
|
+
}
|
|
248
|
+
#{VAR.$parent-selector} .h-#{$i}p\@#{$breakpoint},
|
|
249
|
+
#{VAR.$parent-selector} .hover\:h-#{$i}p\@#{$breakpoint}:hover,
|
|
250
|
+
#{VAR.$parent-selector} .group:hover .group-hover\:h-#{$i}p\@#{$breakpoint} {
|
|
251
|
+
@include height-percent($i);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
#{VAR.$parent-selector} .min-w-#{$i}p\@#{$breakpoint} {
|
|
255
|
+
@include min-width-percent($i);
|
|
256
|
+
}
|
|
257
|
+
#{VAR.$parent-selector} .min-h-#{$i}p\@#{$breakpoint} {
|
|
258
|
+
@include min-height-percent($i);
|
|
259
|
+
}
|
|
260
|
+
#{VAR.$parent-selector} .max-w-#{$i}p\@#{$breakpoint} {
|
|
261
|
+
@include max-width-percent($i);
|
|
262
|
+
}
|
|
263
|
+
#{VAR.$parent-selector} .max-h-#{$i}p\@#{$breakpoint} {
|
|
264
|
+
@include max-height-percent($i);
|
|
265
|
+
}
|
|
116
266
|
}
|
|
117
267
|
|
|
118
268
|
@each $key, $value in VAR.$spacings {
|
|
119
|
-
.w-#{$key}\@#{$breakpoint},
|
|
120
|
-
.hover\:w-#{$key}\@#{$breakpoint}:hover,
|
|
121
|
-
.group:hover .group-hover\:w-#{$key}\@#{$breakpoint} {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
.
|
|
269
|
+
#{VAR.$parent-selector} .w-#{$key}\@#{$breakpoint},
|
|
270
|
+
#{VAR.$parent-selector} .hover\:w-#{$key}\@#{$breakpoint}:hover,
|
|
271
|
+
#{VAR.$parent-selector} .group:hover .group-hover\:w-#{$key}\@#{$breakpoint} {
|
|
272
|
+
@include width($value);
|
|
273
|
+
}
|
|
274
|
+
#{VAR.$parent-selector} .h-#{$key}\@#{$breakpoint},
|
|
275
|
+
#{VAR.$parent-selector} .hover\:h-#{$key}\@#{$breakpoint}:hover,
|
|
276
|
+
#{VAR.$parent-selector} .group:hover .group-hover\:h-#{$key}\@#{$breakpoint} {
|
|
277
|
+
@include height($value);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
#{VAR.$parent-selector} .min-w-#{$key}\@#{$breakpoint} {
|
|
281
|
+
@include min-width($value);
|
|
282
|
+
}
|
|
283
|
+
#{VAR.$parent-selector} .min-h-#{$key}\@#{$breakpoint} {
|
|
284
|
+
@include min-height($value);
|
|
285
|
+
}
|
|
286
|
+
#{VAR.$parent-selector} .max-w-#{$key}\@#{$breakpoint} {
|
|
287
|
+
@include max-width($value);
|
|
288
|
+
}
|
|
289
|
+
#{VAR.$parent-selector} .max-h-#{$key}\@#{$breakpoint} {
|
|
290
|
+
@include max-height($value);
|
|
291
|
+
}
|
|
131
292
|
}
|
|
132
293
|
}
|
|
133
294
|
}
|