Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Replace float-xs with float-
Artur Smęt9ff5f8bce38f
diff --git a/saleor/static/scss/storefront/components/_header.scss b/saleor/static/scss/storefront/components/_header.scssindex d7622c1c07..9a8681eade 100644--- a/saleor/static/scss/storefront/components/_header.scss+++ b/saleor/static/scss/storefront/components/_header.scss@@ -10,10 +10,10 @@p {margin: $global-margin / 2 0;font-size: $small-font-size;- &.float-xs-left {+ &.float-left {color: $white;}- &.float-xs-right {+ &.float-right {a {color: $body-color;}@@ -193,7 +193,4 @@}}-// Missing in Bootstrap 4-.float-xs-left { float: left !important; }-.float-xs-right { float: right !important; }diff --git a/templates/base.html b/templates/base.htmlindex 8a672cac8c..51e77c5782 100644--- a/templates/base.html+++ b/templates/base.html@@ -29,8 +29,8 @@<header class="navbar" role="navigation"><div class="navbar__login hidden-sm-down"><div class="container">- <p class="float-xs-left">{% trans "Test Saleor - a sample shop!" %}</p>- <p class="float-xs-right">+ <p class="float-left">{% trans "Test Saleor - a sample shop!" %}</p>+ <p class="float-right">{% if user.is_authenticated %}{% if user.is_staff %}<a href="{% url "dashboard:index" %}" traget="_blank">{% trans "Dashboard" %}</a> |@@ -50,11 +50,11 @@<a href="/"><img src="{% static "img/saleor-logo-black.svg" %}" alt="Testeor - Saleor demo store" height="40"></a>- <div class="float-xs-right">+ <div class="float-right">{% if SEARCH_IS_ENABLED %}<img class="hidden-md-up mobile-search-icon" src="{% static "img/search-icon.svg" %}">{% endif %}- <div class="navbar__brand__cart float-xs-right">+ <div class="navbar__brand__cart float-right"><a href="{% url "cart:index" %}"><span class="hidden-sm-down">{% trans "Your cart" %}</span><img class="navbar__brand__cart__icon" src="{% static "img/cart.svg" %}" alt="Cart">@@ -66,7 +66,7 @@</div></div>{% if SEARCH_IS_ENABLED %}- <form class="form-inline float-xs-right navbar__brand__search" action="{% url "search:search" %}">+ <form class="form-inline float-right navbar__brand__search" action="{% url "search:search" %}"><img class="mobile-close-search hidden-md-up" src="{% static "img/close-icon.svg" %}"><input class="form-control" type="text" placeholder="Search" name="q" value="{% if query %}{{ query }}{% endif %}"><button class="btn btn-link" type="submit"><img src="{% static "img/search-icon.svg" %}"></button>diff --git a/templates/cart-dropdown.html b/templates/cart-dropdown.htmlindex c3ce210262..310f4321bd 100644--- a/templates/cart-dropdown.html+++ b/templates/cart-dropdown.html@@ -4,7 +4,7 @@<div class="container">{% if quantity > 0 %}- {% for line in lines %}+ {% for line in lines %}<div class="row"><div class="col-md-10"><a href="{{ line.variant_url }}">@@ -16,7 +16,7 @@</a></div><div class="col-md-2">- <div class="float-xs-right">+ <div class="float-right"><h3>{{ line.line_total }}</h3></div></div>diff --git a/templates/cart/index.html b/templates/cart/index.htmlindex f85def8259..9026be0038 100644--- a/templates/cart/index.html+++ b/templates/cart/index.html@@ -60,7 +60,7 @@<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 }}">- <h3 class="float-xs-left float-sm-right">{% gross line.get_total html=True %}</h3>+ <h3 class="float-left float-sm-right">{% gross line.get_total html=True %}</h3></div><div class="col-md-2 col-xs-4"><img class="cart-item-delete" src="{% static 'img/icon_delete.svg' %}">diff --git a/templates/checkout/details.html b/templates/checkout/details.htmlindex 903111877f..06134f547f 100644--- a/templates/checkout/details.html+++ b/templates/checkout/details.html@@ -38,7 +38,7 @@<span class="checkout__review__variant">{{ item.variant }}</span></p></div><div class="col-xs-4">- <p class="float-xs-right">{% net item_price_total %}</p>+ <p class="float-right">{% net item_price_total %}</p></div></div>{% endfor %}@@ -48,7 +48,7 @@<p>{% trans "Delivery" %}</p></div><div class="col-xs-4">- <p class="float-xs-right">{% if checkout.shipping_method %}+ <p class="float-right">{% if checkout.shipping_method %}{% net checkout.get_total_shipping %}{% else %}—@@ -66,7 +66,7 @@<h3>{% trans "Total" %}</h3></div><div class="col-xs-4">- <h3 class="float-xs-right">{% gross total %}</h3>+ <h3 class="float-right">{% gross total %}</h3></div></div></div>diff --git a/templates/checkout/snippets/voucher-form.html b/templates/checkout/snippets/voucher-form.htmlindex eb6e0e0993..99df5e470e 100644--- a/templates/checkout/snippets/voucher-form.html+++ b/templates/checkout/snippets/voucher-form.html@@ -7,7 +7,7 @@{% if discount %}<form action="{% url "checkout:remove-voucher" %}?next={{ request.path }}"method="post"- class="float-xs-left checkout__review__voucher-form">+ class="float-left checkout__review__voucher-form">{% csrf_token %}<span>{{ discount.name }}</span><button type="submit"@@ -17,7 +17,7 @@</button></form>- <div class="float-xs-right">+ <div class="float-right">{% gross discount|discount_amount_for:total %}</div>{% else %}diff --git a/templates/userprofile/details.html b/templates/userprofile/details.htmlindex 5f2b23ef45..9e38ee332b 100644--- a/templates/userprofile/details.html+++ b/templates/userprofile/details.html@@ -50,7 +50,7 @@{% render_status order.status order.get_status_display %}</div><div class="col-md-2 col-xs-2">- <a href="{{ order.get_absolute_url }}"><small class="float-xs-right">{% trans "Details" %}</small></a>+ <a href="{{ order.get_absolute_url }}"><small class="float-right">{% trans "Details" %}</small></a></div></div></div>