@aotearoan/neon 23.2.1 → 23.2.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/package.json +1 -1
- package/src/sass/components/_field.scss +1 -3
- package/src/sass/components/_input.scss +5 -0
- package/src/sass/components/_page-container.scss +20 -29
- package/src/sass/components/_page.scss +6 -17
- package/src/sass/components/_switch.scss +2 -0
- package/src/sass/components/_tabs.scss +3 -3
- package/src/sass/palette.scss +1 -1
- package/src/sass/variables.scss +12 -8
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aotearoan/neon",
|
|
3
3
|
"description": "Neon is a lightweight design library of Vue 3 components with minimal dependencies.",
|
|
4
|
-
"version": "23.2.
|
|
4
|
+
"version": "23.2.2",
|
|
5
5
|
"main": "./dist/neon.cjs.js",
|
|
6
6
|
"module": "./dist/neon.es.js",
|
|
7
7
|
"types": "./dist/src/neon.d.ts",
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
@use '../includes/responsive';
|
|
2
2
|
@use '../includes/typography';
|
|
3
3
|
|
|
4
|
-
$message-height: calc(var(--neon-font-size-s) * var(--neon-line-height-ratio));
|
|
5
|
-
|
|
6
4
|
@mixin field {
|
|
7
5
|
.neon-field {
|
|
8
6
|
width: 100%;
|
|
@@ -36,7 +34,7 @@ $message-height: calc(var(--neon-font-size-s) * var(--neon-line-height-ratio));
|
|
|
36
34
|
.neon-field__message {
|
|
37
35
|
bottom: 0;
|
|
38
36
|
font-size: var(--neon-font-size-s);
|
|
39
|
-
min-height:
|
|
37
|
+
min-height: calc(var(--neon-font-size-s) * var(--neon-line-height-ratio));
|
|
40
38
|
text-transform: none;
|
|
41
39
|
letter-spacing: initial;
|
|
42
40
|
font-weight: var(--neon-font-weight-normal);
|
|
@@ -148,6 +148,11 @@
|
|
|
148
148
|
color: var(--neon-color-placeholder);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
+
&:-webkit-autofill {
|
|
152
|
+
-webkit-box-shadow: 0 0 0 50rem var(--neon-background-color-autofill) inset;
|
|
153
|
+
-webkit-text-fill-color: var(--neon-color-autofill);
|
|
154
|
+
}
|
|
155
|
+
|
|
151
156
|
&-counter {
|
|
152
157
|
align-self: flex-start;
|
|
153
158
|
user-select: none;
|
|
@@ -7,34 +7,6 @@
|
|
|
7
7
|
padding-bottom: calc(var(--neon-space-20) + var(--neon-height-mobile-menu) + var(--neon-border-width));
|
|
8
8
|
gap: var(--neon-gutter);
|
|
9
9
|
|
|
10
|
-
@include layout.min-height(
|
|
11
|
-
100,
|
|
12
|
-
'var(--neon-top-nav-height-desktop) + var(--neon-border-width-top-nav) + var(--neon-footer-height-desktop) + var(--neon-border-width-footer)'
|
|
13
|
-
);
|
|
14
|
-
|
|
15
|
-
@include responsive.responsive(tablet) {
|
|
16
|
-
@include layout.min-height(
|
|
17
|
-
100,
|
|
18
|
-
'var(--neon-top-nav-height-tablet) + var(--neon-border-width-top-nav) + var(--neon-footer-height-tablet) + var(--neon-border-width-footer)'
|
|
19
|
-
);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@include responsive.responsive(mobile-large) {
|
|
23
|
-
@include layout.min-height(100);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&.neon-page-container--hide-nav {
|
|
27
|
-
@include layout.min-height(100, 'var(--neon-footer-height-desktop) + var(--neon-border-width-footer)');
|
|
28
|
-
|
|
29
|
-
@include responsive.responsive(tablet) {
|
|
30
|
-
@include layout.min-height(100, 'var(--neon-footer-height-tablet) + var(--neon-border-width-footer)');
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@include responsive.responsive(mobile-large) {
|
|
34
|
-
@include layout.min-height(100);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
10
|
&.neon-page-container--with-sticky-buttons {
|
|
39
11
|
padding-bottom: calc(
|
|
40
12
|
var(--neon-height-page-container-sticky-buttons) + var(--neon-space-20) + var(--neon-height-mobile-menu) +
|
|
@@ -44,7 +16,7 @@
|
|
|
44
16
|
|
|
45
17
|
h1,
|
|
46
18
|
.neon-page-container__title {
|
|
47
|
-
padding-top: var(--neon-gutter);
|
|
19
|
+
padding-top: calc(1.5 * var(--neon-gutter));
|
|
48
20
|
margin-bottom: 0;
|
|
49
21
|
}
|
|
50
22
|
|
|
@@ -52,4 +24,23 @@
|
|
|
52
24
|
padding-bottom: var(--neon-space-96);
|
|
53
25
|
}
|
|
54
26
|
}
|
|
27
|
+
|
|
28
|
+
/* All min-height logic */
|
|
29
|
+
@include responsive.responsive(larger-than-mobile-large) {
|
|
30
|
+
.neon-page--with-footer {
|
|
31
|
+
.neon-page-container {
|
|
32
|
+
min-height: calc(100% - (var(--neon-footer-height) + var(--neon-border-width-footer)));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@include responsive.responsive(mobile-large) {
|
|
38
|
+
.neon-page-container {
|
|
39
|
+
&--hide-nav {
|
|
40
|
+
min-height: 100%;
|
|
41
|
+
--neon-height-mobile-menu: 0rem;
|
|
42
|
+
--neon-height-mobile-menu-indicator: 0rem;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
55
46
|
}
|
|
@@ -8,28 +8,13 @@
|
|
|
8
8
|
width: 100vw;
|
|
9
9
|
@include layout.min-height(100);
|
|
10
10
|
|
|
11
|
-
&--with-top-nav .neon-page__container {
|
|
12
|
-
@include responsive.responsive(larger-than-tablet) {
|
|
13
|
-
padding-top: var(--neon-top-nav-height-desktop);
|
|
14
|
-
@include layout.min-height(100, 'var(--neon-top-nav-height) + var(--neon-border-width-top-nav) + var(--neon-footer-height) + var(--neon-border-width-footer)');
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@include responsive.responsive(tablet) {
|
|
18
|
-
padding-top: var(--neon-top-nav-height-tablet);
|
|
19
|
-
@include layout.min-height(100, 'var(--neon-top-nav-height) + var(--neon-border-width-top-nav) + var(--neon-footer-height) + var(--neon-border-width-footer)');
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@include responsive.responsive(mobile-large) {
|
|
23
|
-
padding-top: var(--neon-top-nav-height-mobile);
|
|
24
|
-
@include layout.min-height(100, 'var(--neon-top-nav-height) + var(--neon-border-width-top-nav) + var(--neon-footer-height) + var(--neon-border-width-footer)');
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
11
|
.neon-page__content-wrapper {
|
|
29
12
|
flex-direction: row;
|
|
30
13
|
}
|
|
31
14
|
|
|
32
15
|
.neon-page__container {
|
|
16
|
+
@include layout.min-height(100);
|
|
17
|
+
|
|
33
18
|
@include responsive.responsive(larger-than-tablet) {
|
|
34
19
|
padding-left: var(--neon-gutter-desktop);
|
|
35
20
|
padding-right: var(--neon-gutter-desktop);
|
|
@@ -50,6 +35,10 @@
|
|
|
50
35
|
}
|
|
51
36
|
}
|
|
52
37
|
|
|
38
|
+
&--with-top-nav .neon-page__container {
|
|
39
|
+
@include layout.min-height(100, 'var(--neon-top-nav-height)');
|
|
40
|
+
}
|
|
41
|
+
|
|
53
42
|
&--left {
|
|
54
43
|
&.neon-page--with-side-nav {
|
|
55
44
|
@include responsive.responsive(larger-than-tablet) {
|
|
@@ -137,9 +137,9 @@
|
|
|
137
137
|
|
|
138
138
|
.neon-tabs__menu-items--full-width-mobile {
|
|
139
139
|
@include responsive.responsive(mobile-large) {
|
|
140
|
-
margin: 0 calc(-
|
|
141
|
-
max-width: calc(100% +
|
|
142
|
-
width: calc(100% +
|
|
140
|
+
margin: 0 calc(-1 * var(--neon-gutter-mobile));
|
|
141
|
+
max-width: calc(100% + 2 * var(--neon-gutter-mobile));
|
|
142
|
+
width: calc(100% + 2 * var(--neon-gutter-mobile));
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
|
package/src/sass/palette.scss
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
--neon-rgb-disabled-border-light: 220, 220, 220;
|
|
17
17
|
--neon-rgb-disabled-text-light: 200, 200, 200;
|
|
18
18
|
--neon-rgb-low-contrast-l5: 221, 221, 221;
|
|
19
|
-
--neon-rgb-low-contrast-l4:
|
|
19
|
+
--neon-rgb-low-contrast-l4: 208, 208, 208;
|
|
20
20
|
--neon-rgb-low-contrast-l3: 176, 176, 176;
|
|
21
21
|
--neon-rgb-low-contrast-l2: 145, 145, 145;
|
|
22
22
|
--neon-rgb-low-contrast-l1: 114, 114, 114;
|
package/src/sass/variables.scss
CHANGED
|
@@ -138,13 +138,13 @@
|
|
|
138
138
|
--neon-font-weight-semi-bold: 600;
|
|
139
139
|
--neon-font-weight-bold: 700;
|
|
140
140
|
|
|
141
|
-
--neon-h6-weight: var(--neon-font-weight-
|
|
141
|
+
--neon-h6-weight: var(--neon-font-weight-medium);
|
|
142
142
|
--neon-h5-weight: var(--neon-font-weight-medium);
|
|
143
143
|
--neon-h4-weight: var(--neon-font-weight-medium);
|
|
144
144
|
--neon-h3-weight: var(--neon-font-weight-semi-bold);
|
|
145
145
|
--neon-h2-weight: var(--neon-font-weight-semi-bold);
|
|
146
|
-
--neon-h1-weight: var(--neon-font-weight-bold);
|
|
147
|
-
--neon-h0-weight: var(--neon-font-weight-bold);
|
|
146
|
+
--neon-h1-weight: var(--neon-font-weight-semi-bold);
|
|
147
|
+
--neon-h0-weight: var(--neon-font-weight-semi-bold);
|
|
148
148
|
|
|
149
149
|
--neon-font-weight-em: var(--neon-font-weight-extra-light);
|
|
150
150
|
--neon-font-weight-strong: var(--neon-font-weight-medium);
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
--neon-border-radius-button-xl: var(--neon-border-radius);
|
|
300
300
|
--neon-border-width-outline-button: 1rem;
|
|
301
301
|
--neon-text-transform-button: none;
|
|
302
|
-
--neon-font-weight-button: var(--neon-font-weight-
|
|
302
|
+
--neon-font-weight-button: var(--neon-font-weight-medium);
|
|
303
303
|
--neon-letter-spacing-button: var(--neon-letter-spacing-m);
|
|
304
304
|
|
|
305
305
|
/* tabs */
|
|
@@ -496,7 +496,7 @@
|
|
|
496
496
|
--neon-background-color-warn: var(--neon-color-warn-d1);
|
|
497
497
|
--neon-background-color-error: var(--neon-color-error-d1);
|
|
498
498
|
|
|
499
|
-
--neon-border-color: var(--neon-color-
|
|
499
|
+
--neon-border-color: var(--neon-color-low-contrast-d5);
|
|
500
500
|
--neon-border: var(--neon-border-width) var(--neon-border-style) var(--neon-border-color);
|
|
501
501
|
--neon-border-hr: 1rem var(--neon-border-style) var(--neon-border-color);
|
|
502
502
|
--neon-color-hr: var(--neon-border-color);
|
|
@@ -640,9 +640,11 @@
|
|
|
640
640
|
|
|
641
641
|
/* input */
|
|
642
642
|
--neon-color-input: var(--neon-color-text-secondary);
|
|
643
|
-
--neon-border-color-input: var(--neon-color
|
|
643
|
+
--neon-border-color-input: var(--neon-border-color);
|
|
644
644
|
--neon-background-color-input: rgba(var(--neon-rgb-neutral-d5), 0.5);
|
|
645
645
|
--neon-color-placeholder: var(--neon-color-low-contrast-d3);
|
|
646
|
+
--neon-background-color-autofill: var(--neon-color-primary-d5);
|
|
647
|
+
--neon-color-autofill: var(--neon-color-text-secondary);
|
|
646
648
|
|
|
647
649
|
/* drop zone */
|
|
648
650
|
--neon-rgb-drop-zone-background: var(--neon-rgb-neutral-d5);
|
|
@@ -813,7 +815,7 @@
|
|
|
813
815
|
--neon-background-color-warn: var(--neon-color-warn-l1);
|
|
814
816
|
--neon-background-color-error: var(--neon-color-error-l1);
|
|
815
817
|
|
|
816
|
-
--neon-border-color: var(--neon-color-
|
|
818
|
+
--neon-border-color: var(--neon-color-low-contrast-l4);
|
|
817
819
|
--neon-border: var(--neon-border-width) var(--neon-border-style) var(--neon-border-color);
|
|
818
820
|
--neon-border-hr: 1rem var(--neon-border-style) var(--neon-border-color);
|
|
819
821
|
--neon-color-hr: var(--neon-border-color);
|
|
@@ -957,9 +959,11 @@
|
|
|
957
959
|
|
|
958
960
|
/* input */
|
|
959
961
|
--neon-color-input: var(--neon-color-text-secondary);
|
|
960
|
-
--neon-border-color-input: var(--neon-color
|
|
962
|
+
--neon-border-color-input: var(--neon-border-color);
|
|
961
963
|
--neon-background-color-input: var(--neon-color-high-contrast-l5);
|
|
962
964
|
--neon-color-placeholder: var(--neon-color-low-contrast-l3);
|
|
965
|
+
--neon-background-color-autofill: var(--neon-color-primary-l5);
|
|
966
|
+
--neon-color-autofill: var(--neon-color-text-secondary);
|
|
963
967
|
|
|
964
968
|
/* drop zone */
|
|
965
969
|
--neon-rgb-drop-zone-background: var(--neon-rgb-high-contrast-l4);
|