forked from pytorch/pytorch.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsphinx-dropdown.css
94 lines (92 loc) · 2.2 KB
/
sphinx-dropdown.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
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
.octicon {
display: inline-block;
vertical-align: text-top;
fill: currentColor;
}
details.dropdown .summary-title {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
/* don't overlap the chevron */
padding-right: 3em!important;
}
details.dropdown:hover {
cursor: pointer;
}
details.dropdown .summary-content {
cursor: default;
}
details.dropdown summary {
padding: 1em;
/* hide the default triangle marker */
list-style: none;
}
/* chrome doesn't yet support list-style */
details.dropdown summary::-webkit-details-marker {
display: none;
}
details.dropdown summary:focus {
outline: none;
}
details.dropdown summary:hover .summary-up svg,
details.dropdown summary:hover .summary-down svg {
opacity: 1;
}
details.dropdown .summary-up svg,
details.dropdown .summary-down svg {
opacity: 0.6;
}
details.dropdown .summary-up,
details.dropdown .summary-down {
pointer-events: none;
position: absolute;
top: 0.75em;
right: 1em;
}
details.dropdown .summary-up svg,
details.dropdown .summary-down svg {
display: block;
}
details.dropdown[open] .summary-down{
visibility: hidden;
/* z-index: -1; */
}
details.dropdown:not([open]) .summary-up{
visibility: hidden;
/* z-index: -1; */
}
/* Ellipsis added when no title */
details.dropdown summary .octicon.no-title {
vertical-align: middle;
}
details.dropdown[open] summary .octicon.no-title{
visibility: hidden;
}
/* Transition animation */
details.dropdown.fade-in[open] summary ~ * {
animation: fade-in .5s ease-in-out;
-moz-animation: fade-in .5s ease-in-out ;
-webkit-animation: fade-in .5s ease-in-out
}
details.dropdown.fade-in-slide-down[open] summary ~ * {
animation: fade-in .5s ease-in-out, slide-down .5s ease-in-out;
-moz-animation: fade-in .5s ease-in-out, slide-down .5s ease-in-out ;
-webkit-animation: fade-in .5s ease-in-out, slide-down .5s ease-in-out
}
@keyframes fade-in {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes slide-down {
0% {
transform: translate(0px, -10px)
}
100% {
transform: translate(0px, 0px)
}
}