-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathstyles.css
61 lines (55 loc) · 1.19 KB
/
styles.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
.docsify-copy-code-button,
.docsify-copy-code-button > span {
cursor: pointer;
transition: all 0.25s ease;
}
.docsify-copy-code-button {
position: absolute;
z-index: 1;
top: 0;
right: 0;
overflow: visible;
padding: 0.65em 0.8em;
border: 0;
border-radius: 0;
outline: 0;
font-size: 1em;
background: #808080;
background: var(--theme-color, #808080);
color: #fff;
opacity: 0;
}
.docsify-copy-code-button > span {
border-radius: 3px;
background: inherit;
pointer-events: none;
}
.docsify-copy-code-button > .error,
.docsify-copy-code-button > .success {
position: absolute;
z-index: -100;
top: 50%;
right: 0;
padding: 0.5em 0.65em;
font-size: 0.825em;
opacity: 0;
transform: translate(0, -50%);
}
.docsify-copy-code-button.error > .error,
.docsify-copy-code-button.success > .success {
right: 100%;
opacity: 1;
transform: translate(-25%, -50%);
}
.docsify-copy-code-button:focus,
pre:hover .docsify-copy-code-button {
opacity: 1;
}
.docsify-copy-code-button > [aria-live] {
position: absolute;
left: -10000px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
}