@nuvoui/core 1.4.4 → 1.4.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/dist/nuvoui.css +2 -5
- 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/base/_base.scss +1 -4
- package/src/styles/functions/_math.scss +1 -1
- package/src/styles/utilities/_typography.scss +10 -3
package/package.json
CHANGED
|
@@ -175,10 +175,7 @@ body#{config-flags.$parent-selector} {
|
|
|
175
175
|
|
|
176
176
|
// Links
|
|
177
177
|
#{config-flags.$parent-selector} a {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
&:not([class*="text-"]) {
|
|
181
|
-
// document: if no hover or normal text provided it will use the default link color
|
|
178
|
+
&:not([class]) {
|
|
182
179
|
color: var(--link-color);
|
|
183
180
|
|
|
184
181
|
&:hover {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
$result: $result * 10 + map.get($numbers, $character);
|
|
46
46
|
} @else {
|
|
47
47
|
$digits: $digits * 10;
|
|
48
|
-
$result: $result + map.get($numbers, $character)
|
|
48
|
+
$result: $result + math.div(map.get($numbers, $character), $digits);
|
|
49
49
|
}
|
|
50
50
|
} @else {
|
|
51
51
|
// Non-numeric character found - check for unit
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
@use "../config/breakpoints" as config-breakpoint;
|
|
10
10
|
@use "../config/typography" as config-typo;
|
|
11
11
|
@use "../functions/feature-flags" as fn-flags;
|
|
12
|
+
@use "../functions/math" as fn-math;
|
|
12
13
|
|
|
13
14
|
// config-typo Utilities
|
|
14
15
|
// Classes:
|
|
@@ -54,9 +55,15 @@
|
|
|
54
55
|
} @else if meta.type-of($weight) == "number" {
|
|
55
56
|
font-weight: $weight;
|
|
56
57
|
} @else {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
// Try converting string to number (handles "600" -> 600)
|
|
59
|
+
$converted: fn-math.to-number($weight);
|
|
60
|
+
@if meta.type-of($converted) == "number" {
|
|
61
|
+
font-weight: $converted;
|
|
62
|
+
} @else {
|
|
63
|
+
@warn "Unknown font weight: #{$weight} setting it to default.";
|
|
64
|
+
|
|
65
|
+
font-weight: 400; // Default to normal weight
|
|
66
|
+
}
|
|
60
67
|
}
|
|
61
68
|
}
|
|
62
69
|
|