File tree Expand file tree Collapse file tree 2 files changed +38
-4
lines changed
projects/igniteui-angular/src/lib/core/styles/components/drop-down Expand file tree Collapse file tree 2 files changed +38
-4
lines changed Original file line number Diff line number Diff line change 24
24
@extend %igx-drop-down__item !optional ;
25
25
}
26
26
27
+ @include e (item, $m : cosy) {
28
+ @extend %igx-drop-down__item--cosy !optional ;
29
+ }
30
+
31
+ @include e (item, $m : compact ) {
32
+ @extend %igx-drop-down__item--compact !optional ;
33
+ }
34
+
27
35
@include e (item, $m : focused) {
28
36
@extend %igx-drop-down__item--focused !optional ;
29
37
}
44
52
@extend %igx-drop-down__header !optional ;
45
53
}
46
54
55
+ @include e (header , $m : cosy) {
56
+ @extend %igx-drop-down__header--cosy !optional ;
57
+ }
58
+
59
+ @include e (header , $m : cosy) {
60
+ @extend %igx-drop-down__header--compact !optional ;
61
+ }
62
+
47
63
@include e (group) {
48
64
@extend %igx-drop-down__group !optional ;
49
65
}
Original file line number Diff line number Diff line change 181
181
@mixin igx-drop-down ($theme ) {
182
182
@include igx-root-css-vars ($theme );
183
183
184
- $desktop-item-height : 48px ;
185
- $mobile-item-height : 32px ;
184
+ $item-height : (
185
+ confortable: rem (48px ),
186
+ cosy: rem (32px ),
187
+ compoact: rem (24px )
188
+ );
186
189
187
190
$item-padding : 16px ;
188
-
189
191
$desktop-header-padding : 16px ;
190
192
$mobile-header-padding : 8px ;
191
193
223
225
align-items : center ;
224
226
width : 100% ;
225
227
white-space : nowrap ;
228
+ height : map-get ($item-height , ' confortable' );
229
+ }
230
+
231
+ %igx-drop-down__item--cosy {
232
+ height : map-get ($item-height , ' cosy' );
233
+ }
234
+
235
+ %igx-drop-down__item--compact {
236
+ height : map-get ($item-height , ' compact' );
226
237
}
227
238
228
239
%igx-drop-down__item {
229
240
color : --var ($theme , ' item-text-color' );
230
241
cursor : pointer ;
231
- height : rem ($desktop-item-height );
232
242
padding : 0 rem ($item-padding );
233
243
234
244
& :focus {
257
267
padding : rem (8px ) rem ($desktop-header-padding );
258
268
}
259
269
270
+ %igx-drop-down__header--cosy {
271
+ height : map-get ($item-height , ' cosy' );
272
+ }
273
+
274
+ %igx-drop-down__header--compact {
275
+ height : map-get ($item-height , ' compact' );
276
+ }
277
+
260
278
%igx-drop-down__group {
261
279
pointer-events : auto ;
262
280
You can’t perform that action at this time.
0 commit comments