|
1 | 1 | @import '~styles/mixins';
|
| 2 | + |
2 | 3 | $view-options-toggle-right-margin: $base-unit * 2;
|
3 | 4 | $down-arrow-size: $base-unit;
|
4 | 5 |
|
@@ -46,6 +47,144 @@ $down-arrow-size: $base-unit;
|
46 | 47 | @include xs-to-md {
|
47 | 48 | margin-right: 16px;
|
48 | 49 | }
|
| 50 | + |
| 51 | + :global { |
| 52 | + // 'Sort by' dropdown |
| 53 | + .Select { |
| 54 | + @include roboto-regular; |
| 55 | + } |
| 56 | + |
| 57 | + .is-focused { |
| 58 | + font-weight: 700; |
| 59 | + } |
| 60 | + |
| 61 | + .Select-control { |
| 62 | + line-height: 12px; |
| 63 | + padding: 4px 35px 4px 10px; |
| 64 | + width: 208px; |
| 65 | + height: 40px; |
| 66 | + background-color: $tc-white; |
| 67 | + font-weight: 400; |
| 68 | + font-size: 12px; |
| 69 | + text-transform: none; |
| 70 | + border: 1px solid #aaa; |
| 71 | + color: $tc-gray-90; |
| 72 | + position: relative; |
| 73 | + overflow: hidden; |
| 74 | + box-sizing: border-box; |
| 75 | + } |
| 76 | + |
| 77 | + .Select-input { |
| 78 | + width: 100% !important; |
| 79 | + height: 0; |
| 80 | + padding: 0; |
| 81 | + opacity: 0; |
| 82 | + position: absolute; |
| 83 | + } |
| 84 | + |
| 85 | + .Select--single > .Select-control .Select-value { |
| 86 | + position: static; |
| 87 | + padding: 0; |
| 88 | + overflow: visible; |
| 89 | + } |
| 90 | + |
| 91 | + .Select.is-focused:not(.is-open) > .Select-control { |
| 92 | + border-color: #137d60 !important; |
| 93 | + } |
| 94 | + |
| 95 | + .Select-value-label { |
| 96 | + @include roboto-regular; |
| 97 | + |
| 98 | + font-size: 400; |
| 99 | + font-size: 14px; |
| 100 | + line-height: 22px; |
| 101 | + color: $tco-black; |
| 102 | + vertical-align: middle; |
| 103 | + } |
| 104 | + |
| 105 | + .Select-arrow-zone { |
| 106 | + content: ' '; |
| 107 | + display: block; |
| 108 | + height: 0; |
| 109 | + position: absolute; |
| 110 | + right: 17px; |
| 111 | + top: 50%; |
| 112 | + width: 0; |
| 113 | + |
| 114 | + svg { |
| 115 | + width: 10px; |
| 116 | + height: 10px; |
| 117 | + } |
| 118 | + } |
| 119 | + |
| 120 | + .Select-menu-outer { |
| 121 | + width: 100%; |
| 122 | + color: $tc-gray-90; |
| 123 | + font-weight: 400; |
| 124 | + font-size: 12px; |
| 125 | + background-color: $tc-white; |
| 126 | + box-sizing: border-box; |
| 127 | + margin-top: 2px; |
| 128 | + padding: 4px 0; |
| 129 | + position: absolute; |
| 130 | + top: 100%; |
| 131 | + right: 0; |
| 132 | + z-index: 1000; |
| 133 | + -webkit-overflow-scrolling: touch; |
| 134 | + border: none !important; |
| 135 | + } |
| 136 | + |
| 137 | + .Select-menu { |
| 138 | + max-height: none; |
| 139 | + overflow-y: visible; |
| 140 | + height: 22px; |
| 141 | + font-size: 14px; |
| 142 | + } |
| 143 | + |
| 144 | + .Select-option { |
| 145 | + box-sizing: border-box; |
| 146 | + color: rgba(51, 51, 51, 0.8); |
| 147 | + cursor: pointer; |
| 148 | + display: block; |
| 149 | + padding: 6px 16px; |
| 150 | + border-left: 1px solid #aaa; |
| 151 | + border-right: 1px solid #aaa; |
| 152 | + } |
| 153 | + |
| 154 | + .Select-option:last-child { |
| 155 | + border-bottom-right-radius: 5px !important; |
| 156 | + border-bottom-left-radius: 5px !important; |
| 157 | + border-bottom: 1px solid #aaa; |
| 158 | + } |
| 159 | + |
| 160 | + .Select-option:first-child { |
| 161 | + border-top: 1px solid #aaa; |
| 162 | + border-top-left-radius: $base-unit; |
| 163 | + border-top-right-radius: $base-unit; |
| 164 | + } |
| 165 | + |
| 166 | + .Select-option:hover { |
| 167 | + color: $tc-black; |
| 168 | + } |
| 169 | + |
| 170 | + .Select-option.is-selected { |
| 171 | + color: $tc-black; |
| 172 | + font-weight: 500; |
| 173 | + background: $tc-white; |
| 174 | + } |
| 175 | + |
| 176 | + .Select-option.is-focused { |
| 177 | + background: $tc-white; |
| 178 | + } |
| 179 | + |
| 180 | + .Select-noresults { |
| 181 | + box-sizing: border-box; |
| 182 | + color: $tc-gray-90; |
| 183 | + cursor: default; |
| 184 | + display: block; |
| 185 | + padding: 8px 20px; |
| 186 | + } |
| 187 | + } |
49 | 188 | }
|
50 | 189 |
|
51 | 190 | .view-options {
|
@@ -92,142 +231,4 @@ $down-arrow-size: $base-unit;
|
92 | 231 | border-top: $down-arrow-size solid $tc-gray-50;
|
93 | 232 | margin-left: 3 * $base-unit;
|
94 | 233 | }
|
95 |
| - |
96 |
| - :global { |
97 |
| - // 'Sort by' dropdown |
98 |
| - .Select { |
99 |
| - @include roboto-regular; |
100 |
| - } |
101 |
| - |
102 |
| - .is-focused { |
103 |
| - font-weight: 700; |
104 |
| - } |
105 |
| - |
106 |
| - .Select-control { |
107 |
| - line-height: 12px; |
108 |
| - padding: 4px 35px 4px 10px; |
109 |
| - width: 208px; |
110 |
| - height: 40px; |
111 |
| - background-color: $tc-white; |
112 |
| - font-weight: 400; |
113 |
| - font-size: 12px; |
114 |
| - text-transform: none; |
115 |
| - border: 1px solid #aaa; |
116 |
| - color: $tc-gray-90; |
117 |
| - position: relative; |
118 |
| - overflow: hidden; |
119 |
| - box-sizing: border-box; |
120 |
| - } |
121 |
| - |
122 |
| - .Select-input { |
123 |
| - width: 100% !important; |
124 |
| - height: 0; |
125 |
| - padding: 0; |
126 |
| - opacity: 0; |
127 |
| - position: absolute; |
128 |
| - } |
129 |
| - |
130 |
| - .Select--single > .Select-control .Select-value { |
131 |
| - position: static; |
132 |
| - padding: 0; |
133 |
| - overflow: visible; |
134 |
| - } |
135 |
| - |
136 |
| - .Select.is-focused:not(.is-open) > .Select-control { |
137 |
| - border-color: #137d60 !important; |
138 |
| - } |
139 |
| - |
140 |
| - .Select-value-label { |
141 |
| - @include roboto-regular; |
142 |
| - |
143 |
| - font-size: 400; |
144 |
| - font-size: 14px; |
145 |
| - line-height: 22px; |
146 |
| - color: $tco-black; |
147 |
| - vertical-align: middle; |
148 |
| - } |
149 |
| - |
150 |
| - .Select-arrow-zone { |
151 |
| - content: ' '; |
152 |
| - display: block; |
153 |
| - height: 0; |
154 |
| - position: absolute; |
155 |
| - right: 17px; |
156 |
| - top: 50%; |
157 |
| - width: 0; |
158 |
| - |
159 |
| - svg { |
160 |
| - width: 10px; |
161 |
| - height: 10px; |
162 |
| - } |
163 |
| - } |
164 |
| - |
165 |
| - .Select-menu-outer { |
166 |
| - width: 100%; |
167 |
| - color: $tc-gray-90; |
168 |
| - font-weight: 400; |
169 |
| - font-size: 12px; |
170 |
| - background-color: $tc-white; |
171 |
| - box-sizing: border-box; |
172 |
| - margin-top: 2px; |
173 |
| - padding: 4px 0; |
174 |
| - position: absolute; |
175 |
| - top: 100%; |
176 |
| - right: 0; |
177 |
| - z-index: 1000; |
178 |
| - -webkit-overflow-scrolling: touch; |
179 |
| - border: none !important; |
180 |
| - } |
181 |
| - |
182 |
| - .Select-menu { |
183 |
| - max-height: none; |
184 |
| - overflow-y: visible; |
185 |
| - height: 22px; |
186 |
| - font-size: 14px; |
187 |
| - } |
188 |
| - |
189 |
| - .Select-option { |
190 |
| - box-sizing: border-box; |
191 |
| - color: rgba(51, 51, 51, 0.8); |
192 |
| - cursor: pointer; |
193 |
| - display: block; |
194 |
| - padding: 6px 16px; |
195 |
| - border-left: 1px solid #aaa; |
196 |
| - border-right: 1px solid #aaa; |
197 |
| - } |
198 |
| - |
199 |
| - .Select-option:last-child { |
200 |
| - border-bottom-right-radius: 5px !important; |
201 |
| - border-bottom-left-radius: 5px !important; |
202 |
| - border-bottom: 1px solid #aaa; |
203 |
| - } |
204 |
| - |
205 |
| - .Select-option:first-child { |
206 |
| - border-top: 1px solid #aaa; |
207 |
| - border-top-left-radius: $base-unit; |
208 |
| - border-top-right-radius: $base-unit; |
209 |
| - } |
210 |
| - |
211 |
| - .Select-option:hover { |
212 |
| - color: $tc-black; |
213 |
| - } |
214 |
| - |
215 |
| - .Select-option.is-selected { |
216 |
| - color: $tc-black; |
217 |
| - font-weight: 500; |
218 |
| - background: $tc-white; |
219 |
| - } |
220 |
| - |
221 |
| - .Select-option.is-focused { |
222 |
| - background: $tc-white; |
223 |
| - } |
224 |
| - |
225 |
| - .Select-noresults { |
226 |
| - box-sizing: border-box; |
227 |
| - color: $tc-gray-90; |
228 |
| - cursor: default; |
229 |
| - display: block; |
230 |
| - padding: 8px 20px; |
231 |
| - } |
232 |
| - } |
233 | 234 | }
|
0 commit comments