-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathstyles.module.css
More file actions
115 lines (101 loc) · 2.02 KB
/
styles.module.css
File metadata and controls
115 lines (101 loc) · 2.02 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
.container {
position: relative;
}
.button {
display: inline-flex;
align-items: center;
gap: 0.5rem;
color: var(--ifm-menu-color);
font-size: 0.85rem;
font-weight: 500;
border: 0;
padding: 0.5rem 0.75rem;
cursor: pointer;
border-radius: var(--ifm-global-radius);
background-color: transparent;
transition: background-color var(--ifm-transition-fast)
var(--ifm-transition-timing-default);
&:hover {
background-color: var(--ifm-menu-color-background-hover);
}
}
.iconContainer {
position: relative;
width: 16px;
height: 16px;
}
.icon {
position: absolute;
inset: 0;
transition:
opacity 0.15s ease-out,
transform 0.15s ease-out;
&.visible {
opacity: 1;
transform: scale(1);
}
&.hidden {
opacity: 0;
transform: scale(0.5);
}
}
.chevron {
transition: transform 0.15s ease-out;
&.open {
transform: rotate(180deg);
}
}
.dropdown {
position: absolute;
top: 100%;
left: 0;
z-index: 100;
min-width: 160px;
margin-top: 0.25rem;
padding: 0.25rem 0;
background-color: var(--ifm-background-surface-color);
border: 1px solid var(--ifm-color-emphasis-200);
border-radius: var(--ifm-global-radius);
box-shadow: var(--ifm-global-shadow-md);
animation: dropdownFadeIn 0.15s ease-out;
&.closing {
animation: dropdownFadeOut 0.15s ease-out forwards;
}
}
@keyframes dropdownFadeIn {
from {
opacity: 0;
transform: translateY(-4px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes dropdownFadeOut {
from {
opacity: 1;
transform: translateY(0);
}
to {
opacity: 0;
transform: translateY(-4px);
}
}
.item {
display: block;
width: 100%;
padding: 0.5rem 0.75rem;
font-size: 0.85rem;
color: var(--ifm-menu-color);
text-align: left;
background: none;
border: none;
cursor: pointer;
outline: none;
transition: background-color var(--ifm-transition-fast)
var(--ifm-transition-timing-default);
&:focus {
background-color: var(--ifm-menu-color-background-hover);
}
}