srcdev-nuxt-forms 2.4.7 → 2.4.9
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.
|
@@ -85,6 +85,7 @@ const setColourSchemeAttr = () => {
|
|
|
85
85
|
const wrapperLeftPosition = colourSchemeWrapper.value?.getBoundingClientRect().left ?? 0;
|
|
86
86
|
const parentLeftPosition = colourSchemeWrapper.value?.parentElement?.getBoundingClientRect().left ?? 0;
|
|
87
87
|
const relativeLeftPosition = wrapperLeftPosition - parentLeftPosition;
|
|
88
|
+
// const relativeLeftPosition = 0;
|
|
88
89
|
|
|
89
90
|
colourSchemeWrapper.value?.style.setProperty('--_select-scheme-marker-position', index !== undefined ? index.toString() : '0');
|
|
90
91
|
colourSchemeWrapper.value?.style.setProperty('--_select-scheme-marker-left-offset', colourSchemeInputElements.value?.[index - 1]?.offsetLeft - relativeLeftPosition + 'px');
|
|
@@ -140,7 +141,7 @@ watch(currentColourScheme, () => {
|
|
|
140
141
|
--_scheme-icon-colour: white;
|
|
141
142
|
|
|
142
143
|
.colour-scheme-select-form {
|
|
143
|
-
display: grid;
|
|
144
|
+
display: inline-grid;
|
|
144
145
|
grid-template-areas: 'select-stack';
|
|
145
146
|
width: fit-content;
|
|
146
147
|
|
|
@@ -148,6 +149,7 @@ watch(currentColourScheme, () => {
|
|
|
148
149
|
border: var(--_form-border-width) solid var(--_form-border-colour);
|
|
149
150
|
outline: var(--_form-outline-width) solid var(--_form-outline-colour);
|
|
150
151
|
border-radius: var(--_form-border-radius);
|
|
152
|
+
padding: var(--_form-padding);
|
|
151
153
|
|
|
152
154
|
.select-scheme-marker-wrapper {
|
|
153
155
|
grid-area: select-stack;
|
|
@@ -179,7 +181,9 @@ watch(currentColourScheme, () => {
|
|
|
179
181
|
|
|
180
182
|
position: absolute;
|
|
181
183
|
/* left: calc(var(--_select-scheme-marker-left-offset) - var(--_form-border-width) - var(--_form-outline-width) - 1px); */
|
|
182
|
-
left: calc(var(--_select-scheme-marker-left-offset) - calc(var(--_select-scheme-group-border-width) * 1.5) - var(--_scheme-icon-font-size));
|
|
184
|
+
/* left: calc(var(--_select-scheme-marker-left-offset) - calc(var(--_select-scheme-group-border-width) * 1.5) - var(--_scheme-icon-font-size)); */
|
|
185
|
+
/* left: calc(var(--_select-scheme-marker-left-offset) - var(--_form-items-gap) - var(--_scheme-icon-font-size) + var(--_select-scheme-group-border-width) - 1px); */
|
|
186
|
+
left: calc(var(--_select-scheme-marker-left-offset) - var(--_select-scheme-group-border-width));
|
|
183
187
|
|
|
184
188
|
opacity: 0;
|
|
185
189
|
|
|
@@ -195,9 +199,10 @@ watch(currentColourScheme, () => {
|
|
|
195
199
|
grid-template-columns: repeat(3, 1fr);
|
|
196
200
|
align-items: center;
|
|
197
201
|
width: fit-content;
|
|
198
|
-
padding: var(--_form-padding);
|
|
202
|
+
/* padding: var(--_form-padding); */
|
|
199
203
|
z-index: 2;
|
|
200
204
|
gap: var(--_form-items-gap);
|
|
205
|
+
position: relative;
|
|
201
206
|
|
|
202
207
|
.select-scheme-group {
|
|
203
208
|
aspect-ratio: 1;
|
package/package.json
CHANGED