Skip to content

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

Replace col-xs with col-

Artur Smęt881a008cd939
diff --git a/saleor/static/scss/storefront/components/_cart.scss b/saleor/static/scss/storefront/components/_cart.scss
index 241f0b1444..2c968c2a63 100644
--- a/saleor/static/scss/storefront/components/_cart.scss
+++ b/saleor/static/scss/storefront/components/_cart.scss
@@ -85,7 +85,7 @@
text-align: right;
}
&__list {
- .col-xs-6 {
+ .col-6 {
padding: 0;
}
}
diff --git a/saleor/static/scss/storefront/components/_order-details.scss b/saleor/static/scss/storefront/components/_order-details.scss
index 19f3913670..fa6195d866 100644
--- a/saleor/static/scss/storefront/components/_order-details.scss
+++ b/saleor/static/scss/storefront/components/_order-details.scss
@@ -17,7 +17,7 @@
&__table {
@include media-breakpoint-down(sm) {
margin-top: $global-margin * 3;
- }
+ }
span {
color: $gray;
}
@@ -32,14 +32,14 @@
text-decoration: none;
}
}
- .col-xs-3 {
+ .col-3 {
padding: 0;
}
.row {
padding: $global-padding / 2 0;
&:not(:last-of-type) {
border-bottom: 1px solid $light-gray;
- }
+ }
}
}
}
diff --git a/templates/cart/index.html b/templates/cart/index.html
index 9026be0038..ca9fb1ca31 100644
--- a/templates/cart/index.html
+++ b/templates/cart/index.html
@@ -39,7 +39,7 @@
{% for line in cart_lines %}
<div class="cart__line">
<div class="row">
- <div class="col-md-6 col-xs-9 cart__line__product">
+ <div class="col-md-6 col-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="">
@@ -50,7 +50,7 @@
<br><small>{{ line.variant.display_variant }}</small></h3>
</a>
</div>
- <div class="cart__line__quantity col-md-2 col-xs-3">
+ <div class="cart__line__quantity col-md-2 col-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 }}
@@ -59,10 +59,10 @@
</form>
<small class="cart__line__quantity-error text-danger"></small>
</div>
- <div class="cart-item-subtotal col-md-2 col-xs-8" data-product-id="{{ line.variant.pk }}">
+ <div class="cart-item-subtotal col-md-2 col-8" data-product-id="{{ line.variant.pk }}">
<h3 class="float-left float-sm-right">{% gross line.get_total html=True %}</h3>
</div>
- <div class="col-md-2 col-xs-4">
+ <div class="col-md-2 col-4">
<img class="cart-item-delete" src="{% static 'img/icon_delete.svg' %}">
</div>
</div>
@@ -70,11 +70,11 @@
{% endfor %}
<div class="cart__total">
<div class="row">
- <div class="col-xs-6">
+ <div class="col-6">
<h3>{% trans "Subtotal" %}</h3>
<p>({% trans "Delivery claculated on checkout" %})</p>
</div>
- <div class="col-md-2 offset-md-2 col-xs-6">
+ <div class="col-md-2 offset-md-2 col-6">
<h3 class="cart-total" data-value="{% gross cart_total %}"{% if local_cart_total %} data-value-local="{% gross local_cart_total %}"{% endif %}>
{% spaceless %}
{% gross cart_total html=True %}
@@ -101,12 +101,12 @@
</div>
<div class="col-md-5 ">
<div class="cart__delivery-info__list row">
- <div class="col-xs-6 cart__delivery-info__method">
+ <div class="col-6 cart__delivery-info__method">
{% for option in default_country_options %}
<p>{{ option.shipping_method__name }}</p>
{% endfor %}
</div>
- <div class="col-xs-6 cart__delivery-info__price">
+ <div class="col-6 cart__delivery-info__price">
{% for option in default_country_options %}
<p>{% gross option.price %}</p>
{% endfor %}
diff --git a/templates/category/_items.html b/templates/category/_items.html
index 1bc99d9df2..08211c06df 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-6 col-md-4 product-list" itemscope itemtype="https://schema.org/Product">
+ <div class="col-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/checkout/details.html b/templates/checkout/details.html
index 06134f547f..4e8bd30244 100644
--- a/templates/checkout/details.html
+++ b/templates/checkout/details.html
@@ -33,21 +33,21 @@
{% for delivery, delivery_cost, total_with_delivery in checkout.deliveries %}
{% for item, item_price_per_item, item_price_total in delivery %}
<div class="row">
- <div class="col-xs-8">
+ <div class="col-8">
<p><strong>{{ item.variant.product }}</strong> x {{ item.quantity }}<br>
<span class="checkout__review__variant">{{ item.variant }}</span></p>
</div>
- <div class="col-xs-4">
+ <div class="col-4">
<p class="float-right">{% net item_price_total %}</p>
</div>
</div>
{% endfor %}
{% endfor %}
<div class="row checkout__review__section">
- <div class="col-xs-8">
+ <div class="col-8">
<p>{% trans "Delivery" %}</p>
</div>
- <div class="col-xs-4">
+ <div class="col-4">
<p class="float-right">{% if checkout.shipping_method %}
{% net checkout.get_total_shipping %}
{% else %}
@@ -56,16 +56,16 @@
</div>
</div>
<div class="row checkout__review__section">
- <div class="col-xs-12">
+ <div class="col-12">
<h3>{% trans "Promo code" %}</h3>
{% include 'checkout/snippets/voucher-form.html' with discount=checkout.discount form=voucher_form %}
</div>
</div>
<div class="row checkout__review__section">
- <div class="col-xs-8">
+ <div class="col-8">
<h3>{% trans "Total" %}</h3>
</div>
- <div class="col-xs-4">
+ <div class="col-4">
<h3 class="float-right">{% gross total %}</h3>
</div>
</div>
diff --git a/templates/product/details.html b/templates/product/details.html
index 167cf59d73..f3166a196d 100644
--- a/templates/product/details.html
+++ b/templates/product/details.html
@@ -30,8 +30,8 @@
{% endif %}
<div itemscope itemtype="http://schema.org/Product">
<div class="row product">
- <div class="col-xs-12 col-md-7"></div>
- <div class="col-xs-12 col-md-5">
+ <div class="col-12 col-md-7"></div>
+ <div class="col-12 col-md-5">
<h1 itemprop="name" class="product__info__name">
{{ product }}
</h1>
@@ -58,7 +58,7 @@
{% endif %}
{% endif %}
</div>
- <div class="col-md-7 col-xs-12 product__gallery">
+ <div class="col-md-7 col-12 product__gallery">
{% with images=product_images %}
{% if images %}
<div id="carousel-example-generic" class="carousel slide">
@@ -92,7 +92,7 @@
{% endif %}
{% endwith %}
</div>
- <div class="col-md-5 col-xs-12 product__info">
+ <div class="col-md-5 col-12 product__info">
{% if is_visible and product.is_in_stock %}
{% block orderform %}
{% for attribute, value in product_attributes.items %}
diff --git a/templates/userprofile/details.html b/templates/userprofile/details.html
index 9e38ee332b..61b38bbf2e 100644
--- a/templates/userprofile/details.html
+++ b/templates/userprofile/details.html
@@ -37,19 +37,19 @@
<div class="userprofile__orders">
<div class="userprofile__orders__row">
<div class="row">
- <div class="col-md-2 col-xs-5">
+ <div class="col-md-2 col-5">
{{ order }}
</div>
- <div class="col-md-4 col-xs-6">
+ <div class="col-md-4 col-6">
{{ order.created }}
</div>
- <div class="col-md-1 col-xs-5">
+ <div class="col-md-1 col-5">
<span class="float-md-right">{% gross order.get_total %}</span>
</div>
- <div class="col-md-2 col-xs-5 offset-md-1">
+ <div class="col-md-2 col-5 offset-md-1">
{% render_status order.status order.get_status_display %}
</div>
- <div class="col-md-2 col-xs-2">
+ <div class="col-md-2 col-2">
<a href="{{ order.get_absolute_url }}"><small class="float-right">{% trans "Details" %}</small></a>
</div>
</div>