@nuvoui/core 1.2.4 → 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 +27685 -22739
- 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 +7 -8
- package/src/styles/abstracts/_config.scss +87 -34
- package/src/styles/abstracts/_functions.scss +70 -37
- package/src/styles/base/_base.scss +79 -59
- package/src/styles/base/_reset.scss +11 -8
- package/src/styles/index.scss +32 -17
- 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 +95 -106
- package/src/styles/utilities/_alignment.scss +40 -13
- package/src/styles/utilities/_animations.scss +361 -92
- package/src/styles/utilities/_backdrop-filters.scss +297 -0
- package/src/styles/utilities/_borders.scss +360 -159
- package/src/styles/utilities/_colors.scss +24 -34
- 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 +270 -92
- package/src/styles/utilities/_spacing.scss +317 -169
- package/src/styles/utilities/_tooltips.scss +36 -29
- package/src/styles/utilities/_transforms.scss +243 -154
- package/src/styles/utilities/_transitions.scss +129 -75
- package/src/styles/utilities/_typography.scss +341 -127
- package/src/styles/utilities/_z-index.scss +144 -0
- 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 -20
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// _transitions.scss
|
|
2
|
-
@use
|
|
2
|
+
@use "../abstracts/config" as VAR;
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Transition Utilities
|
|
@@ -11,20 +11,25 @@
|
|
|
11
11
|
* - .delay-{time}: Set transition delay
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
//
|
|
14
|
+
// Property-specific transition mixins
|
|
15
|
+
@mixin transition-none {
|
|
16
|
+
transition-property: none;
|
|
17
|
+
}
|
|
15
18
|
@mixin transition {
|
|
16
|
-
transition-property:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
transition-property: all;
|
|
20
|
+
}
|
|
21
|
+
@mixin transition-colors {
|
|
22
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
23
|
+
}
|
|
24
|
+
@mixin transition-opacity {
|
|
25
|
+
transition-property: opacity;
|
|
26
|
+
}
|
|
27
|
+
@mixin transition-shadow {
|
|
28
|
+
transition-property: box-shadow;
|
|
29
|
+
}
|
|
30
|
+
@mixin transition-transform {
|
|
31
|
+
transition-property: transform;
|
|
19
32
|
}
|
|
20
|
-
|
|
21
|
-
// Property-specific transition mixins
|
|
22
|
-
@mixin transition-none { transition-property: none; }
|
|
23
|
-
@mixin transition-all { transition-property: all; }
|
|
24
|
-
@mixin transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; }
|
|
25
|
-
@mixin transition-opacity { transition-property: opacity; }
|
|
26
|
-
@mixin transition-shadow { transition-property: box-shadow; }
|
|
27
|
-
@mixin transition-transform { transition-property: transform; }
|
|
28
33
|
|
|
29
34
|
// Duration mixins
|
|
30
35
|
@mixin duration($time) {
|
|
@@ -32,10 +37,18 @@
|
|
|
32
37
|
}
|
|
33
38
|
|
|
34
39
|
// Timing function mixins
|
|
35
|
-
@mixin ease-linear {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
@mixin ease-in
|
|
40
|
+
@mixin ease-linear {
|
|
41
|
+
transition-timing-function: linear;
|
|
42
|
+
}
|
|
43
|
+
@mixin ease-in {
|
|
44
|
+
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
45
|
+
}
|
|
46
|
+
@mixin ease-out {
|
|
47
|
+
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
48
|
+
}
|
|
49
|
+
@mixin ease-in-out {
|
|
50
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
51
|
+
}
|
|
39
52
|
|
|
40
53
|
// Delay mixins
|
|
41
54
|
@mixin delay($time) {
|
|
@@ -44,110 +57,151 @@
|
|
|
44
57
|
|
|
45
58
|
// Timing functions
|
|
46
59
|
$timing-functions: (
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
60
|
+
"linear": linear,
|
|
61
|
+
"in": cubic-bezier(0.4, 0, 1, 1),
|
|
62
|
+
"out": cubic-bezier(0, 0, 0.2, 1),
|
|
63
|
+
"in-out": cubic-bezier(0.4, 0, 0.2, 1),
|
|
51
64
|
);
|
|
52
65
|
|
|
53
66
|
// Durations
|
|
54
67
|
$durations: (
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
68
|
+
"0": 0ms,
|
|
69
|
+
"75": 75ms,
|
|
70
|
+
"100": 100ms,
|
|
71
|
+
"150": 150ms,
|
|
72
|
+
"200": 200ms,
|
|
73
|
+
"300": 300ms,
|
|
74
|
+
"500": 500ms,
|
|
75
|
+
"700": 700ms,
|
|
76
|
+
"1000": 1000ms,
|
|
64
77
|
);
|
|
65
78
|
|
|
66
|
-
|
|
67
79
|
// Delays
|
|
68
80
|
$delays: (
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
81
|
+
"0": 0ms,
|
|
82
|
+
"75": 75ms,
|
|
83
|
+
"100": 100ms,
|
|
84
|
+
"150": 150ms,
|
|
85
|
+
"200": 200ms,
|
|
86
|
+
"300": 300ms,
|
|
87
|
+
"500": 500ms,
|
|
88
|
+
"700": 700ms,
|
|
89
|
+
"1000": 1000ms,
|
|
78
90
|
);
|
|
79
91
|
|
|
92
|
+
@if VAR.$generate-utility-classes {
|
|
93
|
+
// Property-specific transitions
|
|
94
|
+
#{VAR.$parent-selector} .transition-none {
|
|
95
|
+
@include transition-none;
|
|
96
|
+
}
|
|
80
97
|
|
|
81
|
-
|
|
82
|
-
// Base transition
|
|
83
|
-
.transition {
|
|
98
|
+
#{VAR.$parent-selector} .transition {
|
|
84
99
|
@include transition;
|
|
85
100
|
}
|
|
86
101
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
.transition-opacity {
|
|
92
|
-
|
|
93
|
-
|
|
102
|
+
#{VAR.$parent-selector} .transition-colors {
|
|
103
|
+
@include transition-colors;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
#{VAR.$parent-selector} .transition-opacity {
|
|
107
|
+
@include transition-opacity;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
#{VAR.$parent-selector} .transition-shadow {
|
|
111
|
+
@include transition-shadow;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
#{VAR.$parent-selector} .transition-transform {
|
|
115
|
+
@include transition-transform;
|
|
116
|
+
}
|
|
94
117
|
|
|
95
118
|
@each $name, $value in $durations {
|
|
96
|
-
.duration-#{$name} {
|
|
119
|
+
#{VAR.$parent-selector} .duration-#{$name} {
|
|
97
120
|
@include duration($value);
|
|
98
121
|
}
|
|
99
122
|
}
|
|
100
123
|
|
|
101
124
|
@each $name, $value in $timing-functions {
|
|
102
|
-
.ease-#{$name} {
|
|
125
|
+
#{VAR.$parent-selector} .ease-#{$name} {
|
|
103
126
|
transition-timing-function: $value;
|
|
104
127
|
}
|
|
105
128
|
}
|
|
106
129
|
|
|
107
130
|
// Specific timing function classes
|
|
108
|
-
.ease-linear {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
131
|
+
#{VAR.$parent-selector} .ease-linear {
|
|
132
|
+
@include ease-linear;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
#{VAR.$parent-selector} .ease-in {
|
|
136
|
+
@include ease-in;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
#{VAR.$parent-selector} .ease-out {
|
|
140
|
+
@include ease-out;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
#{VAR.$parent-selector} .ease-in-out {
|
|
144
|
+
@include ease-in-out;
|
|
145
|
+
}
|
|
112
146
|
|
|
113
147
|
@each $name, $value in $delays {
|
|
114
|
-
.delay-#{$name} {
|
|
148
|
+
#{VAR.$parent-selector} .delay-#{$name} {
|
|
115
149
|
@include delay($value);
|
|
116
150
|
}
|
|
117
151
|
}
|
|
118
152
|
|
|
119
153
|
// Responsive variants
|
|
120
|
-
@each $breakpoint, $width in
|
|
154
|
+
@each $breakpoint, $width in VAR.$breakpoints {
|
|
121
155
|
@media (min-width: #{$width}) {
|
|
122
156
|
// Base transition
|
|
123
|
-
.transition\@#{$breakpoint} {
|
|
157
|
+
#{VAR.$parent-selector} .transition\@#{$breakpoint} {
|
|
124
158
|
@include transition;
|
|
125
159
|
}
|
|
126
|
-
|
|
160
|
+
|
|
127
161
|
// Property-specific transitions
|
|
128
|
-
.transition-none\@#{$breakpoint} {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
.transition
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
162
|
+
#{VAR.$parent-selector} .transition-none\@#{$breakpoint} {
|
|
163
|
+
@include transition-none;
|
|
164
|
+
}
|
|
165
|
+
#{VAR.$parent-selector} .transition\@#{$breakpoint} {
|
|
166
|
+
@include transition;
|
|
167
|
+
}
|
|
168
|
+
#{VAR.$parent-selector} .transition-colors\@#{$breakpoint} {
|
|
169
|
+
@include transition-colors;
|
|
170
|
+
}
|
|
171
|
+
#{VAR.$parent-selector} .transition-opacity\@#{$breakpoint} {
|
|
172
|
+
@include transition-opacity;
|
|
173
|
+
}
|
|
174
|
+
#{VAR.$parent-selector} .transition-shadow\@#{$breakpoint} {
|
|
175
|
+
@include transition-shadow;
|
|
176
|
+
}
|
|
177
|
+
#{VAR.$parent-selector} .transition-transform\@#{$breakpoint} {
|
|
178
|
+
@include transition-transform;
|
|
179
|
+
}
|
|
180
|
+
|
|
135
181
|
// Duration responsive variants
|
|
136
182
|
@each $name, $value in $durations {
|
|
137
|
-
.duration-#{$name}\@#{$breakpoint} {
|
|
183
|
+
#{VAR.$parent-selector} .duration-#{$name}\@#{$breakpoint} {
|
|
138
184
|
@include duration($value);
|
|
139
185
|
}
|
|
140
186
|
}
|
|
141
|
-
|
|
187
|
+
|
|
142
188
|
// Timing function responsive variants
|
|
143
|
-
.ease-linear\@#{$breakpoint} {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
.ease-in
|
|
147
|
-
|
|
189
|
+
#{VAR.$parent-selector} .ease-linear\@#{$breakpoint} {
|
|
190
|
+
@include ease-linear;
|
|
191
|
+
}
|
|
192
|
+
#{VAR.$parent-selector} .ease-in\@#{$breakpoint} {
|
|
193
|
+
@include ease-in;
|
|
194
|
+
}
|
|
195
|
+
#{VAR.$parent-selector} .ease-out\@#{$breakpoint} {
|
|
196
|
+
@include ease-out;
|
|
197
|
+
}
|
|
198
|
+
#{VAR.$parent-selector} .ease-in-out\@#{$breakpoint} {
|
|
199
|
+
@include ease-in-out;
|
|
200
|
+
}
|
|
201
|
+
|
|
148
202
|
// Delay responsive variants
|
|
149
203
|
@each $name, $value in $delays {
|
|
150
|
-
.delay-#{$name}\@#{$breakpoint} {
|
|
204
|
+
#{VAR.$parent-selector} .delay-#{$name}\@#{$breakpoint} {
|
|
151
205
|
@include delay($value);
|
|
152
206
|
}
|
|
153
207
|
}
|