diff --git a/_dev/css/abstracts/variables/custom/_index.scss b/_dev/css/abstracts/variables/custom/_index.scss index 39bf8ac7..cc2ad3e7 100644 --- a/_dev/css/abstracts/variables/custom/_index.scss +++ b/_dev/css/abstracts/variables/custom/_index.scss @@ -1,2 +1 @@ @import "icomoon"; -@import "search"; diff --git a/_dev/css/abstracts/variables/custom/_search.scss b/_dev/css/abstracts/variables/custom/_search.scss deleted file mode 100644 index 6f08f259..00000000 --- a/_dev/css/abstracts/variables/custom/_search.scss +++ /dev/null @@ -1 +0,0 @@ -$search-input-height: rem-calc(46px); diff --git a/_dev/css/theme/components/_index.scss b/_dev/css/theme/components/_index.scss index 6e2875a1..0ca0094d 100644 --- a/_dev/css/theme/components/_index.scss +++ b/_dev/css/theme/components/_index.scss @@ -5,6 +5,5 @@ @import "404/index"; @import "newsletter/index"; @import "homeslider/index"; -@import "search/index"; @import "page-loader/index"; @import "links-list/index"; diff --git a/_dev/css/theme/components/search/_index.scss b/_dev/css/theme/components/search/_index.scss deleted file mode 100644 index 34c7dcf8..00000000 --- a/_dev/css/theme/components/search/_index.scss +++ /dev/null @@ -1,2 +0,0 @@ -@import "search-form"; -@import "search-result"; diff --git a/_dev/css/theme/components/search/_search-form.scss b/_dev/css/theme/components/search/_search-form.scss deleted file mode 100644 index f170752d..00000000 --- a/_dev/css/theme/components/search/_search-form.scss +++ /dev/null @@ -1,54 +0,0 @@ -@use "sass:map"; - -.search-form { - position: relative; - max-width: rem-calc(620px); - margin: 0 auto; - - &__form-group { - position: relative; - @include media-breakpoint-up(md) { - .search-result-open & { - z-index: 101; - } - } - } - - &__input { - height: $search-input-height; - padding: 0 rem-calc(70px) 0 rem-calc(30px); - line-height: $search-input-height; - color: $gray-900; - border-width: 1px; - border-radius: 99em; - - &:focus { - background: $gray-100; - box-shadow: none; - } - - } - - &__btn { - position: absolute; - top: 0; - right: 0; - bottom: 0; - padding: 0 map.get($spacers, 3); - line-height: 1; - color: $primary; - } -} - -.search-modal { - .modal-body { - padding-top: rem-calc(40px); - } - - .close { - position: absolute; - top: 0; - right: 0; - padding: rem-calc(7px) rem-calc(10px); - } -} diff --git a/_dev/css/theme/components/search/_search-result.scss b/_dev/css/theme/components/search/_search-result.scss deleted file mode 100644 index b612049e..00000000 --- a/_dev/css/theme/components/search/_search-result.scss +++ /dev/null @@ -1,53 +0,0 @@ -@use "sass:math"; -@use "sass:map"; - -.js-search-result { - @include media-breakpoint-up(md) { - position: absolute; - top: 100%; - right: 0; - left: 0; - z-index: 99; - padding: #{math.div($search-input-height, 2) + #{map.get($spacers, 2)}} map.get($spacers, 3) map.get($spacers, 3); - margin-top: -#{math.div($search-input-height, 2)}; - background: $white; - border: 1px solid $border-color; - border-radius: 0 0 $border-radius $border-radius; - } -} - -.search-result { - @include media-breakpoint-up(md) { - padding: map.get($spacers, 3); - } - - &__products { - margin: map.get($spacers, 3) -#{map.get($spacers, 2)} 0; - - .products-list__block { - padding: 0 map.get($spacers, 2); - margin: 0 0 map.get($spacers, 3); - @include make-col(6); - @include media-breakpoint-up(md) { - @include make-col(4); - } - } - } - - &__bottom { - /* stylelint-disable */ - position: sticky; - /* stylelint-enable */ - right: 0; - bottom: -#{$modal-inner-padding}; - left: 0; - z-index: 1; - padding: map.get($spacers, 2) map.get($spacers, 3); - margin: 0 -#{map.get($spacers, 2)}; - background: #fff; - @include media-breakpoint-up(md) { - padding: 0; - margin: 0; - } - } -} diff --git a/templates/_partials/mobile-modals.tpl b/templates/_partials/mobile-modals.tpl index fef2af07..303b6c33 100644 --- a/templates/_partials/mobile-modals.tpl +++ b/templates/_partials/mobile-modals.tpl @@ -1,4 +1,2 @@ -{include file="_partials/modal-search.tpl"} - {include file="_partials/modal-filters.tpl"} diff --git a/templates/_partials/modal-search.tpl b/templates/_partials/modal-search.tpl deleted file mode 100644 index dfe69dbf..00000000 --- a/templates/_partials/modal-search.tpl +++ /dev/null @@ -1,11 +0,0 @@ -{extends file='components/offcanvas.tpl'} - -{block name='offcanvas_extra_attribues'}id="search_dialog"{/block} -{block name='offcanvas_extra_class'}search-modal offcanvas-start{/block} -{block name='offcanvas_header'}{/block} -{block name='offcanvas_body'} - -