Override WooCommerce styles conflicting with Bootstrap
This commit is contained in:
parent
55a6f06aa4
commit
dc765bbb05
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -11634,6 +11634,10 @@ figure.woocommerce-product-gallery__wrapper {
|
|||
color: #dc3545;
|
||||
}
|
||||
|
||||
.woocommerce form .form-row label.custom-control-label {
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
.woocommerce div.product p.price,
|
||||
.woocommerce div.product span.price,
|
||||
.woocommerce div.product .stock,
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -12350,6 +12350,19 @@ figure.woocommerce-product-gallery__wrapper {
|
|||
color: #dc3545;
|
||||
}
|
||||
|
||||
.woocommerce form .form-row label.form-check-label {
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
.woocommerce form .form-row .checkbox.form-check {
|
||||
display: block;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
.woocommerce form .form-row .input-checkbox.form-check-input {
|
||||
margin: 0.25em 0 0 -1.5em;
|
||||
}
|
||||
|
||||
.woocommerce div.product p.price,
|
||||
.woocommerce div.product span.price,
|
||||
.woocommerce div.product .stock,
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -64,6 +64,35 @@ figure.woocommerce-product-gallery__wrapper {
|
|||
color: $danger;
|
||||
}
|
||||
|
||||
.woocommerce form .form-row label {
|
||||
// Override WooCommerce default styles.
|
||||
@if variable-exists('bootstrap4') {
|
||||
&.custom-control-label {
|
||||
line-height: inherit;
|
||||
}
|
||||
} @else {
|
||||
&.form-check-label {
|
||||
line-height: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@if not variable-exists('bootstrap4') {
|
||||
// Override WooCommerce default styles.
|
||||
.woocommerce form .form-row .checkbox {
|
||||
&.form-check {
|
||||
display: block;
|
||||
line-height: inherit;
|
||||
}
|
||||
}
|
||||
.woocommerce form .form-row .input-checkbox {
|
||||
&.form-check-input {
|
||||
$top: ($line-height-base - $form-check-input-width) * .5;
|
||||
$left: $form-check-padding-start * -1;
|
||||
margin: $top 0 0 $left
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Accessibility requirement for color contrast
|
||||
.woocommerce div.product p.price,
|
||||
|
|
|
|||
Loading…
Reference in New Issue