Skip to content

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

Replace Bootstrap4-alphas classes with Bootstrap4-betas

dominik-zeglen839581d05a18
diff --git a/templates/account/password_change.html b/templates/account/password_change.html
index a7666ee882..f14f964ae5 100644
--- a/templates/account/password_change.html
+++ b/templates/account/password_change.html
@@ -12,7 +12,7 @@
{% block content %}
<div class="row account-edit">
- <div class="col-sm-4 offset-sm-4">
+ <div class="col-sm-4 m-auto">
<div class="panel panel-default">
<div class="panel-body">
<form method="post" novalidate>
diff --git a/templates/account/signup.html b/templates/account/signup.html
index e859ed2e25..ef78f62c71 100644
--- a/templates/account/signup.html
+++ b/templates/account/signup.html
@@ -6,7 +6,7 @@
{% block title %}{% trans "Sign Up" context "Signup page title" %} — {{ block.super }}{% endblock %}
{% block content %}
- <div class="col-lg-10 offset-lg-1 col-sm-12">
+ <div class="col-lg-10 col-sm-12 m-auto">
<div class="row login">
<div class="col-md-6 login__register">
<div class="login__register-link">
diff --git a/templates/cart-dropdown.html b/templates/cart-dropdown.html
index 407858f737..316b433739 100644
--- a/templates/cart-dropdown.html
+++ b/templates/cart-dropdown.html
@@ -10,8 +10,8 @@
<div class="row item">
<div class="col-md-10">
<a class="link--clean" href="{{ line.variant_url }}">
- <img class="cart-dropdown__image" src="{% get_thumbnail line.image size="60x60" %}"
- srcset="{% get_thumbnail line.image size="60x60" %} 1x, {% get_thumbnail line.image size="120x120" %} 2x"
+ <img class="cart-dropdown__image" src="{% get_thumbnail line.image size="60x60" %}"
+ srcset="{% get_thumbnail line.image size="60x60" %} 1x, {% get_thumbnail line.image size="120x120" %} 2x"
alt="">
<h3>
{{ line.product }}
@@ -41,7 +41,8 @@
</div>
</div>
<div class="row cart-dropdown__actions">
- <div class="col-md-5 offset-md-1">
+ <div class="col-md-1"></div>
+ <div class="col-md-5">
<a href="{% url "cart:index" %}" class="btn secondary narrow float-md-right">{% trans "Go to cart" context "Cart dropdown secondary action" %}</a>
</div>
<div class="col-md-5">
diff --git a/templates/order/create_password.html b/templates/order/create_password.html
index dd6582cc43..44dc76d285 100644
--- a/templates/order/create_password.html
+++ b/templates/order/create_password.html
@@ -9,7 +9,7 @@
{% block content %}
<div class="row checkout__thankyoupage">
- <div class="col-xl-10 offset-xl-1">
+ <div class="col-xl-10 m-auto">
<img class="checkout__thankyoupage__parrot" src="{% static 'images/parrot.png' %}"
srcset="{% static 'images/parrot.png' %} 1x, {% static 'images/parrot2x.png' %} 2x">
<h1>{% blocktrans trimmed with order_url=order.get_absolute_url context "Checkout title" %}
diff --git a/templates/order/details.html b/templates/order/details.html
index 1f6edbd844..86962ad6da 100644
--- a/templates/order/details.html
+++ b/templates/order/details.html
@@ -33,7 +33,7 @@
{# unless current user is owner of the order. #}
<div class="row order-details">
- <div class="col-lg-10 offset-lg-1">
+ <div class="col-lg-10 m-auto">
<h2 class="order-details__header">
{% blocktrans trimmed with order_status=order.get_status_display context "Order detail text" %}
Order {{ order }}: {{ order_status }}
diff --git a/templates/order/payment.html b/templates/order/payment.html
index b18ab88518..d7be44b553 100644
--- a/templates/order/payment.html
+++ b/templates/order/payment.html
@@ -32,7 +32,7 @@
{% block content %}
<div class="row checkout">
- <div class="col-lg-10 offset-lg-1">
+ <div class="col-lg-10 m-auto">
{% if order.user == user or not order.is_fully_paid %}
{% if not order.is_fully_paid %}
{% if waiting_payment %}
diff --git a/templates/order/payment/default.html b/templates/order/payment/default.html
index 4f0fc2ea7e..21a663f2d1 100644
--- a/templates/order/payment/default.html
+++ b/templates/order/payment/default.html
@@ -8,7 +8,8 @@
{{ form.media }}
{% bootstrap_form form %}
<div class="form-group">
- <div class="col-sm-offset-2 col-sm-10">
+ <div class="col-sm-2"></div>
+ <div class="col-sm-10">
<button type="submit" class="btn primary">
{% trans "Save changes" context "Payment form primary action" %}
</button>
diff --git a/templates/order/payment/details.html b/templates/order/payment/details.html
index 377cad7cb1..312ffb59d9 100644
--- a/templates/order/payment/details.html
+++ b/templates/order/payment/details.html
@@ -5,7 +5,8 @@
{% block content %}
<div class="row checkout">
- <div class="col-md-6 offset-lg-1">
+ <div class="col-lg-1"></div>
+ <div class="col-md-6">
<h1>{% trans "Payment" context "Payment form title" %}</h1>
{% block forms %}{% endblock %}
</div>
diff --git a/templates/order/payment/paypal-card.html b/templates/order/payment/paypal-card.html
index 2d7baf5550..c8589a7267 100644
--- a/templates/order/payment/paypal-card.html
+++ b/templates/order/payment/paypal-card.html
@@ -9,7 +9,7 @@
{% csrf_token %}
{% bootstrap_form form layout="horizontal" %}
<div class="form-group">
- <div class="col-sm-offset-2 col-sm-10">
+ <div class="col-sm-10 m-auto">
<button type="submit" class="btn primary">
{% trans "Save changes" context "Payment form (PayPal) primary action" %}
</button>
diff --git a/templates/order/payment/stripe.html b/templates/order/payment/stripe.html
index 1d29c35b16..05d0ed78fe 100644
--- a/templates/order/payment/stripe.html
+++ b/templates/order/payment/stripe.html
@@ -13,7 +13,8 @@
</a>
{% endif %}
<div class="form-group">
- <div class="col-sm-offset-2 col-sm-10">
+ <div class="col-sm-2"></div>
+ <div class="col-sm-10">
<button type="submit" class="btn primary">
{% trans "Save changes" context "Payment form primary action" %}
</button>
diff --git a/templates/styleguide.html b/templates/styleguide.html
index a5bca3c14d..f93f90d22b 100644
--- a/templates/styleguide.html
+++ b/templates/styleguide.html
@@ -174,8 +174,8 @@
</div>
</div>
<div class="row styleguide__content__block__grid">
- <div class="col-lg-10 offset-lg-1">
- <p>col-lg-10 offset-lg-1</p>
+ <div class="col-lg-10 m-auto">
+ <p>col-lg-10 m-auto</p>
</div>
</div>
<div class="row styleguide__content__block__grid">
@@ -405,7 +405,7 @@
</div>
<div class="styleguide__section">
<div class="row">
- <div class="col-lg-4 offset-lg-4 offset-md-3 col-md-6">
+ <div class="col-lg-4 col-md-6 m-auto">
<div class="styleguide__section">
<div class="product-filters">
<h3 contenteditable="true">Box Size
@@ -631,7 +631,7 @@
<h3 class="styleguide__content__block__title">Tabs navigation</h3>
</div>
<div class="styleguide__section">
- <ul class="nav nav-tabs col-lg-10 offset-lg-1" role="tablist">
+ <ul class="nav nav-tabs col-lg-10 m-auto" role="tablist">
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" href="#orders" role="tab">
<h3>Recent Orders</h3>
@@ -650,17 +650,17 @@
</ul>
<div class="tab-content">
<div class="tab-pane active fade show" id="orders" role="tabpanel">
- <div class="col-lg-10 offset-lg-1">
+ <div class="col-lg-10 m-auto">
<p class="text-center">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent porttitor, felis et volutpat blandit, ex turpis consectetur eros, sit amet malesuada diam elit ut arcu.</p>
</div>
</div>
<div class="tab-pane fade" id="password" role="tabpanel">
- <div class="col-lg-10 offset-lg-1">
+ <div class="col-lg-10 m-auto">
<p class="text-center">Cras dapibus at turpis eget porta. Donec laoreet nulla nunc, ac euismod diam efficitur et. In hac habitasse platea dictumst. Donec eleifend pharetra est, ac molestie lorem lacinia a.</p>
</div>
</div>
<div class="tab-pane fade" id="addresses" role="tabpanel">
- <div class="col-lg-10 offset-lg-1">
+ <div class="col-lg-10 m-auto">
<p class="text-center">Nullam sit amet finibus tortor. Curabitur auctor malesuada dui, quis ornare libero posuere quis. Aliquam non faucibus erat, nec hendrerit ex.</p>
</div>
</div>
@@ -741,7 +741,7 @@
</div>
<div class="styleguide__section">
<div class="row">
- <div class="card-deck col-md-6 offset-md-3">
+ <div class="card-deck col-md-6 m-auto">
<div class="card card-block">
<div class="address-details">
<p contenteditable="true">Mr. Walter C. Brown<br>
@@ -812,7 +812,7 @@
</div>
<div class="styleguide__section">
<div class="row">
- <div class="col-md-8 offset-md-2 offset-lg-3 col-lg-6 col-12 product__gallery">
+ <div class="col-md-8 col-lg-6 col-12 m-auto product__gallery">
<div id="carousel-example-generic" class="carousel slide">
<div class="carousel-inner" role="listbox">
<div class="carousel-item active">
diff --git a/templates/userprofile/address-edit.html b/templates/userprofile/address-edit.html
index f5151e8dc2..2cb51a98d7 100644
--- a/templates/userprofile/address-edit.html
+++ b/templates/userprofile/address-edit.html
@@ -31,7 +31,7 @@
{% block content %}
<div class="row userprofile__address-edit">
- <div class="col-sm-8 col-lg-6 offset-sm-2 offset-lg-3">
+ <div class="col-sm-8 col-lg-6 m-auto">
<form method="post" novalidate>
{% csrf_token %}
<h2 class="text-center">