Skip to content

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

Add text "MENU" in mobile menu icon

Krzysztof Białogłowicza28a2cdc665e
diff --git a/saleor/static/images/mobile-bar.svg b/saleor/static/images/mobile-bar.svg
index e345a82248..0db413e434 100644
--- a/saleor/static/images/mobile-bar.svg
+++ b/saleor/static/images/mobile-bar.svg
@@ -2,7 +2,7 @@
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<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"
- width="136.689px" height="162px" viewBox="0 0 136.689 162" enable-background="new 0 0 136.689 162" xml:space="preserve">
+ width="136.689px" height="110px" viewBox="0 0 136.689 110" enable-background="new 0 0 136.689 110" xml:space="preserve">
<g>
<g>
<path fill="#333333" d="M9.282,86.005c0,0,0-3.11,3.107-3.11h111.909c0,0,3.11,0,3.11,3.11v12.435c0,0,0,3.106-3.11,3.106H12.39
@@ -17,25 +17,4 @@
H12.39c0,0-3.107,0-3.107-3.108V11.398z"/>
</g>
</g>
-<g enable-background="new ">
- <path fill="#333333" d="M27.21,139.476c0.19,0.454,0.378,0.912,0.563,1.372c0.185-0.474,0.375-0.94,0.573-1.402
- c0.198-0.46,0.408-0.901,0.632-1.322l8.453-15.819c0.105-0.198,0.214-0.356,0.326-0.475s0.237-0.204,0.375-0.257
- s0.292-0.085,0.464-0.099c0.171-0.013,0.375-0.02,0.612-0.02h4.009v28.558h-4.681v-18.446c0-0.342,0.01-0.717,0.029-1.125
- s0.05-0.823,0.089-1.244l-8.63,16.194c-0.197,0.368-0.454,0.655-0.77,0.858c-0.316,0.205-0.685,0.307-1.106,0.307h-0.731
- c-0.421,0-0.79-0.102-1.106-0.307c-0.316-0.203-0.573-0.49-0.77-0.858l-8.749-16.254c0.052,0.435,0.089,0.859,0.108,1.273
- c0.02,0.415,0.03,0.8,0.03,1.155v18.446H12.25v-28.558h4.009c0.237,0,0.441,0.007,0.612,0.02c0.171,0.014,0.326,0.046,0.464,0.099
- s0.267,0.139,0.385,0.257s0.23,0.276,0.336,0.475l8.532,15.858C26.812,138.584,27.019,139.021,27.21,139.476z"/>
- <path fill="#333333" d="M66.994,121.454v4.227H54.335v7.919h9.974v4.089h-9.974v8.077h12.659v4.246H48.984v-28.558H66.994z"/>
- <path fill="#333333" d="M74.974,121.484c0.158,0.02,0.299,0.059,0.425,0.117c0.125,0.061,0.246,0.146,0.365,0.258
- c0.118,0.111,0.25,0.26,0.395,0.444l14.99,19.098c-0.053-0.461-0.089-0.912-0.108-1.354c-0.021-0.44-0.03-0.852-0.03-1.234v-17.359
- h4.681v28.558h-2.745c-0.422,0-0.771-0.065-1.047-0.197s-0.546-0.369-0.81-0.711l-14.931-19.019
- c0.04,0.421,0.069,0.839,0.089,1.254c0.02,0.414,0.03,0.793,0.03,1.136v17.537h-4.681v-28.558h2.784
- C74.618,121.454,74.816,121.464,74.974,121.484z"/>
- <path fill="#333333" d="M112.951,145.727c1.026,0,1.945-0.172,2.755-0.514c0.81-0.343,1.494-0.823,2.054-1.442
- c0.56-0.618,0.987-1.369,1.284-2.251c0.296-0.882,0.444-1.869,0.444-2.963v-17.103h5.313v17.103c0,1.699-0.273,3.269-0.82,4.711
- c-0.546,1.441-1.333,2.686-2.359,3.732c-1.027,1.047-2.271,1.863-3.733,2.449c-1.461,0.585-3.107,0.879-4.937,0.879
- c-1.831,0-3.477-0.294-4.938-0.879c-1.462-0.586-2.703-1.402-3.723-2.449c-1.021-1.047-1.805-2.291-2.351-3.732
- c-0.547-1.442-0.819-3.012-0.819-4.711v-17.103h5.313v17.083c0,1.093,0.148,2.081,0.444,2.963s0.721,1.636,1.273,2.261
- c0.554,0.626,1.234,1.109,2.044,1.452C111.006,145.555,111.924,145.727,112.951,145.727z"/>
-</g>
</svg>
diff --git a/saleor/static/scss/storefront/components/_header.scss b/saleor/static/scss/storefront/components/_header.scss
index 1393c49b17..ec5d8e346c 100644
--- a/saleor/static/scss/storefront/components/_header.scss
+++ b/saleor/static/scss/storefront/components/_header.scss
@@ -7,7 +7,7 @@
}
@media (max-width: 370px) {
img {
- max-height: 27px;
+ max-height: 25px;
}
}
&__login {
@@ -35,6 +35,21 @@
}
&__logo {
padding: $global-padding * 2 0;
+ .menu-icon-mobile {
+ position: relative;
+ display: inline-block;
+ span {
+ position: absolute;
+ top: 1.3rem;
+ left: 1.1rem;
+ text-transform: uppercase;
+ font-size: 0.45rem;
+ }
+ img {
+ max-height: 20px;
+ vertical-align: top;
+ }
+ }
}
&__search {
padding: $global-padding * 2 0;
diff --git a/templates/base.html b/templates/base.html
index e8f07726b1..26f689fd44 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -64,7 +64,10 @@
<div class="container">
<div class="row no-gutters">
<div class="col-8 col-md-4 navbar__logo">
- <img class="hidden-md-up navbar__brand__menu-toggle closed open" src="{% static "images/mobile-bar.svg" %}">
+ <div class="menu-icon-mobile hidden-md-up">
+ <img class="navbar__brand__menu-toggle closed open" src="{% static "images/mobile-bar.svg" %}">
+ <span>{% trans "menu" %}</span>
+ </div>
<a href="/">
<img src="{% static "images/saleor-logo-black.svg" %}" alt="Testeor - Saleor demo store" height="38">
</a>