/
_ResponsiveFacets.scss
141 lines (126 loc) · 2.96 KB
/
_ResponsiveFacets.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
@import 'bourbon/bourbon';
@import 'Variables';
.CoveoSearchInterface.coveo-small-facets {
.coveo-facet-dropdown-content {
z-index: 20;
margin: 0;
}
.coveo-facet-dropdown-header {
@include order(2);
@include defaultRoundedBorder();
background-color: white;
&.coveo-dropdown-header-active {
z-index: 20;
}
}
&.coveo-no-visible-facet {
.coveo-facet-dropdown-header {
display: none;
}
}
.coveo-facet-column {
&.coveo-facet-dropdown-modal-content {
$padding: 20px;
z-index: 20;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: white;
overflow-y: scroll;
padding: $padding;
.coveo-facet-modal-close-button {
$close-button-size: 32px;
padding: 0;
width: $close-button-size;
height: $close-button-size;
border-radius: 50%;
background-color: $coveo-blue;
border: none;
color: white;
margin-left: auto;
margin-bottom: $padding;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
&:hover {
opacity: 0.8;
}
&:focus {
opacity: 0.5;
}
> svg {
$close-button-icon-size: 12px;
width: $close-button-icon-size;
height: $close-button-icon-size;
}
}
}
&.coveo-hidden {
display: none;
}
&.coveo-facet-dropdown-content {
overflow-y: scroll;
max-height: 600px;
clear: both;
white-space: nowrap;
padding: 0;
min-width: 280px;
width: 35%;
z-index: 20;
box-shadow: 0 7px 15px rgba(0, 0, 0, 0.25);
border-radius: 0 0 0 2px;
#{$allFacetsType} {
margin: 0;
border: 0;
border-radius: 0;
.coveo-facet-header {
border: 0;
border-radius: 0;
border-top: $default-border;
white-space: initial;
}
}
#{$allDynamicFacetsType} {
margin: 0;
.coveo-dynamic-facet-values,
.coveo-dynamic-hierarchical-facet-values {
padding: 5px;
}
.coveo-dynamic-facet-header {
padding: 0 5px;
}
.coveo-dynamic-facet-search {
margin: 10px 5px 0;
}
}
}
}
.coveo-facet-header-filter-by-container {
background: $color-blueish-white;
font-size: $font-size-bigger;
font-weight: 700;
letter-spacing: 0.22px;
line-height: 22px;
.coveo-facet-header-filter-by {
display: block;
padding: 10px 0 10px 20px;
}
}
.coveo-facet-header-filter-by-container {
background: $color-blueish-white;
font-size: $font-size-bigger;
font-weight: 700;
letter-spacing: 0.22px;
line-height: 22px;
.coveo-facet-header-filter-by {
display: block;
padding: 10px 0 10px 20px;
}
}
}
.coveo-facet-header-filter-by {
display: none;
}