From 697fcf98122086974faced80e8fe19cffab161cd Mon Sep 17 00:00:00 2001 From: Matthew Coy Date: Fri, 24 Jul 2020 10:45:45 -0700 Subject: [PATCH 001/317] Update Faceted Search files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Componentize navigation - Remove some extraneous whitespace - Remove unneeded “../“ - Remove unneeded Replace helper - Move “Remove” link outside button --- .../foundation/accordion/_accordion.scss | 30 ++++++++++----- .../faceted-search-navigation.html | 22 +++++++++++ .../facets/hierarchy-children.html | 4 +- .../faceted-search/facets/hierarchy.html | 37 +++++-------------- .../faceted-search/facets/multi.html | 35 ++++-------------- .../faceted-search/facets/range.html | 29 +++------------ .../faceted-search/facets/rating.html | 29 +++------------ .../components/faceted-search/index.html | 10 ++--- .../faceted-search/selected-facets.html | 10 ++--- .../faceted-search/show-more-facets.html | 6 +-- 10 files changed, 84 insertions(+), 128 deletions(-) create mode 100644 templates/components/faceted-search/faceted-search-navigation.html diff --git a/assets/scss/components/foundation/accordion/_accordion.scss b/assets/scss/components/foundation/accordion/_accordion.scss index 623251b39c..eaf41b3d77 100644 --- a/assets/scss/components/foundation/accordion/_accordion.scss +++ b/assets/scss/components/foundation/accordion/_accordion.scss @@ -63,9 +63,11 @@ } .accordion-navigation { + padding-right: 70px; @include breakpoint("medium") { background-position: right 0 top 50%; border: 0; + padding-right: 50px; } } @@ -139,15 +141,25 @@ position: absolute; right: $accordion-navigation-paddingHorizontal; top: $accordion-navigation-paddingVertical; +} +.accordion-nav-clear-holder { + position: relative; +} +.facetedSearch-clearLink { + position: absolute; + right: 40px; + top: 50%; + transform: translateY(-50%); + color: stencilColor("color-textSecondary"); + @include breakpoint("medium") { + right: 20px; + top: 3px; + transform: none; + } - > a { - color: stencilColor("color-textSecondary"); - vertical-align: middle; - - // scss-lint:disable NestingDepth - &:hover { - color: stencilColor("color-textSecondary--hover"); - } - // scss-lint:enable NestingDepth + // scss-lint:disable NestingDepth + &:hover { + color: stencilColor("color-textSecondary--hover"); } + // scss-lint:enable NestingDepth } diff --git a/templates/components/faceted-search/faceted-search-navigation.html b/templates/components/faceted-search/faceted-search-navigation.html new file mode 100644 index 0000000000..f737d9c1fe --- /dev/null +++ b/templates/components/faceted-search/faceted-search-navigation.html @@ -0,0 +1,22 @@ +
+
+
+ {{title}} +
+ +
+ + + + + + +
+
+ {{#if selected}} + {{lang 'search.faceted.clear'}} + {{/if}} +
diff --git a/templates/components/faceted-search/facets/hierarchy-children.html b/templates/components/faceted-search/facets/hierarchy-children.html index 9e60c0f39d..88a1bf074a 100644 --- a/templates/components/faceted-search/facets/hierarchy-children.html +++ b/templates/components/faceted-search/facets/hierarchy-children.html @@ -3,9 +3,9 @@