forked from ionic-team/ionic-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode.css
More file actions
92 lines (81 loc) · 1.54 KB
/
Copy pathcode.css
File metadata and controls
92 lines (81 loc) · 1.54 KB
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
@import './prismjs-theme.css';
@import './prismjs-shell-theme.css';
docs-code {
display: block;
position: relative;
}
docs-code:before {
color: #bdc5d1;
content: attr(language);
font-family: var(--code-font-family);
font-size: 10px;
letter-spacing: 0.05em;
line-height: 1;
padding: 0.75em;
position: absolute;
right: 0;
text-transform: uppercase;
top: 0;
}
docs-code[language="shell"] pre {
white-space: pre-wrap;
}
.code-text__copy{
position: absolute;
right: 0;
top: -1.6rem;
height: 20px;
}
.code-text__copy-link,
.code-text__copy-confirmation {
padding: 4px 5px;
font-size: 12px;
line-height: 12px;
font-weight: 600;
position: absolute;
right: 0;
top: 0;
}
.code-text__copy-link {
transition:
0.2s transform ,
0.2s opacity,
0.2s color;
color: #70A4FF;
background-color: #E0EEFF;
border-radius: 4px;
display: inline-block;
cursor: pointer;
opacity: 1;
transform: translate3d(0,0,0);
z-index: 5;
}
.code-text__copy-link:hover {
color: var(--blue);
}
.code-text__copy-confirmation {
transition:
0.2s transform ,
0.2s opacity;
color: #0ec254;
opacity: 0;
transform: translate3d(0,5px,0);
z-index: 1;
display: flex;
align-items: center;
height: 20px;
padding: 0;
}
.code-text__copy-confirmation svg {
fill: #0ec254;
margin-right: -4px;
}
.show-confirmation .code-text__copy-link {
opacity: 0;
transform: translate3d(0,-5px,0);
pointer-events: none;
}
.show-confirmation .code-text__copy-confirmation {
opacity: 1;
transform: translate3d(0,0,0);
}