Skip to content

Commit

Permalink
feat(search): horizontal category variant
Browse files Browse the repository at this point in the history
Added a horizontal category search variant, which moves the category headers to the top of each results instead of the left
  • Loading branch information
lubber-de authored Apr 17, 2023
1 parent 3222bcd commit 446d89e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/definitions/modules/search.less
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,19 @@
transition: @categoryResultTransition;
padding: @categoryResultPadding;
}

& when (@variationSearchHorizontalCategory) {
.ui.horizontal.category.search > .results .category,
.ui.horizontal.category.search > .results .category > .name,
.ui.horizontal.category.search > .results .category > .results {
display: block;
}

.ui.horizontal.category.search > .results .category > .results {
width: 100%;
border-left: 0;
}
}
}

/*******************************
Expand Down
1 change: 1 addition & 0 deletions src/themes/default/globals/variation.variables
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,7 @@
@variationSearchDisabled: true;
@variationSearchSelection: true;
@variationSearchCategory: true;
@variationSearchHorizontalCategory: true;
@variationSearchLoading: true;
@variationSearchAligned: true;
@variationSearchFluid: true;
Expand Down

0 comments on commit 446d89e

Please sign in to comment.