@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuvoui/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "NuvoUI is a human-friendly SCSS framework designed for simplicity, and modern responsive designs.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "AALA IT Solutions",
|
|
@@ -76,15 +76,15 @@
|
|
|
76
76
|
"not dead"
|
|
77
77
|
],
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"cssnano": "^7.
|
|
80
|
-
"postcss": "^8.5.
|
|
79
|
+
"cssnano": "^7.1.2",
|
|
80
|
+
"postcss": "^8.5.6",
|
|
81
81
|
"postcss-cli": "^11.0.1",
|
|
82
|
-
"postcss-import": "^16.1.
|
|
82
|
+
"postcss-import": "^16.1.1",
|
|
83
83
|
"postcss-nested": "^7.0.2",
|
|
84
|
-
"prettier": "^3.
|
|
85
|
-
"sass": "^1.
|
|
86
|
-
"stylelint": "^16.
|
|
87
|
-
"stylelint-config-standard-scss": "^
|
|
84
|
+
"prettier": "^3.7.4",
|
|
85
|
+
"sass": "^1.97.0",
|
|
86
|
+
"stylelint": "^16.26.1",
|
|
87
|
+
"stylelint-config-standard-scss": "^16.0.0"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
90
|
"sass": "^1.x"
|
|
@@ -5,213 +5,212 @@
|
|
|
5
5
|
@use "../config/feature-flags" as config-flags;
|
|
6
6
|
@use "../tools/accessibility" as tool-accessibility;
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
#{config-flags.$parent-selector}
|
|
27
|
-
#{config-flags.$parent-selector}
|
|
28
|
-
#{config-flags.$parent-selector}
|
|
29
|
-
#{config-flags.$parent-selector}
|
|
30
|
-
#{config-flags.$parent-selector}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
background-color: var(--button-bg-color, #007bff); // Default button color
|
|
8
|
+
@layer base {
|
|
9
|
+
:root {
|
|
10
|
+
--font-family-base: #{config-typo.$font-family};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Base config-typo styles
|
|
14
|
+
html {
|
|
15
|
+
font-size: config-typo.$base-size;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
body#{config-flags.$parent-selector} {
|
|
19
|
+
font-family: var(--font-family-base);
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
line-height: 1.5;
|
|
22
|
+
color: var(--text-default);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Headings
|
|
26
|
+
#{config-flags.$parent-selector} h1,
|
|
27
|
+
#{config-flags.$parent-selector} h2,
|
|
28
|
+
#{config-flags.$parent-selector} h3,
|
|
29
|
+
#{config-flags.$parent-selector} h4,
|
|
30
|
+
#{config-flags.$parent-selector} h5,
|
|
31
|
+
#{config-flags.$parent-selector} h6 {
|
|
32
|
+
margin-bottom: 0.5em;
|
|
33
|
+
font-family: var(--font-family-base);
|
|
34
|
+
font-weight: 700;
|
|
35
|
+
line-height: 1.2;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
#{config-flags.$parent-selector} h1 {
|
|
39
|
+
font-size: map.get(config-typo.$font-sizes, "4xl");
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
#{config-flags.$parent-selector} h2 {
|
|
43
|
+
font-size: map.get(config-typo.$font-sizes, "3xl");
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
#{config-flags.$parent-selector} h3 {
|
|
47
|
+
font-size: map.get(config-typo.$font-sizes, "2xl");
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
#{config-flags.$parent-selector} h4 {
|
|
51
|
+
font-size: map.get(config-typo.$font-sizes, "xl");
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
#{config-flags.$parent-selector} h5 {
|
|
55
|
+
font-size: map.get(config-typo.$font-sizes, "lg");
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
#{config-flags.$parent-selector} h6 {
|
|
59
|
+
font-size: map.get(config-typo.$font-sizes, "base");
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Paragraphs
|
|
63
|
+
#{config-flags.$parent-selector} p {
|
|
64
|
+
margin-bottom: 1rem;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// Small text
|
|
68
|
+
#{config-flags.$parent-selector} small {
|
|
69
|
+
font-size: map.get(config-typo.$font-sizes, "sm");
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Buttons
|
|
73
|
+
#{config-flags.$parent-selector} button {
|
|
74
|
+
padding: 0.5rem 1rem;
|
|
75
|
+
border: 0;
|
|
76
|
+
border-radius: 0.25rem;
|
|
77
|
+
font-family: var(--font-family-base);
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
transition:
|
|
80
|
+
background-color 0.2s ease-in-out,
|
|
81
|
+
color 0.2s ease-in-out;
|
|
82
|
+
|
|
83
|
+
&:focus {
|
|
84
|
+
outline: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&:disabled {
|
|
88
|
+
background-color: #e0e0e0;
|
|
89
|
+
color: #a0a0a0;
|
|
90
|
+
cursor: not-allowed;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
background-color: var(--button-bg-color, #007bff);
|
|
95
94
|
color: var(--button-text-color, #fff);
|
|
96
95
|
|
|
97
96
|
&:hover {
|
|
98
97
|
background-color: var(--button-bg-color-hover, #0056b3);
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
// Inputs
|
|
104
|
-
#{config-flags.$parent-selector} input[type="text"],
|
|
105
|
-
#{config-flags.$parent-selector} input[type="tel"],
|
|
106
|
-
#{config-flags.$parent-selector} input[type="email"],
|
|
107
|
-
#{config-flags.$parent-selector} input[type="password"],
|
|
108
|
-
#{config-flags.$parent-selector} input[type="number"],
|
|
109
|
-
#{config-flags.$parent-selector} input[type="search"],
|
|
110
|
-
#{config-flags.$parent-selector} textarea {
|
|
111
|
-
padding: 0.5rem;
|
|
112
|
-
border: var(--border-size, 1px) var(--border-style, solid) var(--border-base, var(--secondary));
|
|
113
|
-
border-radius: 0.25rem;
|
|
114
|
-
width: 100%; // Full width
|
|
115
|
-
font-family: var(--font-family-base);
|
|
116
|
-
transition: border 0.2s ease-in-out;
|
|
117
|
-
|
|
118
|
-
&:focus {
|
|
119
|
-
border-color: var(--link-color);
|
|
120
|
-
outline: none;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// Checkboxes and Radio Buttons
|
|
125
|
-
#{config-flags.$parent-selector} input[type="checkbox"],
|
|
126
|
-
#{config-flags.$parent-selector} input[type="radio"] {
|
|
127
|
-
margin-right: 0.5rem; // Space between input and label
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// Selects
|
|
131
|
-
#{config-flags.$parent-selector} select {
|
|
132
|
-
padding: 0.5rem;
|
|
133
|
-
border: var(--border-size, 1px) var(--border-style, solid) var(--border-base, var(--secondary));
|
|
134
|
-
border-radius: 0.25rem;
|
|
135
|
-
width: 100%; // Full width
|
|
136
|
-
font-family: var(--font-family-base);
|
|
137
|
-
transition: border 0.2s ease-in-out;
|
|
138
|
-
|
|
139
|
-
&:focus {
|
|
140
|
-
border-color: var(--link-color);
|
|
141
|
-
outline: none;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// Blockquotes
|
|
146
|
-
#{config-flags.$parent-selector} blockquote {
|
|
147
|
-
margin: 1rem 0;
|
|
148
|
-
padding: 0.5rem 1rem;
|
|
149
|
-
border-left: var(--border-size, 4px) var(--border-style, solid) var(--border-base, var(--secondary));
|
|
150
|
-
font-style: italic;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
// Horizontal Rule
|
|
154
|
-
#{config-flags.$parent-selector} hr {
|
|
155
|
-
border: none;
|
|
156
|
-
border-top: var(--border-size, 1px) var(--border-style, solid) var(--border-base, var(--secondary));
|
|
157
|
-
margin: 1rem 0;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
// Images
|
|
161
|
-
#{config-flags.$parent-selector} img {
|
|
162
|
-
max-width: 100%; // Responsive images
|
|
163
|
-
height: auto;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
// Figures and Captions
|
|
167
|
-
#{config-flags.$parent-selector} figure {
|
|
168
|
-
margin: 1rem 0;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
#{config-flags.$parent-selector} figcaption {
|
|
172
|
-
font-size: 0.875rem; // Smaller font for captions
|
|
173
|
-
color: var(--text-muted, #666); // Optional secondary text color
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
// Links
|
|
177
|
-
#{config-flags.$parent-selector} a {
|
|
178
|
-
&:not([class]) {
|
|
179
|
-
color: var(--link-color);
|
|
180
100
|
|
|
181
|
-
|
|
182
|
-
|
|
101
|
+
// Inputs
|
|
102
|
+
#{config-flags.$parent-selector} input[type="text"],
|
|
103
|
+
#{config-flags.$parent-selector} input[type="tel"],
|
|
104
|
+
#{config-flags.$parent-selector} input[type="email"],
|
|
105
|
+
#{config-flags.$parent-selector} input[type="password"],
|
|
106
|
+
#{config-flags.$parent-selector} input[type="number"],
|
|
107
|
+
#{config-flags.$parent-selector} input[type="search"],
|
|
108
|
+
#{config-flags.$parent-selector} textarea {
|
|
109
|
+
padding: 0.5rem;
|
|
110
|
+
border: var(--border-size, 1px) var(--border-style, solid) var(--border-base, var(--secondary));
|
|
111
|
+
border-radius: 0.25rem;
|
|
112
|
+
width: 100%; // Full width
|
|
113
|
+
font-family: var(--font-family-base);
|
|
114
|
+
transition: border 0.2s ease-in-out;
|
|
115
|
+
|
|
116
|
+
&:focus {
|
|
117
|
+
border-color: var(--link-color);
|
|
118
|
+
outline: none;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Checkboxes and Radio Buttons
|
|
123
|
+
#{config-flags.$parent-selector} input[type="checkbox"],
|
|
124
|
+
#{config-flags.$parent-selector} input[type="radio"] {
|
|
125
|
+
margin-right: 0.5rem; // Space between input and label
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// Selects
|
|
129
|
+
#{config-flags.$parent-selector} select {
|
|
130
|
+
padding: 0.5rem;
|
|
131
|
+
border: var(--border-size, 1px) var(--border-style, solid) var(--border-base, var(--secondary));
|
|
132
|
+
border-radius: 0.25rem;
|
|
133
|
+
width: 100%; // Full width
|
|
134
|
+
font-family: var(--font-family-base);
|
|
135
|
+
transition: border 0.2s ease-in-out;
|
|
136
|
+
|
|
137
|
+
&:focus {
|
|
138
|
+
border-color: var(--link-color);
|
|
139
|
+
outline: none;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// Blockquotes
|
|
144
|
+
#{config-flags.$parent-selector} blockquote {
|
|
145
|
+
margin: 1rem 0;
|
|
146
|
+
padding: 0.5rem 1rem;
|
|
147
|
+
border-left: var(--border-size, 4px) var(--border-style, solid) var(--border-base, var(--secondary));
|
|
148
|
+
font-style: italic;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// Horizontal Rule
|
|
152
|
+
#{config-flags.$parent-selector} hr {
|
|
153
|
+
border: none;
|
|
154
|
+
border-top: var(--border-size, 1px) var(--border-style, solid) var(--border-base, var(--secondary));
|
|
155
|
+
margin: 1rem 0;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// Images
|
|
159
|
+
#{config-flags.$parent-selector} img {
|
|
160
|
+
max-width: 100%; // Responsive images
|
|
161
|
+
height: auto;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// Figures and Captions
|
|
165
|
+
#{config-flags.$parent-selector} figure {
|
|
166
|
+
margin: 1rem 0;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
#{config-flags.$parent-selector} figcaption {
|
|
170
|
+
font-size: 0.875rem; // Smaller font for captions
|
|
171
|
+
color: var(--text-muted, #666); // Optional secondary text color
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// Links
|
|
175
|
+
#{config-flags.$parent-selector} a {
|
|
176
|
+
&:not([class]) {
|
|
177
|
+
color: var(--link-color);
|
|
178
|
+
|
|
179
|
+
&:hover {
|
|
180
|
+
color: var(--link-hover-color);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// Labels
|
|
186
|
+
#{config-flags.$parent-selector} label[for] {
|
|
187
|
+
cursor: pointer;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// todo: add to doc
|
|
191
|
+
#{config-flags.$parent-selector} .sr-only {
|
|
192
|
+
position: absolute !important;
|
|
193
|
+
width: 1px !important;
|
|
194
|
+
height: 1px !important;
|
|
195
|
+
padding: 0 !important;
|
|
196
|
+
margin: -1px !important;
|
|
197
|
+
overflow: hidden !important;
|
|
198
|
+
clip-path: inset(50%) !important;
|
|
199
|
+
white-space: nowrap !important;
|
|
200
|
+
border: 0 !important;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
#{config-flags.$parent-selector} code {
|
|
204
|
+
font-family: "Courier New", Courier, monospace;
|
|
205
|
+
background-color: #f8f8f8;
|
|
206
|
+
color: #d63384;
|
|
207
|
+
padding: 2px 6px;
|
|
208
|
+
border-radius: 3px;
|
|
209
|
+
white-space: nowrap;
|
|
210
|
+
|
|
211
|
+
@include tool-accessibility.dark-mode {
|
|
212
|
+
background-color: #333;
|
|
213
|
+
color: #f8f8f2;
|
|
183
214
|
}
|
|
184
215
|
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
// Labels
|
|
188
|
-
#{config-flags.$parent-selector} label[for] {
|
|
189
|
-
cursor: pointer;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
// todo: add to doc
|
|
193
|
-
#{config-flags.$parent-selector} .sr-only {
|
|
194
|
-
position: absolute !important;
|
|
195
|
-
width: 1px !important;
|
|
196
|
-
height: 1px !important;
|
|
197
|
-
padding: 0 !important;
|
|
198
|
-
margin: -1px !important;
|
|
199
|
-
overflow: hidden !important;
|
|
200
|
-
clip: rect(0, 0, 0, 0) !important;
|
|
201
|
-
white-space: nowrap !important;
|
|
202
|
-
border: 0 !important;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
#{config-flags.$parent-selector} code {
|
|
206
|
-
font-family: "Courier New", Courier, monospace;
|
|
207
|
-
background-color: #f8f8f8;
|
|
208
|
-
color: #d63384;
|
|
209
|
-
padding: 2px 6px;
|
|
210
|
-
border-radius: 3px;
|
|
211
|
-
white-space: nowrap;
|
|
212
|
-
|
|
213
|
-
@include tool-accessibility.dark-mode {
|
|
214
|
-
background-color: #333;
|
|
215
|
-
color: #f8f8f2;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
216
|
+
} // end @layer base
|