Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix forms styles

weronka398ad439db7f
diff --git a/saleor/static/scss/storefront/components/_checkout.scss b/saleor/static/scss/storefront/components/_checkout.scss
index d60635b98a..f552632bd1 100644
--- a/saleor/static/scss/storefront/components/_checkout.scss
+++ b/saleor/static/scss/storefront/components/_checkout.scss
@@ -68,18 +68,7 @@
text-decoration: underline;
}
}
- &__payment-method-form, form {
- label {
- margin-bottom: $global-margin / 2;
- input {
- display: inline-block;
- vertical-align: top;
- margin: $global-margin / 4 $global-margin / 2 0 0;
- }
- span {
- display: inline-block;
- }
- }
+ &__payment-method-form {
ul {
list-style: none;
padding-left: 0;
diff --git a/saleor/static/scss/storefront/components/_forms.scss b/saleor/static/scss/storefront/components/_forms.scss
index fb719c938f..140c4df430 100644
--- a/saleor/static/scss/storefront/components/_forms.scss
+++ b/saleor/static/scss/storefront/components/_forms.scss
@@ -4,3 +4,23 @@
color: $body-color;
}
}
+
+.help-block {
+ color: $red;
+}
+
+.radio {
+ margin-bottom: $global-margin / 2;
+ ul {
+ list-style: none;
+ padding-left: 0;
+ }
+ input {
+ display: inline-block;
+ vertical-align: top;
+ margin: $global-margin / 4 $global-margin / 2 0 0;
+ }
+ label {
+ margin-right: $global-margin;
+ }
+}
diff --git a/saleor/static/scss/storefront/components/_product-page.scss b/saleor/static/scss/storefront/components/_product-page.scss
index fa6e17b976..ebf4d8833c 100644
--- a/saleor/static/scss/storefront/components/_product-page.scss
+++ b/saleor/static/scss/storefront/components/_product-page.scss
@@ -45,12 +45,4 @@
}
}
}
- &__variant-picker {
- .radio-inline {
- margin-right: $global-margin;
- span {
- margin-left: $global-margin / 2;
- }
- }
- }
}
diff --git a/templates/checkout/snippets/addresses-form-panel.html b/templates/checkout/snippets/addresses-form-panel.html
index cb97a062e0..78040853e2 100644
--- a/templates/checkout/snippets/addresses-form-panel.html
+++ b/templates/checkout/snippets/addresses-form-panel.html
@@ -1,4 +1,4 @@
-<div class="checkout__shipping__form{% if address or label == _('Same as shipping') %} address_hide{% else %} address_show{% endif %}">
+<div class="radio checkout__shipping__form{% if address or label == _('Same as shipping') %} address_hide{% else %} address_show{% endif %}">
<label>
<input type="radio"
name="{{ radio_name }}"
diff --git a/templates/order/payment.html b/templates/order/payment.html
index aa45437db0..5c4ec3d9d4 100644
--- a/templates/order/payment.html
+++ b/templates/order/payment.html
@@ -39,7 +39,7 @@
<h1>
{% trans "Pay for order" %} {{ order }}
</h1>
- <form method="post" action="{% url "order:payment" token=order.token %}" class="payment-method-form">
+ <form method="post" action="{% url "order:payment" token=order.token %}" class="payment-method-form radio">
{% csrf_token %}
{{ payment_form }}
{% block form_submit %}