Skip to content

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

Fix responsive design

Patryk Zawadzkia4dc0d169228
diff --git a/cart/templates/cart/index.html b/cart/templates/cart/index.html
index f878bcf9af..af7d50ac50 100644
--- a/cart/templates/cart/index.html
+++ b/cart/templates/cart/index.html
@@ -18,28 +18,28 @@
<table class="table table-striped">
<thead>
<tr>
- <th class="col-lg-4">{% trans "Product" %}</th>
- <th class="col-lg-2">{% trans "Quantity" %}</th>
- <th class="col-lg-2">{% trans "Price" %}</th>
- <th class="col-lg-2">{% trans "Subtotal" %}</th>
+ <th class="col-sm-4">{% trans "Product" %}</th>
+ <th class="col-sm-2">{% trans "Quantity" %}</th>
+ <th class="col-sm-2">{% trans "Price" %}</th>
+ <th class="col-sm-2">{% trans "Subtotal" %}</th>
</tr>
</thead>
<tfoot>
<tr>
- <td class="col-lg-4">{% trans "Shipping" %}</td>
- <td class="col-lg-2"></td>
- <td class="col-lg-2"></td>
- <td class="col-lg-2">{% gross cart.get_delivery_total %}</td>
+ <td class="col-sm-4">{% trans "Shipping" %}</td>
+ <td class="col-sm-2"></td>
+ <td class="col-sm-2"></td>
+ <td class="col-sm-2">{% gross cart.get_delivery_total %}</td>
</tr>
<tr>
- <td class="col-lg-4"></td>
- <td class="col-lg-2">
+ <td class="col-sm-4"></td>
+ <td class="col-sm-2">
<button class="btn btn-default" type="submit">
{% trans "Update quantities" %}
</button>
</td>
- <th class="col-lg-2">{% trans "Total" %}:</th>
- <td class="col-lg-2">{% gross cart.get_total %}</td>
+ <th class="col-sm-2">{% trans "Total" %}:</th>
+ <td class="col-sm-2">{% gross cart.get_total %}</td>
</tr>
</tfoot>
<tbody>
diff --git a/checkout/templates/checkout/digitaldelivery.html b/checkout/templates/checkout/digitaldelivery.html
index 05dc03d596..0271a1ced0 100644
--- a/checkout/templates/checkout/digitaldelivery.html
+++ b/checkout/templates/checkout/digitaldelivery.html
@@ -9,7 +9,7 @@
{% csrf_token %}
{{ step.forms.email|as_horizontal_form }}
<div class="form-group">
- <div class="col-lg-offset-2 col-lg-10">
+ <div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary">
{% trans "Save changes" %}
</button>
diff --git a/checkout/templates/checkout/summary.html b/checkout/templates/checkout/summary.html
index ea8410f5a4..2d4d248c76 100644
--- a/checkout/templates/checkout/summary.html
+++ b/checkout/templates/checkout/summary.html
@@ -24,33 +24,33 @@
<table class="table table-striped">
<thead>
<tr>
- <th class="col-lg-4">{% trans "Product" %}</th>
- <th class="col-lg-2">{% trans "Price" %}</th>
- <th class="col-lg-2">{% trans "Subtotal" %}</th>
- <th class="col-lg-2">{% trans "Shipping" %}</th>
- <th class="col-lg-2">{% trans "Total" %}</th>
+ <th class="col-sm-4">{% trans "Product" %}</th>
+ <th class="col-sm-2">{% trans "Price" %}</th>
+ <th class="col-sm-2">{% trans "Subtotal" %}</th>
+ <th class="col-sm-2">{% trans "Shipping" %}</th>
+ <th class="col-sm-2">{% trans "Total" %}</th>
</tr>
</thead>
<tfoot>
<tr>
- <td colspan="3" class="col-lg-8"></td>
- <th class="col-lg-2">{% trans "Total" %}:</th>
- <td class="col-lg-2">{% gross checkout.groups.get_total %}</td>
+ <td colspan="3" class="col-sm-8"></td>
+ <th class="col-sm-2">{% trans "Total" %}:</th>
+ <td class="col-sm-2">{% gross checkout.groups.get_total %}</td>
</tr>
</tfoot>
<tbody>
{% for group in checkout.groups %}
{% for item in group %}
<tr>
- <td class="col-lg-4"><em>{{ item.quantity }}×</em> {{ item.product }}</td>
- <td class="col-lg-2">{% gross item.get_price_per_item %}</td>
- <td class="col-lg-2">{% gross item.get_total %}</td>
+ <td class="col-sm-4"><em>{{ item.quantity }}×</em> {{ item.product }}</td>
+ <td class="col-sm-2">{% gross item.get_price_per_item %}</td>
+ <td class="col-sm-2">{% gross item.get_total %}</td>
{% if forloop.first %}
- <td rowspan="{{ group|length }}" class="col-lg-2">
+ <td rowspan="{{ group|length }}" class="col-sm-2">
{% gross group.get_delivery_total %}
<p>{{ group.address }}</p>
</td>
- <td rowspan="{{ group|length }}" class="col-lg-2">{% gross group.get_total_with_delivery %}</td>
+ <td rowspan="{{ group|length }}" class="col-sm-2">{% gross group.get_total_with_delivery %}</td>
{% endif %}
</tr>
{% endfor %}
diff --git a/order/templates/order/details.html b/order/templates/order/details.html
index 0138855f95..9c23bce5a2 100644
--- a/order/templates/order/details.html
+++ b/order/templates/order/details.html
@@ -40,29 +40,29 @@
<table class="table table-striped">
<thead>
<tr>
- <th class="col-lg-4">{% trans "Name" %}</th>
- <th class="col-lg-2">{% trans "Price" %}</th>
- <th class="col-lg-2">{% trans "Subotal" %}</th>
- <th class="col-lg-2">{% trans "Shipping" %}</th>
- <th class="col-lg-2">{% trans "Total" %}</th>
+ <th class="col-sm-4">{% trans "Name" %}</th>
+ <th class="col-sm-2">{% trans "Price" %}</th>
+ <th class="col-sm-2">{% trans "Subotal" %}</th>
+ <th class="col-sm-2">{% trans "Shipping" %}</th>
+ <th class="col-sm-2">{% trans "Total" %}</th>
</tr>
</thead>
<tfoot>
<tr>
- <td colspan="3" class="col-lg-8"></td>
- <th class="col-lg-2">{% trans "Total" %}</th>
- <td class="col-lg-2">{% gross order.get_total %}</td>
+ <td colspan="3" class="col-sm-8"></td>
+ <th class="col-sm-2">{% trans "Total" %}</th>
+ <td class="col-sm-2">{% gross order.get_total %}</td>
</tr>
</tfoot>
<tbody>
{% for group in groups %}
{% for item in group %}
<tr>
- <td class="col-lg-4"><em>{{ item.quantity }}×</em> {{ item.product }}</td>
- <td class="col-lg-2">{% gross item.get_price_per_item %}</td>
- <td class="col-lg-2">{% gross item.get_total %}</td>
+ <td class="col-sm-4"><em>{{ item.quantity }}×</em> {{ item.product }}</td>
+ <td class="col-sm-2">{% gross item.get_price_per_item %}</td>
+ <td class="col-sm-2">{% gross item.get_total %}</td>
{% if forloop.first %}
- <td rowspan="{{ group.items.count }}" class="col-lg-2">
+ <td rowspan="{{ group.items.count }}" class="col-sm-2">
{% gross group.price %}
{% if order.user == user %}
{% if group.email %}
@@ -83,7 +83,7 @@
<p>{% trans "Status" %}: <span class="label label-default">{{ group.get_status_display }}</span></p>
{% endif %}
</td>
- <td rowspan="{{ group.items.count }}" class="col-lg-2">
+ <td rowspan="{{ group.items.count }}" class="col-sm-2">
{% gross group.get_total %}
</td>
{% endif %}
diff --git a/payment/templates/payment/default.html b/payment/templates/payment/default.html
index 67a4917f28..427bad7f02 100644
--- a/payment/templates/payment/default.html
+++ b/payment/templates/payment/default.html
@@ -9,7 +9,7 @@
{% csrf_token %}
{{ form|as_horizontal_form }}
<div class="form-group">
- <div class="col-lg-offset-2 col-lg-10">
+ <div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary">
{% trans "Save changes" %}
</button>
diff --git a/payment/templates/payment/details.html b/payment/templates/payment/details.html
index 0392ea05e9..5a2427a121 100644
--- a/payment/templates/payment/details.html
+++ b/payment/templates/payment/details.html
@@ -14,7 +14,7 @@
{% csrf_token %}
{{ form|as_horizontal_form }}
<div class="form-group">
- <div class="col-lg-offset-2 col-lg-10">
+ <div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary">
{% trans "Save changes" %}
</button>
diff --git a/payment/templates/payment/index.html b/payment/templates/payment/index.html
index b7b0f3184b..912bf625f4 100644
--- a/payment/templates/payment/index.html
+++ b/payment/templates/payment/index.html
@@ -19,7 +19,7 @@
{% csrf_token %}
{{ form|as_horizontal_form }}
<div class="form-group">
- <div class="col-lg-offset-2 col-lg-10">
+ <div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary">
{% trans "Save changes" %}
</button>
diff --git a/payment/templates/payment/paypal-card.html b/payment/templates/payment/paypal-card.html
index d153168e2e..7bd761d997 100644
--- a/payment/templates/payment/paypal-card.html
+++ b/payment/templates/payment/paypal-card.html
@@ -26,7 +26,7 @@
</div>
{{ form.cvv2|as_horizontal_form }}
<div class="form-group">
- <div class="col-lg-offset-2 col-lg-10">
+ <div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary">
{% trans "Save changes" %}
</button>
diff --git a/product/templates/product/details.html b/product/templates/product/details.html
index 0e17ffb9dc..3d63b788b7 100644
--- a/product/templates/product/details.html
+++ b/product/templates/product/details.html
@@ -37,7 +37,7 @@
{{ form.quantity|as_horizontal_form }}
<div class="form-group">
- <div class="col-lg-offset-2 col-lg-10">
+ <div class="col-sm-offset-2 col-sm-10">
<button class="btn btn-primary">
{% trans "Add to cart" %}
</button>
diff --git a/registration/templates/registration/change_password.html b/registration/templates/registration/change_password.html
index e6a24de66a..f167ee460c 100644
--- a/registration/templates/registration/change_password.html
+++ b/registration/templates/registration/change_password.html
@@ -20,7 +20,7 @@
</fieldset>
<div class="form-group">
- <div class="col-lg-offset-2 col-lg-10">
+ <div class="col-sm-offset-2 col-sm-10">
<button class="btn btn-primary">
{% trans "Update password" %}
</button>
diff --git a/registration/templates/registration/login.html b/registration/templates/registration/login.html
index cbbc96b05d..3a5971d708 100644
--- a/registration/templates/registration/login.html
+++ b/registration/templates/registration/login.html
@@ -14,7 +14,7 @@
</fieldset>
<div class="form-group">
- <div class="col-lg-offset-2 col-lg-10">
+ <div class="col-sm-offset-2 col-sm-10">
<button class="btn btn-primary">
{% trans "Log in" %}
</button>
diff --git a/registration/templates/registration/request_email_confirmation.html b/registration/templates/registration/request_email_confirmation.html
index a868112e2d..b4708d5a69 100644
--- a/registration/templates/registration/request_email_confirmation.html
+++ b/registration/templates/registration/request_email_confirmation.html
@@ -18,7 +18,7 @@
<input type="hidden" name="next" value="{{ next }}" />
</fieldset>
<div class="form-group">
- <div class="col-lg-offset-2 col-lg-10">
+ <div class="col-sm-offset-2 col-sm-10">
<button class="btn btn-primary">
{% trans "Continue" %}
</button>
diff --git a/registration/templates/registration/set_password.html b/registration/templates/registration/set_password.html
index b33071eab0..fd9e52c9cc 100644
--- a/registration/templates/registration/set_password.html
+++ b/registration/templates/registration/set_password.html
@@ -12,7 +12,7 @@
{{ form|as_horizontal_form }}
</fieldset>
<div class="form-group">
- <div class="col-lg-offset-2 col-lg-10">
+ <div class="col-sm-offset-2 col-sm-10">
<button class="btn btn-primary">
{% trans "Set password" %}
</button>
@@ -22,7 +22,7 @@
<form method="post" class="form-horizontal">
{% csrf_token %}
<div class="form-group">
- <div class="col-lg-offset-2 col-lg-10">
+ <div class="col-sm-offset-2 col-sm-10">
<button class="btn btn-default">
{% trans "I don't want a password" %}
</button>
diff --git a/saleor/templates/base.html b/saleor/templates/base.html
index 5a502a50b8..8eb8045f97 100644
--- a/saleor/templates/base.html
+++ b/saleor/templates/base.html
@@ -109,7 +109,7 @@
{% endblock outerbreadcrumb %}
{% block outercontent %}
<div class="row">
- <div class="col-lg-12">
+ <div class="col-sm-12">
{% block content %}
{% lorem 5 p %}
{% endblock content %}
diff --git a/saleor/templates/bootstrap/_field_horizontal.html b/saleor/templates/bootstrap/_field_horizontal.html
index c0de09d4fc..837ee2388b 100644
--- a/saleor/templates/bootstrap/_field_horizontal.html
+++ b/saleor/templates/bootstrap/_field_horizontal.html
@@ -4,9 +4,9 @@
{% else %}
<div class="form-group {{ bound_field.html_name }}{% if bound_field.errors %} has-error{% endif %}{% if bound_field.field.required %} required{% endif %}">
{% if show_label %}
- <label class="col-lg-2 control-label" for="{{ bound_field.html_name }}_id">{{ bound_field.label }}</label>
+ <label class="col-sm-2 control-label" for="{{ bound_field.html_name }}_id">{{ bound_field.label }}</label>
{% endif %}
- <div class="col-lg-10{% if not show_label %} col-lg-offset-2{% endif %}">
+ <div class="col-sm-10{% if not show_label %} col-sm-offset-2{% endif %}">
{% if input_type == "input" or input_type == "textarea" or input_type == "select" %}
{% render_widget bound_field class="form-control" %}
{% endif %}
diff --git a/userprofile/templates/userprofile/address-edit.html b/userprofile/templates/userprofile/address-edit.html
index d6e4d6cea6..dead56da9d 100644
--- a/userprofile/templates/userprofile/address-edit.html
+++ b/userprofile/templates/userprofile/address-edit.html
@@ -24,7 +24,7 @@
{{ address_form|as_horizontal_form }}
</fieldset>
<div class="form-group">
- <div class="col-lg-10 col-lg-offset-2">
+ <div class="col-sm-10 col-sm-offset-2">
<button type="submit" class="btn btn-default">Save</button>
<a href="{% url 'profile:details' %}" class="btn btn-link">Cancel</a>
</div>
diff --git a/userprofile/templates/userprofile/details.html b/userprofile/templates/userprofile/details.html
index c8c83d6fb4..eda57c06a7 100644
--- a/userprofile/templates/userprofile/details.html
+++ b/userprofile/templates/userprofile/details.html
@@ -20,23 +20,23 @@
<table class="table table-striped">
<thead>
<tr>
- <th class="col-lg-2">{% trans "Short alias" %}</th>
- <th class="col-lg-4">{% trans "Addressee" %}</th>
- <th class="col-lg-2">{% trans "Billing" %}</th>
- <th class="col-lg-2">{% trans "Shipping" %}</th>
- <th class="col-lg-2"></th>
+ <th class="col-sm-2">{% trans "Short alias" %}</th>
+ <th class="col-sm-4">{% trans "Addressee" %}</th>
+ <th class="col-sm-2">{% trans "Billing" %}</th>
+ <th class="col-sm-2">{% trans "Shipping" %}</th>
+ <th class="col-sm-2"></th>
</tr>
</thead>
<tbody>
{% for entry in address_book %}
<tr>
- <th class="col-lg-2">
+ <th class="col-sm-2">
{{ entry }}
</th>
- <td class="col-lg-4">
+ <td class="col-sm-4">
{{ entry.address }}
</td>
- <td class="col-lg-2">
+ <td class="col-sm-2">
{% if user.default_billing_address == entry %}
<span class="label label-default">{% trans "Default" %}</span>
{% else %}
@@ -46,7 +46,7 @@
</form>
{% endif %}
</td>
- <td class="col-lg-2">
+ <td class="col-sm-2">
{% if user.default_shipping_address == entry %}
<span class="label label-default">{% trans "Default" %}</span>
{% else %}
@@ -56,7 +56,7 @@
</form>
{% endif %}
</td>
- <td class="col-lg-2">
+ <td class="col-sm-2">
<a href="{% url 'profile:address-edit' pk=entry.pk slug=entry.get_slug %}" class="btn btn-default"><i class="glyphicon glyphicon-edit"></i> {% trans "Edit" %}</a>
<a href="{% url 'profile:address-delete' pk=entry.pk slug=entry.get_slug %}" class="btn btn-danger"><i class="glyphicon glyphicon-remove"></i> {% trans "Delete" %}</a>
</td>
diff --git a/userprofile/templates/userprofile/orders.html b/userprofile/templates/userprofile/orders.html
index 79845c223c..102b371a22 100644
--- a/userprofile/templates/userprofile/orders.html
+++ b/userprofile/templates/userprofile/orders.html
@@ -11,19 +11,19 @@
<table class="table table-striped">
<thead>
<tr>
- <th class="col-lg-2">
+ <th class="col-sm-2">
{% trans "Order #" %}
</th>
- <th class="col-lg-2">
+ <th class="col-sm-2">
{% trans "Date" %}
</th>
- <th class="col-lg-2">
+ <th class="col-sm-2">
{% trans "Price" %}
</th>
- <th class="col-lg-2">
+ <th class="col-sm-2">
{% trans "Status" %}
</th>
- <th class="col-lg-2">
+ <th class="col-sm-2">
{% trans "Last status change" %}
</th>
</tr>
@@ -31,19 +31,19 @@
<tbody>
{% for order in orders %}
<tr>
- <td class="col-lg-2">
+ <td class="col-sm-2">
<a href="{{ order.get_absolute_url }}">{{ order }}</a>
</td>
- <td class="col-lg-2">
+ <td class="col-sm-2">
{{ order.created }}
</td>
- <td class="col-lg-2">
+ <td class="col-sm-2">
{% gross order.get_total %}
</td>
- <td class="col-lg-2">
+ <td class="col-sm-2">
<span class="label label-default">{{ order.get_status_display }}</span>
</td>
- <td class="col-lg-2">
+ <td class="col-sm-2">
{{ order.last_status_change }}
</td>
</tr>