forked from dovy/vuepress-plugin-clipboard-copy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
executable file
·51 lines (44 loc) · 846 Bytes
/
style.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
.code-copy {
color: #aaa;
display: inline-block;
cursor: pointer;
}
.code-copy::after {
position: absolute;
right: calc(100% + 8px);
background: #424242e5;
}
.code-copy._suc::after {
content: "Content Copied!";
opacity: 0; /* for animation to work */
animation: fadeout 3s;
}
.code-copy._err::after {
content: "Oops, an error occurred!";
opacity: 0; /* for animation to work */
animation: fadeout 3s;
}
div[class*="language-"] pre .code-copy {
position: absolute;
z-index: 1000;
top: 35px;
right: 5px;
width: 24px;
height: 30px;
background: no-repeat url('./copy.svg');
opacity: 0;
}
div[class*="language-"] pre:hover .code-copy {
opacity: 1;
}
.content pre, .content pre[class*=language-] {
overflow-y: hidden;
}
@keyframes fadeout {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}