forked from carbon-design-system/carbon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_multiselect.scss
More file actions
108 lines (92 loc) · 2.69 KB
/
_multiselect.scss
File metadata and controls
108 lines (92 loc) · 2.69 KB
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
//
// Copyright IBM Corp. 2016, 2018
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//
@use '../list-box';
@use '../../config' as *;
@use '../../motion' as *;
@use '../../spacing' as *;
@use '../../theme' as *;
@use '../../utilities/convert' as *;
@use '../../utilities/focus-outline' as *;
/// Multi select styles
/// @access public
/// @group multi-select
@mixin multiselect {
.#{$prefix}--multi-select .#{$prefix}--tag {
min-width: auto;
margin: 0 $spacing-03 0 0;
}
.#{$prefix}--multi-select--filterable .#{$prefix}--tag {
margin: 0 $spacing-03 0 $spacing-05;
}
.#{$prefix}--multi-select .#{$prefix}--list-box__menu {
min-width: auto;
}
.#{$prefix}--multi-select
.#{$prefix}--list-box__menu-item__option
.#{$prefix}--checkbox-wrapper {
display: flex;
width: 100%;
height: 100%;
align-items: center;
}
.#{$prefix}--multi-select
.#{$prefix}--list-box__menu-item__option
.#{$prefix}--checkbox-label {
display: inline-block;
overflow: hidden;
width: 100%;
padding-left: rem(28px);
text-overflow: ellipsis;
white-space: nowrap;
}
.#{$prefix}--multi-select
.#{$prefix}--list-box__menu-item__option
> .#{$prefix}--form-item {
flex-direction: row;
margin: 0;
}
.#{$prefix}--multi-select
.#{$prefix}--list-box__menu-item
.#{$prefix}--checkbox:checked
~ .#{$prefix}--checkbox-label-text {
color: $text-primary;
}
.#{$prefix}--multi-select--filterable {
transition: outline-color $duration-fast-01 motion(standard, productive);
}
.#{$prefix}--multi-select--filterable.#{$prefix}--combo-box
.#{$prefix}--text-input {
border: rem(2px) solid transparent;
background-clip: padding-box;
outline: none;
}
.#{$prefix}--multi-select--filterable--input-focused {
@include focus-outline('outline');
}
.#{$prefix}--multi-select--filterable.#{$prefix}--multi-select--selected
.#{$prefix}--text-input {
padding-left: 0;
}
.#{$prefix}--multi-select--filterable.#{$prefix}--list-box--disabled:hover:not(.#{$prefix}--multi-select--filterable)
.#{$prefix}--text-input {
background-color: $field;
}
.#{$prefix}--multi-select--filterable
.#{$prefix}--list-box__selection--multi {
margin: 0 0 0 $spacing-05;
}
.#{$prefix}--multi-select--filterable.#{$prefix}--multi-select--inline,
.#{$prefix}--multi-select--filterable.#{$prefix}--multi-select--inline
.#{$prefix}--text-input {
border-bottom: 0;
background-color: transparent;
}
.#{$prefix}--multi-select:not(.#{$prefix}--list-box--expanded)
.#{$prefix}--list-box__menu {
visibility: hidden;
}
}