-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocinfo-footer.html
101 lines (90 loc) · 1.81 KB
/
docinfo-footer.html
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
<style>
.doc pre.highlight {
position: relative;
padding: 0;
overflow: visible;
background-color: #f7f7f8;
}
.doc pre.highlight code {
padding: 1em;
overflow-x: auto;
}
.doc pre.highlight:hover code[data-lang]::before {
display: none;
}
.doc .source-toolbox {
display: flex;
position: absolute;
visibility: hidden;
top: 0.25rem;
right: 0.5rem;
line-height: 1;
color: #808080;
font-size: 0.85rem;
}
.doc .listingblock:hover .source-toolbox {
visibility: visible;
}
.doc .source-toolbox .source-lang {
text-transform: uppercase;
}
.doc .source-toolbox > :not(:last-child)::after {
content: "|";
letter-spacing: 0;
padding: 0 1ch;
}
.doc .source-toolbox .copy-button {
display: flex;
flex-direction: column;
align-items: center;
background: none;
border: none;
color: inherit;
outline: none;
padding: 0;
font-size: inherit;
line-height: inherit;
width: 1em;
height: 1em;
}
.doc .source-toolbox .copy-icon {
flex: none;
width: inherit;
height: inherit;
filter: invert(50.2%);
}
.doc .source-toolbox .copy-toast {
flex: none;
position: relative;
display: inline-flex;
justify-content: center;
margin-top: 1em;
border-radius: 0.25em;
padding: 0.5em;
cursor: auto;
opacity: 0;
transition: opacity 0.5s ease 0.75s;
background: rgba(0, 0, 0, 0.8);
color: #fff;
white-space: nowrap;
}
.doc .source-toolbox .copy-toast::after {
content: "";
position: absolute;
top: 0;
width: 1em;
height: 1em;
border: 0.55em solid transparent;
border-left-color: rgba(0, 0, 0, 0.8);
transform: rotate(-90deg) translateX(50%) translateY(50%);
transform-origin: left;
}
.doc .source-toolbox .copy-button.clicked .copy-toast {
opacity: 1;
transition: none;
}
</style>
<script>
uiRootPath = '.'
</script>
<script src="copy-to-clipboard.js"></script>