@nuvoui/core 1.3.3 → 1.3.4
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 +266 -132
- 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 +1 -1
- package/src/styles/abstracts/_config.scss +1 -1
- package/src/styles/base/_base.scss +4 -4
- package/src/styles/utilities/_borders.scss +25 -5
- package/src/styles/utilities/_display.scss +8 -4
- package/src/styles/utilities/_typography.scss +4 -34
package/package.json
CHANGED
|
@@ -107,7 +107,7 @@ body#{$parent-selector} {
|
|
|
107
107
|
#{$parent-selector} input[type="search"],
|
|
108
108
|
#{$parent-selector} textarea {
|
|
109
109
|
padding: 0.5rem;
|
|
110
|
-
border: var(--border-size, 1px) var(--border-style, solid) var(--border-
|
|
110
|
+
border: var(--border-size, 1px) var(--border-style, solid) var(--border-base, var(--secondary));
|
|
111
111
|
border-radius: 0.25rem;
|
|
112
112
|
width: 100%; // Full width
|
|
113
113
|
font-family: var(--font-family-base);
|
|
@@ -128,7 +128,7 @@ body#{$parent-selector} {
|
|
|
128
128
|
// Selects
|
|
129
129
|
#{$parent-selector} select {
|
|
130
130
|
padding: 0.5rem;
|
|
131
|
-
border: var(--border-size, 1px) var(--border-style, solid) var(--border-
|
|
131
|
+
border: var(--border-size, 1px) var(--border-style, solid) var(--border-base, var(--secondary));
|
|
132
132
|
border-radius: 0.25rem;
|
|
133
133
|
width: 100%; // Full width
|
|
134
134
|
font-family: var(--font-family-base);
|
|
@@ -144,14 +144,14 @@ body#{$parent-selector} {
|
|
|
144
144
|
#{$parent-selector} blockquote {
|
|
145
145
|
margin: 1rem 0;
|
|
146
146
|
padding: 0.5rem 1rem;
|
|
147
|
-
border-left: var(--border-size, 4px) var(--border-style, solid) var(--border-
|
|
147
|
+
border-left: var(--border-size, 4px) var(--border-style, solid) var(--border-base, var(--secondary));
|
|
148
148
|
font-style: italic;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
// Horizontal Rule
|
|
152
152
|
#{$parent-selector} hr {
|
|
153
153
|
border: none;
|
|
154
|
-
border-top: var(--border-size, 1px) var(--border-style, solid) var(--border-
|
|
154
|
+
border-top: var(--border-size, 1px) var(--border-style, solid) var(--border-base, var(--secondary));
|
|
155
155
|
margin: 1rem 0;
|
|
156
156
|
}
|
|
157
157
|
|
|
@@ -40,7 +40,7 @@ $border-styles: (solid, dashed, dotted, double, none);
|
|
|
40
40
|
|
|
41
41
|
// Core Border Mixins - improved to include style and color by default
|
|
42
42
|
// SKIP Documentation
|
|
43
|
-
@mixin border($val, $style: solid, $color: var(--border-
|
|
43
|
+
@mixin border($val, $style: solid, $color: var(--border-base)) {
|
|
44
44
|
$val: FN.fix-units($val);
|
|
45
45
|
|
|
46
46
|
--border-size: #{$val};
|
|
@@ -61,7 +61,7 @@ $border-styles: (solid, dashed, dotted, double, none);
|
|
|
61
61
|
border-top-width: $val;
|
|
62
62
|
@if $val != 0 {
|
|
63
63
|
border-top-style: var(--border-style, solid);
|
|
64
|
-
border-top-color: var(--border-
|
|
64
|
+
border-top-color: var(--border-base);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -71,7 +71,7 @@ $border-styles: (solid, dashed, dotted, double, none);
|
|
|
71
71
|
border-right-width: $val;
|
|
72
72
|
@if $val != 0 {
|
|
73
73
|
border-right-style: var(--border-style, solid);
|
|
74
|
-
border-right-color: var(--border-
|
|
74
|
+
border-right-color: var(--border-base);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
|
@@ -81,7 +81,7 @@ $border-styles: (solid, dashed, dotted, double, none);
|
|
|
81
81
|
border-bottom-width: $val;
|
|
82
82
|
@if $val != 0 {
|
|
83
83
|
border-bottom-style: var(--border-style, solid);
|
|
84
|
-
border-bottom-color: var(--border-
|
|
84
|
+
border-bottom-color: var(--border-base);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -91,7 +91,7 @@ $border-styles: (solid, dashed, dotted, double, none);
|
|
|
91
91
|
border-left-width: $val;
|
|
92
92
|
@if $val != 0 {
|
|
93
93
|
border-left-style: var(--border-style, solid);
|
|
94
|
-
border-left-color: var(--border-
|
|
94
|
+
border-left-color: var(--border-base);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -196,6 +196,16 @@ $border-styles: (solid, dashed, dotted, double, none);
|
|
|
196
196
|
@include border-left(1);
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
+
#{VAR.$parent-selector} .border-x {
|
|
200
|
+
@include border-left(1);
|
|
201
|
+
@include border-right(1);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
#{VAR.$parent-selector} .border-y {
|
|
205
|
+
@include border-top(1);
|
|
206
|
+
@include border-bottom(1);
|
|
207
|
+
}
|
|
208
|
+
|
|
199
209
|
// Directional border width
|
|
200
210
|
@each $width in VAR.$border-widths {
|
|
201
211
|
#{VAR.$parent-selector} .border-#{$width},
|
|
@@ -217,6 +227,16 @@ $border-styles: (solid, dashed, dotted, double, none);
|
|
|
217
227
|
#{VAR.$parent-selector} .border-l-#{$width} {
|
|
218
228
|
@include border-left($width);
|
|
219
229
|
}
|
|
230
|
+
|
|
231
|
+
#{VAR.$parent-selector} .border-x-#{$width} {
|
|
232
|
+
@include border-left(1);
|
|
233
|
+
@include border-right(1);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
#{VAR.$parent-selector} .border-y-#{$width} {
|
|
237
|
+
@include border-top($width);
|
|
238
|
+
@include border-bottom($width);
|
|
239
|
+
}
|
|
220
240
|
}
|
|
221
241
|
|
|
222
242
|
// Border radius classes
|
|
@@ -120,10 +120,6 @@
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
@if FN.feature-enabled("displays") {
|
|
123
|
-
#{VAR.$parent-selector} .hide {
|
|
124
|
-
@include hide;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
123
|
#{VAR.$parent-selector} .show {
|
|
128
124
|
@include show;
|
|
129
125
|
}
|
|
@@ -170,6 +166,14 @@
|
|
|
170
166
|
@include collapse;
|
|
171
167
|
}
|
|
172
168
|
|
|
169
|
+
#{VAR.$parent-selector} .hide {
|
|
170
|
+
@include hide;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
#{VAR.$parent-selector} .hidden {
|
|
174
|
+
display: none !important;
|
|
175
|
+
}
|
|
176
|
+
|
|
173
177
|
#{VAR.$parent-selector} .overflow-hidden {
|
|
174
178
|
@include overflow-hidden;
|
|
175
179
|
}
|
|
@@ -258,40 +258,10 @@
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
// Generate font weight utilities
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
#{VAR.$parent-selector} .font-extralight#{$suffix} {
|
|
266
|
-
@include font(extralight);
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
#{VAR.$parent-selector} .font-light#{$suffix} {
|
|
270
|
-
@include font(light);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
#{VAR.$parent-selector} .font-normal#{$suffix} {
|
|
274
|
-
@include font(normal);
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
#{VAR.$parent-selector} .font-medium#{$suffix} {
|
|
278
|
-
@include font(medium);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
#{VAR.$parent-selector} .font-semibold#{$suffix} {
|
|
282
|
-
@include font(semibold);
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
#{VAR.$parent-selector} .font-bold#{$suffix} {
|
|
286
|
-
@include font(bold);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
#{VAR.$parent-selector} .font-extrabold#{$suffix} {
|
|
290
|
-
@include font(extrabold);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
#{VAR.$parent-selector} .font-black#{$suffix} {
|
|
294
|
-
@include font(black);
|
|
261
|
+
@each $size, $val in VAR.$font-weights {
|
|
262
|
+
#{VAR.$parent-selector} .font-#{$size}#{$suffix} {
|
|
263
|
+
@include font($size);
|
|
264
|
+
}
|
|
295
265
|
}
|
|
296
266
|
|
|
297
267
|
// Generate line height utilities
|