-
Notifications
You must be signed in to change notification settings - Fork 53
/
style.css
114 lines (101 loc) · 2.23 KB
/
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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
.caption {
color: #777;
margin-top: 10px;
}
p code {
white-space: inherit;
}
pre {
word-break: normal;
word-wrap: normal;
}
pre code {
white-space: inherit;
}
/* Sidebar formating --------------------------------------------*/
.sidebar {
border: 1px solid #ccc;
border-left-width: 5px;
border-radius: 5px;
padding: 1em;
margin: 1em 0;
}
.rmdwarning {
border: 1px solid #EA4335;
border-left-width: 5px;
border-radius: 5px;
padding: 1em;
margin: 1em 0;
}
.rmdnote {
border: 1px solid #FBBC05;
border-left-width: 5px;
border-radius: 5px;
padding: 1em;
margin: 1em 0;
}
.rmdtip {
border: 1px solid #34A853;
border-left-width: 5px;
border-radius: 5px;
padding: 1em;
margin: 1em 0;
}
.book .book-body .page-wrapper .page-inner section.normal div.rmdwarning > :first-child,
.book .book-body .page-wrapper .page-inner section.normal div.rmdnote > :first-child,
.book .book-body .page-wrapper .page-inner section.normal div.rmdtip > :first-child,
.book .book-body .page-wrapper .page-inner section.normal div.sidebar > :first-child {
margin-top: 0;
}
.book .book-body .page-wrapper .page-inner section.normal div.rmdwarning > :last-child,
.book .book-body .page-wrapper .page-inner section.normal div.rmdnote > :last-child,
.book .book-body .page-wrapper .page-inner section.normal div.rmdtip > :last-child,
.book .book-body .page-wrapper .page-inner section.normal div.sidebar > :last-child {
margin-bottom: 0;
}
div.rmdwarning::before {
display: block;
content: "警告";
color: #EA4335;
font-size: 1.1em;
font-weight: bold;
margin-bottom: 0.25em;
}
div.rmdnote::before {
display: block;
content: "注意";
color: #FBBC05;
font-size: 1.1em;
font-weight: bold;
margin-bottom: 0.25em;
}
div.rmdtip::before {
display: block;
content: "提示";
color: #34A853;
font-size: 1.1em;
font-weight: bold;
margin-bottom: 0.25em;
}
.todo {
display: block;
border: 1px solid #4285f4;
border-left-width: 5px;
border-radius: 5px;
padding: 0.5em 1em;
margin: 1em 0;
}
.todo::before {
content: "TO DO: ";
font-weight: bold;
color: #4285f4;
}
.flushright {
text-align: right;
}
blockquote > p:last-child {
text-align: right;
}
blockquote > p:first-child {
text-align: inherit;
}