Skip to content

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

Replace fa-icons to svg

Krzysztof Białogłowicz0fe56747384f
diff --git a/saleor/static/img/close-icon.svg b/saleor/static/img/close-icon.svg
new file mode 100644
index 0000000000..1778dc4c0c
--- /dev/null
+++ b/saleor/static/img/close-icon.svg
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 20.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ viewBox="0 0 85 85" style="enable-background:new 0 0 85 85;" xml:space="preserve">
+<g>
+ <path d="M82.2,66.7c0,1.8-0.6,3.3-1.9,4.5l-9.1,9.1c-1.2,1.2-2.8,1.9-4.5,1.9s-3.3-0.6-4.5-1.9L42.5,60.7L22.9,80.3
+ c-1.2,1.2-2.8,1.9-4.5,1.9c-1.8,0-3.3-0.6-4.5-1.9l-9.1-9.1c-1.2-1.2-1.9-2.8-1.9-4.5s0.6-3.3,1.9-4.5l19.6-19.6L4.7,22.9
+ c-1.2-1.2-1.9-2.8-1.9-4.5c0-1.8,0.6-3.3,1.9-4.5l9.1-9.1c1.2-1.2,2.8-1.9,4.5-1.9c1.8,0,3.3,0.6,4.5,1.9l19.6,19.6L62.2,4.7
+ c1.2-1.2,2.8-1.9,4.5-1.9s3.3,0.6,4.5,1.9l9.1,9.1c1.2,1.2,1.9,2.8,1.9,4.5c0,1.8-0.6,3.3-1.9,4.5L60.7,42.5l19.6,19.6
+ C81.6,63.4,82.2,64.9,82.2,66.7z"/>
+</g>
+</svg>
diff --git a/saleor/static/scss/storefront/components/_header.scss b/saleor/static/scss/storefront/components/_header.scss
index f2d7ce1478..d7622c1c07 100644
--- a/saleor/static/scss/storefront/components/_header.scss
+++ b/saleor/static/scss/storefront/components/_header.scss
@@ -78,6 +78,13 @@
position: relative;
margin-right: 10%;
margin-top: $global-margin / 2;
+ .mobile-close-search {
+ position: absolute;
+ top: 1.9rem;
+ left: 0.5rem;
+ max-width: 22px;
+ cursor: pointer;
+ }
.form-control {
width: 100%;
border-color: $body-color;
@@ -110,7 +117,7 @@
padding: $global-padding * 1.7 $global-padding;
}
.btn {
- top: 2rem;
+ top: 1.9rem;
right: 0;
}
}
diff --git a/templates/base.html b/templates/base.html
index 77254180d3..8a672cac8c 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -67,7 +67,7 @@
</div>
{% if SEARCH_IS_ENABLED %}
<form class="form-inline float-xs-right navbar__brand__search" action="{% url "search:search" %}">
- <i class="fa fa-times fa-2x mobile-close-search hidden-md-up" aria-hidden="true"></i>
+ <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>
</form>