@nuvoui/core 1.4.7 → 1.5.2
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 +463 -507
- 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 +8 -8
- package/src/styles/base/_base.scss +200 -201
- package/src/styles/base/_reset.scss +131 -127
- package/src/styles/components/_tooltips.scss +218 -216
- package/src/styles/functions/_colors.scss +26 -5
- package/src/styles/functions/_math.scss +21 -5
- package/src/styles/layouts/_container.scss +2 -4
- package/src/styles/utilities/_animations.scss +16 -4
- package/src/styles/utilities/_backdrop-filters.scss +4 -1
- package/src/styles/utilities/_colors.scss +4 -1
- package/src/styles/utilities/_typography.scss +4 -1
- package/src/styles/utilities/_z-index.scss +4 -1
|
@@ -1,132 +1,136 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
::
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
body,
|
|
12
|
-
h1,
|
|
13
|
-
h2,
|
|
14
|
-
h3,
|
|
15
|
-
h4,
|
|
16
|
-
h5,
|
|
17
|
-
h6,
|
|
18
|
-
p,
|
|
19
|
-
figure,
|
|
20
|
-
blockquote,
|
|
21
|
-
dl,
|
|
22
|
-
dd {
|
|
23
|
-
margin: 0;
|
|
24
|
-
padding: 0;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// Prevent font size inflation
|
|
28
|
-
html {
|
|
29
|
-
text-size-adjust: none;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// Set core root defaults
|
|
33
|
-
html:focus-within {
|
|
34
|
-
scroll-behavior: smooth;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// Set core body defaults
|
|
38
|
-
body {
|
|
39
|
-
min-height: 100vh;
|
|
40
|
-
min-height: 100dvh;
|
|
41
|
-
text-rendering: optimizespeed;
|
|
42
|
-
line-height: 1.5;
|
|
43
|
-
-webkit-font-smoothing: antialiased;
|
|
44
|
-
-moz-osx-font-smoothing: grayscale;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// Set shorter line heights on headings and interactive elements
|
|
48
|
-
h1,
|
|
49
|
-
h2,
|
|
50
|
-
h3,
|
|
51
|
-
h4,
|
|
52
|
-
button,
|
|
53
|
-
input,
|
|
54
|
-
label {
|
|
55
|
-
line-height: 1.1;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// Make images easier to work with
|
|
59
|
-
img,
|
|
60
|
-
picture,
|
|
61
|
-
video,
|
|
62
|
-
canvas,
|
|
63
|
-
svg,
|
|
64
|
-
audio,
|
|
65
|
-
iframe,
|
|
66
|
-
embed,
|
|
67
|
-
object {
|
|
68
|
-
display: block;
|
|
69
|
-
vertical-align: middle;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
img,
|
|
73
|
-
picture,
|
|
74
|
-
video,
|
|
75
|
-
svg {
|
|
76
|
-
max-width: 100%;
|
|
77
|
-
height: auto;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// Inherit fonts for inputs and buttons
|
|
81
|
-
input,
|
|
82
|
-
button,
|
|
83
|
-
textarea,
|
|
84
|
-
select {
|
|
85
|
-
font: inherit;
|
|
86
|
-
cursor: pointer;
|
|
87
|
-
|
|
88
|
-
&:disabled {
|
|
89
|
-
cursor: not-allowed;
|
|
1
|
+
@layer reset, base, components;
|
|
2
|
+
|
|
3
|
+
@layer reset {
|
|
4
|
+
// Box sizing rules
|
|
5
|
+
*,
|
|
6
|
+
::before,
|
|
7
|
+
::after,
|
|
8
|
+
::backdrop,
|
|
9
|
+
::file-selector-button {
|
|
10
|
+
box-sizing: border-box;
|
|
90
11
|
}
|
|
91
|
-
}
|
|
92
12
|
|
|
93
|
-
// Remove
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
13
|
+
// Remove default margin and padding
|
|
14
|
+
body,
|
|
15
|
+
h1,
|
|
16
|
+
h2,
|
|
17
|
+
h3,
|
|
18
|
+
h4,
|
|
19
|
+
h5,
|
|
20
|
+
h6,
|
|
21
|
+
p,
|
|
22
|
+
figure,
|
|
23
|
+
blockquote,
|
|
24
|
+
dl,
|
|
25
|
+
dd {
|
|
26
|
+
margin: 0;
|
|
27
|
+
padding: 0;
|
|
28
|
+
}
|
|
99
29
|
|
|
100
|
-
|
|
101
|
-
|
|
30
|
+
// Prevent font size inflation
|
|
31
|
+
html {
|
|
32
|
+
text-size-adjust: none;
|
|
102
33
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
34
|
+
|
|
35
|
+
// Set core root defaults
|
|
36
|
+
html:focus-within {
|
|
37
|
+
scroll-behavior: smooth;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Set core body defaults
|
|
41
|
+
body {
|
|
42
|
+
min-height: 100vh;
|
|
43
|
+
min-height: 100dvh;
|
|
44
|
+
text-rendering: optimizespeed;
|
|
45
|
+
line-height: 1.5;
|
|
46
|
+
-webkit-font-smoothing: antialiased;
|
|
47
|
+
-moz-osx-font-smoothing: grayscale;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Set shorter line heights on headings and interactive elements
|
|
51
|
+
h1,
|
|
52
|
+
h2,
|
|
53
|
+
h3,
|
|
54
|
+
h4,
|
|
55
|
+
button,
|
|
56
|
+
input,
|
|
57
|
+
label {
|
|
58
|
+
line-height: 1.1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Make images easier to work with
|
|
62
|
+
img,
|
|
63
|
+
picture,
|
|
64
|
+
video,
|
|
65
|
+
canvas,
|
|
66
|
+
svg,
|
|
67
|
+
audio,
|
|
68
|
+
iframe,
|
|
69
|
+
embed,
|
|
70
|
+
object {
|
|
71
|
+
display: block;
|
|
72
|
+
vertical-align: middle;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
img,
|
|
76
|
+
picture,
|
|
77
|
+
video,
|
|
78
|
+
svg {
|
|
79
|
+
max-width: 100%;
|
|
80
|
+
height: auto;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// Inherit fonts for inputs and buttons
|
|
84
|
+
input,
|
|
85
|
+
button,
|
|
86
|
+
textarea,
|
|
87
|
+
select {
|
|
88
|
+
font: inherit;
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
|
|
91
|
+
&:disabled {
|
|
92
|
+
cursor: not-allowed;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed
|
|
97
|
+
ul[role="list"],
|
|
98
|
+
ol[role="list"] {
|
|
99
|
+
list-style: none;
|
|
100
|
+
padding-inline-start: 0; // Replaces padding-left
|
|
101
|
+
margin-block: 0; // Replaces margin-top/bottom
|
|
102
|
+
|
|
103
|
+
& > li {
|
|
104
|
+
margin-block: 0;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// Remove underline from links
|
|
109
|
+
a {
|
|
110
|
+
text-decoration-skip-ink: auto;
|
|
111
|
+
text-decoration: none;
|
|
112
|
+
color: inherit;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Make sure text areas without a rows attribute are not tiny
|
|
116
|
+
textarea:not([rows]) {
|
|
117
|
+
min-height: 10em;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Anything that has been anchored to should have extra scroll margin
|
|
121
|
+
:target {
|
|
122
|
+
scroll-margin-block: 5ex;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// Remove all animations and transitions for people that prefer not to see them
|
|
126
|
+
@media (prefers-reduced-motion: reduce) {
|
|
127
|
+
*,
|
|
128
|
+
*::before,
|
|
129
|
+
*::after {
|
|
130
|
+
animation-duration: 0.01ms !important;
|
|
131
|
+
animation-iteration-count: 1 !important;
|
|
132
|
+
transition-duration: 0.01ms !important;
|
|
133
|
+
scroll-behavior: auto !important;
|
|
134
|
+
}
|
|
131
135
|
}
|
|
132
|
-
}
|
|
136
|
+
} // end @layer reset
|