Skip to content

Commit e942f9a

Browse files
committed
bundled product styling
1 parent c716864 commit e942f9a

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed

src/themes/default/components/core/ProductBundleOptions.vue

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,21 @@
1616
>
1717
<label class="pl10 lh20 h4 pointer" :for="('bundleOption_' + opval.id)" v-html="opval.product.name" />
1818
</div>
19-
<label class="qty" :for="('bundleOptionQty_' + option.option_id)">{{ $t('Quantity') }}</label><input
20-
@change="optionChanged(option)"
21-
type="number"
22-
min="0"
23-
class="m0 no-outline qty"
24-
:name="('bundleOptionQty_' + option.option_id)"
25-
:id="('bundleOptionQty_' + option.option_id)"
26-
focus
27-
v-model="inputValues[('bundleOptionQty_' + option.option_id)]"
28-
>
29-
<span class="error" v-if="validation.results[('bundleOptionQty_' + option.option_id)].error">{{ validation.results[('bundleOptionQty_' + option.option_id)].message }}</span>
30-
<span class="error" v-if="validation.results[('bundleOption_' + option.option_id)].error">{{ validation.results[('bundleOption_' + option.option_id)].message }}</span>
19+
<div>
20+
<label class="qty-label flex" :for="('bundleOptionQty_' + option.option_id)">{{ $t('Quantity') }}</label>
21+
<input
22+
@change="optionChanged(option)"
23+
type="number"
24+
min="0"
25+
class="m0 no-outline qty-input py10 brdr-cl-primary bg-cl-transparent h4"
26+
:name="('bundleOptionQty_' + option.option_id)"
27+
:id="('bundleOptionQty_' + option.option_id)"
28+
focus
29+
v-model="inputValues[('bundleOptionQty_' + option.option_id)]"
30+
>
31+
<span class="error" v-if="validation.results[('bundleOptionQty_' + option.option_id)].error">{{ validation.results[('bundleOptionQty_' + option.option_id)].message }}</span>
32+
<span class="error" v-if="validation.results[('bundleOption_' + option.option_id)].error">{{ validation.results[('bundleOption_' + option.option_id)].message }}</span>
33+
</div>
3134
</div>
3235
</div>
3336
</form>
@@ -50,6 +53,11 @@ export default {
5053
$bg-secondary: color(secondary, $colors-background);
5154
$color-secondary: color(secondary);
5255
$color-error: color(error);
56+
.qty-input {
57+
border-style: solid;
58+
border-width: 0 0 1px 0;
59+
width: 90px;
60+
}
5361
5462
.custom-option > label {
5563
font-weight: bold;
@@ -150,4 +158,8 @@ export default {
150158
}
151159
}
152160
}
161+
.qty-label {
162+
font-size: 12px !important;
163+
padding-left: 0px !important;
164+
}
153165
</style>

0 commit comments

Comments
 (0)