|
193 | 193 | @include css-vars($theme);
|
194 | 194 | $variant: map.get($theme, '_meta', 'variant');
|
195 | 195 |
|
196 |
| - $item-padding-inline: ( |
197 |
| - comfortable: rem(24px), |
198 |
| - cosy: rem(20px), |
199 |
| - compact: rem(16px) |
200 |
| - ); |
201 |
| - |
202 |
| - $prefix-margin: ( |
203 |
| - comfortable: rem(20px), |
204 |
| - cosy: rem(16px), |
205 |
| - compact: rem(12px) |
206 |
| - ); |
207 |
| - |
208 |
| - $suffix-margin: ( |
209 |
| - comfortable: rem(8px), |
210 |
| - cosy: rem(6px), |
211 |
| - compact: rem(4px) |
212 |
| - ); |
213 |
| - |
214 |
| - $header-item-padding-inline: ( |
215 |
| - comfortable: rem(16px), |
216 |
| - cosy: rem(12px), |
217 |
| - compact: rem(8px) |
218 |
| - ); |
219 |
| - |
220 | 196 | %igx-drop-down {
|
221 | 197 | position: absolute;
|
222 | 198 | }
|
|
241 | 217 | display: flex;
|
242 | 218 | width: 100%;
|
243 | 219 | align-items: center;
|
| 220 | + gap: rem(8px) |
244 | 221 | }
|
245 | 222 |
|
246 | 223 | %igx-drop-down__inner {
|
|
249 | 226 | margin-inline-end: auto;
|
250 | 227 | }
|
251 | 228 |
|
| 229 | + %igx-drop-down__inner + [igxSuffix], |
| 230 | + %igx-drop-down__inner + igx-suffix { |
| 231 | + margin-inline-end: 0; |
| 232 | + } |
| 233 | + |
252 | 234 | %igx-drop-down__header,
|
253 | 235 | %igx-drop-down__item {
|
254 | 236 | --component-size: var(--ig-size, var(--ig-size-large));
|
|
261 | 243 | position: relative;
|
262 | 244 | height: sizable(#{rem(28px)}, #{rem(32px)}, #{rem(40px)});
|
263 | 245 |
|
264 |
| - igx-prefix, |
265 |
| - [igxPrefix] { |
266 |
| - @extend %igx-drop-down__prefix; |
267 |
| - } |
268 |
| - |
269 |
| - igx-suffix, |
270 |
| - [igxSuffix] { |
271 |
| - @extend %igx-drop-down__suffix; |
272 |
| - } |
273 |
| - |
274 | 246 | igx-divider {
|
275 | 247 | position: absolute;
|
276 | 248 | width: 100%;
|
277 | 249 | inset-inline-start: 0;
|
278 | 250 | bottom: 0;
|
279 | 251 | }
|
| 252 | + |
| 253 | + igx-icon { |
| 254 | + justify-content: center; |
| 255 | + --component-size: var(--ig-size, var(--ig-size-large)); |
| 256 | + } |
280 | 257 | }
|
281 | 258 |
|
282 | 259 | %igx-drop-down__item {
|
283 | 260 | color: var-get($theme, 'item-text-color');
|
284 | 261 | cursor: pointer;
|
285 |
| - padding-inline: map.get($item-padding-inline, 'comfortable'); |
286 |
| - padding-block: 0; |
| 262 | + padding-inline: pad-inline(rem(16px), rem(20px), rem(24px)); |
287 | 263 | border-radius: var-get($theme, 'item-border-radius');
|
288 | 264 |
|
289 | 265 | &:focus {
|
|
299 | 275 | }
|
300 | 276 | }
|
301 | 277 |
|
302 |
| - %igx-drop-down__item--cosy { |
303 |
| - padding-inline: map.get($item-padding-inline, 'cosy') |
304 |
| - } |
305 | 278 |
|
306 | 279 | %igx-drop-down__item--cosy,
|
307 | 280 | %igx-drop-down__header--cosy {
|
308 | 281 | --component-size: var(--ig-size, var(--ig-size-medium));
|
309 | 282 |
|
310 |
| - igx-prefix, |
311 |
| - [igxPrefix] { |
312 |
| - @extend %igx-drop-down__prefix--cosy; |
313 |
| - } |
314 |
| - |
315 |
| - igx-suffix, |
316 |
| - [igxSuffix] { |
317 |
| - @extend %igx-drop-down__suffix--cosy; |
| 283 | + igx-icon { |
| 284 | + --component-size: var(--ig-size, var(--ig-size-medium)) |
318 | 285 | }
|
319 | 286 | }
|
320 | 287 |
|
321 |
| - %igx-drop-down__item--compact { |
322 |
| - padding-inline: map.get($item-padding-inline, 'compact'); |
323 |
| - } |
324 |
| - |
325 | 288 | %igx-drop-down__item--compact,
|
326 | 289 | %igx-drop-down__header--compact {
|
327 | 290 | --component-size: var(--ig-size, var(--ig-size-small));
|
328 | 291 |
|
329 |
| - igx-prefix, |
330 |
| - [igxPrefix] { |
331 |
| - @extend %igx-drop-down__prefix--compact; |
332 |
| - } |
333 |
| - |
334 |
| - igx-suffix, |
335 |
| - [igxSuffix] { |
336 |
| - @extend %igx-drop-down__suffix--compact; |
337 |
| - } |
338 |
| - } |
339 |
| - |
340 |
| - %igx-drop-down__prefix { |
341 |
| - margin-inline-end: map.get($prefix-margin, 'comfortable'); |
342 |
| - } |
343 |
| - |
344 |
| - %igx-drop-down__suffix { |
345 |
| - + igx-suffix, |
346 |
| - + [igxSuffix] { |
347 |
| - margin-inline-start: map.get($suffix-margin, 'comfortable'); |
348 |
| - } |
349 |
| - } |
350 |
| - |
351 |
| - %igx-drop-down__prefix--cosy { |
352 |
| - margin-inline-end: map.get($prefix-margin, 'cosy'); |
353 |
| - } |
354 |
| - |
355 |
| - %igx-drop-down__suffix--cosy { |
356 |
| - + igx-suffix, |
357 |
| - + [igxSuffix] { |
358 |
| - margin-inline-start: map.get($suffix-margin, 'cosy'); |
359 |
| - } |
360 |
| - } |
361 |
| - |
362 |
| - %igx-drop-down__prefix--compact { |
363 |
| - margin-inline-end: map.get($prefix-margin, 'compact'); |
364 |
| - } |
365 |
| - |
366 |
| - %igx-drop-down__suffix--compact { |
367 |
| - + igx-suffix, |
368 |
| - + [igxSuffix] { |
369 |
| - margin-inline-start: map.get($suffix-margin, 'compact'); |
| 292 | + igx-icon { |
| 293 | + --component-size: var(--ig-size, var(--ig-size-small)); |
370 | 294 | }
|
371 | 295 | }
|
372 | 296 |
|
373 | 297 | %igx-drop-down__header {
|
374 | 298 | color: var-get($theme, 'header-text-color');
|
375 | 299 | pointer-events: none;
|
376 |
| - padding-inline: map.get($header-item-padding-inline, 'comfortable'); |
377 |
| - padding-block: 0; |
378 |
| - } |
379 |
| - |
380 |
| - %igx-drop-down__header--cosy { |
381 |
| - padding-inline: map.get($header-item-padding-inline, 'cosy'); |
382 |
| - } |
383 |
| - |
384 |
| - %igx-drop-down__header--compact { |
385 |
| - padding-inline: map.get($header-item-padding-inline, 'compact'); |
| 300 | + padding-inline: pad-inline(rem(8px), rem(12px), rem(16px)); |
386 | 301 | }
|
387 | 302 |
|
388 | 303 | %igx-drop-down__group {
|
|
0 commit comments