@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuvoui/core",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "NuvoUI is a human-friendly SCSS framework designed for simplicity, and modern responsive designs.",
5
5
  "main": "dist/nuvoui.css",
6
6
  "module": "src/styles/index.scss",
@@ -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, #007bff); // Default button color
73
- color: var(--button-text-color, #ffffff);
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, #0056b3); // Hover button color
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: #e0e0e0; // Disabled button color
88
- color: #a0a0a0; // Disabled text 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;
@@ -319,7 +319,7 @@
319
319
  $bp-val: FN.get-breakpoint-value($breakpoint);
320
320
 
321
321
  @media (min-width: #{$bp-val}) {
322
- .flex\@#{$breakpoint} {
322
+ .flex {
323
323
  display: flex;
324
324
 
325
325
  // Direction
@@ -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 grid-cols-custom($template) {
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 grid-cols-custom("1fr_auto_1fr");
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, 'grid-cols-custom(') == 1 {
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 grid-cols-custom(str.unquote($value));
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, 'grid-cols-custom(') == 1 {
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 grid-cols-custom(str.unquote($value));
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;
@@ -33,7 +33,7 @@
33
33
  }
34
34
 
35
35
  // Only at specific breakpoint
36
- @mixin media-only($breakpoint) {
36
+ @mixin media-only($breakpoint) { // BUG BUG BUG BUG BUG
37
37
  $min: FN.get-breakpoint-value($breakpoint);
38
38
  $next-breakpoint: null;
39
39
 
@@ -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: if($value == 0, $value, $value + px); }
8
- @mixin height($value) { height: if($value == 0, $value, $value + px); }
9
- @mixin min-width($value) { min-width: if($value == 0, $value, $value + px); }
10
- @mixin min-height($value) { min-height: if($value == 0, $value, $value + px); }
11
- @mixin max-width($value) { max-width: if($value == 0, $value, $value + px); }
12
- @mixin max-height($value) { max-height: if($value == 0, $value, $value + px); }
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 + '%'}; }