diff --git a/src/themes/default/components/core/blocks/SearchPanel/SearchPanel.vue b/src/themes/default/components/core/blocks/SearchPanel/SearchPanel.vue index bfb4e03932..5bbc25cdbb 100644 --- a/src/themes/default/components/core/blocks/SearchPanel/SearchPanel.vue +++ b/src/themes/default/components/core/blocks/SearchPanel/SearchPanel.vue @@ -4,50 +4,59 @@ :class="{ active: isOpen }" data-testid="searchPanel" > -
-
- - close - -
-
-
- - + + close +
-
- - -
- {{ $t('No results were found.') }} +
+
+
+ +
+ + search + + +
- -
-
- - +
+
+ + +
+ {{ $t('No results were found.') }} +
+
+
+
+ + +
@@ -85,46 +94,113 @@ export default { transition: transform 300ms $motion-main; overflow-y: auto; overflow-x: hidden; + .close-icon-row { + display: flex; + justify-content: flex-end; + } + + .container { + padding-left: 40px; + padding-right: 40px; + } + + .row { + margin-left: -15px; + margin-right: -15px; + } + + .col-md-12 { + padding-left: 15px; + padding-right: 15px; + } + + .product-listing { + padding-top: 30px; + } + + .product { + box-sizing: border-box; + width: 33.33%; + padding-left: 15px; + padding-right: 15px; + } &.active { transform: translateX(0) } - .product { - width: 30%; - padding: 10px; + .close-icon { + padding: 18px 8px; } - input { - width: calc(100% - 40px); + .search-input-group { + display: flex; + border-bottom: 1px solid #bdbdbd; + } + + .search-icon { + width: 60px; + height: 60px; + display: flex; + align-items: center; + justify-content: center; + } + + .search-panel-input { + border: none; + width: 100%; + padding-bottom: 0px; + padding-top: 0px; + outline: 0; + height: 60px; } .no-results { top: 80px; - width: calc(100% - 40px); + width: 100%; } -} -i { - opacity: 0.6; -} + i { + opacity: 0.6; + } -i:hover { - opacity: 1; -} + i:hover { + opacity: 1; + } -.close-button { - background: #fff; + .close-button { + background: #fff; + } } -@media only screen and (max-width:50em) { - .searchpanel .product { - width: 50%; - box-sizing: border-box; - } - button { - width: 100%; - margin-bottom: 15px; +@media only screen and (max-width:575.98px) { + .searchpanel { + + .container { + padding-left: 30px; + padding-right: 30px; + } + + .row { + margin-right: -10px; + margin-left: -10px; + } + + .col-md-12 { + padding-left: 10px; + padding-right: 10px; + } + + .product { + width: 50%; + padding-left: 10px; + padding-right: 10px; + } + + button { + width: 100%; + margin-bottom: 15px; + } } }