@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// _transitions.scss
|
|
2
|
-
@use
|
|
2
|
+
@use "../abstracts/config" as VAR;
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Transition Utilities
|
|
@@ -9,15 +9,27 @@
|
|
|
9
9
|
* - .duration-{time}: Set transition duration
|
|
10
10
|
* - .ease-{type}: Set transition timing function
|
|
11
11
|
* - .delay-{time}: Set transition delay
|
|
12
|
-
*/
|
|
12
|
+
*/
|
|
13
13
|
|
|
14
14
|
// Property-specific transition mixins
|
|
15
|
-
@mixin transition-none {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
@mixin transition
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
@mixin transition-none {
|
|
16
|
+
transition-property: none;
|
|
17
|
+
}
|
|
18
|
+
@mixin transition {
|
|
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;
|
|
32
|
+
}
|
|
21
33
|
|
|
22
34
|
// Duration mixins
|
|
23
35
|
@mixin duration($time) {
|
|
@@ -25,10 +37,18 @@
|
|
|
25
37
|
}
|
|
26
38
|
|
|
27
39
|
// Timing function mixins
|
|
28
|
-
@mixin ease-linear {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
@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
|
+
}
|
|
32
52
|
|
|
33
53
|
// Delay mixins
|
|
34
54
|
@mixin delay($time) {
|
|
@@ -37,105 +57,151 @@
|
|
|
37
57
|
|
|
38
58
|
// Timing functions
|
|
39
59
|
$timing-functions: (
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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),
|
|
44
64
|
);
|
|
45
65
|
|
|
46
66
|
// Durations
|
|
47
67
|
$durations: (
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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,
|
|
57
77
|
);
|
|
58
78
|
|
|
59
|
-
|
|
60
79
|
// Delays
|
|
61
80
|
$delays: (
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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,
|
|
71
90
|
);
|
|
72
91
|
|
|
73
|
-
|
|
74
|
-
@if $generate-utility-classes {
|
|
92
|
+
@if VAR.$generate-utility-classes {
|
|
75
93
|
// Property-specific transitions
|
|
76
|
-
.transition-none {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
.transition
|
|
81
|
-
|
|
94
|
+
#{VAR.$parent-selector} .transition-none {
|
|
95
|
+
@include transition-none;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
#{VAR.$parent-selector} .transition {
|
|
99
|
+
@include transition;
|
|
100
|
+
}
|
|
101
|
+
|
|
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
|
+
}
|
|
82
117
|
|
|
83
118
|
@each $name, $value in $durations {
|
|
84
|
-
.duration-#{$name} {
|
|
119
|
+
#{VAR.$parent-selector} .duration-#{$name} {
|
|
85
120
|
@include duration($value);
|
|
86
121
|
}
|
|
87
122
|
}
|
|
88
123
|
|
|
89
124
|
@each $name, $value in $timing-functions {
|
|
90
|
-
.ease-#{$name} {
|
|
125
|
+
#{VAR.$parent-selector} .ease-#{$name} {
|
|
91
126
|
transition-timing-function: $value;
|
|
92
127
|
}
|
|
93
128
|
}
|
|
94
129
|
|
|
95
130
|
// Specific timing function classes
|
|
96
|
-
.ease-linear {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
+
}
|
|
100
146
|
|
|
101
147
|
@each $name, $value in $delays {
|
|
102
|
-
.delay-#{$name} {
|
|
148
|
+
#{VAR.$parent-selector} .delay-#{$name} {
|
|
103
149
|
@include delay($value);
|
|
104
150
|
}
|
|
105
151
|
}
|
|
106
152
|
|
|
107
153
|
// Responsive variants
|
|
108
|
-
@each $breakpoint, $width in
|
|
154
|
+
@each $breakpoint, $width in VAR.$breakpoints {
|
|
109
155
|
@media (min-width: #{$width}) {
|
|
110
156
|
// Base transition
|
|
111
|
-
.transition\@#{$breakpoint} {
|
|
157
|
+
#{VAR.$parent-selector} .transition\@#{$breakpoint} {
|
|
112
158
|
@include transition;
|
|
113
159
|
}
|
|
114
|
-
|
|
160
|
+
|
|
115
161
|
// Property-specific transitions
|
|
116
|
-
.transition-none\@#{$breakpoint} {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
.transition
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
+
|
|
123
181
|
// Duration responsive variants
|
|
124
182
|
@each $name, $value in $durations {
|
|
125
|
-
.duration-#{$name}\@#{$breakpoint} {
|
|
183
|
+
#{VAR.$parent-selector} .duration-#{$name}\@#{$breakpoint} {
|
|
126
184
|
@include duration($value);
|
|
127
185
|
}
|
|
128
186
|
}
|
|
129
|
-
|
|
187
|
+
|
|
130
188
|
// Timing function responsive variants
|
|
131
|
-
.ease-linear\@#{$breakpoint} {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
.ease-in
|
|
135
|
-
|
|
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
|
+
|
|
136
202
|
// Delay responsive variants
|
|
137
203
|
@each $name, $value in $delays {
|
|
138
|
-
.delay-#{$name}\@#{$breakpoint} {
|
|
204
|
+
#{VAR.$parent-selector} .delay-#{$name}\@#{$breakpoint} {
|
|
139
205
|
@include delay($value);
|
|
140
206
|
}
|
|
141
207
|
}
|