forked from ionic-team/ionic-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdropdown.css
More file actions
111 lines (95 loc) · 1.8 KB
/
Copy pathdropdown.css
File metadata and controls
111 lines (95 loc) · 1.8 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
.Dropdown {
display: inline-block;
position: relative;
z-index: 1;
}
.Dropdown-button {
appearance: none;
background: none;
border: none;
color: inherit;
font-family: inherit;
font-size: inherit;
font-weight: inherit;
line-height: inherit;
padding: initial;
white-space: nowrap;
}
.Dropdown-button .Dropdown-icon {
height: 14px;
width: 22px;
fill: #CED6E0;
}
.Dropdown-button .Dropdown-icon + .Dropdown-arrow {
margin-left: 0px;
fill: #CED6E0;
vertical-align: 2px;
}
.Dropdown:focus,
.Dropdown-button:focus {
outline: none;
}
.Dropdown-button:hover {
cursor: pointer;
}
.Dropdown-arrow {
fill: currentColor;
height: 0.8em;
margin-bottom: -0.0875em;
width: 0.8em;
margin-left: .8em;
}
.Dropdown.is-open .Dropdown-arrow {
transform: rotate(180deg);
}
.Dropdown-panel {
background-color: var(--background);
border-radius: 6px;
border: none;
box-shadow:
0px 4px 12px 0px rgba(0,0,0,0.08),
0px 2px 4px 0px rgba(0,0,0,0.08);
display: none;
min-width: 100%;
overflow: hidden;
pointer-events: none;
position: absolute;
top: 100%;
visibility: hidden;
}
.Dropdown.is-open .Dropdown-panel {
display: initial;
pointer-events: auto;
visibility: visible;
}
.Dropdown--left .Dropdown-panel {
left: 0;
}
.Dropdown--right .Dropdown-panel {
right: 0;
}
.Dropdown--center .Dropdown-panel {
left: 50%;
transform: translateX(-50%);
}
.Dropdown-panel a {
display: flex;
justify-content: space-between;
padding: 0.5em 1em;
}
.Dropdown-panel svg {
height: 1em;
width: 1em;
margin-left: 4px;
}
@media (hover: hover) {
.Dropdown-panel a:hover {
background-color: rgba(0, 0, 0, 0.025);
}
}
.Dropdown-panel > section {
padding: 0.5em 0;
}
.Dropdown-panel > section:not(:last-child) {
border-bottom: solid 1px var(--line-rule-color);
}