forked from jupyter-book/myst-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhover.css
41 lines (37 loc) · 821 Bytes
/
hover.css
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
.hover-card-content {
animation-duration: 0.6s;
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
z-index: 10;
}
.hover-card-content[data-side='top'] {
animation-name: slideUp;
}
.hover-card-content[data-side='bottom'] {
animation-name: slideDown;
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.hover-document {
@apply text-sm bg-white border rounded shadow-xl dark:bg-slate-800 border-gray-50;
}
.hover-link {
@apply font-normal text-blue-700 underline-offset-2 decoration-slate-200 dark:decoration-slate-600 dark:text-blue-100 hover:text-blue-500;
}