File size: 4,194 Bytes
e1ae2c6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
/* Markdown Content Page */

/* ------------------------------------------------------------------
   Markdown Content Styling (GitHub-like) - Scoped to .content-page
   ------------------------------------------------------------------ */

/* Increase inner spacing for content pages to separate text from card border */
.content-category .content-page {
  padding-left: var(--spacing-sm);
  padding-right: var(--spacing-sm);
}

@media (max-width: 480px) {
  .content-category .content-page {
    padding-left: var(--spacing-xs);
    padding-right: var(--spacing-xs);
  }
}

.content-page {
  font-family: var(
    --font-body,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Noto Sans',
    Helvetica,
    Arial,
    sans-serif,
    'Apple Color Emoji',
    'Segoe UI Emoji'
  );
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  word-wrap: break-word;
  padding-bottom: 2rem;
}

.content-page h1,
.content-page h2,
.content-page h3,
.content-page h4,
.content-page h5,
.content-page h6 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-bright);
}

.content-page h1 {
  font-size: 2em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border-color);
}

.content-page h2 {
  font-size: 1.5em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border-color);
}

.content-page h3 {
  font-size: 1.25em;
}

.content-page h4 {
  font-size: 1em;
}

.content-page h5 {
  font-size: 0.875em;
}

.content-page h6 {
  font-size: 0.85em;
  color: var(--text-muted);
}

.content-page p {
  margin-top: 0;
  margin-bottom: 16px;
}

.content-page blockquote {
  margin: 0 0 16px;
  padding: 0 1em;
  color: var(--text-muted);
  border-left: 0.25em solid var(--border-color);
  background-color: transparent;
}

.content-page ul,
.content-page ol {
  margin-top: 0;
  margin-bottom: 16px;
  padding-left: 2em;
}

.content-page li + li {
  margin-top: 0.25em;
}

/* Inline code */
.content-page code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    SF Mono,
    Menlo,
    Consolas,
    Liberation Mono,
    monospace;
  font-size: 85%;
  padding: 0.2em 0.4em;
  margin: 0;
  border-radius: var(--radius-sm);
  background-color: rgba(127, 127, 127, 0.15);
  color: var(--text-bright);
}

/* Block code (pre) */
.content-page pre {
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  /* 代码块背景需要与内容卡片区分开:避免与 card-bg 过于接近 */
  background-color: rgba(127, 127, 127, 0.08);
  border-radius: var(--radius-md);
  margin-top: 0;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
}

.content-page pre code {
  background-color: transparent;
  padding: 0;
  font-size: 100%;
  color: inherit;
  word-break: normal;
  border-radius: 0;
}

.content-page hr {
  height: 0.25em;
  padding: 0;
  margin: 24px 0;
  background-color: var(--border-color);
  border: 0;
}

/* Tables */
.content-page table {
  border-spacing: 0;
  border-collapse: collapse;
  margin-top: 0;
  margin-bottom: 16px;
  display: block;
  width: max-content;
  max-width: 100%;
  overflow: auto;
}

.content-page table th,
.content-page table td {
  padding: 6px 13px;
  border: 1px solid var(--border-color);
}

.content-page table th {
  font-weight: 600;
  background-color: rgba(var(--card-bg-rgb), 0.3);
}

.content-page table tr {
  background-color: transparent;
  border-top: 1px solid var(--border-color);
}

.content-page table tr:nth-child(2n) {
  background-color: rgba(127, 127, 127, 0.04);
}

.content-page img {
  max-width: 100%;
  box-sizing: content-box;
  background-color: transparent;
  border-radius: var(--radius-sm);
}

.content-page a {
  color: var(--accent-color);
  text-decoration: none;
}

.content-page a:hover {
  text-decoration: underline;
}

/* Task lists */
.content-page ul.contains-task-list {
  list-style-type: none;
  padding-left: 0;
}

.content-page .task-list-item input {
  margin-right: 0.5em;
  vertical-align: middle;
}

/* GitHub Calendar Fixes (HTML Table Version)
 * 注:此处样式已合并到上方「projects:GitHub 热力图(github-calendar.js)」区域,避免重复维护。
 */