forked from angular/components
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautocomplete.css
More file actions
123 lines (103 loc) · 2.31 KB
/
autocomplete.css
File metadata and controls
123 lines (103 loc) · 2.31 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
.example-autocomplete {
display: flex;
position: relative;
align-items: center;
/* stylelint-disable-next-line material/no-prefixes -- Valid in all remotely recent browsers. */
width: fit-content;
}
.example-search-icon,
.example-check-icon {
font-size: 1.25rem;
pointer-events: none;
}
.example-search-icon {
left: 0.75rem;
position: absolute;
}
[ngComboboxInput] {
width: 13rem;
font-size: 0.9rem;
border-radius: var(--mat-sys-corner-extra-small);
padding: 0.7rem 2.5rem;
outline-color: var(--mat-sys-primary);
border: 1px solid var(--mat-sys-outline);
background-color: var(--mat-sys-surface);
}
[ngComboboxInput][aria-disabled='true'] {
cursor: default;
opacity: 0.5;
background-color: var(--mat-sys-surface-dim);
}
[ngCombobox]:has([aria-expanded='false']) .example-popup {
display: none;
}
.example-clear-button {
position: absolute;
right: 0.5rem;
background-color: transparent;
border: none;
display: flex;
width: 2rem;
height: 2rem;
align-items: center;
cursor: pointer;
}
.example-clear-icon {
font-size: 1.25rem;
}
.example-popup {
width: 100%;
margin-top: 2px;
padding: 0.1rem;
max-height: 11rem;
border-radius: var(--mat-sys-corner-extra-small);
background-color: var(--mat-sys-surface);
border: 1px solid var(--mat-sys-outline);
}
.example-no-results {
padding: 1rem;
}
[ngListbox] {
gap: 2px;
height: 100%;
display: flex;
overflow: auto;
flex-direction: column;
}
[ngOption] {
display: flex;
cursor: pointer;
align-items: center;
margin: 1px;
font-size: 0.9rem;
padding: 0.7rem;
border-radius: var(--mat-sys-corner-extra-small);
}
[ngOption][aria-disabled='true'] {
cursor: default;
opacity: 0.5;
background-color: var(--mat-sys-surface-dim);
}
[ngOption]:hover {
background-color: color-mix(in srgb, var(--mat-sys-primary) 5%, transparent);
}
[ngOption][data-active='true'] {
outline-offset: -2px;
outline: 2px solid var(--mat-sys-primary);
}
[ngOption][aria-selected='true'] {
color: var(--mat-sys-primary);
background-color: color-mix(in srgb, var(--mat-sys-primary) 10%, transparent);
}
[ngOption]:not([aria-selected='true']) .example-check-icon {
display: none;
}
.example-option-label {
flex: 1;
}
.example-check-icon {
font-size: 0.9rem;
}
::placeholder {
color: var(--mat-sys-on-surface-variant);
}