markdown.scss
2.31 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
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
135
136
137
.snippet-doc {
color: $text;
.header-anchor {
color: $primary;
text-decoration: none;
opacity: 0;
transition: opacity 300ms;
}
.hljs {
white-space: pre-wrap;
word-wrap: break-word;
}
h1 {
color: $black;
font-weight: 500;
margin-bottom: 20px;
margin-top: 8px;
font-size: 30px;
line-height: 38px;
}
&, h2, h3, h4, h5, h6 {
color: $black;
font-family: Lato;
margin: 32px 0 16px;
font-weight: 500;
clear: both;
transition: all 300ms;
}
h2, h3, h4, h5, h6 {
&:hover {
.header-anchor {
opacity: 1;
}
}
}
h3 {
font-size: 18px;
}
h4 {
font-size: 16px;
}
h5 {
font-size: 14px;
}
h6 {
font-size: 12px;
}
p {
color: $text;
}
p,
pre {
font-size: 14px;
line-height: 1.5;
border-radius: 4px;
}
pre {
padding: 16px 32px;
}
ul > li > p,
ol > li > p {
margin: 4px 0;
}
ul:not([class]) {
padding: 0;
margin: 0;
}
ul:not([class]) > li:not([class]) {
list-style-type: circle;
margin-left: 20px;
padding-left: 4px;
padding-top: 15px;
}
ol:not([class]) > li:not([class]) {
list-style-type: decimal;
margin-left: 20px;
padding-left: 4px;
padding-top: 15px;
}
> table {
font-size: 14px;
border-collapse: collapse;
border-spacing: 0;
empty-cells: show;
width: 100%;
margin: 8px 0 16px;
}
& > table th,
& > table td {
color: $text;
border-bottom: 1px solid $border;
text-align: left;
padding: 10px 15px;
max-width: 250px;
}
& > table th {
white-space: nowrap;
color: $black;
font-weight: 500;
background: rgba(0, 0, 0, 0.02);
}
strong, b {
font-weight: bold;
color: $black;
}
& > br, p > br {
clear: both;
}
a {
color: $primary;
text-decoration: none;
}
blockquote {
padding: 8px 16px;
background-color: rgba($primary, 0.1);
border-radius: 4px;
border-left: 4px solid $primary;
margin: 1em 0;
}
blockquote p {
margin: 0;
}
hr {
height: 1px;
border: 0;
background: $border;
clear: both;
}
p > code, li > code {
font-family: Microsoft YaHei;
background-color: rgba($primary, 0.1);
color: $primary;
padding: 2px 4px;
margin: 0 4px;
border-radius: 4px;
}
}