File size: 6,068 Bytes
797a378
 
 
 
 
 
 
 
4167172
 
 
 
 
797a378
 
 
 
4167172
797a378
4167172
797a378
 
4167172
 
797a378
 
4167172
797a378
 
 
4167172
797a378
 
4167172
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
797a378
 
 
 
4167172
797a378
 
 
 
 
 
 
 
 
 
 
 
 
4167172
 
 
 
 
 
 
 
 
 
 
 
 
797a378
 
 
 
 
 
4167172
797a378
4167172
 
797a378
 
 
4167172
797a378
 
4167172
 
 
 
 
 
 
 
 
 
 
 
 
 
797a378
 
 
4167172
 
 
 
 
 
 
 
 
 
 
 
 
 
797a378
 
 
 
4167172
 
 
 
 
 
797a378
 
 
 
 
 
 
 
 
 
 
 
 
 
4167172
797a378
 
4167172
797a378
 
 
 
 
 
 
 
 
 
4167172
 
 
 
 
 
 
 
 
797a378
 
 
4167172
797a378
 
 
4167172
 
 
 
 
 
797a378
 
4167172
797a378
4167172
797a378
 
 
 
 
4167172
 
 
 
 
 
 
 
 
 
 
797a378
 
 
 
 
 
4167172
797a378
4167172
 
 
 
 
 
 
 
 
 
 
797a378
 
 
 
4167172
797a378
 
 
4167172
797a378
 
 
 
4167172
 
 
797a378
 
 
 
4167172
 
 
 
 
 
 
 
 
 
797a378
 
 
 
4167172
 
797a378
 
 
4167172
797a378
 
 
 
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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
:root {
    --primary-color: #07c160;
    --text-color: #333;
    --bg-color: #fff;
    --border-color: #eee;
    --code-bg: #f6f8fa;
    --quote-border: #07c160;
    --quote-bg: #f9f9f9;
    --link-color: #07c160;
    --heading-color: #333;
    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --img-radius: 0px;
    --img-shadow: none;
}

/* Theme: Geek Black */
[data-theme="geek"] {
    --primary-color: #000;
    --text-color: #2c3e50;
    --heading-color: #000;
    --code-bg: #282c34;
    --quote-border: #000;
    --quote-bg: #f8f8f8;
    --link-color: #000;
}

/* Theme: Pastel (Pink) */
[data-theme="pastel"] {
    --primary-color: #ff9a9e;
    --text-color: #555;
    --heading-color: #ff758c;
    --code-bg: #fff0f5;
    --quote-border: #fad0c4;
    --quote-bg: #fffbfb;
    --link-color: #ff758c;
}

/* Theme: Notion (Clean & Serif/Sans mix) */
[data-theme="notion"] {
    --primary-color: #37352f;
    --text-color: #37352f;
    --heading-color: #37352f;
    --code-bg: #f7f6f3;
    --quote-border: #37352f;
    --quote-bg: transparent;
    --link-color: #37352f;
    --border-color: #e0e0e0;
}

/* Image Styles (Controlled by JS) */
[data-img-style="rounded"] {
    --img-radius: 8px;
}
[data-img-style="shadow"] {
    --img-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
[data-img-style="both"] {
    --img-radius: 8px;
    --img-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body {
    margin: 0;
    font-family: var(--font-base);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f3f4f6;
}

/* WeChat Preview Styles - This is what gets copied */
#preview-content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-color);
    word-break: break-all;
    text-align: justify;
    padding: 20px;
    background: #fff; /* Ensure white background for copy */
}

/* Notion Specific Overrides */
[data-theme="notion"] #preview-content {
    font-family: "Lyon-Text", Georgia, ui-serif, serif; /* Serif for reading */
    line-height: 1.8;
}
[data-theme="notion"] #preview-content h1,
[data-theme="notion"] #preview-content h2,
[data-theme="notion"] #preview-content h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; /* Sans for headings */
}

#preview-content h1, 
#preview-content h2, 
#preview-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: bold;
    color: var(--heading-color);
    line-height: 1.3;
}

#preview-content h1 {
    font-size: 1.6em;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.3em;
    text-align: center;
}

/* Geek theme H1 is different */
[data-theme="geek"] #preview-content h1 {
    border-bottom: 3px solid #000;
    text-align: left;
}

/* Notion theme H1 is minimal */
[data-theme="notion"] #preview-content h1 {
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 2em;
}

#preview-content h2 {
    font-size: 1.3em;
    display: block; /* WeChat friendly */
    border-left: 5px solid var(--primary-color);
    padding-left: 10px;
    border-bottom: none;
}

/* Notion theme H2 */
[data-theme="notion"] #preview-content h2 {
    border-left: none;
    padding-left: 0;
    font-size: 1.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

#preview-content h3 {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 1.2em;
}

[data-theme="notion"] #preview-content h3 {
    font-size: 1.25em;
}

#preview-content p {
    margin-bottom: 1.5em;
    text-align: justify;
}

#preview-content ul, 
#preview-content ol {
    margin-bottom: 1.5em;
    padding-left: 20px;
}

#preview-content li {
    margin-bottom: 0.2em;
}

/* Blockquote Styles */
#preview-content blockquote {
    margin: 1.5em 0;
    padding: 1em;
    background-color: var(--quote-bg);
    border-left: 4px solid var(--quote-border);
    color: #666;
    font-size: 0.95em;
    border-radius: 4px;
}

[data-theme="notion"] #preview-content blockquote {
    border-left: 3px solid currentcolor;
    padding-left: 1em;
    font-style: italic;
    color: inherit;
    opacity: 0.8;
}

/* Inline Code */
#preview-content code {
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 0.9em;
    padding: 2px 5px;
    background-color: rgba(27, 31, 35, 0.05);
    color: #d63384;
    border-radius: 4px;
    margin: 0 2px;
}

[data-theme="notion"] #preview-content code {
    color: #EB5757;
    background: rgba(135,131,120,0.15);
}

/* Code Blocks */
#preview-content pre {
    background-color: #282c34;
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    line-height: 1.5;
    position: relative;
}

[data-theme="notion"] #preview-content pre {
    background-color: #f7f6f3;
    border-radius: 4px;
}
[data-theme="notion"] #preview-content pre code {
    color: #37352f;
    text-shadow: none;
}

#preview-content pre code {
    background-color: transparent;
    color: #abb2bf;
    padding: 0;
    font-size: 13px;
    border-radius: 0;
    margin: 0;
}

/* Images */
#preview-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    border-radius: var(--img-radius);
    box-shadow: var(--img-shadow);
}

/* Footnotes */
.footnote-ref {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.8em;
    vertical-align: super;
    margin-left: 2px;
}

.footnotes-sep {
    border-top: 1px solid #ddd;
    margin-top: 3em;
    margin-bottom: 1.5em;
    width: 30%;
}

.footnotes-list {
    font-size: 0.9em;
    color: #888;
}

.footnotes-list ol {
    padding-left: 20px;
}

.footnotes-list li {
    margin-bottom: 0.5em;
    word-break: break-all;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
::-webkit-scrollbar-track {
    background: transparent;
}