Skip to content

Commit

Permalink
New Ajaxsearch version
Browse files Browse the repository at this point in the history
  • Loading branch information
vovayatsyuk committed Jul 26, 2019
1 parent d0a9268 commit 066978e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 37 deletions.
37 changes: 0 additions & 37 deletions web/css/source/_absolute.less
Original file line number Diff line number Diff line change
Expand Up @@ -174,43 +174,6 @@ a:hover {
}
}
}

// Ajaxsearch integration
.block-search.block-swissup-ajaxsearch .field.search {
.swissup-ajaxsearch-filter-category-wrapper {
.select2-container--default .select2-selection--single {
border-color: #fff;
.lib-css(border-radius, @header-search__border-radius 0 0 @header-search__border-radius);
.lib-css(height, @header-search__height);
.select2-selection__arrow {
.lib-css(height, @header-search__height);
}
.select2-selection__rendered {
.lib-css(line-height, @header-search__height);
}
}
.select2-dropdown {
.lib-css(border-radius, @header-search__border-radius);
border-color: #fff;
margin-top: 1px;
.lib-css(box-shadow, @header-search__box-shadow);
.select2-search__field {
.lib-css(border-radius, @header-search__border-radius);
}
}
}
.swissup-ajaxsearch-filter-category-wrapper + .origin {
.input-text {
.lib-css(border-radius, 0 @header-search__border-radius @header-search__border-radius 0);
}
}
.block-swissup-ajaxsearch-results {
margin-top: 1px;
.lib-css(border-radius, @header-search__border-radius);
border-color: #fff;
.lib-css(box-shadow, @header-search__box-shadow);
}
}
}
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
.header .block-search {
Expand Down
14 changes: 14 additions & 0 deletions web/css/source/lib/variables/_absolute.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@
@header-search__border-radius: 5px;
@header-search__box-shadow: 0 0 10px rgba(0,0,0,0.15);

//
// Search
// _____________________________________________
@ajaxsearch-input__border: 0;
@ajaxsearch-input__border-radius: 5px;
@ajaxsearch-dropdown__border-color: #fff;
@ajaxsearch-dropdown__border: 0;
@ajaxsearch-dropdown__border-radius: 2px;
@ajaxsearch-dropdown__box-shadow: 0 3px 17px rgba(0, 0, 0, 0.15);
@ajaxsearch-folded__background: none;
@ajaxsearch-folded-icon-search__color: #fff;
@ajaxsearch-folded-input__box-shadow: none;
@ajaxsearch-fullscreen-form__initial-positioning: 'absolute';

//
// Dropdowns
// _____________________________________________
Expand Down

0 comments on commit 066978e

Please sign in to comment.