Skip to content

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

Fix responsive styles

weronka845b10b53aac
diff --git a/templates/cart/index.html b/templates/cart/index.html
index ae0ee7cfe5..f34925919f 100644
--- a/templates/cart/index.html
+++ b/templates/cart/index.html
@@ -35,7 +35,7 @@
{% for line in cart_lines %}
<div class="cart__line">
<div class="row">
- <div class="col-md-6 col-xs-8 cart__line__product">
+ <div class="col-md-6 col-xs-9 cart__line__product">
<a href="{{ line.variant.get_absolute_url }}">
{% if line.variant.product.images.first %}
<img class="cart-item-image" itemprop="image" src="{{ line.variant.product.images.first.image.crop.60x60 }}" alt="">
@@ -46,19 +46,19 @@
<br><small>{{ line.variant.display_variant }}</small></h3>
</a>
</div>
- <div class="cart__line__quantity col-md-2">
- <form role="form" action="{% url "cart:update-line" variant_id=line.variant.pk %}" method="post" class="form-cart">
- <div class="{% if form.quantity.errors %} has-error{% endif %}">
+ <div class="cart__line__quantity col-md-2 col-xs-3">
+ <form role="form" action="{% url "cart:update-line" variant_id=line.variant.pk %}" method="post" class="form-cart" >
+ <div class="{% if form.quantity.errors %} has-error{% endif %}" tabindex="-1">
{{ line.form.quantity }}
</div>
{% csrf_token %}
</form>
<small class="cart__line__quantity-error text-danger"></small>
</div>
- <div class="cart-item-subtotal col-md-2" data-product-id="{{ line.variant.pk }}">
- <h3>{% gross line.get_total html=True %}</h3>
+ <div class="cart-item-subtotal col-md-2 col-xs-8" data-product-id="{{ line.variant.pk }}">
+ <h3 class="float-xs-left float-sm-right">{% gross line.get_total html=True %}</h3>
</div>
- <div class="col-md-2 cart-item-delete">
+ <div class="col-md-2 col-xs-4 cart-item-delete">
<img src="{% static 'img/icon_delete.svg' %}">
</div>
</div>
diff --git a/templates/category/_items.html b/templates/category/_items.html
index 45ee54f18e..1bc99d9df2 100644
--- a/templates/category/_items.html
+++ b/templates/category/_items.html
@@ -4,7 +4,7 @@
{% load product_first_image from product_images %}
{% for product, availability in products %}
- <div class="col-xs-12 col-sm-6 col-md-4 product-list" itemscope itemtype="https://schema.org/Product">
+ <div class="col-xs-6 col-md-4 product-list" itemscope itemtype="https://schema.org/Product">
<div class="text-center">
<div>
<a itemprop="url" href="{{ product.get_absolute_url }}">
diff --git a/templates/product/details.html b/templates/product/details.html
index a0727d4d1b..6db91d6cff 100644
--- a/templates/product/details.html
+++ b/templates/product/details.html
@@ -11,7 +11,7 @@
{% block title %}{{ product }} — {{ block.super }}{% endblock %}
{% block breadcrumb %}
- <ul class="breadcrumbs list-unstyled hidden-sm-down">
+ <ul class="breadcrumbs list-unstyled">
<li><a href="/">{% trans "Home" %}</a></li>
{% with product.get_first_category as category %}
{% if category %}