@depict-ai/react-ui 2.1.7 → 2.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ES10/index.cjs +1 -1
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +1 -1
- package/dist/main.js +527 -0
- package/dist/module.js +510 -0
- package/dist/styles/components/PLP/Buttons.scss +181 -0
- package/dist/styles/components/PLP/MorphingSign.scss +30 -0
- package/dist/styles/components/PLP/PLPResults.scss +26 -0
- package/dist/styles/components/PLP/ProductListingPage.scss +168 -0
- package/dist/styles/components/PLP/ScrollStatus.scss +31 -0
- package/dist/styles/components/PLP/SelectedFilters.scss +82 -0
- package/dist/styles/components/PLP/SlidableItems.scss +121 -0
- package/dist/styles/components/PLP/SortAndFilter/FloatingButtons.scss +84 -0
- package/dist/styles/components/PLP/SortAndFilter/SortAndFilter.scss +800 -0
- package/dist/styles/components/PLP/SortAndFilter/SortAndFilterModal.scss +158 -0
- package/dist/styles/components/PLP/SortAndFilter/WhiteSortAndFilter.scss +152 -0
- package/dist/styles/components/PLP/Toast.scss +59 -0
- package/dist/styles/components/PLP/index.scss +51 -0
- package/dist/styles/components/category/BreadCrumbs.scss +32 -0
- package/dist/styles/components/category/CategoryTitle.scss +40 -0
- package/dist/styles/components/category/QuickLinks.scss +80 -0
- package/dist/styles/components/category/index.scss +23 -0
- package/dist/styles/components/search/Autocomplete.scss +197 -0
- package/dist/styles/components/search/CategorySuggestions.scss +82 -0
- package/dist/styles/components/search/InstantCard.scss +122 -0
- package/dist/styles/components/search/InstantResults.scss +12 -0
- package/dist/styles/components/search/PreviousSearches.scss +90 -0
- package/dist/styles/components/search/QueryInput.scss +189 -0
- package/dist/styles/components/search/SearchModal.scss +101 -0
- package/dist/styles/components/search/SearchRecommendations.scss +28 -0
- package/dist/styles/components/search/ShowingResultsFor.scss +13 -0
- package/dist/styles/components/search/index.scss +40 -0
- package/dist/styles/default.css +1 -0
- package/dist/styles/helpers/custom_input.scss +194 -0
- package/dist/styles/helpers/supports-hover.scss +7 -0
- package/dist/styles/helpers/utils.scss +90 -0
- package/dist/styles/plain-css-fallback-styling.css +1 -1
- package/dist/styles/variables.scss +61 -0
- package/latest/index.cjs +1 -1
- package/latest/index.d.ts +1 -1
- package/latest/index.js +1 -1
- package/package.json +4 -4
- package/server/ES10/index.cjs +1 -1
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +1 -1
- package/server/latest/index.cjs +1 -1
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +1 -1
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
@use "../../helpers/utils";
|
|
2
|
+
@use "../../variables";
|
|
3
|
+
@use "../../helpers/supports-hover";
|
|
4
|
+
|
|
5
|
+
/// SearchModal is the component that shows the search modal when the user clicks on the search icon/into the search field in the header.
|
|
6
|
+
/// @param {Color} $background [variables.$brand-lighter-grey] - The background color of the search modal
|
|
7
|
+
/// @param {Number with size unit} $border-radius [variables.$border-radius * 2.5] - The border radius of the edges of the search modal.
|
|
8
|
+
/// @param {String} $discover-more-text-transform [uppercase] - The text transform applied to the "Discover more" button in the modal.
|
|
9
|
+
/// @param {Boolean} $top-snapping [true] - If the modal should snap to the top of the page when the viewport has a very reduced height and it would utilise the space better if it snapped to the top of the page.
|
|
10
|
+
/// @param {Number with size unit} $max-width [800px] - The max width of the modal
|
|
11
|
+
|
|
12
|
+
@mixin SearchModal(
|
|
13
|
+
$background: variables.$brand-lighter-grey,
|
|
14
|
+
$border-radius: calc(#{variables.$border-radius} * 2.5),
|
|
15
|
+
$discover-more-text-transform: uppercase,
|
|
16
|
+
$top-snapping: true,
|
|
17
|
+
$max-width: 800px
|
|
18
|
+
) {
|
|
19
|
+
.depict-search-modal-backdrop {
|
|
20
|
+
@include utils.modal-backdrop($z-index: variables.$base-z-index);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.depict-search-modal {
|
|
24
|
+
// Center horizontally by default, align_field can override
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
|
|
28
|
+
button {
|
|
29
|
+
// disable ugly default borders
|
|
30
|
+
border: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.query-input {
|
|
34
|
+
z-index: calc(#{variables.$base-z-index} + 5); // make shadow go above contents
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.body {
|
|
38
|
+
// this also has position:absolute and width: 80vw set as default styling from the javascript, inside of SearchModal.tsx
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
background: $background;
|
|
42
|
+
max-width: $max-width;
|
|
43
|
+
z-index: calc(#{variables.$base-z-index} + 1);
|
|
44
|
+
border-radius: $border-radius;
|
|
45
|
+
@media (hover: hover) and (pointer: fine) {
|
|
46
|
+
@media (max-height: 790px) {
|
|
47
|
+
@if $top-snapping {
|
|
48
|
+
max-height: 100%;
|
|
49
|
+
top: 0;
|
|
50
|
+
position: fixed;
|
|
51
|
+
}
|
|
52
|
+
@media (max-width: 600px) {
|
|
53
|
+
left: 30px;
|
|
54
|
+
width: calc(100% - 30px);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
@media not all and (hover: hover) and (pointer: fine) {
|
|
59
|
+
@if $top-snapping {
|
|
60
|
+
@media (max-height: 1000px) {
|
|
61
|
+
max-height: 100%;
|
|
62
|
+
top: 0;
|
|
63
|
+
position: fixed;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
@media (max-height: 1000px) and (max-width: 600px) {
|
|
67
|
+
left: 30px;
|
|
68
|
+
width: calc(100% - 30px);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.padded > *,
|
|
73
|
+
.query-input {
|
|
74
|
+
// workaround https://github.com/philipwalton/flexbugs#flexbug-1 in MobileSafari 12-14.2 (range is only what I tested)
|
|
75
|
+
flex-shrink: 0;
|
|
76
|
+
}
|
|
77
|
+
.padded {
|
|
78
|
+
padding-top: 20px;
|
|
79
|
+
padding-left: max(1vw, 10px);
|
|
80
|
+
padding-right: max(1vw, 10px);
|
|
81
|
+
@include utils.flex-gap(20px, "column nowrap");
|
|
82
|
+
display: flex;
|
|
83
|
+
flex-direction: column;
|
|
84
|
+
overflow: auto;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.discover-more {
|
|
88
|
+
display: flex;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
|
|
91
|
+
button {
|
|
92
|
+
padding: 12px 18px;
|
|
93
|
+
margin: 20px 0;
|
|
94
|
+
@if $discover-more-text-transform {
|
|
95
|
+
text-transform: $discover-more-text-transform;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@use "../../variables";
|
|
2
|
+
@use "../../helpers/utils";
|
|
3
|
+
@use "../../helpers/supports-hover";
|
|
4
|
+
|
|
5
|
+
/// SearchRecommendations is the component that shows the search recommendations below the SearchResults once the user has reached the end of the results.
|
|
6
|
+
/// @param {Border} $border-top [2px solid variables.$brand-light-grey] - The border separating the results and recommendations
|
|
7
|
+
|
|
8
|
+
@mixin SearchRecommendations($border-top: 2px solid variables.$brand-light-grey) {
|
|
9
|
+
.listing-page {
|
|
10
|
+
.search-recs {
|
|
11
|
+
border-top: $border-top;
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
.search-recs-title {
|
|
15
|
+
line-height: 1;
|
|
16
|
+
font-weight: 600;
|
|
17
|
+
font-size: 24px;
|
|
18
|
+
margin-top: 0;
|
|
19
|
+
margin-bottom: 20px;
|
|
20
|
+
}
|
|
21
|
+
.load-more-container {
|
|
22
|
+
display: flex;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
margin-top: 30px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// This is the styling for the text that says "Showing __30__ result(s) for __falk__"
|
|
2
|
+
/// @param {Number with unit} $results-for-font-size [1.5em] - The font size of the text
|
|
3
|
+
/// @param {Boolean} $mobile-centered [false] - Whether the text should be centered on mobile sizes
|
|
4
|
+
@mixin ShowingResultsFor($results-for-font-size: 1.5em, $mobile-centered: false) {
|
|
5
|
+
.results-for {
|
|
6
|
+
font-size: $results-for-font-size;
|
|
7
|
+
overflow-wrap: anywhere;
|
|
8
|
+
@if $mobile-centered {
|
|
9
|
+
// To center in the one row view, add flex-grow: 1;
|
|
10
|
+
text-align: center;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@use "sass:meta";
|
|
2
|
+
|
|
3
|
+
// Component style mixins
|
|
4
|
+
@use "Autocomplete";
|
|
5
|
+
@use "CategorySuggestions";
|
|
6
|
+
@use "InstantResults";
|
|
7
|
+
@use "InstantCard";
|
|
8
|
+
@use "QueryInput";
|
|
9
|
+
@use "ShowingResultsFor";
|
|
10
|
+
@use "SearchRecommendations";
|
|
11
|
+
@use "SearchModal";
|
|
12
|
+
@use "../PLP/ProductListingPage";
|
|
13
|
+
|
|
14
|
+
@forward "Autocomplete";
|
|
15
|
+
@forward "CategorySuggestions";
|
|
16
|
+
@forward "InstantResults";
|
|
17
|
+
@forward "InstantCard";
|
|
18
|
+
@forward "QueryInput";
|
|
19
|
+
@forward "SearchRecommendations";
|
|
20
|
+
@forward "ShowingResultsFor";
|
|
21
|
+
@forward "SearchModal";
|
|
22
|
+
@forward "../PLP/ProductListingPage";
|
|
23
|
+
|
|
24
|
+
/// Load all search mixins with default values. If only minor theming is needed styles in variables.scss can be
|
|
25
|
+
/// reassigned: https://sass-lang.com/documentation/at-rules/use#reassigning-variables.
|
|
26
|
+
/// The variables are forwarded from PLP/index.scss.
|
|
27
|
+
/// If more control is needed use these mixins separately and pass custom params.
|
|
28
|
+
@mixin all-search-components() {
|
|
29
|
+
.depict.search {
|
|
30
|
+
@include Autocomplete.Autocomplete();
|
|
31
|
+
@include CategorySuggestions.CategorySuggestions();
|
|
32
|
+
@include InstantResults.InstantResults();
|
|
33
|
+
@include InstantCard.InstantCard();
|
|
34
|
+
@include QueryInput.QueryInput();
|
|
35
|
+
@include SearchModal.SearchModal();
|
|
36
|
+
@include ProductListingPage.SearchPage();
|
|
37
|
+
@include SearchRecommendations.SearchRecommendations();
|
|
38
|
+
@include ShowingResultsFor.ShowingResultsFor();
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.depict.plp .listing-page{flex-direction:column;display:flex}.depict.plp .listing-page .no-results{background:#fff;flex-direction:column;flex-grow:2;justify-content:flex-start;align-items:center;padding:40px;display:flex}.depict.plp .listing-page .no-results .hint{cursor:pointer;text-decoration:underline}.depict.plp .listing-page{padding:20px 10px}@media (max-width:651px){.depict.plp .listing-page{padding:16px 8px}}.depict.plp .listing-page,.depict.plp .listing-page *{box-sizing:border-box}.depict.plp .listing-page>.filter-results-for-one-row,.depict.plp .listing-page>.results-for{margin-bottom:10px}@media (max-width:651px){.depict.plp .listing-page>.filter-results-for-one-row,.depict.plp .listing-page>.results-for{margin-bottom:8px}}.depict.plp .listing-page>.sort-and-filter-buttons{margin-top:10px;margin-bottom:10px}@media (max-width:651px){.depict.plp .listing-page>.sort-and-filter-buttons{margin-top:8px;margin-bottom:8px}}.depict.plp .listing-page .PLP-results{margin-top:10px;display:flex}@media (max-width:651px){.depict.plp .listing-page .PLP-results{margin-top:8px}}.depict.plp .listing-page .PLP-results>.filters,.depict.plp .listing-page .PLP-results>.sorting{margin-left:12px}.depict.plp .listing-page .cards{flex-flow:wrap;flex-grow:1;align-content:flex-start;display:flex;overflow:hidden}.depict.plp .listing-page .selected-filters .inner{align-items:center;margin-top:10px;margin-bottom:10px;display:flex}.depict.plp .listing-page .selected-filters .inner .title{margin-right:10px}@media (min-width:652px){.depict.plp .listing-page .selected-filters .inner{margin-top:0;margin-bottom:0}}.depict.plp .listing-page .selected-filters .inner .title{text-transform:uppercase;color:#0f0f0f;font-size:1.1em}@media (max-width:600px){.depict.plp .listing-page .selected-filters .inner .title{display:none}}.depict.plp .listing-page .selected-filters .inner .depict-slider{width:unset;overflow:hidden}.depict.plp .listing-page .selected-filters .inner .depict-slider .clear-filter{border:1px solid #0f0f0f}.depict.plp .listing-page .selected-filters .inner .depict-slider .clear-filter svg{width:12.64px;height:12.64px}.depict.plp .listing-page .selected-filters .inner .depict-slider .clear-all-filters{border:1px solid #0f0f0f}.depict.plp .listing-page .selected-filters .inner .depict-slider .clear-filter,.depict.plp .listing-page .selected-filters .inner .depict-slider .clear-all-filters{box-sizing:border-box;white-space:nowrap;cursor:pointer;border-radius:0;flex:none;align-items:center;padding:5px 10px;font-size:1em;line-height:1;display:flex}.depict.plp .listing-page .selected-filters .inner .depict-slider .clear-filter>:not(:first-child),.depict.plp .listing-page .selected-filters .inner .depict-slider .clear-all-filters>:not(:first-child){margin-left:2.5px}.depict.plp .listing-page .selected-filters .inner .depict-slider .clear-filter>:not(:last-child),.depict.plp .listing-page .selected-filters .inner .depict-slider .clear-all-filters>:not(:last-child){margin-right:2.5px}.depict.plp .scroll-status{pointer-events:none;white-space:nowrap;z-index:calc(5000 + 4);opacity:0;justify-content:center;align-items:center;display:flex;position:sticky;bottom:10vh}.depict.plp .scroll-status .text{color:#fff;background:#646464e6;border-radius:0;padding:10px 20px}.depict.plp .major-minor-transition{transition:filter .15s ease-in-out,background .25s ease-in-out,color .25s ease-in-out,border .25s ease-in-out}.depict.plp .filter-results-for-one-row{justify-content:space-between;align-items:center;display:flex}.depict.plp :not(.filter-results-for-one-row)>.sort-and-filter-buttons .inner{justify-content:space-between}.depict.plp .sorting-attributes,.depict.plp .sorting-direction{background:#fff;flex-direction:column;padding:10px;display:flex}.depict.plp .sorting-attributes>:not(:first-child),.depict.plp .sorting-direction>:not(:first-child){margin-top:5px}.depict.plp .sorting-attributes>:not(:last-child),.depict.plp .sorting-direction>:not(:last-child){margin-bottom:5px}.depict.plp .sort-and-filter-buttons .outer{margin-top:-5px}.depict.plp .sort-and-filter-buttons .inner{justify-content:flex-end;align-items:center;padding-top:5px;display:flex;overflow:hidden}.depict.plp .sort-and-filter-buttons .inner>:not(:first-child){margin-left:5px}.depict.plp .sort-and-filter-buttons .inner>:not(:last-child){margin-right:5px}.depict.plp .sort-and-filter-buttons.fake .toggle-button{transition:none}.depict.plp .sort-and-filter-buttons .toggle-button{white-space:nowrap;padding:10px 20px;position:relative}.depict.plp .sort-and-filter-buttons .toggle-button>:not(:first-child){margin-left:2.5px}.depict.plp .sort-and-filter-buttons .toggle-button>:not(:last-child){margin-right:2.5px}.depict.plp .sort-and-filter-buttons .toggle-button svg path{transition-duration:.25s}.depict.plp .sort-and-filter-buttons .toggle-button.major.for-sorting>:not(:first-child){margin-left:5px}.depict.plp .sort-and-filter-buttons .toggle-button.major.for-sorting>:not(:last-child){margin-right:5px}.depict.plp .sort-and-filter-buttons .num-filters{color:#fff;width:20px;height:20px;z-index:calc(1 + 1);background:#000;border-radius:13px;justify-content:center;align-items:center;font-size:12px;line-height:1;transition:opacity .25s ease-in-out;display:flex;position:absolute;top:-4px;right:-4px}.depict.plp .sort-and-filter-buttons .open-filters-button-container{position:relative}.depict.plp label{margin:0}.depict.plp .PLP-results .sorting,.depict.plp .PLP-results .filters{flex-shrink:0;flex-basis:330px}.depict.plp .filters .body,.depict.plp .sorting .body{flex-direction:column;display:flex}.depict.plp .filters .body .input-row,.depict.plp .sorting .body .input-row{cursor:pointer;position:relative}.depict.plp .filters .body .input-row .custom-indicator,.depict.plp .sorting .body .input-row .custom-indicator{margin-right:10px;position:relative}.depict.plp .filters .body .input-row input,.depict.plp .sorting .body .input-row input{opacity:0;cursor:pointer;height:0;width:0;position:absolute}.depict.plp .filters .body .input-row .custom-indicator:after,.depict.plp .sorting .body .input-row .custom-indicator:after{content:"";display:none;position:absolute}.depict.plp .filters .body .input-row input[type=checkbox]~.custom-indicator,.depict.plp .sorting .body .input-row input[type=checkbox]~.custom-indicator{background-color:#fff;border-radius:0;padding:calc(max(21px,1em)/2 - 1px)}.depict.plp .filters .body .input-row input[type=checkbox]~.custom-indicator:not(.color),.depict.plp .sorting .body .input-row input[type=checkbox]~.custom-indicator:not(.color){border:1px solid #333335}.depict.plp .filters .body .input-row input[type=checkbox]~.custom-indicator.color,.depict.plp .sorting .body .input-row input[type=checkbox]~.custom-indicator.color{padding:calc(max(21px,1em)/2)}.depict.plp .filters .body .input-row input[type=checkbox]~.custom-indicator.color.outline,.depict.plp .sorting .body .input-row input[type=checkbox]~.custom-indicator.color.outline{border:.5px solid #868689;padding:calc(max(21px,1em)/2 - .5px)}.depict.plp .filters .body .input-row input[type=checkbox]:checked~.custom-indicator,.depict.plp .sorting .body .input-row input[type=checkbox]:checked~.custom-indicator{background-color:#0f0f0f}.depict.plp .filters .body .input-row input[type=checkbox]:checked~.custom-indicator:after,.depict.plp .sorting .body .input-row input[type=checkbox]:checked~.custom-indicator:after{fill:#fff;color:#fff;width:12px;height:10px;background-image:url("data:image/svg+xml;utf8,<svg fill=\"%23FFFFFF\" width=\"12\" height=\"10\" viewBox=\"0 0 12 10\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 2.0001L10.6 0.600098L4 7.2001L1.4 4.6001L0 6.0001L4 10.0001L12 2.0001Z\" /></svg>");display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.depict.plp .filters .body .input-row input[type=checkbox]:checked~.custom-indicator.color:after,.depict.plp .sorting .body .input-row input[type=checkbox]:checked~.custom-indicator.color:after{background-image:url("data:image/svg+xml;utf8,<svg fill=\"%23FFFFFF\" width=\"12\" height=\"10\" viewBox=\"0 0 12 10\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 2.0001L10.6 0.600098L4 7.2001L1.4 4.6001L0 6.0001L4 10.0001L12 2.0001Z\" /></svg>")}.depict.plp .filters .body .input-row input[type=checkbox]:checked~.custom-indicator.color.check-dark:after,.depict.plp .sorting .body .input-row input[type=checkbox]:checked~.custom-indicator.color.check-dark:after{background-image:url("data:image/svg+xml;utf8,<svg fill=\"%23000000\" width=\"12\" height=\"10\" viewBox=\"0 0 12 10\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 2.0001L10.6 0.600098L4 7.2001L1.4 4.6001L0 6.0001L4 10.0001L12 2.0001Z\" /></svg>")}.depict.plp .filters .body .input-row input[type=checkbox]:checked~.custom-indicator.color.check-multi:after,.depict.plp .sorting .body .input-row input[type=checkbox]:checked~.custom-indicator.color.check-multi:after{background-image:url("data:image/svg+xml;utf8,<svg fill=\"%23FFFFFF\" width=\"12\" height=\"10\" viewBox=\"0 0 12 10\" xmlns=\"http://www.w3.org/2000/svg\"><path style=\"stroke:black;stroke-width:1px\" d=\"M12 2.0001L10.6 0.600098L4 7.2001L1.4 4.6001L0 6.0001L4 10.0001L12 2.0001Z\" /></svg>")}.depict.plp .filters .body .input-row input[type=checkbox]:focus-visible~.custom-indicator,.depict.plp .sorting .body .input-row input[type=checkbox]:focus-visible~.custom-indicator{background-color:#eeeef0}.depict.plp .filters .body .input-row input[type=checkbox]:focus-visible~.custom-indicator.color,.depict.plp .sorting .body .input-row input[type=checkbox]:focus-visible~.custom-indicator.color{filter:drop-shadow(-2px -2px 4px #418fc3cc)drop-shadow(2px 2px 4px #418fc3cc)}.depict.plp .filters .body .input-row input[type=checkbox]:checked:focus-visible~.custom-indicator,.depict.plp .sorting .body .input-row input[type=checkbox]:checked:focus-visible~.custom-indicator{background-color:#333335}@media not all and (hover:none){.depict.plp .filters .body .input-row:hover input[type=checkbox]~.custom-indicator,.depict.plp .sorting .body .input-row:hover input[type=checkbox]~.custom-indicator{background-color:#eeeef0}.depict.plp .filters .body .input-row:hover input[type=checkbox]~.custom-indicator:not(.color),.depict.plp .sorting .body .input-row:hover input[type=checkbox]~.custom-indicator:not(.color){border:2px solid #0f0f0f;padding:calc(max(21px,1em)/2 - 2px)}.depict.plp .filters .body .input-row:hover input[type=checkbox]:checked~.custom-indicator,.depict.plp .sorting .body .input-row:hover input[type=checkbox]:checked~.custom-indicator{background-color:#333335}}.depict.plp .filters .body .input-row input[type=radio]~.custom-indicator,.depict.plp .sorting .body .input-row input[type=radio]~.custom-indicator{background-color:#fff;border:1px solid #333335;border-radius:50%;padding:calc(max(21px,1em)/2 - 1px)}.depict.plp .filters .body .input-row input[type=radio]:checked~.custom-indicator,.depict.plp .sorting .body .input-row input[type=radio]:checked~.custom-indicator{background-color:#0000}.depict.plp .filters .body .input-row input[type=radio]:checked~.custom-indicator:after,.depict.plp .sorting .body .input-row input[type=radio]:checked~.custom-indicator:after{width:14px;height:14px;background-color:#0f0f0f;border-radius:50%;display:block;top:50%;left:50%;transform:translate(-50%,-50%)}.depict.plp .filters .body .input-row input[type=radio]:focus-visible~.custom-indicator,.depict.plp .sorting .body .input-row input[type=radio]:focus-visible~.custom-indicator{background:#e6e6e6}.depict.plp .filters .body .input-row input[type=radio]:checked:focus-visible~.custom-indicator:after,.depict.plp .sorting .body .input-row input[type=radio]:checked:focus-visible~.custom-indicator:after{background:#4f4f4f}@media not all and (hover:none){.depict.plp .filters .body .input-row:hover input[type=radio]~.custom-indicator,.depict.plp .sorting .body .input-row:hover input[type=radio]~.custom-indicator{border:2px solid #0f0f0f;padding:calc(max(21px,1em)/2 - 2px)}}.depict.plp .filters .body>:not(:first-child){padding-top:0}.depict.plp .filters .body>:not(:last-child){padding-bottom:0}.depict.plp .filters .body .input-row{justify-content:space-between;padding-top:5px;padding-bottom:5px}.depict.plp .filters .body .input-row,.depict.plp .filters .body .input-row>.left{align-items:center;display:flex}.depict.plp .filters .body .input-row .text{text-overflow:ellipsis;white-space:pre-line;overflow-wrap:anywhere;color:#333335;-webkit-line-clamp:1;word-break:break-word;-webkit-box-orient:vertical;font-weight:400;line-height:max(21px,1em);display:-webkit-box;overflow:hidden}.depict.plp .filters .body .input-row :checked~.text,.depict.plp .filters .body .input-row .fake-checked~.text{color:#000;font-weight:500}.depict.plp .filters .body .input-row.count-0 *+.text{color:#c2c2c2}.depict.plp .filters .body .input-row .count,.depict.plp .filters .body .hierarchical .checkbox-details.expandable .category-parent .count{color:#868689;font-weight:400}.depict.plp .filters .body .input-row:hover .count{color:#000}.depict.plp .filters .body .selected-w-sign{align-items:center;display:flex}.depict.plp .filters .body .selected-w-sign>:not(:first-child){margin-left:5px}.depict.plp .filters .body .selected-w-sign>:not(:last-child){margin-right:5px}.depict.plp .filters .body .selected-w-sign .show-selected{color:#868689;fill:#868689;align-items:center;display:flex}.depict.plp .filters .body .selected-w-sign .show-selected>:not(:first-child){margin-left:2.5px}.depict.plp .filters .body .selected-w-sign .show-selected>:not(:last-child){margin-right:2.5px}.depict.plp .filters .body .selected-w-sign .show-selected span{line-height:1}.depict.plp .filters .body .ungrouped{margin-top:25px}.depict.plp .filters .body .clear-all-filters{text-transform:uppercase;margin-top:5px;padding:.7em;font-size:1.1em;font-weight:400}.depict.plp .filters .body details summary{cursor:pointer;list-style:none}.depict.plp .filters .body details summary::-webkit-details-marker{display:none}.depict.plp .filters .body details summary>.summary{justify-content:space-between;align-items:center;display:flex}.depict.plp .filters .body details.filter-collapsible .filter-group-summary{background:0 0;border-radius:0}.depict.plp .filters .body details.filter-collapsible .filter-group-summary:focus{outline:none}.depict.plp .filters .body details.filter-collapsible .filter-group-summary:focus-visible{background:#fafafc}@media not all and (hover:none){.depict.plp .filters .body details.filter-collapsible .filter-group-summary:hover{background:#fafafc}}.depict.plp .filters .body details.filter-collapsible .filter-group-summary>.summary{color:#333335;padding:15px 10px}.depict.plp .filters .body details.filter-collapsible .filter-group-summary>.summary>span{font-weight:500}.depict.plp .filters .body details.filter-collapsible .filter-group-summary>.summary>svg{transform:rotate(270deg)}.depict.plp .filters .body details.filter-collapsible[open] .filter-group-summary{border-radius:0}.depict.plp .filters .body .filter-collapsible-body{background:#fff;border-radius:0 0 4px 4px;flex-direction:column;display:flex;overflow:hidden}.depict.plp .filters .body .filter-collapsible-body>:not(:first-child){margin-top:.5px}.depict.plp .filters .body .filter-collapsible-body>:not(:last-child){margin-bottom:.5px}.depict.plp .filters .body .filter-collapsible-body .view-more-clear{background:#fff;justify-content:space-between;display:flex}.depict.plp .filters .body .filter-collapsible-body .view-more-clear .clear-group{margin-left:auto}.depict.plp .filters .body .filter-collapsible-body .view-more-clear .clear-group>:not(:first-child){margin-left:1.839px}.depict.plp .filters .body .filter-collapsible-body .view-more-clear .clear-group>:not(:last-child){margin-right:1.839px}.depict.plp .filters .body .filter-collapsible-body .view-more-clear .clear-group svg{width:11px;height:12px}.depict.plp .filters .body .filter-collapsible-body .view-more-clear .expand-filter{margin-right:auto}.depict.plp .filters .body .filter-collapsible-body .view-more-clear .expand-filter>:not(:first-child){margin-left:5px}.depict.plp .filters .body .filter-collapsible-body .view-more-clear .expand-filter>:not(:last-child){margin-right:5px}.depict.plp .filters .body .filter-collapsible-body .view-more-clear .expand-filter.expanded svg{clip-path:polygon(20% 48%,80% 48%,80% 50.8%,20% 50.8%);transform:scale(1.6)}.depict.plp .filters .body .filter-collapsible-body .view-more-clear button{color:#000;cursor:pointer;text-transform:uppercase;background:0 0;border:none;justify-content:center;align-items:center;margin-bottom:0;margin-left:0;margin-right:0;padding:10px;display:flex}.depict.plp .filters .body .filter-collapsible-body .view-more-clear button svg path{fill:#000}.depict.plp .filters .body .filter-collapsible-body .view-more-clear button:focus-visible{filter:drop-shadow(-2px -2px 4px #418fc3cc)drop-shadow(2px 2px 4px #418fc3cc);outline:none}.depict.plp .filters .body .filter-collapsible-body .filter-part{background:#fff;flex-direction:column;padding:15px 10px 20px;display:flex}.depict.plp .filters .body .filter-collapsible-body .filter-part>:not(:first-child){margin-top:5px}.depict.plp .filters .body .filter-collapsible-body .filter-part>:not(:last-child){margin-bottom:5px}.depict.plp .filters .body :not(.ungrouped)>form{margin-top:-5px;margin-bottom:-5px}.depict.plp .filters .body .hierarchical{margin-left:-20px}.depict.plp .filters .body .hierarchical.any-expandable .count{margin-right:30px}.depict.plp .filters .body .hierarchical .checkbox-details{padding-left:20px}.depict.plp .filters .body .hierarchical .checkbox-details.expandable{position:relative}.depict.plp .filters .body .hierarchical .checkbox-details.expandable summary:before,.depict.plp .filters .body .hierarchical .checkbox-details.expandable summary:after{pointer-events:none;content:"";height:1px;width:calc(100% - 20px);background:#fafafc;position:absolute;right:0}.depict.plp .filters .body .hierarchical .checkbox-details.expandable summary:before{top:-.5px}.depict.plp .filters .body .hierarchical .checkbox-details.expandable summary:after{bottom:-.5px}@media not all and (hover:none){.depict.plp .filters .body .hierarchical .checkbox-details.expandable summary:hover:after,.depict.plp .filters .body .hierarchical .checkbox-details.expandable summary:hover:before,.input-row:hover~details>.depict.plp .filters .body .hierarchical .checkbox-details.expandable summary:after,.input-row:hover~details>.depict.plp .filters .body .hierarchical .checkbox-details.expandable summary:before{z-index:1;background:#eeeef0}}.depict.plp .filters .body .hierarchical .checkbox-details.expandable summary:focus-visible:after,.depict.plp .filters .body .hierarchical .checkbox-details.expandable summary:focus-visible:before,.input-row~details:focus-visible>.depict.plp .filters .body .hierarchical .checkbox-details.expandable summary:after,.input-row~details:focus-visible>.depict.plp .filters .body .hierarchical .checkbox-details.expandable summary:before{z-index:1;background:#eeeef0}.depict.plp .filters .body .hierarchical .checkbox-details.expandable>.input-row{padding-right:30px;position:absolute}.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details:not([open]),.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details[open]>.category-parent>.summary{padding-top:5px;padding-bottom:5px}.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent:focus,.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent:focus-visible{box-shadow:none;outline:none}@supports selector(:focus-visible){@media not all and (hover:none){.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent:not(:focus-visible):not(:hover) .morphing-sign span{background:#333}.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent:not(:focus-visible):not(:hover) .morphing-sign span:first-child{width:5%;left:47.5%}.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent:not(:focus-visible):not(:hover) .morphing-sign span:last-child{height:5%;top:47.5%}}@media (hover:none){.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent:not(:focus-visible) .morphing-sign span{background:#333}.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent:not(:focus-visible) .morphing-sign span:first-child{width:5%;left:47.5%}.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent:not(:focus-visible) .morphing-sign span:last-child{height:5%;top:47.5%}}@media not all and (hover:none){.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent:hover .morphing-sign{transform:scale(1.5)}.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent:hover .count{color:#000}}.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent:focus-visible .count{color:#000}.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent:focus-visible .morphing-sign{transform:scale(1.5)}}@supports not selector(:focus-visible){@media not all and (hover:none){.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent:not(:hover) .morphing-sign span{background:#333}.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent:not(:hover) .morphing-sign span:first-child{width:5%;left:47.5%}.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent:not(:hover) .morphing-sign span:last-child{height:5%;top:47.5%}.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent:hover .morphing-sign{transform:scale(1.5)}.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent:hover .count{color:#000}}@media (hover:none){.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent .morphing-sign span{background:#333}.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent .morphing-sign span:first-child{width:5%;left:47.5%}.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent .morphing-sign span:last-child{height:5%;top:47.5%}}}.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent>.summary{justify-content:flex-end}.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent>.summary .count{margin-right:calc(30px + -1*max(21px,1em))}.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent>.summary .morphing-sign{width:max(21px,1em);height:max(21px,1em);transition-duration:.15s;transition-timing-function:ease-in-out}.depict.plp .filters .body .hierarchical .checkbox-details.expandable>details .category-parent>.summary .morphing-sign span{background:#000;transition-duration:.15s;transition-timing-function:ease-in-out}.depict.plp .filters .body .range .input-group{width:100%;padding-top:10px;padding-bottom:25px;display:flex}.depict.plp .filters .body .range .input-group .field{width:100%;align-items:center;display:flex}.depict.plp .filters .body .range .input-group .field input{width:100%;text-align:center;-moz-appearance:textfield;background:#fafafc;border:.5px solid #000;border-radius:0;outline:none;padding-top:8px;padding-bottom:8px;transition-duration:50ms}.depict.plp .filters .body .range .input-group .field input:focus-visible{background:#eeeef0}@media not all and (hover:none){.depict.plp .filters .body .range .input-group .field input:hover{background:#eeeef0}}.depict.plp .filters .body .range .input-group .field input::-webkit-outer-spin-button,.depict.plp .filters .body .range .input-group .field input::-webkit-inner-spin-button{-webkit-appearance:none}.depict.plp .filters .body .range .input-group .separator{color:#333335;flex-shrink:0;flex-basis:25px;justify-content:center;align-items:center;font-size:19px;display:flex}.depict.plp .filters .body .range .slider{height:5px;background:#ddd;border-radius:5px;position:relative}.depict.plp .filters .body .range .slider .progress{height:100%;background:#0f0f0f;border-radius:5px;position:absolute;left:25%;right:25%}.depict.plp .filters .body .range .range-group{position:relative}.depict.plp .filters .body .range .range-group input{width:100%;height:0;pointer-events:none;-webkit-appearance:none;-moz-appearance:none;background:0 0;margin:0;position:absolute;top:-2.5px}.depict.plp .filters .body .range .range-group input:focus{outline:none}.depict.plp .filters .body .range .range-group input::-webkit-slider-thumb{cursor:pointer;height:20px;width:20px;pointer-events:auto;-webkit-appearance:none;background:#0f0f0f;border-radius:50%;box-shadow:0 0 6px #0000000d}@media not all and (hover:none){.depict.plp .filters .body .range .range-group input::-webkit-slider-thumb:hover{background:#333335}}.depict.plp .filters .body .range .range-group input::-moz-range-thumb{cursor:pointer;height:20px;width:20px;pointer-events:auto;-moz-appearance:none;background:#0f0f0f;border:none;border-radius:50%;box-shadow:0 0 6px #0000000d}@media not all and (hover:none){.depict.plp .filters .body .range .range-group input::-moz-range-thumb:hover{background:#333335}}.depict.plp .filters .body .range .range-group input:focus-visible::-webkit-slider-thumb{background:#868689}.depict.plp .filters .body .range .range-group input:focus-visible::-moz-range-thumb{background:#868689}.depict.plp .filters .body .range .value-text{color:#333335;justify-content:space-between;padding-top:10px;display:flex}.depict.plp .filters .body .checkbox-grid{flex-wrap:wrap;margin:-5px;display:flex}.depict.plp .filters .body .checkbox-grid>*{margin:5px}.depict.plp .filters .body .checkbox-grid .major,.depict.plp .filters .body .checkbox-grid .minor{padding:5px 10px}.depict.plp .filters .body .checkbox-grid .major.minor,.depict.plp .filters .body .checkbox-grid .minor.minor{border:1px solid #d5d5d5}.depict.plp .filters .body .checkbox-color{flex-wrap:wrap;justify-content:space-between;display:flex}.depict.plp .filters .body .checkbox-color .input-row{width:calc(50% - 10px)}.depict.plp .sorting .body{background:#eeeef0;line-height:1}.depict.plp .sorting .body>:not(:first-child){margin-top:.5px}.depict.plp .sorting .body>:not(:last-child){margin-bottom:.5px}.depict.plp .sorting .body .input-row{justify-content:flex-start;align-items:center;display:flex}.depict.plp .morphing-sign{width:1.5em;height:1.5em;border:0;position:relative}.depict.plp .morphing-sign span{background:#333335;border-radius:2px;position:absolute}.depict.plp .morphing-sign span:first-child{width:10%;top:25%;bottom:25%;left:45%}.depict.plp .morphing-sign span:last-child{height:10%;top:45%;left:25%;right:25%}.depict.plp .depict-filter-sort-modal-backdrop{z-index:5000;touch-action:none;will-change:opacity;opacity:0;background:#000000b3;position:fixed;inset:0}.depict.plp .dismiss-modal{z-index:5003;cursor:pointer;background:0 0;border:none;padding:0;line-height:0;position:fixed;top:14px;left:4px;transform:translateY(calc(-100% - 14px))}.depict.plp .dismiss-modal svg{transform:scale(.6646)}.depict.plp .dismiss-modal svg path{fill:#fff}.depict.plp .filter-sort-modal{z-index:calc(5000 + 2);width:calc(100% - 30px);height:100%;will-change:transform;background:#fff;flex-direction:column;justify-content:space-between;display:flex;position:fixed;top:0;left:30px;transform:translateY(100%)}.depict.plp .filter-sort-modal details.sorting>summary,.depict.plp .filter-sort-modal details.filters>summary{list-style:none}.depict.plp .filter-sort-modal details.sorting>summary::-webkit-details-marker,.depict.plp .filter-sort-modal details.filters>summary::-webkit-details-marker{display:none}.depict.plp .filter-sort-modal details.sorting .sort-filter-summary>.summary,.depict.plp .filter-sort-modal details.filters .sort-filter-summary>.summary{cursor:pointer;color:#0f0f0f;background:#fff;justify-content:space-between;padding:13px 20px;font-weight:700;display:flex;box-shadow:0 4px 4px #0000000d}.depict.plp .filter-sort-modal details.sorting .sort-filter-summary>.summary .left-els,.depict.plp .filter-sort-modal details.filters .sort-filter-summary>.summary .left-els{align-items:center;display:flex}.depict.plp .filter-sort-modal details.sorting .sort-filter-summary>.summary .left-els>:not(:first-child),.depict.plp .filter-sort-modal details.filters .sort-filter-summary>.summary .left-els>:not(:first-child){margin-left:5px}.depict.plp .filter-sort-modal details.sorting .sort-filter-summary>.summary .left-els>:not(:last-child),.depict.plp .filter-sort-modal details.filters .sort-filter-summary>.summary .left-els>:not(:last-child){margin-right:5px}.depict.plp .filter-sort-modal details[open] .sort-filter-summary>.summary{font-weight:700}.depict.plp .filter-sort-modal .filter-icon,.depict.plp .filter-sort-modal .sort-icon{fill:#0f0f0f}.depict.plp .filter-sort-modal>.body{background:#fff;flex-direction:column;display:flex;overflow-y:auto}.depict.plp .filter-sort-modal>.body>:not(:first-child){margin-top:1px}.depict.plp .filter-sort-modal>.body>:not(:last-child){margin-bottom:1px}.depict.plp .filter-sort-modal .filters .body,.depict.plp .filter-sort-modal .sorting .body{color:#333335}.depict.plp .filter-sort-modal .filters>summary .morphing-sign span,.depict.plp .filter-sort-modal .sorting>summary .morphing-sign span{background:#0f0f0f}.depict.plp .filter-sort-modal .filters .filter-collapsible-body{background:0 0}.depict.plp .filter-sort-modal .filters .body{background:unset;padding:10px}.depict.plp .filter-sort-modal .filters .body .filter-part,.depict.plp .filter-sort-modal .filters .body .view-more-clear{background:#fdfdfd}.depict.plp .filter-sort-modal .sorting .body{background:#eeeef0;border-radius:0;margin:10px;padding:0}.depict.plp .filter-sort-modal .bottom-row{flex-shrink:0;justify-content:space-between;padding:10px;display:flex}.depict.plp .filter-sort-modal .bottom-row>:not(:first-child){margin-left:5px}.depict.plp .filter-sort-modal .bottom-row>:not(:last-child){margin-right:5px}.depict.plp .filter-sort-modal .bottom-row>button{border-radius:0;padding-top:12px;padding-bottom:12px}.depict.plp .filter-sort-modal .bottom-row .show-results{flex-grow:1;font-size:1.1em;font-weight:500}.depict.plp .filter-sort-modal .bottom-row .clear{font-size:1.1em}.depict.plp .filters .body details.filter-collapsible{border-top:1px solid #bcbcbe}.depict.plp .filters .body details.filter-collapsible[open]>summary{border-bottom:1px solid #eeeef0}.depict.plp .filters .body details.filter-collapsible .filter-collapsible-body{margin-bottom:15px}.depict.plp .filters .body .view-more-clear{border-top:1px solid #eeeef0}.depict.plp .filter-sort-modal details.sorting .sort-filter-summary>.summary,.depict.plp .filter-sort-modal details.filters .sort-filter-summary>.summary{border-top:1px solid #f4f4f4}.depict.plp .floating-buttons{z-index:calc(5000 + 4);opacity:0;justify-content:flex-start;align-items:center;padding-left:12px;transition-duration:.3s;transition-timing-function:ease-in-out;display:flex;position:sticky;bottom:12px}.depict.plp .floating-buttons:not(.show-them){pointer-events:none}.depict.plp .floating-buttons.show-them{opacity:1}.depict.plp .floating-buttons .filter{margin-right:5px}.depict.plp .floating-buttons .sort{margin-left:5px;margin-right:5px}.depict.plp .floating-buttons .up{margin-left:5px}.depict.plp .floating-buttons .sort,.depict.plp .floating-buttons .filter,.depict.plp .floating-buttons .up{filter:drop-shadow(2px 2px 4px #0000001a)drop-shadow(-2px -2px 4px #ffffff4d);background:#eeeef0;border:1px solid #0f0f0f;border-radius:20px;padding:10px}@media not all and (hover:none){.depict.plp .floating-buttons .sort:hover,.depict.plp .floating-buttons .filter:hover,.depict.plp .floating-buttons .up:hover{background:#fafafc}}.depict.plp .floating-buttons .sort:focus,.depict.plp .floating-buttons .filter:focus,.depict.plp .floating-buttons .up:focus{outline:none}.depict.plp .floating-buttons .sort:focus-visible,.depict.plp .floating-buttons .filter:focus-visible,.depict.plp .floating-buttons .up:focus-visible{background:#fafafc}.depict.plp .floating-buttons .sort div,.depict.plp .floating-buttons .filter div,.depict.plp .floating-buttons .up div{display:flex}.depict.plp .floating-buttons .sort svg path,.depict.plp .floating-buttons .filter svg path,.depict.plp .floating-buttons .up svg path{fill:#333335}.depict.plp .depict-slider{width:100%;position:relative}.depict.plp .depict-slider .sliding{height:100%;-ms-overflow-style:none;scrollbar-width:none;flex-flow:row;align-items:center;display:flex;overflow-x:scroll}.depict.plp .depict-slider .sliding>:not(:first-child){margin-left:5px}.depict.plp .depict-slider .sliding>:not(:last-child){margin-right:5px}.depict.plp .depict-slider .sliding::-webkit-scrollbar{display:none}.depict.plp .depict-slider .d-navbutton{z-index:2;touch-action:manipulation;cursor:pointer;height:calc(100% + 2px);width:26px;background:linear-gradient(270deg,#eeeef0 50%,#eeeef000 105%);border:none;justify-content:flex-end;align-items:center;padding:0 1px 0 0;transition-duration:.2s;display:flex;position:absolute;top:50%;transform:translateY(-50%)}.depict.plp .depict-slider .d-navbutton.hidden{cursor:default;opacity:0;animation-name:depict_slider_button_unclickable;animation-duration:5s;animation-fill-mode:forwards}.depict.plp .depict-slider .d-navbutton.left{left:-1px;transform:translateY(-50%)rotate(180deg)}.depict.plp .depict-slider .d-navbutton.right{right:-1px}.depict.plp .depict-slider .d-navbutton img{width:100%;height:100%}.depict.plp .depict-slider .d-navbutton>div{display:flex}@media not all and (hover:none){.depict.plp .depict-slider .d-navbutton:hover svg{transform:scale(1.2)}}.depict.plp .depict-slider .d-navbutton:focus-visible svg{transform:scale(1.5)}.depict.plp .depict-slider .d-navbutton:focus-visible svg path{filter:drop-shadow(-2px -2px 4px #418fc3cc)drop-shadow(2px 2px 4px #418fc3cc)}.depict.plp .depict-slider .d-navbutton svg{transition-duration:.15s}.depict.plp .depict-slider .d-navbutton:active{opacity:.9}@keyframes depict_slider_button_unclickable{0%{pointer-events:all}to{pointer-events:none;visibility:hidden}}.depict.plp button.major{color:#fff;white-space:pre-wrap;cursor:pointer;background:#0f0f0f;border:1px solid #0000;border-radius:0;justify-content:center;align-items:center;padding:10px 20px;transition:filter .15s ease-in-out,background .1s ease-in-out;display:flex}.depict.plp button.major svg path{fill:#fff}@media not all and (hover:none){.depict.plp button.major:hover{filter:drop-shadow(-2px -2px 4px #ffffff40)drop-shadow(2px 2px 4px #00000026);background:#292929}}.depict.plp button.major:active{filter:drop-shadow(2px 2px 4px #ffffff40)drop-shadow(-2px -2px 4px #00000026);background:#424242}.depict.plp button.major:focus{outline-style:none}.depict.plp button.major:focus-visible{filter:drop-shadow(2px 2px 4px #418fc3cc)drop-shadow(-2px -2px 4px #418fc3cc);background:#292929}.depict.plp button.minor{color:#333335;white-space:pre-wrap;cursor:pointer;background:#fafafc;border:1px solid #0f0f0f;border-radius:0;justify-content:center;align-items:center;padding:10px 20px;transition:filter .15s ease-in-out,background .1s ease-in-out;display:flex}.depict.plp button.minor svg path{fill:#333335}@media not all and (hover:none){.depict.plp button.minor:hover{filter:drop-shadow(-2px -2px 4px #ffffff40)drop-shadow(2px 2px 4px #00000026);background:#dadae9}}.depict.plp button.minor:active{filter:drop-shadow(2px 2px 4px #ffffff40)drop-shadow(-2px -2px 4px #00000026);background:#dadae9}.depict.plp button.minor:focus{outline-style:none}.depict.plp button.minor:focus-visible{filter:drop-shadow(-2px -2px 4px #418fc3cc)drop-shadow(2px 2px 4px #418fc3cc);background:#dadae9}.depict.plp.toast{z-index:calc(5000 + 5);white-space:nowrap;border-bottom-style:solid;border-bottom-width:2px;background:#fff;border-image-source:linear-gradient(90deg,#333335 0% 100%);border-image-slice:0 0 100%;border-radius:0;padding:10px 20px;position:fixed;bottom:10px;left:50%;transform:translate(-50%);box-shadow:2px 2px 4px #0000000d}.depict.plp.toast *,.depict.plp.toast *{-webkit-user-select:none;user-select:none}@media (min-width:1000px){.depict.plp.toast{padding:10px 40px}}.depict.plp.toast,.depict.plp.toast .buttons{justify-content:center;align-items:center;display:flex}@media (max-width:999px){.depict.plp.toast>:not(:first-child),.depict.plp.toast .buttons>:not(:first-child){margin-left:5px}.depict.plp.toast>:not(:last-child),.depict.plp.toast .buttons>:not(:last-child){margin-right:5px}}@media (min-width:1000px){.depict.plp.toast>:not(:first-child),.depict.plp.toast .buttons>:not(:first-child){margin-left:15px}.depict.plp.toast>:not(:last-child),.depict.plp.toast .buttons>:not(:last-child){margin-right:15px}}.depict.plp.toast{color:#333335}.depict.plp.toast button{cursor:pointer;border-radius:0;padding:5px 20px}.depict.search .previous-searches{flex-direction:column;display:flex}.depict.search .previous-searches>:not(:first-child){margin-top:7.5px}.depict.search .previous-searches>:not(:last-child){margin-bottom:7.5px}.depict.search .previous-searches .list{flex-direction:column;display:flex}.depict.search .previous-searches .list>:not(:first-child){margin-top:2.5px}.depict.search .previous-searches .list>:not(:last-child){margin-bottom:2.5px}.depict.search .previous-searches .list .item{color:#333335;overflow-wrap:anywhere;border-radius:0;justify-content:space-between;align-items:center;padding:10px 20px;display:flex}.depict.search .previous-searches .list .item .left{align-items:center;display:flex}.depict.search .previous-searches .list .item .left>:not(:first-child){margin-left:5px}.depict.search .previous-searches .list .item .left>:not(:last-child){margin-right:5px}.depict.search .previous-searches .list .item .left svg{min-width:12px}.depict.search .previous-searches .list .item .left svg path{fill:#0f0f0f}.depict.search .previous-searches .list .item .delete{height:100%;cursor:pointer;background:0 0;justify-content:center;align-items:center;padding:0 10px;display:flex}.depict.search .previous-searches .list .item .delete:focus{outline:none}.depict.search .previous-searches .list .item .delete svg{width:13px;height:13px;transition-duration:.15s}.depict.search .previous-searches .list .item .delete svg path{fill:#0f0f0f}.depict.search .previous-searches .list .item .delete:hover svg{transform:scale(1.2)}.depict.search .previous-searches .list .item .delete:hover svg path{fill:#000}.depict.search .previous-searches .list .item .delete:focus-visible{filter:drop-shadow(-2px -2px 4px #418fc3cc)drop-shadow(2px 2px 4px #418fc3cc)}.depict.search .previous-searches .list .item .delete:focus-visible svg{transform:scale(1.2)}.depict.search .previous-searches .list .item .delete:focus-visible svg path{fill:#000}.depict.search .previous-searches .text,.depict.search .suggestions .text{color:#333335;margin-top:0;font-size:16px;font-weight:700}.depict.search .previous-searches .item,.depict.search .previous-searches .suggestion,.depict.search .suggestions .item,.depict.search .suggestions .suggestion{background:#fff}.depict.search .previous-searches .item.selected,.depict.search .previous-searches .suggestion.selected,.depict.search .suggestions .item.selected,.depict.search .suggestions .suggestion.selected{background:#ffffff80}.depict.search .previous-searches .item:focus-visible,.depict.search .previous-searches .suggestion:focus-visible,.depict.search .suggestions .item:focus-visible,.depict.search .suggestions .suggestion:focus-visible{filter:drop-shadow(-2px -2px 4px #418fc3cc)drop-shadow(2px 2px 4px #418fc3cc);outline:none}.depict.search .suggestions{flex-direction:column;display:flex}.depict.search .suggestions>:not(:first-child){margin-top:10px}.depict.search .suggestions>:not(:last-child){margin-bottom:10px}.depict.search .suggestions:not(.compact)>.suggestion-container>:not(:first-child),.depict.search .suggestions.compact>.suggestion-container:not(.query)>:not(:first-child){margin-top:2.5px}.depict.search .suggestions:not(.compact)>.suggestion-container>:not(:last-child),.depict.search .suggestions.compact>.suggestion-container:not(.query)>:not(:last-child){margin-bottom:2.5px}.depict.search .suggestions .suggestion-container{flex-direction:column;display:flex}.depict.search .suggestions .suggestion-container .suggestion{overflow-wrap:anywhere;color:#333335;border-radius:0;justify-content:space-between;align-items:center;padding:10px 20px;font-weight:400;display:flex}.depict.search .suggestions .suggestion-container .suggestion svg{flex-shrink:0}.depict.search .suggestions .suggestion-container .suggestion .search-icon{max-width:12px;max-height:13px}.depict.search .suggestions .suggestion-container .suggestion .search-icon svg{transform:matrix(.6,0,0,.6,-4.14,-4.32)}.depict.search .suggestions .suggestion-container .suggestion .search-icon svg path{fill:#0f0f0f}.depict.search .suggestions .suggestion-container .suggestion .has-history-match{color:#333335;font-weight:400}.depict.search .suggestions .suggestion-container .suggestion .has-history-match .highlighted-part{color:#333335;font-weight:500}.depict.search .suggestions .suggestion-container .suggestion .category{margin-right:20px}.depict.search .suggestions .suggestion-container .suggestion .type{color:#868689;text-transform:capitalize}.depict.search .suggestions .suggestion-container.query{flex-direction:column}.depict.search .suggestions .suggestion-container.query .suggestion{justify-content:flex-start}.depict.search .suggestions .suggestion-container.query .suggestion>:not(:first-child){margin-left:4px}.depict.search .suggestions .suggestion-container.query .suggestion>:not(:last-child){margin-right:4px}.depict.search .suggestions.compact>.suggestion-container.query{flex-flow:wrap;margin:-2.5px}.depict.search .suggestions.compact>.suggestion-container.query>*{margin:2.5px}.depict.search .category-suggestions{display:flex}.depict.search .category-suggestions .sliding{margin-bottom:-2px;padding-bottom:2px}.depict.search .category-suggestions .title{font-weight:420}.depict.search .category-suggestions .category-suggestion{color:#000;height:100%;background:#fff;border-radius:0;justify-content:space-between;align-items:center;padding:10px 20px;transition:background .1s ease-in-out;display:flex}.depict.search .category-suggestions .category-suggestion:focus{background:#e6e6e6}@media not all and (hover:none){.depict.search .category-suggestions .category-suggestion:hover{background:#e6e6e6}}.depict.search .category-suggestions .category-suggestion>:not(:first-child){margin-left:5px}.depict.search .category-suggestions .category-suggestion>:not(:last-child){margin-right:5px}.depict.search .category-suggestions .category-suggestion .parent-title{font-weight:400}.depict.search .category-suggestions .category-suggestion>*{white-space:nowrap;font-size:.85em}.depict.search .instant-results{flex-direction:column;display:flex}.depict.search .instant-results>:not(:first-child){margin-top:2.5px}.depict.search .instant-results>:not(:last-child){margin-bottom:2.5px}.depict.search .instant-results .instant-card{background:#fff;border-radius:0;flex:100%;padding:5px 20px;display:flex;overflow:hidden}.depict.search .instant-results .instant-card:hover,.depict.search .instant-results .instant-card:focus{z-index:2;box-shadow:2px 2px 4px #00000026,-4px -4px 4px #ffffff4d}.depict.search .instant-results .instant-card>:not(:first-child){margin-left:.75vw}.depict.search .instant-results .instant-card>:not(:last-child){margin-right:.75vw}.depict.search .instant-results .instant-card .img-part{flex:0 0 100px}.depict.search .instant-results .instant-card .right-part{flex-grow:1;justify-content:space-between;display:flex}.depict.search .instant-results .instant-card .right-part>:not(:first-child){margin-left:.75vw}.depict.search .instant-results .instant-card .right-part>:not(:last-child){margin-right:.75vw}.depict.search .instant-results .instant-card .right-part .title-brand-tagline{justify-content:center;align-items:center;display:flex}@media (min-width:601px){.depict.search .instant-results .instant-card .right-part .title-brand-tagline>:not(:first-child){margin-left:.75vw}.depict.search .instant-results .instant-card .right-part .title-brand-tagline>:not(:last-child){margin-right:.75vw}}@media (max-width:600px){.depict.search .instant-results .instant-card .right-part .title-brand-tagline{flex-direction:column;align-items:flex-start}.depict.search .instant-results .instant-card .right-part .title-brand-tagline>:not(:first-child){margin-top:.75vw}.depict.search .instant-results .instant-card .right-part .title-brand-tagline>:not(:last-child){margin-bottom:.75vw}}.depict.search .instant-results .instant-card .right-part .title-brand-tagline .title{text-overflow:ellipsis;white-space:pre-line;overflow-wrap:anywhere;-webkit-line-clamp:2;word-break:break-word;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.depict.search .instant-results .instant-card .right-part .title-brand-tagline .tagline{color:#868689;font-size:.9em}.depict.search .instant-results .instant-card .right-part .price-container{justify-content:center;align-items:center;display:flex}@media (min-width:601px){.depict.search .instant-results .instant-card .right-part .price-container>:not(:first-child){margin-left:.75vw}.depict.search .instant-results .instant-card .right-part .price-container>:not(:last-child){margin-right:.75vw}}.depict.search .instant-results .instant-card .right-part .price-container .price:not(.orig){color:#0f0f0f;font-weight:700}.depict.search .instant-results .instant-card .right-part .price-container .price.orig{color:#868689;text-decoration:line-through}.depict.search .instant-results .instant-card .right-part .price-container .price.sales-price{color:#ff2e3e}@media (max-width:600px){.depict.search .instant-results .instant-card .right-part .price-container{flex-direction:column}.depict.search .instant-results .instant-card .right-part .price-container>:not(:first-child){margin-top:.75vw}.depict.search .instant-results .instant-card .right-part .price-container>:not(:last-child){margin-bottom:.75vw}.depict.search .instant-results .instant-card .right-part .price-container .price:not(.orig){order:0}.depict.search .instant-results .instant-card .right-part .price-container .price.orig{order:1}}.depict.search .query-input{z-index:calc(1 + 5);display:flex;box-shadow:0 4px 4px #0000000d}.depict.search .query-input input,.depict.search .query-input button{margin:0}.depict.search .query-input .query{width:100%;color:#333335;font-size:initial;font-weight:initial;background-color:#fff;border:none;border-radius:0;flex-grow:1;padding:14px 55px 14px 20px}.depict.search .query-input .query::placeholder{color:initial}.depict.search .query-input .query:focus{color:#000;outline:none}@media not all and (hover:none){.depict.search .query-input .query:hover{color:#000;outline:none}}.depict.search .query-input .query.has-adjacent-back-button{border-top-left-radius:0;border-bottom-left-radius:0;padding-left:0}.depict.search .query-input .field{flex-grow:1;display:flex;position:relative}.depict.search .query-input .back{cursor:pointer;background:#fff;border:none;border-top-left-radius:0;border-bottom-left-radius:0;justify-content:center;align-items:center;padding:14px 15px 14px 10px;display:flex}.depict.search .query-input .back svg path{fill:#333335}.depict.search .query-input .back:focus{outline:none}.depict.search .query-input .back:focus-visible{filter:drop-shadow(-2px -2px 4px #418fc3cc)drop-shadow(2px 2px 4px #418fc3cc)}.depict.search .query-input .back:focus-visible svg path{fill:#0f0f0f}@media not all and (hover:none){.depict.search .query-input .back:hover svg path{fill:#0f0f0f}}.depict.search .query-input .clear,.depict.search .query-input .submit{cursor:pointer}.depict.search .query-input .clear{background:0 0;border:none;padding:0;position:absolute;top:50%;right:30px;transform:translateY(-50%)scale(.8)}.depict.search .query-input .clear svg path{fill:#333335}.depict.search .query-input .clear:focus{outline:none}.depict.search .query-input .clear:focus-visible{filter:drop-shadow(-2px -2px 4px #418fc3cc)drop-shadow(2px 2px 4px #418fc3cc)}.depict.search .query-input .clear:focus-visible svg path{fill:#0f0f0f}@media not all and (hover:none){.depict.search .query-input .clear:hover svg path{fill:#0f0f0f}}.depict.search .query-input .submit{min-width:50px;border:none;border-radius:0;padding:0}.depict.search .query-input .submit svg{transform:scale(1)}.depict.search .depict-search-modal-backdrop{z-index:5000;touch-action:none;background:#0006;position:fixed;inset:0}.depict.search .depict-search-modal{justify-content:center;display:flex}.depict.search .depict-search-modal button{border:none}.depict.search .depict-search-modal .query-input{z-index:calc(5000 + 5)}.depict.search .depict-search-modal .body{max-width:800px;z-index:calc(5000 + 1);background:#eeeef0;border-radius:0;flex-direction:column;display:flex}@media (hover:hover) and (pointer:fine) and (max-height:790px){.depict.search .depict-search-modal .body{max-height:100%;position:fixed;top:0}}@media (hover:hover) and (pointer:fine) and (max-height:790px) and (max-width:600px){.depict.search .depict-search-modal .body{width:calc(100% - 30px);left:30px}}@media not all and (hover:hover) and (pointer:fine){@media (max-height:1000px){.depict.search .depict-search-modal .body{max-height:100%;position:fixed;top:0}}@media (max-height:1000px) and (max-width:600px){.depict.search .depict-search-modal .body{width:calc(100% - 30px);left:30px}}}.depict.search .depict-search-modal .body .padded>*,.depict.search .depict-search-modal .body .query-input{flex-shrink:0}.depict.search .depict-search-modal .body .padded{flex-direction:column;padding-top:20px;padding-left:max(1vw,10px);padding-right:max(1vw,10px);display:flex;overflow:auto}.depict.search .depict-search-modal .body .padded>:not(:first-child){margin-top:10px}.depict.search .depict-search-modal .body .padded>:not(:last-child){margin-bottom:10px}.depict.search .depict-search-modal .body .discover-more{justify-content:center;display:flex}.depict.search .depict-search-modal .body .discover-more button{text-transform:uppercase;margin:20px 0;padding:12px 18px}.depict.search .listing-page .query-input{width:min(100%,800px);align-self:center;margin-top:40px;margin-bottom:20px}@media (max-width:651px){.depict.search .listing-page .query-input{margin-top:16px;margin-bottom:16px}}.depict.search .listing-page .query-input~.category-suggestions .category-suggestion:last-child{margin-right:auto}.depict.search .listing-page .query-input~.category-suggestions .category-suggestion:first-child{margin-left:auto}.depict.search .listing-page .category-suggestions{margin-bottom:20px}@media (max-width:651px){.depict.search .listing-page .category-suggestions{margin-bottom:16px}}@media (min-width:652px){.depict.search .listing-page .query-input+.filter-results-for-one-row,.depict.search .listing-page .query-input+.results-for{margin-top:20px}}.depict.search .listing-page .search-recs{margin-top:60px;padding-top:60px}@media (max-width:651px){.depict.search .listing-page .search-recs{margin-top:48px;padding-top:48px}}.depict.search .listing-page .PLP-results.nothing+.search-recs{margin-top:30px;padding-top:30px}@media (max-width:651px){.depict.search .listing-page .PLP-results.nothing+.search-recs{margin-top:24px;padding-top:24px}}.depict.search .listing-page .search-recs{border-top:2px solid #bcbcbe;flex-direction:column;display:flex}.depict.search .listing-page .search-recs .search-recs-title{margin-top:0;margin-bottom:20px;font-size:24px;font-weight:600;line-height:1}.depict.search .listing-page .search-recs .load-more-container{justify-content:center;margin-top:30px;display:flex}.depict.search .results-for{overflow-wrap:anywhere;font-size:1.5em}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
@use "sass:string";
|
|
2
|
+
@use "sass:color";
|
|
3
|
+
@use "supports-hover";
|
|
4
|
+
@use "sass:map";
|
|
5
|
+
@use "./utils";
|
|
6
|
+
@use "../components/PLP/Buttons";
|
|
7
|
+
|
|
8
|
+
// https://selleo.com/til/posts/rc5qli22jp-pass-hex-color-to-fill-svg-in-background-url-scss
|
|
9
|
+
@function escape-url-hex-color($hex_color) {
|
|
10
|
+
$ie-color-string: color.ie-hex-str($hex_color);
|
|
11
|
+
$string: string.quote($ie-color-string);
|
|
12
|
+
$color: string.slice($string, 4);
|
|
13
|
+
@return "%23" + $color;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin custom_input(
|
|
17
|
+
$checkbox-background-color,
|
|
18
|
+
$checkbox-checked-background-color,
|
|
19
|
+
$checkbox-checkmark-color,
|
|
20
|
+
$checkbox-border-radius,
|
|
21
|
+
$checkbox-border,
|
|
22
|
+
$checkbox-left-offset,
|
|
23
|
+
$checkbox-top-offset,
|
|
24
|
+
$radio-border,
|
|
25
|
+
$radio-background-color,
|
|
26
|
+
$radio-selected-dot-color,
|
|
27
|
+
$radio-selected-dot-size,
|
|
28
|
+
$radio-selected-offset,
|
|
29
|
+
$hovered-checkbox-bg,
|
|
30
|
+
$hovered-checkbox-checked-background-color,
|
|
31
|
+
$hovered-checkbox-border,
|
|
32
|
+
$hovered-radio-border,
|
|
33
|
+
$input-row-height-goal,
|
|
34
|
+
$largest-border-on-custom-input
|
|
35
|
+
) {
|
|
36
|
+
$width-and-height: calc(
|
|
37
|
+
#{$input-row-height-goal} - calc(#{$largest-border-on-custom-input} * 2)
|
|
38
|
+
); // border is on both sides
|
|
39
|
+
/* Customize the label (the container) */
|
|
40
|
+
.input-row {
|
|
41
|
+
position: relative;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
|
|
44
|
+
.custom-indicator {
|
|
45
|
+
position: relative;
|
|
46
|
+
// space to text
|
|
47
|
+
margin-right: 10px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Hide the browser's default radio/checkbox input element */
|
|
51
|
+
input {
|
|
52
|
+
position: absolute;
|
|
53
|
+
opacity: 0;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
height: 0;
|
|
56
|
+
width: 0;
|
|
57
|
+
}
|
|
58
|
+
/* Create the custom-indicator (hidden when not checked) */
|
|
59
|
+
.custom-indicator:after {
|
|
60
|
+
content: "";
|
|
61
|
+
position: absolute;
|
|
62
|
+
display: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Create a custom checkbox */
|
|
66
|
+
input[type="checkbox"] {
|
|
67
|
+
& ~ .custom-indicator {
|
|
68
|
+
padding: calc(#{$width-and-height} / 2);
|
|
69
|
+
background-color: $checkbox-background-color;
|
|
70
|
+
border-radius: $checkbox-border-radius;
|
|
71
|
+
&:not(.color) {
|
|
72
|
+
border: $checkbox-border;
|
|
73
|
+
}
|
|
74
|
+
&.color {
|
|
75
|
+
padding: calc(#{$input-row-height-goal} / 2); // doesn't have border so needs more size
|
|
76
|
+
&.outline {
|
|
77
|
+
$border-width: 0.5px;
|
|
78
|
+
padding: calc(calc(#{$input-row-height-goal} - calc(#{$border-width} * 2)) / 2);
|
|
79
|
+
border: $border-width solid #868689;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
/* When the checkbox is checked, add a blue background */
|
|
84
|
+
&:checked ~ .custom-indicator {
|
|
85
|
+
// background-color: #000;
|
|
86
|
+
background-color: $checkbox-checked-background-color;
|
|
87
|
+
&:after {
|
|
88
|
+
background-image: url('data:image/svg+xml;utf8,<svg fill="#{escape-url-hex-color($checkbox-checkmark-color)}" width="12" height="10" viewBox="0 0 12 10" xmlns="http://www.w3.org/2000/svg"><path d="M12 2.0001L10.6 0.600098L4 7.2001L1.4 4.6001L0 6.0001L4 10.0001L12 2.0001Z" /></svg>');
|
|
89
|
+
fill: #fff;
|
|
90
|
+
color: #fff;
|
|
91
|
+
position: absolute;
|
|
92
|
+
top: calc(50% + $checkbox-top-offset);
|
|
93
|
+
left: calc(50% + $checkbox-left-offset);
|
|
94
|
+
transform: translate(-50%, -50%);
|
|
95
|
+
|
|
96
|
+
display: block; // Show the custom-indicator when checked
|
|
97
|
+
|
|
98
|
+
/* Style the custom-indicator */
|
|
99
|
+
width: 12px;
|
|
100
|
+
height: 10px;
|
|
101
|
+
}
|
|
102
|
+
&.color:after {
|
|
103
|
+
// Force this to be white for color checkboxes
|
|
104
|
+
background-image: url('data:image/svg+xml;utf8,<svg fill="#{escape-url-hex-color(#fff)}" width="12" height="10" viewBox="0 0 12 10" xmlns="http://www.w3.org/2000/svg"><path d="M12 2.0001L10.6 0.600098L4 7.2001L1.4 4.6001L0 6.0001L4 10.0001L12 2.0001Z" /></svg>');
|
|
105
|
+
}
|
|
106
|
+
&.color.check-dark:after {
|
|
107
|
+
background-image: url('data:image/svg+xml;utf8,<svg fill="#{escape-url-hex-color(#000)}" width="12" height="10" viewBox="0 0 12 10" xmlns="http://www.w3.org/2000/svg"><path d="M12 2.0001L10.6 0.600098L4 7.2001L1.4 4.6001L0 6.0001L4 10.0001L12 2.0001Z" /></svg>');
|
|
108
|
+
}
|
|
109
|
+
&.color.check-multi:after {
|
|
110
|
+
background-image: url('data:image/svg+xml;utf8,<svg fill="#{escape-url-hex-color(#fff)}" width="12" height="10" viewBox="0 0 12 10" xmlns="http://www.w3.org/2000/svg"><path style="stroke:black;stroke-width:1px" d="M12 2.0001L10.6 0.600098L4 7.2001L1.4 4.6001L0 6.0001L4 10.0001L12 2.0001Z" /></svg>');
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
&:focus-visible ~ .custom-indicator {
|
|
114
|
+
background-color: $hovered-checkbox-bg;
|
|
115
|
+
&.color {
|
|
116
|
+
filter: map.get(Buttons.get-secondary-button-properties(), "focus-visible-filter");
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
&:checked:focus-visible ~ .custom-indicator {
|
|
120
|
+
background-color: $hovered-checkbox-checked-background-color;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
@include supports-hover.supports-hover() {
|
|
124
|
+
&:hover input[type="checkbox"] {
|
|
125
|
+
& ~ .custom-indicator {
|
|
126
|
+
background-color: $hovered-checkbox-bg;
|
|
127
|
+
&:not(.color) {
|
|
128
|
+
border: $hovered-checkbox-border;
|
|
129
|
+
$hovered-border-width: get_border_width($hovered-checkbox-border);
|
|
130
|
+
$border-width: get_border_width($checkbox-border);
|
|
131
|
+
padding: calc(calc(#{$width-and-height} / 2) - calc(#{$hovered-border-width} - #{$border-width}));
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
&:checked ~ .custom-indicator {
|
|
135
|
+
background-color: $hovered-checkbox-checked-background-color;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* Create a custom radio button */
|
|
141
|
+
input[type="radio"] {
|
|
142
|
+
~ .custom-indicator {
|
|
143
|
+
padding: calc(#{$width-and-height} / 2);
|
|
144
|
+
border-radius: 50%;
|
|
145
|
+
border: $radio-border;
|
|
146
|
+
background-color: $radio-background-color;
|
|
147
|
+
}
|
|
148
|
+
&:checked ~ .custom-indicator {
|
|
149
|
+
background-color: transparent;
|
|
150
|
+
&:after {
|
|
151
|
+
display: block; // Show the custom-indicator when checked
|
|
152
|
+
|
|
153
|
+
/* Style the custom-indicator */
|
|
154
|
+
width: $radio-selected-dot-size;
|
|
155
|
+
height: $radio-selected-dot-size;
|
|
156
|
+
left: calc(50% + $radio-selected-offset);
|
|
157
|
+
top: calc(50% + $radio-selected-offset);
|
|
158
|
+
transform: translate(-50%, -50%);
|
|
159
|
+
|
|
160
|
+
// width: 8px;
|
|
161
|
+
// height: 8px;
|
|
162
|
+
// top: 6px;
|
|
163
|
+
// left: 6px;
|
|
164
|
+
background-color: $radio-selected-dot-color;
|
|
165
|
+
border-radius: 50%;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
&:focus-visible ~ .custom-indicator {
|
|
169
|
+
@include utils.highlight-background($radio-background-color);
|
|
170
|
+
}
|
|
171
|
+
&:checked:focus-visible ~ .custom-indicator:after {
|
|
172
|
+
@include utils.highlight-background($radio-selected-dot-color, 15%, 25%);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
@include supports-hover.supports-hover() {
|
|
176
|
+
&:hover input[type="radio"] ~ .custom-indicator {
|
|
177
|
+
border: $hovered-radio-border;
|
|
178
|
+
$hovered-border-width: get_border_width($hovered-radio-border);
|
|
179
|
+
$border-width: get_border_width($radio-border);
|
|
180
|
+
padding: calc(calc(#{$width-and-height} / 2) - calc(#{$hovered-border-width} - #{$border-width}));
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@content;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@function get_border_width($border-declaration) {
|
|
189
|
+
@if $border-declaration == "none" or $border-declaration == "unset" {
|
|
190
|
+
@return 0px;
|
|
191
|
+
} @else {
|
|
192
|
+
@return nth($border-declaration, 1);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "sass:color";
|
|
3
|
+
|
|
4
|
+
/// This mixin is used for the SortAndFilterModal and the SearchModal to color the backdrop behind the modal
|
|
5
|
+
/// @param {Color} $background [rgba(0, 0, 0, 0.4)] - The background color of the backdrop, keep in mind it should be a transparent color
|
|
6
|
+
/// @param {Number} $z-index - The z-index of the backdrop
|
|
7
|
+
@mixin modal-backdrop($background: rgba(0, 0, 0, 0.4), $z-index) {
|
|
8
|
+
position: fixed;
|
|
9
|
+
background: $background;
|
|
10
|
+
z-index: $z-index;
|
|
11
|
+
left: 0;
|
|
12
|
+
right: 0;
|
|
13
|
+
bottom: 0;
|
|
14
|
+
top: 0;
|
|
15
|
+
touch-action: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/// This mixin sets the background property to the provided color but darkens it by the provided amounts if it is brighter or darker than 50%
|
|
19
|
+
/// The purpose is to really easily create i.e. hover effects
|
|
20
|
+
/// @param {Color} $normal-background - The color to darken or lighten
|
|
21
|
+
/// @param {Percentage} $darken-factor [10%] - The amount to darken the color by
|
|
22
|
+
/// @param {Percentage} $lighten-factor [10%] - The amount to lighten the color by
|
|
23
|
+
@mixin highlight-background($normal-background, $darken-factor: 10%, $lighten-factor: 10%) {
|
|
24
|
+
@if color.lightness($normal-background) >= 50% {
|
|
25
|
+
background: color.adjust($normal-background, $lightness: -$darken-factor);
|
|
26
|
+
} @else {
|
|
27
|
+
background: color.adjust($normal-background, $lightness: $lighten-factor);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// source of below: https://gist.github.com/mashirozx/c0691c3b8ed3f1f63722883649d41c18
|
|
32
|
+
/// We can't (or couldn't) use flex gap due to poor compatibility, this mixin is used instead of it and generates margins. We recommend reading the source code and applying thinking to the margin situation that will result.
|
|
33
|
+
@mixin _flex-gap($gap, $row: true, $use_nth_child: true) {
|
|
34
|
+
$margin: math.div($gap, 2);
|
|
35
|
+
$transform: -$margin;
|
|
36
|
+
|
|
37
|
+
@if $use_nth_child {
|
|
38
|
+
> * {
|
|
39
|
+
@if $row {
|
|
40
|
+
// modified to be worse by Daniel (probable broke row-reverse and order property) due to him being opinionated on avoiding negative margins when possible
|
|
41
|
+
&:not(:first-child) {
|
|
42
|
+
margin-left: $margin;
|
|
43
|
+
}
|
|
44
|
+
&:not(:last-child) {
|
|
45
|
+
margin-right: $margin;
|
|
46
|
+
}
|
|
47
|
+
} @else {
|
|
48
|
+
&:not(:first-child) {
|
|
49
|
+
margin-top: $margin;
|
|
50
|
+
}
|
|
51
|
+
&:not(:last-child) {
|
|
52
|
+
margin-bottom: $margin;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
} @else {
|
|
57
|
+
@if $row {
|
|
58
|
+
margin-left: $transform;
|
|
59
|
+
margin-right: $transform;
|
|
60
|
+
} @else {
|
|
61
|
+
margin-top: $transform;
|
|
62
|
+
margin-bottom: $transform;
|
|
63
|
+
}
|
|
64
|
+
> * {
|
|
65
|
+
@if $row {
|
|
66
|
+
margin-left: $margin;
|
|
67
|
+
margin-right: $margin;
|
|
68
|
+
} @else {
|
|
69
|
+
margin-top: $margin;
|
|
70
|
+
margin-bottom: $margin;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@mixin flex-gap($gap, $flex-flow: "row nowrap") {
|
|
77
|
+
@if $flex-flow== "row nowrap" or $flex-flow== "row-reverse nowrap" {
|
|
78
|
+
@include _flex-gap($gap, true);
|
|
79
|
+
} @else if $flex-flow== "column nowrap" or $flex-flow== "column-reverse nowrap" {
|
|
80
|
+
@include _flex-gap($gap, false);
|
|
81
|
+
} @else if $flex-flow== "row wrap" or $flex-flow== "row-reverse wrap" {
|
|
82
|
+
@include _flex-gap($gap, true, false);
|
|
83
|
+
@include _flex-gap($gap, false, false);
|
|
84
|
+
} @else if $flex-flow== "column wrap" or $flex-flow== "column-reverse wrap" {
|
|
85
|
+
@include _flex-gap($gap, true, false);
|
|
86
|
+
@include _flex-gap($gap, false, false);
|
|
87
|
+
} @else {
|
|
88
|
+
@error "The second paramater $flex-flow is set to be '#{$flex-flow}', which is illegal.";
|
|
89
|
+
}
|
|
90
|
+
}
|