Skip to content

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

Update base mobile styles

dominik-zeglen55cb0b9e2486
diff --git a/saleor/static/images/logo-document.svg b/saleor/static/images/logo-document.svg
index 08e48a56a1..8f478930ab 100644
--- a/saleor/static/images/logo-document.svg
+++ b/saleor/static/images/logo-document.svg
@@ -1 +1 @@
-<svg enable-background="new 20 0 57.6 19.5" viewBox="20 0 57.6 19.5" xmlns="http://www.w3.org/2000/svg"><path d="m15.5 3.1h-15.5l3.1-3.1h15.5z" fill="#54baba"/><g fill="#222046"><path d="m8.9 19.5c3.8 0 4.8-1.5 4.8-3.6 0-2.6-2.3-3.1-4.3-3.4-1.5-.3-2.2-.4-2.2-1.3 0-.7.6-.9 1.5-.9 1.2 0 1.5.3 1.6 1.3l3.1-.5c-.1-2.1-1.3-3.2-4.5-3.2-3.5 0-4.7 1.4-4.7 3.6 0 2.9 2.7 3.2 4.7 3.5 1.2.2 1.7.4 1.7 1.3 0 .7-.4 1-1.7 1-1.4 0-1.8-.2-2-1.3l-3 .4c.4 2.2 1.7 3.1 5 3.1z"/><path d="m17.5 19.5c1.7 0 2.5-.5 3-1.3v1.2h3.1v-7.6c0-2.5-1-3.8-4.4-3.8-3.3 0-4.4.9-4.9 3.2l3.1.5c.2-1 .5-1.3 1.7-1.3s1.4.5 1.4 1.3v.8h-1.4c-3.9 0-5.2 1.2-5.2 3.6 0 2.2 1.2 3.4 3.6 3.4zm1.4-2.3c-1.5 0-2-.3-2-1.4 0-.9.5-1.3 2.1-1.3h1.6v1.1c0 1-.5 1.6-1.7 1.6z"/><path d="m24.4 19.3h3.1v-16.2l-3.1 3.1z"/><path d="m33.2 19.5c3.6 0 4.6-1.7 4.8-3.4l-3-.4c-.1 1-.3 1.5-1.8 1.5s-1.8-.7-1.8-1.7v-.9h6.6v-2c0-2.8-1.1-4.7-4.8-4.7-3.6 0-4.9 1.9-4.9 4.3v3c0 2.3 1.3 4.3 4.9 4.3zm-1.8-7v-.6c0-1 .5-1.7 1.8-1.7s1.8.6 1.8 1.7v.6z"/><path d="m43.8 7.9c-3.6 0-5 1.8-5 4.3v3c0 2.5 1.4 4.3 5 4.3s5.1-1.8 5.1-4.3v-3c0-2.5-1.5-4.3-5.1-4.3zm2 7.4c0 1.1-.7 1.7-1.9 1.7s-1.9-.7-1.9-1.7v-3.2c0-1.1.6-1.7 1.9-1.7s1.9.7 1.9 1.7z"/><path d="m52.8 8-3.1 3.1v8.2h3.1v-8.2h1.7l3.1-3.1z"/></g></svg>
\ No newline at end of file
+<svg enable-background="new 20 0 57.6 19.5" viewBox="10 0 57.6 19.5" xmlns="http://www.w3.org/2000/svg"><path d="m15.5 3.1h-15.5l3.1-3.1h15.5z" fill="#54baba"/><g fill="#222046"><path d="m8.9 19.5c3.8 0 4.8-1.5 4.8-3.6 0-2.6-2.3-3.1-4.3-3.4-1.5-.3-2.2-.4-2.2-1.3 0-.7.6-.9 1.5-.9 1.2 0 1.5.3 1.6 1.3l3.1-.5c-.1-2.1-1.3-3.2-4.5-3.2-3.5 0-4.7 1.4-4.7 3.6 0 2.9 2.7 3.2 4.7 3.5 1.2.2 1.7.4 1.7 1.3 0 .7-.4 1-1.7 1-1.4 0-1.8-.2-2-1.3l-3 .4c.4 2.2 1.7 3.1 5 3.1z"/><path d="m17.5 19.5c1.7 0 2.5-.5 3-1.3v1.2h3.1v-7.6c0-2.5-1-3.8-4.4-3.8-3.3 0-4.4.9-4.9 3.2l3.1.5c.2-1 .5-1.3 1.7-1.3s1.4.5 1.4 1.3v.8h-1.4c-3.9 0-5.2 1.2-5.2 3.6 0 2.2 1.2 3.4 3.6 3.4zm1.4-2.3c-1.5 0-2-.3-2-1.4 0-.9.5-1.3 2.1-1.3h1.6v1.1c0 1-.5 1.6-1.7 1.6z"/><path d="m24.4 19.3h3.1v-16.2l-3.1 3.1z"/><path d="m33.2 19.5c3.6 0 4.6-1.7 4.8-3.4l-3-.4c-.1 1-.3 1.5-1.8 1.5s-1.8-.7-1.8-1.7v-.9h6.6v-2c0-2.8-1.1-4.7-4.8-4.7-3.6 0-4.9 1.9-4.9 4.3v3c0 2.3 1.3 4.3 4.9 4.3zm-1.8-7v-.6c0-1 .5-1.7 1.8-1.7s1.8.6 1.8 1.7v.6z"/><path d="m43.8 7.9c-3.6 0-5 1.8-5 4.3v3c0 2.5 1.4 4.3 5 4.3s5.1-1.8 5.1-4.3v-3c0-2.5-1.5-4.3-5.1-4.3zm2 7.4c0 1.1-.7 1.7-1.9 1.7s-1.9-.7-1.9-1.7v-3.2c0-1.1.6-1.7 1.9-1.7s1.9.7 1.9 1.7z"/><path d="m52.8 8-3.1 3.1v8.2h3.1v-8.2h1.7l3.1-3.1z"/></g></svg>
\ No newline at end of file
diff --git a/saleor/static/images/mobile-menu.svg b/saleor/static/images/mobile-menu.svg
index 5bc798808b..cf6d6688b7 100644
--- a/saleor/static/images/mobile-menu.svg
+++ b/saleor/static/images/mobile-menu.svg
@@ -1,18 +1,5 @@
-<?xml version="1.0" encoding="utf-8"?>
-<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="28px" height="20px" 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
- c0,0-3.107,0-3.107-3.106V86.005z"/>
- </g>
- <g>
- <path fill="#333333" d="M9.282,48.703c0,0,0-3.11,3.107-3.11h111.909c0,0,3.11,0,3.11,3.11v12.433c0,0,0,3.108-3.11,3.108H12.39
- c0,0-3.107,0-3.107-3.108V48.703z"/>
- </g>
- <g>
- <path fill="#333333" d="M9.282,11.398c0,0,0-3.108,3.107-3.108h111.909c0,0,3.11,0,3.11,3.108v12.435c0,0,0,3.108-3.11,3.108
- H12.39c0,0-3.107,0-3.107-3.108V11.398z"/>
- </g>
-</g>
+<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M1.5 5H22.5C23.328 5 24 5.448 24 6C24 6.552 23.328 7 22.5 7H1.5C0.672 7 0 6.552 0 6C0 5.448 0.672 5 1.5 5Z" fill="#323232"/>
+<path d="M1.5 11H22.5C23.328 11 24 11.448 24 12C24 12.552 23.328 13 22.5 13H1.5C0.672 13 0 12.552 0 12C0 11.448 0.672 11 1.5 11Z" fill="#323232"/>
+<path d="M1.5 17H22.5C23.328 17 24 17.448 24 18C24 18.552 23.328 19 22.5 19H1.5C0.672 19 0 18.552 0 18C0 17.448 0.672 17 1.5 17Z" fill="#323232"/>
</svg>
diff --git a/saleor/static/scss/components/_footer.scss b/saleor/static/scss/components/_footer.scss
index f059a137d8..ce9ded2141 100644
--- a/saleor/static/scss/components/_footer.scss
+++ b/saleor/static/scss/components/_footer.scss
@@ -16,6 +16,9 @@
display: flex;
justify-content: center;
flex-wrap: wrap;
+ @include media-breakpoint-down(sm) {
+ margin-top: $global-margin * 3;
+ }
&-container {
display: flex;
flex-direction: column;
@@ -32,14 +35,6 @@
}
&__logo {
margin-bottom: $global-margin;
- svg {
- @include media-breakpoint-down(md) {
- height: 30px;
- }
- @include media-breakpoint-down(sm) {
- height: 40px;
- }
- }
}
hr {
margin-top: 0;
diff --git a/saleor/static/scss/components/_forms.scss b/saleor/static/scss/components/_forms.scss
index d05701b103..f575753b62 100644
--- a/saleor/static/scss/components/_forms.scss
+++ b/saleor/static/scss/components/_forms.scss
@@ -116,6 +116,7 @@ input {
padding: $global-padding * 2 $global-padding * 2 $global-padding * 2
$global-padding * 4;
border: 0;
+ height: 5.9rem;
}
.mobile-close-search {
position: absolute;
@@ -123,8 +124,10 @@ input {
left: 0.5rem;
}
.btn {
- top: 1.6rem;
- right: 2rem;
+ border-radius: 0;
+ height: 6rem;
+ right: 0;
+ top: 0;
}
}
}
diff --git a/templates/base.html b/templates/base.html
index f58f2234de..86faac75fb 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -117,7 +117,6 @@
<div class="col-8 col-md-4 navbar__logo">
<div class="menu-icon-mobile d-md-none navbar__brand__menu-toggle closed open">
<svg data-src="{% static "images/mobile-menu.svg" %}" width="28px" height="20px"/>
- <span>{% trans "menu" context "Hamburger button text" %}</span>
</div>
<a href="{% url 'home' %}">
<svg data-src="{% static "images/logo-document.svg" %}" height="38px" width="176px"/>
@@ -195,7 +194,7 @@
<div class="container">
<div class="row">
{% footer_menu site_menu=site.settings.bottom_menu %}
- <div class="col-md-2 col-sm-4">
+ <div class="col-md-2 col-6">
<ul class="menu">
<li class="nav-item__dropdown menu__item">
<a>
@@ -253,7 +252,7 @@
{% endif %}
</ul>
</div>
- <div class="offset-md-2 col-md-4 col-sm-12">
+ <div class="offset-md-2 col-md-4 col-12">
<div class="footer__menus__social-container">
<div class="footer__menus__social">
<a target="_blank" rel="noopener" class="social-footer" href="https://www.facebook.com/mirumeelabs/">
@@ -289,12 +288,12 @@
<div class="footer__copy">
<div class="container">
<div class="row">
- <div class="col-md-3">
+ <div class="col-4">
<a href="{% url 'home' %}" class="footer__logo">
<svg data-src="{% static "images/logo-document.svg" %}" height="38px" width="176px"/>
</a>
</div>
- <div class="col-md-9 footer__copy-text">COPYRIGHT © 2009–2018 MIRUMEE SOFTWARE</div>
+ <div class="col-8 footer__copy-text">COPYRIGHT © 2009–2018 MIRUMEE SOFTWARE</div>
</div>
</div>
</div>
diff --git a/templates/footer_menu.html b/templates/footer_menu.html
index 5baf3e864c..492d76041e 100644
--- a/templates/footer_menu.html
+++ b/templates/footer_menu.html
@@ -5,7 +5,7 @@
{% for item in menu_items %}
{% with children=item.child_items %}
- <div class="col-sm-4 col-md-2">
+ <div class="col-6 col-md-2">
<ul class="menu">
<li class="{% if children %}nav-item__dropdown{% endif %} menu__item">
<a href="{{ item.url }}">