Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix responsive grid
weronkaed03ee0a1a91
diff --git a/saleor/static/scss/storefront/components/_checkout.scss b/saleor/static/scss/storefront/components/_checkout.scssindex 24f7ac03ea..5bc02140c7 100644--- a/saleor/static/scss/storefront/components/_checkout.scss+++ b/saleor/static/scss/storefront/components/_checkout.scss@@ -33,12 +33,16 @@margin-right: $global-margin;@include media-breakpoint-down(sm) {max-height: 30px;+ vertical-align: text-bottom;}}h1 {display: inline-block;font-weight: 300;text-transform: uppercase;+ @include media-breakpoint-down(sm) {+ font-size: 30px;+ }}&--top {text-transform: uppercase;@@ -145,11 +149,17 @@}.col-md-6 {padding: $global-padding * 3 0 $global-padding * 2;- &:last-of-type {+ &:first-of-type {background-color: $light-gray;- padding: $global-padding * 3 $global-padding * 4 $global-padding * 2;+ padding: $global-padding * 3 $global-padding * 4 $global-padding * 2;+ @include media-breakpoint-down(md) {+ padding: $global-padding * 3 $global-padding * 2 $global-padding * 2;+ }}}+ img {+ margin-bottom: $global-margin * 1.2;+ }form {.form-group {text-align: left;diff --git a/templates/checkout/shipping_address.html b/templates/checkout/shipping_address.htmlindex b639234d90..087613a536 100644--- a/templates/checkout/shipping_address.html+++ b/templates/checkout/shipping_address.html@@ -13,7 +13,7 @@{% include "userprofile/snippets/address-form.html" with address_form=address_form only %}{% endif %}- <p class="text-right">+ <p class="text-md-right"><button type="submit" class="btn primary">{% trans "Continue" %}</button>diff --git a/templates/checkout/shipping_method.html b/templates/checkout/shipping_method.htmlindex 7b807a3ec5..0fd6211cb3 100644--- a/templates/checkout/shipping_method.html+++ b/templates/checkout/shipping_method.html@@ -12,7 +12,7 @@{% csrf_token %}<h2>{% trans "Shipping method" %}</h2>{% bootstrap_form shipping_method_form show_label=False %}- <p class="text-right">+ <p class="text-md-right"><button type="submit" class="btn primary">{% trans "Continue" %}</button>diff --git a/templates/checkout/summary.html b/templates/checkout/summary.htmlindex 8d311a57c7..1f9fa15b93 100644--- a/templates/checkout/summary.html+++ b/templates/checkout/summary.html@@ -6,7 +6,7 @@{% csrf_token %}<h2>{% trans "Billing address" %}</h2>{% include "checkout/snippets/addresses-form.html" with addresses_form=addresses_form addresses=additional_addresses address_form=address_form only %}- <p class="text-right">+ <p class="text-md-right"><button type="submit" class="btn primary">{% trans "Order & Pay" %}</button>diff --git a/templates/checkout/summary_without_shipping.html b/templates/checkout/summary_without_shipping.htmlindex 7f3c98bce6..022d585fad 100644--- a/templates/checkout/summary_without_shipping.html+++ b/templates/checkout/summary_without_shipping.html@@ -12,7 +12,7 @@{% bootstrap_form user_form %}{% include "userprofile/snippets/address-form.html" with address_form=address_form only %}{% endif %}- <p class="text-right">+ <p class="text-md-right"><button type="submit" class="btn primary">{% trans "Place order" %}</button>diff --git a/templates/order/create_password.html b/templates/order/create_password.htmlindex 5a82dba87e..d500aa997f 100644--- a/templates/order/create_password.html+++ b/templates/order/create_password.html@@ -15,12 +15,7 @@<p>{% trans "We’ve sent a confirmation email with details to" %} <span>{{ email }}</span>.<br>{% trans "In any problems and questions contact us." %}</p><div class="row checkout__thankyoupage__form">- <div class="col-md-6">- <h3>...</h3>- <img class="checkout-pirate" src="{% static 'images/pirate-checkout.png' %}" srcset="{% static 'images/pirate-checkout.png' %} 1x, {% static 'images/pirate-checkout2x.png' %} 2x">- <p><a href="{% url 'checkout:index' %}" class="btn secondary">{% trans "Continue shopping" %}</a></p>- </div>- <div class="col-md-6 checkout__thankyoupage__image">+ <div class="col-md-6 push-md-6"><form method="post" action="" novalidate>{% csrf_token %}<fieldset>@@ -29,14 +24,18 @@{% bootstrap_form form %}</fieldset><div class="row login__btn-group">- <div class="col-sm-12">+ <div class="col-12"><button class="btn primary">{% trans "Create an account" %}</button></div></div></form>-+ </div>+ <div class="col-md-6 pull-md-6">+ <h3>...</h3>+ <img class="checkout-pirate" src="{% static 'images/pirate-checkout.png' %}" srcset="{% static 'images/pirate-checkout.png' %} 1x, {% static 'images/pirate-checkout2x.png' %} 2x">+ <p><a href="{% url 'checkout:index' %}" class="btn secondary">{% trans "Continue shopping" %}</a></p></div></div></div>diff --git a/templates/userprofile/snippets/address-form.html b/templates/userprofile/snippets/address-form.htmlindex e79f12fa32..725f4c6d46 100644--- a/templates/userprofile/snippets/address-form.html+++ b/templates/userprofile/snippets/address-form.html@@ -4,9 +4,13 @@{% with address_form_lines=address_form.i18n_fields_order %}{% if address_form_lines %}{% for line in address_form_lines %}- {% for field in line %}- {% bootstrap_field field %}- {% endfor %}+ <div class="row">+ {% for field in line %}+ <div class="col-6">+ {% bootstrap_field field %}+ </div>+ {% endfor %}+ </div>{% endfor %}{% endif %}{% endwith %}