-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappend-head.html
71 lines (71 loc) · 1.34 KB
/
append-head.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
<style>
/* hover 显示原文 */
p[data-x-en],
li[data-x-en] {
position: relative;
}
p[data-x-en]:hover::after,
li[data-x-en]:hover::after {
visibility: visible;
opacity: 1;
}
p[data-x-en]::after,
li[data-x-en]::after {
content: attr(data-x-en);
display: block;
font-size: 12px;
transition: all 0.2s 0.3s;
visibility: hidden;
opacity: 0;
background: #cccccc;
z-index: 99;
border-radius: 4px;
padding: 5px 10px;
position: absolute;
top: 100%;
left: 0;
}
/* 译者注释内容 */
div[type='comment'] {
border-radius: 4px;
padding: 5px 10px;
font-size: 12px;
background: #eee;
}
div[type='comment']::before {
content: '译者注: ';
font-weight: 900;
}
header a.logo {
position: relative;
}
header a.logo::after {
content: '中文';
position: absolute;
left: calc(100% + 5px);
font-size: 12px;
width: 50px;
top: -5px;
}
#banner-info {
position: fixed;
top: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
background: rgba(255, 255, 255, 0.9);
font-size: 12px;
padding: 0;
z-index: 999;
}
#add-info {
font-size: 14px;
}
blockquote {
border-left: 5px solid #ccc;
padding-left: 10px;
margin-left: 0;
}
</style>