-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmarkdown-style.css
134 lines (116 loc) · 2.24 KB
/
markdown-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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
:root {
--color: rgb(149, 0, 168);
--rgba: 149, 0, 168;
--primary: rgba(var(--rgba));
--primary-bg-light: rgba(var(--rgba), 0.07);
--secondary: rgba(var(--rgba), 0.2);
}
body {
font-size: 15px;
color: #333;
background: #fff;
font-family: Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', 'WenQuanYi Micro Hei', 'tohoma,sans-serif';
margin: 0;
padding: 20px 10%;
}
.markdown-body {
background-color: #fff !important;
}
h1 {
font-size: 2.2em;
font-weight: 700;
line-height: 1.1;
padding-top: 16px;
margin-bottom: 4px;
}
h2 {
font-size: 1.4em;
margin: 40px 10px 20px 0;
padding-left: 9px;
border-left: 6px solid var(--primary);
font-weight: 700;
padding: 5px 10px;
line-height: 1.4;
}
h3 {
background-color: var(--primary-bg-light);
border-left: 3px solid var(--primary);
margin: 10px 0 5px;
padding: 3px 10px;
font-weight: 700;
font-size: 1.2em;
}
h4 {
display: inline-block;
background-color: var(--secondary);
font-weight: 700;
font-size: 1em;
line-height: 1.4;
margin: 10px 0 5px;
padding: 3px 5px;
border-radius: 4px;
}
a {
color: var(--primary) !important;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:focus,
a:active,
a:hover,
a {
outline: none !important;
border: 0 !important;
box-shadow: none !important;
}
h1:first-child > a:empty:after {
content: '\25B2';
}
h1:first-child > a:empty {
position: fixed;
bottom: 10px;
right: 10px;
color: white !important;
text-decoration: none;
font-family: 'Courier New', Courier, monospace;
text-align: center;
display: inline-block;
border-radius: 50px;
font-size: 20px;
line-height: unset;
background-color: #000;
z-index: 10;
margin: 0;
padding: 5px 10px;
opacity: 0.4;
transition: 0.2s all ease-in;
}
h1:first-child > a:empty:hover {
opacity: 0.8;
}
code {
color: var(--primary);
background-color: var(--primary-bg-light);
border-radius: 4px;
font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
font-size: 90%;
}
pre,
div {
background-color: #000 !important;
border-radius: 4px !important;
}
li {
margin-top: 0.5em;
}
table thead {
background-color: #dbdbdb;
}
table tr:nth-child(even) {
background-color: #f0f0f0;
}
.function_ {
color: #e7d405;
}