@nuvoui/core 1.1.6 → 1.1.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/dist/nuvoui.min.css +1 -1
- package/package.json +1 -1
- package/src/styles/base/_base.scss +8 -6
- package/src/styles/layouts/_flex.scss +1 -1
- package/src/styles/layouts/_grid.scss +3 -2
- package/src/styles/mixins-map.scss +4 -4
- package/src/styles/utilities/_media-queries.scss +1 -1
- package/src/styles/utilities/_sizing.scss +7 -7
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* Import variables */
|
|
4
4
|
@use '../utilities/variables' as *;
|
|
5
5
|
@use '../utilities/media-queries' as media;
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
:root {
|
|
8
8
|
--font-family-base: system-ui, -apple-system, "BlinkMacSystemFont", 'Segoe UI', "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
|
|
9
9
|
}
|
|
@@ -69,14 +69,14 @@ button {
|
|
|
69
69
|
padding: 0.5rem 1rem;
|
|
70
70
|
border: 0;
|
|
71
71
|
border-radius: 0.25rem;
|
|
72
|
-
background-color: var(--button-bg-color, #
|
|
73
|
-
color: var(--button-text-color, #
|
|
72
|
+
background-color: var(--button-bg-color, #007BFF); // Default button color
|
|
73
|
+
color: var(--button-text-color, #FFF);
|
|
74
74
|
font-family: var(--font-family-base);
|
|
75
75
|
cursor: pointer;
|
|
76
76
|
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
|
|
77
77
|
|
|
78
78
|
&:hover {
|
|
79
|
-
background-color: var(--button-bg-color-hover, #
|
|
79
|
+
background-color: var(--button-bg-color-hover, #0056B3); // Hover button color
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
&:focus {
|
|
@@ -84,8 +84,8 @@ button {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
&:disabled {
|
|
87
|
-
background-color: #
|
|
88
|
-
color: #
|
|
87
|
+
background-color: #E0E0E0; // Disabled button color
|
|
88
|
+
color: #A0A0A0; // Disabled text color
|
|
89
89
|
cursor: not-allowed;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -103,6 +103,7 @@ textarea {
|
|
|
103
103
|
width: 100%; // Full width
|
|
104
104
|
font-family: var(--font-family-base);
|
|
105
105
|
transition: border 0.2s ease-in-out;
|
|
106
|
+
|
|
106
107
|
&:focus {
|
|
107
108
|
border-color: var(--link-color);
|
|
108
109
|
outline: none;
|
|
@@ -123,6 +124,7 @@ select {
|
|
|
123
124
|
width: 100%; // Full width
|
|
124
125
|
font-family: var(--font-family-base);
|
|
125
126
|
transition: border 0.2s ease-in-out;
|
|
127
|
+
|
|
126
128
|
&:focus {
|
|
127
129
|
border-color: var(--link-color);
|
|
128
130
|
outline: none;
|
|
@@ -19,9 +19,10 @@
|
|
|
19
19
|
@mixin cols($count) {grid-template-columns: repeat($count, minmax(0, 1fr));}
|
|
20
20
|
@mixin rows($count) {grid-template-rows: repeat($count, minmax(0, 1fr));}
|
|
21
21
|
|
|
22
|
-
@mixin
|
|
22
|
+
@mixin cols-custom($template) {
|
|
23
23
|
// Convert underscores to spaces so "1fr_auto" becomes "1fr auto"
|
|
24
24
|
$converted: FN.str-replace($template, "_", " ");
|
|
25
|
+
|
|
25
26
|
grid-template-columns: $converted;
|
|
26
27
|
}
|
|
27
28
|
|
|
@@ -77,7 +78,7 @@
|
|
|
77
78
|
/// EXAMPLE USAGE
|
|
78
79
|
.custom-grid {
|
|
79
80
|
display: grid;
|
|
80
|
-
@include
|
|
81
|
+
@include cols-custom("1fr_auto_1fr");
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
// Classes
|
|
@@ -284,11 +284,11 @@
|
|
|
284
284
|
$end: str.length($mixin-str) - 1;
|
|
285
285
|
$value: str.slice($mixin-str, $start, $end);
|
|
286
286
|
@include rows(str.unquote($value));
|
|
287
|
-
} @else if str.index($mixin-str, '
|
|
287
|
+
} @else if str.index($mixin-str, 'cols-custom(') == 1 {
|
|
288
288
|
$start: str.index($mixin-str, '(') + 1;
|
|
289
289
|
$end: str.length($mixin-str) - 1;
|
|
290
290
|
$value: str.slice($mixin-str, $start, $end);
|
|
291
|
-
@include
|
|
291
|
+
@include cols-custom(str.unquote($value));
|
|
292
292
|
} @else if str.index($mixin-str, 'auto-fit(') == 1 {
|
|
293
293
|
$start: str.index($mixin-str, '(') + 1;
|
|
294
294
|
$end: str.length($mixin-str) - 1;
|
|
@@ -888,11 +888,11 @@
|
|
|
888
888
|
$end: str.length($mixin-str) - 1;
|
|
889
889
|
$value: str.slice($mixin-str, $start, $end);
|
|
890
890
|
@include rows(str.unquote($value));
|
|
891
|
-
} @else if str.index($mixin-str, '
|
|
891
|
+
} @else if str.index($mixin-str, 'cols-custom(') == 1 {
|
|
892
892
|
$start: str.index($mixin-str, '(') + 1;
|
|
893
893
|
$end: str.length($mixin-str) - 1;
|
|
894
894
|
$value: str.slice($mixin-str, $start, $end);
|
|
895
|
-
@include
|
|
895
|
+
@include cols-custom(str.unquote($value));
|
|
896
896
|
} @else if str.index($mixin-str, 'auto-fit(') == 1 {
|
|
897
897
|
$start: str.index($mixin-str, '(') + 1;
|
|
898
898
|
$end: str.length($mixin-str) - 1;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// _spacing.scss
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
@use 'sass:math';
|
|
4
4
|
@use './variables' as *;
|
|
5
5
|
@use './container-queries' as Q;
|
|
6
6
|
|
|
7
|
-
@mixin width($value) { width:
|
|
8
|
-
@mixin height($value) { height:
|
|
9
|
-
@mixin min-width($value) { min-width:
|
|
10
|
-
@mixin min-height($value) { min-height:
|
|
11
|
-
@mixin max-width($value) { max-width:
|
|
12
|
-
@mixin max-height($value) { max-height:
|
|
7
|
+
@mixin width($value) { width: $value; }
|
|
8
|
+
@mixin height($value) { height: $value; }
|
|
9
|
+
@mixin min-width($value) { min-width: $value; }
|
|
10
|
+
@mixin min-height($value) { min-height: $value; }
|
|
11
|
+
@mixin max-width($value) { max-width: $value; }
|
|
12
|
+
@mixin max-height($value) { max-height: $value; }
|
|
13
13
|
|
|
14
14
|
@mixin width-percent($i) { width: #{$i + '%'}; }
|
|
15
15
|
@mixin height-percent($i) { height: #{$i + '%'}; }
|