Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix search input styles
Krzysztof Białogłowicz7ae0e5ad1c6b
diff --git a/saleor/static/images/search-icon.svg b/saleor/static/images/search-icon.svgindex df628ae411..f999cdf2a8 100755--- a/saleor/static/images/search-icon.svg+++ b/saleor/static/images/search-icon.svg@@ -3,7 +3,7 @@<desc>Created using Figma</desc><g id="Canvas" transform="translate(1882 1346)" figma:type="canvas"><g id="" style="mix-blend-mode:normal;" figma:type="text">-<use xlink:href="#path0_fill" transform="translate(-1882 -1349)" fill="#828282" style="mix-blend-mode:normal;"/>+<use xlink:href="#path0_fill" transform="translate(-1882 -1349)" fill="#FFFFFF" style="mix-blend-mode:normal;"/></g></g><defs>diff --git a/saleor/static/scss/storefront/components/_header.scss b/saleor/static/scss/storefront/components/_header.scssindex 517ceec28d..e2529f2c6f 100644--- a/saleor/static/scss/storefront/components/_header.scss+++ b/saleor/static/scss/storefront/components/_header.scss@@ -124,14 +124,28 @@width: 100%;border-color: $gray;border-radius: 0;- padding-left: $global-padding * 2.5;+ padding-left: $global-padding;+ &::placeholder {+ color: $gray;+ font-family: 'Lato';+ font-weight: 300;+ }}.btn {+ width: 2rem;+ height: 2rem;position: absolute;- left: 0.5rem;+ right: 0.2rem;border: 0;+ background: $blue;+ cursor: pointer;+ @include transition(background, 0.3s)+ &:hover {+ background: darken($blue, 10%);+ }img {max-height: 1.5rem;+ padding: $global-padding / 7;}}@include media-breakpoint-down(sm) {diff --git a/templates/base.html b/templates/base.htmlindex 098d20a51a..151548e760 100644--- a/templates/base.html+++ b/templates/base.html@@ -76,7 +76,7 @@{% if SEARCH_IS_ENABLED %}<form class="form-inline navbar__brand__search" action="{% url "search:search" %}"><img class="mobile-close-search hidden-md-up" src="{% static "images/close-icon.svg" %}">- <input class="form-control search-input" type="text" name="q" value="{% if query %}{{ query }}{% endif %}">+ <input class="form-control search-input" type="text" name="q" value="{% if query %}{{ query }}{% endif %}" placeholder="{% trans "Search for product" %}"><button class="btn btn-link" type="submit"><img src="{% static "images/search-icon.svg" %}"></button>