cherry-muse 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/LICENSE +162 -0
  2. package/README.md +139 -0
  3. package/dist/addons/cherry-code-block-card-plugin.js +1 -0
  4. package/dist/addons/cherry-code-block-echarts-plugin.js +1 -0
  5. package/dist/addons/cherry-code-block-mermaid-plugin.js +1 -0
  6. package/dist/cherry-markdown.core.common.js +1 -0
  7. package/dist/cherry-markdown.core.js +1 -0
  8. package/dist/cherry-markdown.css +4089 -0
  9. package/dist/cherry-markdown.engine.core.common.js +1 -0
  10. package/dist/cherry-markdown.engine.core.esm.js +1 -0
  11. package/dist/cherry-markdown.engine.core.js +1 -0
  12. package/dist/cherry-markdown.esm.js +1 -0
  13. package/dist/cherry-markdown.js +70837 -0
  14. package/dist/cherry-markdown.js.map +1 -0
  15. package/dist/cherry-markdown.min.css +1 -0
  16. package/dist/cherry-markdown.min.js +1 -0
  17. package/dist/stats.html +4838 -0
  18. package/examples/scripts/pinyin/README.md +53 -0
  19. package/package.json +167 -0
  20. package/src/Cherry.config.js +411 -0
  21. package/src/Cherry.js +788 -0
  22. package/src/CherryStatic.js +70 -0
  23. package/src/Editor.js +746 -0
  24. package/src/Engine.js +334 -0
  25. package/src/Event.js +74 -0
  26. package/src/Factory.js +180 -0
  27. package/src/Logger.js +31 -0
  28. package/src/Previewer.js +1147 -0
  29. package/src/Sanitizer.js +4 -0
  30. package/src/Sanitizer.node.js +7 -0
  31. package/src/Stats.js +101 -0
  32. package/src/Theme.js +46 -0
  33. package/src/UrlCache.js +98 -0
  34. package/src/addons/cherry-code-block-card-plugin.js +213 -0
  35. package/src/addons/cherry-code-block-echarts-plugin.js +161 -0
  36. package/src/addons/cherry-code-block-mermaid-plugin.js +118 -0
  37. package/src/core/HookCenter.js +303 -0
  38. package/src/core/HooksConfig.js +106 -0
  39. package/src/core/ParagraphBase.js +314 -0
  40. package/src/core/SentenceBase.js +65 -0
  41. package/src/core/SyntaxBase.js +197 -0
  42. package/src/core/hooks/AutoLink.js +251 -0
  43. package/src/core/hooks/BackgroundColor.js +46 -0
  44. package/src/core/hooks/Badge.js +100 -0
  45. package/src/core/hooks/Blockquote.js +113 -0
  46. package/src/core/hooks/Br.js +85 -0
  47. package/src/core/hooks/CodeBlock.js +876 -0
  48. package/src/core/hooks/Color.js +78 -0
  49. package/src/core/hooks/CommentReference.js +96 -0
  50. package/src/core/hooks/Detail.js +138 -0
  51. package/src/core/hooks/Emoji.config.js +9388 -0
  52. package/src/core/hooks/Emoji.js +223 -0
  53. package/src/core/hooks/Emphasis.js +113 -0
  54. package/src/core/hooks/Footnote.js +125 -0
  55. package/src/core/hooks/FrontMatter.js +52 -0
  56. package/src/core/hooks/FrontMatterVars.js +82 -0
  57. package/src/core/hooks/Header.js +229 -0
  58. package/src/core/hooks/HighLight.js +37 -0
  59. package/src/core/hooks/Hr.js +52 -0
  60. package/src/core/hooks/HtmlBlock.js +159 -0
  61. package/src/core/hooks/Iframe.js +80 -0
  62. package/src/core/hooks/Image.js +276 -0
  63. package/src/core/hooks/InlineCode.js +45 -0
  64. package/src/core/hooks/InlineMath.js +142 -0
  65. package/src/core/hooks/Link.js +169 -0
  66. package/src/core/hooks/List.js +260 -0
  67. package/src/core/hooks/Mark.js +55 -0
  68. package/src/core/hooks/MathBlock.js +97 -0
  69. package/src/core/hooks/Panel.js +170 -0
  70. package/src/core/hooks/Paragraph.js +84 -0
  71. package/src/core/hooks/Ruby.js +34 -0
  72. package/src/core/hooks/Size.js +84 -0
  73. package/src/core/hooks/Strikethrough.js +54 -0
  74. package/src/core/hooks/Sub.js +47 -0
  75. package/src/core/hooks/SuggestList.js +317 -0
  76. package/src/core/hooks/Suggester.js +759 -0
  77. package/src/core/hooks/Sup.js +47 -0
  78. package/src/core/hooks/Table.js +315 -0
  79. package/src/core/hooks/Toc.js +290 -0
  80. package/src/core/hooks/Transfer.js +47 -0
  81. package/src/core/hooks/Underline.js +37 -0
  82. package/src/index.core.js +29 -0
  83. package/src/index.engine.core.js +62 -0
  84. package/src/index.engine.js +30 -0
  85. package/src/index.js +28 -0
  86. package/src/locales/index.js +21 -0
  87. package/src/locales/zh_CN.js +170 -0
  88. package/src/sass/cherry.scss +122 -0
  89. package/src/sass/components/bubble.scss +122 -0
  90. package/src/sass/components/codemirror.scss +628 -0
  91. package/src/sass/components/dropdown.scss +37 -0
  92. package/src/sass/components/editor.scss +78 -0
  93. package/src/sass/components/preview.scss +71 -0
  94. package/src/sass/components/prism.scss +142 -0
  95. package/src/sass/components/stats.scss +32 -0
  96. package/src/sass/components/toc.scss +184 -0
  97. package/src/sass/components/toolbar.scss +117 -0
  98. package/src/sass/core/AutoLink.scss +20 -0
  99. package/src/sass/core/BackgroundColor.scss +0 -0
  100. package/src/sass/core/Badge.scss +116 -0
  101. package/src/sass/core/Blockquote.scss +12 -0
  102. package/src/sass/core/Br.scss +0 -0
  103. package/src/sass/core/Card.scss +219 -0
  104. package/src/sass/core/CodeBlock.scss +205 -0
  105. package/src/sass/core/Color.scss +37 -0
  106. package/src/sass/core/CommentReference.scss +0 -0
  107. package/src/sass/core/Detail.scss +107 -0
  108. package/src/sass/core/Emoji.scss +127 -0
  109. package/src/sass/core/Emphasis.scss +9 -0
  110. package/src/sass/core/Footnote.scss +21 -0
  111. package/src/sass/core/FrontMatterVars.scss +19 -0
  112. package/src/sass/core/Header.scss +103 -0
  113. package/src/sass/core/HighLight.scss +0 -0
  114. package/src/sass/core/Hr.scss +10 -0
  115. package/src/sass/core/HtmlBlock.scss +0 -0
  116. package/src/sass/core/Iframe.scss +36 -0
  117. package/src/sass/core/Image.scss +59 -0
  118. package/src/sass/core/InlineCode.scss +10 -0
  119. package/src/sass/core/InlineMath.scss +11 -0
  120. package/src/sass/core/Link.scss +16 -0
  121. package/src/sass/core/List.scss +61 -0
  122. package/src/sass/core/Mark.scss +15 -0
  123. package/src/sass/core/MathBlock.scss +0 -0
  124. package/src/sass/core/Panel.scss +150 -0
  125. package/src/sass/core/Paragraph.scss +6 -0
  126. package/src/sass/core/Ruby.scss +0 -0
  127. package/src/sass/core/Size.scss +8 -0
  128. package/src/sass/core/Strikethrough.scss +0 -0
  129. package/src/sass/core/Sub.scss +5 -0
  130. package/src/sass/core/Suggester.scss +62 -0
  131. package/src/sass/core/Sup.scss +5 -0
  132. package/src/sass/core/Table.scss +127 -0
  133. package/src/sass/core/Toc.scss +28 -0
  134. package/src/sass/core/Transfer.scss +0 -0
  135. package/src/sass/core/Underline.scss +0 -0
  136. package/src/sass/google-fonts.scss +34 -0
  137. package/src/sass/index.scss +3 -0
  138. package/src/sass/prism/dark.scss +131 -0
  139. package/src/sass/prism/light.scss +143 -0
  140. package/src/sass/variables/colors.scss +96 -0
  141. package/src/toolbars/Bubble.js +232 -0
  142. package/src/toolbars/BubbleTable.js +147 -0
  143. package/src/toolbars/HookCenter.js +185 -0
  144. package/src/toolbars/MenuBase.js +357 -0
  145. package/src/toolbars/PreviewerBubble.js +558 -0
  146. package/src/toolbars/Toc.js +246 -0
  147. package/src/toolbars/Toolbar.js +401 -0
  148. package/src/toolbars/hooks/Audio.js +53 -0
  149. package/src/toolbars/hooks/Badge.js +80 -0
  150. package/src/toolbars/hooks/BarTable.js +41 -0
  151. package/src/toolbars/hooks/Bold.js +70 -0
  152. package/src/toolbars/hooks/Br.js +34 -0
  153. package/src/toolbars/hooks/Card.js +64 -0
  154. package/src/toolbars/hooks/CheckList.js +41 -0
  155. package/src/toolbars/hooks/Code.js +46 -0
  156. package/src/toolbars/hooks/Color.js +285 -0
  157. package/src/toolbars/hooks/Copy.js +139 -0
  158. package/src/toolbars/hooks/Detail.js +70 -0
  159. package/src/toolbars/hooks/ECharts.js +303 -0
  160. package/src/toolbars/hooks/Emoji.js +303 -0
  161. package/src/toolbars/hooks/Export.js +47 -0
  162. package/src/toolbars/hooks/File.js +54 -0
  163. package/src/toolbars/hooks/Formula.js +36 -0
  164. package/src/toolbars/hooks/FullScreen.js +55 -0
  165. package/src/toolbars/hooks/Graph.js +281 -0
  166. package/src/toolbars/hooks/H1.js +71 -0
  167. package/src/toolbars/hooks/H2.js +71 -0
  168. package/src/toolbars/hooks/H3.js +71 -0
  169. package/src/toolbars/hooks/Header.js +100 -0
  170. package/src/toolbars/hooks/Hr.js +35 -0
  171. package/src/toolbars/hooks/Iframe.js +35 -0
  172. package/src/toolbars/hooks/Image.js +60 -0
  173. package/src/toolbars/hooks/Insert.js +36 -0
  174. package/src/toolbars/hooks/Italic.js +70 -0
  175. package/src/toolbars/hooks/LineTable.js +41 -0
  176. package/src/toolbars/hooks/Link.js +46 -0
  177. package/src/toolbars/hooks/List.js +55 -0
  178. package/src/toolbars/hooks/Ol.js +41 -0
  179. package/src/toolbars/hooks/Panel.js +155 -0
  180. package/src/toolbars/hooks/Quote.js +45 -0
  181. package/src/toolbars/hooks/Redo.js +33 -0
  182. package/src/toolbars/hooks/Ruby.js +59 -0
  183. package/src/toolbars/hooks/Size.js +100 -0
  184. package/src/toolbars/hooks/Split.js +37 -0
  185. package/src/toolbars/hooks/Strikethrough.js +65 -0
  186. package/src/toolbars/hooks/Sub.js +58 -0
  187. package/src/toolbars/hooks/Sup.js +58 -0
  188. package/src/toolbars/hooks/SwitchModel.js +78 -0
  189. package/src/toolbars/hooks/Table.js +56 -0
  190. package/src/toolbars/hooks/Toc.js +35 -0
  191. package/src/toolbars/hooks/TogglePreview.js +79 -0
  192. package/src/toolbars/hooks/Ul.js +41 -0
  193. package/src/toolbars/hooks/Underline.js +65 -0
  194. package/src/toolbars/hooks/Undo.js +30 -0
  195. package/src/toolbars/hooks/Video.js +53 -0
  196. package/src/utils/LazyLoadImg.js +341 -0
  197. package/src/utils/autoindent.js +58 -0
  198. package/src/utils/codeBlockContentHandler.js +351 -0
  199. package/src/utils/config.js +98 -0
  200. package/src/utils/copy.js +55 -0
  201. package/src/utils/dialog.js +196 -0
  202. package/src/utils/dom.js +162 -0
  203. package/src/utils/downloadUtil.js +23 -0
  204. package/src/utils/env.js +22 -0
  205. package/src/utils/error.js +61 -0
  206. package/src/utils/event.js +38 -0
  207. package/src/utils/export.js +115 -0
  208. package/src/utils/file.js +121 -0
  209. package/src/utils/formulaUtilsHandler.js +230 -0
  210. package/src/utils/htmlparser.js +977 -0
  211. package/src/utils/image.js +99 -0
  212. package/src/utils/imgSizeHandler.js +279 -0
  213. package/src/utils/jsonUtils.js +17 -0
  214. package/src/utils/lineFeed.js +49 -0
  215. package/src/utils/listContentHandler.js +227 -0
  216. package/src/utils/lookbehind-replace.js +81 -0
  217. package/src/utils/mathjax.js +89 -0
  218. package/src/utils/myersDiff.js +211 -0
  219. package/src/utils/pasteHelper.js +253 -0
  220. package/src/utils/recount-pos.js +59 -0
  221. package/src/utils/regexp.js +295 -0
  222. package/src/utils/sanitize.js +477 -0
  223. package/src/utils/selection.js +50 -0
  224. package/src/utils/svgUtils.js +96 -0
  225. package/src/utils/tableContentHandler.js +592 -0
  226. package/tools/README.md +3 -0
@@ -0,0 +1,4089 @@
1
+ @charset "UTF-8";
2
+ @import url("https://fonts.loli.net/css2?family=Material+Symbols+Outlined"); /* BASICS */
3
+ .CodeMirror {
4
+ /* Set height, width, borders, and global font properties here */
5
+ font-family: monospace;
6
+ height: 300px;
7
+ color: black;
8
+ direction: ltr;
9
+ }
10
+
11
+ /* PADDING */
12
+ .CodeMirror-lines {
13
+ padding: 4px 0; /* Vertical padding around content */
14
+ }
15
+
16
+ .CodeMirror pre.CodeMirror-line,
17
+ .CodeMirror pre.CodeMirror-line-like {
18
+ padding: 0 4px; /* Horizontal padding of content */
19
+ }
20
+
21
+ .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
22
+ background-color: white; /* The little square between H and V scrollbars */
23
+ }
24
+
25
+ /* GUTTER */
26
+ .CodeMirror-gutters {
27
+ border-right: 1px solid #ddd;
28
+ background-color: #f7f7f7;
29
+ white-space: nowrap;
30
+ }
31
+
32
+ .CodeMirror-linenumber {
33
+ padding: 0 3px 0 5px;
34
+ min-width: 20px;
35
+ text-align: right;
36
+ color: #999;
37
+ white-space: nowrap;
38
+ }
39
+
40
+ .CodeMirror-guttermarker {
41
+ color: black;
42
+ }
43
+
44
+ .CodeMirror-guttermarker-subtle {
45
+ color: #999;
46
+ }
47
+
48
+ /* CURSOR */
49
+ .CodeMirror-cursor {
50
+ border-left: 1px solid black;
51
+ border-right: none;
52
+ width: 0;
53
+ }
54
+
55
+ /* Shown when moving in bi-directional text */
56
+ .CodeMirror div.CodeMirror-secondarycursor {
57
+ border-left: 1px solid silver;
58
+ }
59
+
60
+ .cm-fat-cursor .CodeMirror-cursor {
61
+ width: auto;
62
+ border: 0 !important;
63
+ background: #7e7;
64
+ }
65
+
66
+ .cm-fat-cursor div.CodeMirror-cursors {
67
+ z-index: 1;
68
+ }
69
+
70
+ .cm-fat-cursor-mark {
71
+ background-color: rgba(20, 255, 20, 0.5);
72
+ -webkit-animation: blink 1.06s steps(1) infinite;
73
+ -moz-animation: blink 1.06s steps(1) infinite;
74
+ animation: blink 1.06s steps(1) infinite;
75
+ }
76
+
77
+ .cm-animate-fat-cursor {
78
+ width: auto;
79
+ border: 0;
80
+ -webkit-animation: blink 1.06s steps(1) infinite;
81
+ -moz-animation: blink 1.06s steps(1) infinite;
82
+ animation: blink 1.06s steps(1) infinite;
83
+ background-color: #7e7;
84
+ }
85
+
86
+ @-moz-keyframes blink {
87
+ 50% {
88
+ background-color: transparent;
89
+ }
90
+ }
91
+ @-webkit-keyframes blink {
92
+ 50% {
93
+ background-color: transparent;
94
+ }
95
+ }
96
+ @keyframes blink {
97
+ 50% {
98
+ background-color: transparent;
99
+ }
100
+ }
101
+ /* Can style cursor different in overwrite (non-insert) mode */
102
+ .cm-tab {
103
+ display: inline-block;
104
+ text-decoration: inherit;
105
+ }
106
+
107
+ .CodeMirror-rulers {
108
+ position: absolute;
109
+ left: 0;
110
+ right: 0;
111
+ top: -50px;
112
+ bottom: 0;
113
+ overflow: hidden;
114
+ }
115
+
116
+ .CodeMirror-ruler {
117
+ border-left: 1px solid #ccc;
118
+ top: 0;
119
+ bottom: 0;
120
+ position: absolute;
121
+ }
122
+
123
+ /* DEFAULT THEME */
124
+ .cm-s-default .cm-header {
125
+ color: blue;
126
+ }
127
+
128
+ .cm-s-default .cm-quote {
129
+ color: #090;
130
+ }
131
+
132
+ .cm-negative {
133
+ color: #d44;
134
+ }
135
+
136
+ .cm-positive {
137
+ color: #292;
138
+ }
139
+
140
+ .cm-header, .cm-strong {
141
+ font-weight: bold;
142
+ }
143
+
144
+ .cm-em {
145
+ font-style: italic;
146
+ }
147
+
148
+ .cm-link {
149
+ text-decoration: underline;
150
+ }
151
+
152
+ .cm-strikethrough {
153
+ text-decoration: line-through;
154
+ }
155
+
156
+ .cm-s-default .cm-keyword {
157
+ color: #708;
158
+ }
159
+
160
+ .cm-s-default .cm-atom {
161
+ color: #219;
162
+ }
163
+
164
+ .cm-s-default .cm-number {
165
+ color: #164;
166
+ }
167
+
168
+ .cm-s-default .cm-def {
169
+ color: #00f;
170
+ }
171
+
172
+ .cm-s-default .cm-variable-2 {
173
+ color: #05a;
174
+ }
175
+
176
+ .cm-s-default .cm-variable-3, .cm-s-default .cm-type {
177
+ color: #085;
178
+ }
179
+
180
+ .cm-s-default .cm-comment {
181
+ color: #a50;
182
+ }
183
+
184
+ .cm-s-default .cm-string {
185
+ color: #a11;
186
+ }
187
+
188
+ .cm-s-default .cm-string-2 {
189
+ color: #f50;
190
+ }
191
+
192
+ .cm-s-default .cm-meta {
193
+ color: #555;
194
+ }
195
+
196
+ .cm-s-default .cm-qualifier {
197
+ color: #555;
198
+ }
199
+
200
+ .cm-s-default .cm-builtin {
201
+ color: #30a;
202
+ }
203
+
204
+ .cm-s-default .cm-bracket {
205
+ color: #997;
206
+ }
207
+
208
+ .cm-s-default .cm-tag {
209
+ color: #170;
210
+ }
211
+
212
+ .cm-s-default .cm-attribute {
213
+ color: #00c;
214
+ }
215
+
216
+ .cm-s-default .cm-hr {
217
+ color: #999;
218
+ }
219
+
220
+ .cm-s-default .cm-link {
221
+ color: #00c;
222
+ }
223
+
224
+ .cm-s-default .cm-error {
225
+ color: #f00;
226
+ }
227
+
228
+ .cm-invalidchar {
229
+ color: #f00;
230
+ }
231
+
232
+ .CodeMirror-composing {
233
+ border-bottom: 2px solid;
234
+ }
235
+
236
+ /* Default styles for common addons */
237
+ div.CodeMirror span.CodeMirror-matchingbracket {
238
+ color: #0b0;
239
+ }
240
+
241
+ div.CodeMirror span.CodeMirror-nonmatchingbracket {
242
+ color: #a22;
243
+ }
244
+
245
+ .CodeMirror-matchingtag {
246
+ background: rgba(255, 150, 0, 0.3);
247
+ }
248
+
249
+ .CodeMirror-activeline-background {
250
+ background: #e8f2ff;
251
+ }
252
+
253
+ /* STOP */
254
+ /* The rest of this file contains styles related to the mechanics of
255
+ the editor. You probably shouldn't touch them. */
256
+ .CodeMirror {
257
+ position: relative;
258
+ overflow: hidden;
259
+ background: white;
260
+ }
261
+
262
+ .CodeMirror-scroll {
263
+ overflow: scroll !important; /* Things will break if this is overridden */
264
+ /* 50px is the magic margin used to hide the element's real scrollbars */
265
+ /* See overflow: hidden in .CodeMirror */
266
+ margin-bottom: -50px;
267
+ margin-right: -50px;
268
+ padding-bottom: 50px;
269
+ height: 100%;
270
+ outline: none; /* Prevent dragging from highlighting the element */
271
+ position: relative;
272
+ }
273
+
274
+ .CodeMirror-sizer {
275
+ position: relative;
276
+ border-right: 50px solid transparent;
277
+ }
278
+
279
+ /* The fake, visible scrollbars. Used to force redraw during scrolling
280
+ before actual scrolling happens, thus preventing shaking and
281
+ flickering artifacts. */
282
+ .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
283
+ position: absolute;
284
+ z-index: 6;
285
+ display: none;
286
+ outline: none;
287
+ }
288
+
289
+ .CodeMirror-vscrollbar {
290
+ right: 0;
291
+ top: 0;
292
+ overflow-x: hidden;
293
+ overflow-y: scroll;
294
+ }
295
+
296
+ .CodeMirror-hscrollbar {
297
+ bottom: 0;
298
+ left: 0;
299
+ overflow-y: hidden;
300
+ overflow-x: scroll;
301
+ }
302
+
303
+ .CodeMirror-scrollbar-filler {
304
+ right: 0;
305
+ bottom: 0;
306
+ }
307
+
308
+ .CodeMirror-gutter-filler {
309
+ left: 0;
310
+ bottom: 0;
311
+ }
312
+
313
+ .CodeMirror-gutters {
314
+ position: absolute;
315
+ left: 0;
316
+ top: 0;
317
+ min-height: 100%;
318
+ z-index: 3;
319
+ }
320
+
321
+ .CodeMirror-gutter {
322
+ white-space: normal;
323
+ height: 100%;
324
+ display: inline-block;
325
+ vertical-align: top;
326
+ margin-bottom: -50px;
327
+ }
328
+
329
+ .CodeMirror-gutter-wrapper {
330
+ position: absolute;
331
+ z-index: 4;
332
+ background: none !important;
333
+ border: none !important;
334
+ }
335
+
336
+ .CodeMirror-gutter-background {
337
+ position: absolute;
338
+ top: 0;
339
+ bottom: 0;
340
+ z-index: 4;
341
+ }
342
+
343
+ .CodeMirror-gutter-elt {
344
+ position: absolute;
345
+ cursor: default;
346
+ z-index: 4;
347
+ }
348
+
349
+ .CodeMirror-gutter-wrapper ::selection {
350
+ background-color: transparent;
351
+ }
352
+
353
+ .CodeMirror-gutter-wrapper ::-moz-selection {
354
+ background-color: transparent;
355
+ }
356
+
357
+ .CodeMirror-lines {
358
+ cursor: text;
359
+ min-height: 1px; /* prevents collapsing before first draw */
360
+ }
361
+
362
+ .CodeMirror pre.CodeMirror-line,
363
+ .CodeMirror pre.CodeMirror-line-like {
364
+ /* Reset some styles that the rest of the page might have set */
365
+ -moz-border-radius: 0;
366
+ -webkit-border-radius: 0;
367
+ border-radius: 0;
368
+ border-width: 0;
369
+ background: transparent;
370
+ font-family: inherit;
371
+ font-size: inherit;
372
+ margin: 0;
373
+ white-space: pre;
374
+ word-wrap: normal;
375
+ line-height: inherit;
376
+ color: inherit;
377
+ z-index: 2;
378
+ position: relative;
379
+ overflow: visible;
380
+ -webkit-tap-highlight-color: transparent;
381
+ -webkit-font-variant-ligatures: contextual;
382
+ font-variant-ligatures: contextual;
383
+ }
384
+
385
+ .CodeMirror-wrap pre.CodeMirror-line,
386
+ .CodeMirror-wrap pre.CodeMirror-line-like {
387
+ word-wrap: break-word;
388
+ white-space: pre-wrap;
389
+ word-break: normal;
390
+ }
391
+
392
+ .CodeMirror-linebackground {
393
+ position: absolute;
394
+ left: 0;
395
+ right: 0;
396
+ top: 0;
397
+ bottom: 0;
398
+ z-index: 0;
399
+ }
400
+
401
+ .CodeMirror-linewidget {
402
+ position: relative;
403
+ z-index: 2;
404
+ padding: 0.1px; /* Force widget margins to stay inside of the container */
405
+ }
406
+
407
+ .CodeMirror-rtl pre {
408
+ direction: rtl;
409
+ }
410
+
411
+ .CodeMirror-code {
412
+ outline: none;
413
+ }
414
+
415
+ /* Force content-box sizing for the elements where we expect it */
416
+ .CodeMirror-scroll,
417
+ .CodeMirror-sizer,
418
+ .CodeMirror-gutter,
419
+ .CodeMirror-gutters,
420
+ .CodeMirror-linenumber {
421
+ -moz-box-sizing: content-box;
422
+ box-sizing: content-box;
423
+ }
424
+
425
+ .CodeMirror-measure {
426
+ position: absolute;
427
+ width: 100%;
428
+ height: 0;
429
+ overflow: hidden;
430
+ visibility: hidden;
431
+ }
432
+
433
+ .CodeMirror-cursor {
434
+ position: absolute;
435
+ pointer-events: none;
436
+ }
437
+
438
+ .CodeMirror-measure pre {
439
+ position: static;
440
+ }
441
+
442
+ div.CodeMirror-cursors {
443
+ visibility: hidden;
444
+ position: relative;
445
+ z-index: 3;
446
+ }
447
+
448
+ div.CodeMirror-dragcursors {
449
+ visibility: visible;
450
+ }
451
+
452
+ .CodeMirror-focused div.CodeMirror-cursors {
453
+ visibility: visible;
454
+ }
455
+
456
+ .CodeMirror-selected {
457
+ background: #d9d9d9;
458
+ }
459
+
460
+ .CodeMirror-focused .CodeMirror-selected {
461
+ background: #d7d4f0;
462
+ }
463
+
464
+ .CodeMirror-crosshair {
465
+ cursor: crosshair;
466
+ }
467
+
468
+ .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection {
469
+ background: #d7d4f0;
470
+ }
471
+
472
+ .CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection {
473
+ background: #d7d4f0;
474
+ }
475
+
476
+ .cm-searching {
477
+ background-color: #ffa;
478
+ background-color: rgba(255, 255, 0, 0.4);
479
+ }
480
+
481
+ /* Used to force a border model for a node */
482
+ .cm-force-border {
483
+ padding-right: 0.1px;
484
+ }
485
+
486
+ @media print {
487
+ /* Hide the cursor when printing */
488
+ .CodeMirror div.CodeMirror-cursors {
489
+ visibility: hidden;
490
+ }
491
+ }
492
+ /* See issue #2901 */
493
+ .cm-tab-wrap-hack:after {
494
+ content: "";
495
+ }
496
+
497
+ /* Help users use markselection to safely style text background */
498
+ span.CodeMirror-selectedtext {
499
+ background: none;
500
+ }
501
+
502
+ :root {
503
+ --bg-color: #ffffff; /*背景色*/
504
+ --text-color: #333333; /*文本颜色*/
505
+ --hover-bg-color: rgba(229, 229, 229, 0.59); /*浮动的背景色*/
506
+ --hover-text-color: inherit;
507
+ --primary-color: #428bca; /* color of primary buttons */
508
+ --primary-btn-border-color: #285e8e;
509
+ --primary-btn-text-color: #fff;
510
+ --border-radius: 0.5rem;
511
+ --border-color:#e9e9e9;
512
+ --panel-border-color: #777777;
513
+ --border-color2: #e2e2e2;
514
+ --border: 1px solid var(--border-color);
515
+ --disabled-text-color:#777;
516
+ --shadow:0 0 0.8rem rgba(128, 145, 165, 0.2);
517
+ --shadow-bold:0 0 1rem rgba(92, 92, 92, 0.2);
518
+ --line-height:1.5;
519
+ --font-family: "Open Sans","Clear Sans", "Helvetica Neue", Helvetica, Arial, "Segoe UI Emoji", sans-serif;
520
+ --monospace: "Menlo", "Liberation Mono", "Consolas", "DejaVu Sans Mono", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace;
521
+ --font-size: 1rem;
522
+ --code-bg:#fafafa;
523
+ --blur-text-color: #C8C8C8;
524
+ --bg-on-bg-color:#ebf3ff;
525
+ --table-bg-color:#f8f8f8;
526
+ --table-border-color:#dfe2e5;
527
+ --codemirror-operator-text-color: #ff8f7a; /* 珊瑚红,温暖活泼 */
528
+ --codemirror-operator-color: #5cacff; /* 天蓝色,清新明亮 */
529
+ --codemirror-operator-inner-color: #ff3333; /* 鲜红色,醒目有力 */
530
+ --drag-bg-color: #dfe6ee;
531
+ --editor-mask-bg: rgba(0, 0, 0, 0.2);
532
+ --previewer-mask-bg: rgba(0, 0, 0, 0.4);
533
+ --active-file-border-color: #e9e9e9;
534
+ }
535
+
536
+ .theme__dark {
537
+ --bg-color: #1e1e1e; /* 稍微调亮一点,提高可读性 */
538
+ --text-color: #e6e6e6; /* 略微调亮文本颜色 */
539
+ --hover-bg-color: rgba(60, 60, 60, 0.59); /* 提高对比度 */
540
+ --hover-text-color: inherit;
541
+ --primary-color: #60a5e8; /* 调亮主色调,提高可见度 */
542
+ --primary-btn-border-color: #4785c4;
543
+ --primary-btn-text-color: #ffffff;
544
+ --border-color: #3a3a3a;
545
+ --panel-border-color: #838383;
546
+ --border-color2: #404040;
547
+ --border: 1px solid var(--border-color);
548
+ --disabled-text-color: #808080;
549
+ --shadow: 0 0 0.8rem rgba(0, 0, 0, 0.35);
550
+ --shadow-bold: 0 0 1rem rgba(0, 0, 0, 0.45);
551
+ --code-bg: #282828;
552
+ --blur-text-color: #595959;
553
+ --bg-on-bg-color: #2b3544;
554
+ --table-bg-color: #282828;
555
+ --table-border-color: #383838;
556
+ --codemirror-operator-text-color: #ff9f8d; /* 夜间模式珊瑚红 */
557
+ --codemirror-operator-color: #6eb4ff; /* 夜间模式天蓝色 */
558
+ --codemirror-operator-inner-color: #ff4d4d; /* 夜间模式鲜红色 */
559
+ --drag-bg-color: #2d3642; /* 添加夜间模式的拖动条颜色 */
560
+ --editor-mask-bg: rgba(0, 0, 0, 0.3);
561
+ --previewer-mask-bg: rgba(0, 0, 0, 0.5);
562
+ --active-file-border-color: #3a3a3a;
563
+ }
564
+
565
+ .cherry .material-symbols-outlined {
566
+ font-family: "Material Symbols Outlined", serif;
567
+ font-weight: normal;
568
+ font-style: normal;
569
+ font-size: 1.4rem;
570
+ line-height: 1;
571
+ letter-spacing: normal;
572
+ text-transform: none;
573
+ display: inline-block;
574
+ white-space: nowrap;
575
+ word-wrap: normal;
576
+ direction: ltr;
577
+ -webkit-font-feature-settings: "liga";
578
+ -webkit-font-smoothing: antialiased;
579
+ position: relative;
580
+ top: 50%;
581
+ transform: translateY(-50%);
582
+ margin: 0 0.3rem;
583
+ }
584
+
585
+ .cherry-dropdown .material-symbols-outlined {
586
+ margin-right: 0.6rem;
587
+ }
588
+
589
+ .cherry-bubble {
590
+ position: absolute;
591
+ display: flex;
592
+ align-items: center;
593
+ justify-content: flex-start;
594
+ flex-wrap: wrap;
595
+ font-size: 0.875rem;
596
+ min-height: 2.1875rem;
597
+ min-width: 3.125rem;
598
+ border: var(--border);
599
+ background-color: var(--bg-color);
600
+ box-shadow: 0 0.125rem 0.9375rem -0.3125rem rgba(0, 0, 0, 0.5);
601
+ border-radius: var(--border-radius);
602
+ z-index: 8;
603
+ }
604
+
605
+ .cherry-bubble.cherry-bubble--centered {
606
+ left: 50%;
607
+ transform: translateX(-50%);
608
+ }
609
+
610
+ .cherry-bubble .cherry-bubble-top,
611
+ .cherry-bubble .cherry-bubble-bottom {
612
+ position: absolute;
613
+ left: 50%;
614
+ width: 0;
615
+ height: 0;
616
+ margin-left: -0.5rem;
617
+ border-left: 0.5rem solid rgba(0, 0, 0, 0);
618
+ border-right: 0.5rem solid rgba(0, 0, 0, 0);
619
+ }
620
+
621
+ .cherry-bubble .cherry-bubble-top {
622
+ top: 0;
623
+ transform: translateY(-100%);
624
+ border-bottom: 0.5rem solid var(--bg-color);
625
+ }
626
+
627
+ .cherry-bubble .cherry-bubble-bottom {
628
+ bottom: 0;
629
+ transform: translateY(100%);
630
+ border-top: 0.5rem solid var(--bg-color);
631
+ }
632
+
633
+ .cherry-bubble .cherry-toolbar-button {
634
+ display: inline-flex;
635
+ align-items: center;
636
+ justify-content: center;
637
+ height: 2.1875rem;
638
+ cursor: pointer;
639
+ user-select: none;
640
+ }
641
+
642
+ .cherry-bubble .cherry-toolbar-button:hover {
643
+ border-color: var(--active-file-border-color);
644
+ background-color: var(--hover-bg-color);
645
+ }
646
+
647
+ .cherry-bubble .cherry-toolbar-button.cherry-toolbar-split {
648
+ height: 65%;
649
+ min-height: calc(0.65 * 2.1875rem);
650
+ }
651
+
652
+ .cherry-switch-paste .switch-btn--bg {
653
+ position: absolute;
654
+ width: 50%;
655
+ height: 100%;
656
+ box-sizing: border-box;
657
+ z-index: -1;
658
+ left: 0;
659
+ top: 0;
660
+ opacity: 0.3;
661
+ background-color: var(--active-file-border-color);
662
+ border-radius: var(--border-radius);
663
+ transition: all 0.3s;
664
+ }
665
+
666
+ .cherry-switch-paste .cherry-toolbar-button {
667
+ display: inline-flex;
668
+ align-items: center;
669
+ justify-content: center;
670
+ width: 5rem;
671
+ text-align: center;
672
+ }
673
+
674
+ .cherry-switch-paste .cherry-toolbar-button:hover {
675
+ border-color: transparent;
676
+ }
677
+
678
+ .cherry-switch-paste[data-type=text] .cherry-text-btn {
679
+ color: var(--text-color);
680
+ }
681
+
682
+ .cherry-switch-paste[data-type=text] .cherry-md-btn {
683
+ color: var(--hover-text-color);
684
+ }
685
+
686
+ .cherry-switch-paste[data-type=md] .cherry-md-btn {
687
+ color: var(--text-color);
688
+ }
689
+
690
+ .cherry-switch-paste[data-type=md] .cherry-text-btn {
691
+ color: var(--hover-text-color);
692
+ }
693
+
694
+ .cherry-switch-paste[data-type=md] .switch-btn--bg {
695
+ left: 50%;
696
+ }
697
+
698
+ .cherry {
699
+ --toolbar-height: 3rem;
700
+ --toolbar-fontsize: 0.9rem;
701
+ }
702
+
703
+ .cherry .cherry-toolbar {
704
+ position: relative;
705
+ display: flex;
706
+ justify-content: space-between;
707
+ padding: 0 1.2rem;
708
+ height: var(--toolbar-height);
709
+ font-size: var(--toolbar-fontsize);
710
+ line-height: 2.8;
711
+ flex-basis: 100%;
712
+ box-sizing: border-box;
713
+ z-index: 2;
714
+ user-select: none;
715
+ background: var(--bg-color);
716
+ overflow: hidden;
717
+ }
718
+
719
+ .cherry .cherry-toolbar .toolbar-left,
720
+ .cherry .cherry-toolbar .toolbar-right {
721
+ display: flex;
722
+ align-items: center;
723
+ height: var(--toolbar-height);
724
+ }
725
+
726
+ .cherry .cherry-toolbar .toolbar-left {
727
+ flex: 1 1 auto;
728
+ margin-right: 1.2rem;
729
+ position: relative;
730
+ overflow-x: auto;
731
+ overflow-y: hidden;
732
+ mask-image: linear-gradient(to right, black calc(100% - 2rem), transparent 100%);
733
+ -webkit-mask-image: linear-gradient(to right, black calc(100% - 2rem), transparent 100%);
734
+ padding-right: 2rem;
735
+ }
736
+
737
+ .cherry .cherry-toolbar .toolbar-left::-webkit-scrollbar {
738
+ height: 4px;
739
+ }
740
+
741
+ .cherry .cherry-toolbar .toolbar-left::-webkit-scrollbar-thumb {
742
+ background: var(--hover-bg-color);
743
+ border-radius: var(--border-radius);
744
+ }
745
+
746
+ .cherry .cherry-toolbar .toolbar-left::-webkit-scrollbar-track {
747
+ background: transparent;
748
+ }
749
+
750
+ .cherry .cherry-toolbar .toolbar-left .cherry-toolbar-button {
751
+ flex-shrink: 0;
752
+ }
753
+
754
+ .cherry .cherry-toolbar .toolbar-right {
755
+ flex: 0 0 auto;
756
+ flex-direction: row-reverse;
757
+ margin-left: 0.8rem;
758
+ box-sizing: border-box;
759
+ }
760
+
761
+ .cherry .cherry-toolbar.preview-only .cherry-toolbar-button {
762
+ display: none;
763
+ }
764
+
765
+ .cherry .cherry-toolbar.preview-only .cherry-toolbar-preview {
766
+ display: flex;
767
+ }
768
+
769
+ .cherry .cherry-toolbar-button {
770
+ float: left;
771
+ padding: 0 0.4rem;
772
+ height: 3rem;
773
+ color: var(--text-color);
774
+ background: transparent;
775
+ border: 1px solid transparent;
776
+ -webkit-transition: background-color ease-in-out 0.15s, color ease-in-out 0.15s, border-color ease-in-out 0.15s;
777
+ transition: background-color ease-in-out 0.15s, color ease-in-out 0.15s, border-color ease-in-out 0.15s;
778
+ cursor: pointer;
779
+ font-style: normal;
780
+ display: flex;
781
+ align-items: center;
782
+ }
783
+
784
+ .cherry .cherry-toolbar-button i.material-symbols-outlined {
785
+ font-size: 1.4rem;
786
+ margin: 0 0.3rem;
787
+ position: static;
788
+ transform: none;
789
+ }
790
+
791
+ .cherry .cherry-toolbar-button:hover {
792
+ color: var(--hover-text-color);
793
+ background: var(--hover-bg-color);
794
+ }
795
+
796
+ .cherry .cherry-toolbar-button.cherry-toolbar-split {
797
+ font-size: 0;
798
+ height: 1.5rem;
799
+ padding: 0;
800
+ margin: 0.8rem 0.4rem;
801
+ border: 0.1rem solid transparent;
802
+ border-left-color: var(--border-color);
803
+ pointer-events: none;
804
+ overflow: hidden;
805
+ opacity: 0.5;
806
+ }
807
+
808
+ .cherry .cherry-toolbar-button.disabled {
809
+ color: var(--disabled-text-color);
810
+ }
811
+
812
+ .cherry .cherry-dropdown {
813
+ position: absolute;
814
+ width: 8.75rem;
815
+ min-height: 2.5rem;
816
+ background: var(--bg-color);
817
+ box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.5);
818
+ margin-left: -3.75rem;
819
+ z-index: 11;
820
+ border-radius: var(--border-radius);
821
+ max-height: 50vh;
822
+ overflow-y: auto;
823
+ }
824
+
825
+ .cherry .cherry-dropdown-item {
826
+ width: 100%;
827
+ padding: 0 0.9375rem;
828
+ text-align: left;
829
+ display: inline-block;
830
+ height: 2.25rem;
831
+ line-height: 2.25rem;
832
+ font-size: 0.775rem;
833
+ font-style: normal;
834
+ cursor: pointer;
835
+ box-sizing: border-box;
836
+ white-space: nowrap; /* 不换行 */
837
+ overflow: hidden; /* 超出隐藏 */
838
+ text-overflow: ellipsis;
839
+ }
840
+
841
+ .cherry .cherry-dropdown-item:hover {
842
+ background: var(--hover-bg-color);
843
+ color: var(--hover-text-color);
844
+ }
845
+
846
+ /* BASICS */
847
+ .CodeMirror {
848
+ /* Set height, width, borders, and global font properties here */
849
+ height: 300px;
850
+ height: auto;
851
+ }
852
+
853
+ .CodeMirror-scroll {
854
+ /* Set scrolling behaviour here */
855
+ overflow-y: hidden;
856
+ overflow-x: auto;
857
+ }
858
+
859
+ /* PADDING */
860
+ .CodeMirror-lines {
861
+ padding: 4px 0;
862
+ /* Vertical padding around content */
863
+ }
864
+
865
+ .CodeMirror pre {
866
+ /* Horizontal padding of content */
867
+ }
868
+
869
+ .CodeMirror-scrollbar-filler,
870
+ .CodeMirror-gutter-filler {
871
+ background-color: white;
872
+ /* The little square between H and V scrollbars */
873
+ }
874
+
875
+ /* GUTTER */
876
+ .CodeMirror-gutters {
877
+ border-right: 1px solid #ddd;
878
+ background-color: #f7f7f7;
879
+ white-space: nowrap;
880
+ }
881
+
882
+ .CodeMirror-linenumber {
883
+ padding: 0 3px 0 5px;
884
+ text-align: right;
885
+ color: #999;
886
+ }
887
+
888
+ /* CURSOR */
889
+ .CodeMirror div.CodeMirror-cursor {
890
+ border-left: 1px solid black;
891
+ z-index: 3;
892
+ }
893
+
894
+ /* Shown when moving in bi-directional text */
895
+ .CodeMirror div.CodeMirror-secondarycursor {
896
+ border-left: 1px solid silver;
897
+ }
898
+
899
+ .CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor {
900
+ width: auto;
901
+ border: 0;
902
+ background: #7e7;
903
+ z-index: 1;
904
+ }
905
+
906
+ /* Can style cursor different in overwrite (non-insert) mode */
907
+ .cm-tab {
908
+ display: inline-block;
909
+ }
910
+
911
+ /* DEFAULT THEME */
912
+ .cm-s-default .cm-keyword {
913
+ color: #708;
914
+ }
915
+
916
+ .cm-s-default .cm-atom,
917
+ .cm-s-default.cm-atom {
918
+ color: #219;
919
+ }
920
+
921
+ .cm-s-default .cm-number {
922
+ color: #164;
923
+ }
924
+
925
+ .cm-s-default .cm-def {
926
+ color: #00f;
927
+ }
928
+
929
+ .cm-s-default .cm-variable {
930
+ color: black;
931
+ }
932
+
933
+ .cm-s-default .cm-variable-2 {
934
+ color: #05a;
935
+ }
936
+
937
+ .cm-s-default .cm-variable-3 {
938
+ color: #085;
939
+ }
940
+
941
+ .cm-s-default .cm-property {
942
+ color: black;
943
+ }
944
+
945
+ .cm-s-default .cm-operator {
946
+ color: black;
947
+ }
948
+
949
+ .cm-s-default .cm-comment,
950
+ .cm-s-default.cm-comment {
951
+ color: #a50;
952
+ }
953
+
954
+ .cm-s-default .cm-string {
955
+ color: #a11;
956
+ }
957
+
958
+ .cm-s-default .cm-string-2 {
959
+ color: #f50;
960
+ }
961
+
962
+ .cm-s-default .cm-meta {
963
+ color: #555;
964
+ }
965
+
966
+ .cm-s-default .cm-qualifier {
967
+ color: #555;
968
+ }
969
+
970
+ .cm-s-default .cm-builtin {
971
+ color: #30a;
972
+ }
973
+
974
+ .cm-s-default .cm-bracket {
975
+ color: #997;
976
+ }
977
+
978
+ .cm-s-default .cm-tag {
979
+ color: #170;
980
+ }
981
+
982
+ .cm-s-default .cm-attribute {
983
+ color: #00c;
984
+ }
985
+
986
+ .cm-s-default .cm-header,
987
+ .cm-s-default.cm-header {
988
+ color: blue;
989
+ }
990
+
991
+ .cm-s-default .cm-quote,
992
+ .cm-s-default.cm-quote {
993
+ color: #090;
994
+ }
995
+
996
+ .cm-s-default .cm-hr,
997
+ .cm-s-default.cm-hr {
998
+ color: #999;
999
+ }
1000
+
1001
+ .cm-s-default .cm-link,
1002
+ .cm-s-default.cm-link {
1003
+ color: #00c;
1004
+ }
1005
+
1006
+ /** sourcemode highlight **/
1007
+ .cm-s-default .cm-header,
1008
+ .cm-s-default .cm-property {
1009
+ color: #D94F8A;
1010
+ }
1011
+
1012
+ .cm-s-default .cm-header {
1013
+ font-weight: bold;
1014
+ }
1015
+
1016
+ .cm-s-default .cm-header-1 {
1017
+ font-size: 2rem;
1018
+ line-height: 3rem;
1019
+ }
1020
+
1021
+ .cm-s-default .cm-header-2 {
1022
+ font-size: 1.4rem;
1023
+ line-height: 2rem;
1024
+ }
1025
+
1026
+ .cm-s-default .cm-atom,
1027
+ .cm-s-default .cm-number {
1028
+ color: #958486;
1029
+ }
1030
+
1031
+ .cm-s-default .cm-comment,
1032
+ .cm-s-default .cm-code {
1033
+ color: #4A5A9F;
1034
+ }
1035
+
1036
+ .cm-s-default .cm-tag {
1037
+ color: #a94442;
1038
+ }
1039
+
1040
+ .cm-s-default .cm-string {
1041
+ color: #7e86a9;
1042
+ }
1043
+
1044
+ .cm-s-default .cm-link {
1045
+ color: #C47A0F;
1046
+ text-decoration: underline;
1047
+ }
1048
+
1049
+ .CodeMirror.cm-s-default div.CodeMirror-cursor {
1050
+ border-left: 3px solid #E4629A;
1051
+ }
1052
+
1053
+ .cm-s-default .CodeMirror-activeline-background {
1054
+ left: -60px;
1055
+ right: -30px;
1056
+ background: rgba(204, 204, 204, 0.2);
1057
+ }
1058
+
1059
+ .cm-s-default .CodeMirror-gutters {
1060
+ border-right: none;
1061
+ }
1062
+
1063
+ .cm-s-default .cm-trailing-space-new-line:after,
1064
+ .cm-startspace:after,
1065
+ .cm-starttab .cm-tab:after {
1066
+ content: "•";
1067
+ position: absolute;
1068
+ left: 0;
1069
+ opacity: 0;
1070
+ font-family: "LetterGothicStd", monospace;
1071
+ }
1072
+
1073
+ .os-windows .cm-startspace:after,
1074
+ .os-windows .cm-starttab .cm-tab:after {
1075
+ left: -0.1em;
1076
+ }
1077
+
1078
+ .cm-starttab .cm-tab:after {
1079
+ content: " ";
1080
+ }
1081
+
1082
+ .cm-startspace, .cm-tab,
1083
+ .cm-starttab,
1084
+ .cm-trailing-space-a,
1085
+ .cm-trailing-space-b,
1086
+ .cm-trailing-space-new-line {
1087
+ position: relative;
1088
+ }
1089
+
1090
+ .cm-s-default .cm-trailing-space-new-line:after {
1091
+ content: "↓";
1092
+ opacity: 0.3;
1093
+ }
1094
+
1095
+ .cm-negative {
1096
+ color: #d44;
1097
+ }
1098
+
1099
+ .cm-positive {
1100
+ color: #292;
1101
+ }
1102
+
1103
+ .cm-header,
1104
+ .cm-strong {
1105
+ font-weight: bold;
1106
+ }
1107
+
1108
+ .cm-del {
1109
+ text-decoration: line-through;
1110
+ }
1111
+
1112
+ .cm-em {
1113
+ font-style: italic;
1114
+ }
1115
+
1116
+ .cm-link {
1117
+ text-decoration: underline;
1118
+ }
1119
+
1120
+ .cm-error {
1121
+ color: #f00;
1122
+ }
1123
+
1124
+ .cm-invalidchar {
1125
+ color: #f00;
1126
+ }
1127
+
1128
+ div.CodeMirror span.CodeMirror-matchingbracket {
1129
+ color: #0f0;
1130
+ }
1131
+
1132
+ div.CodeMirror span.CodeMirror-nonmatchingbracket {
1133
+ color: #f22;
1134
+ }
1135
+
1136
+ .cm-s-default .CodeMirror-activeline-background {
1137
+ background: inherit;
1138
+ }
1139
+
1140
+ /* STOP */
1141
+ /* The rest of this file contains styles related to the mechanics of
1142
+ the editor. You probably shouldn't touch them. */
1143
+ .CodeMirror {
1144
+ position: relative;
1145
+ overflow: hidden;
1146
+ /*background: white;*/
1147
+ }
1148
+
1149
+ .CodeMirror-scroll {
1150
+ /* 30px is the magic margin used to hide the element's real scrollbars */
1151
+ /* See overflow: hidden in .CodeMirror */
1152
+ margin-bottom: -30px;
1153
+ margin-right: -30px;
1154
+ padding-bottom: 30px;
1155
+ padding-right: 30px;
1156
+ height: 100%;
1157
+ outline: none;
1158
+ /* Prevent dragging from highlighting the element */
1159
+ position: relative;
1160
+ -moz-box-sizing: content-box;
1161
+ box-sizing: content-box;
1162
+ }
1163
+
1164
+ .CodeMirror-sizer {
1165
+ position: relative;
1166
+ }
1167
+
1168
+ /* The fake, visible scrollbars. Used to force redraw during scrolling
1169
+ before actuall scrolling happens, thus preventing shaking and
1170
+ flickering artifacts. */
1171
+ .CodeMirror-vscrollbar,
1172
+ .CodeMirror-hscrollbar,
1173
+ .CodeMirror-scrollbar-filler,
1174
+ .CodeMirror-gutter-filler {
1175
+ position: absolute;
1176
+ z-index: 6;
1177
+ display: none;
1178
+ }
1179
+
1180
+ .CodeMirror-vscrollbar {
1181
+ right: 0;
1182
+ top: 0;
1183
+ overflow-x: hidden;
1184
+ overflow-y: scroll;
1185
+ }
1186
+
1187
+ .CodeMirror-hscrollbar {
1188
+ bottom: 0;
1189
+ left: 0;
1190
+ overflow-y: hidden;
1191
+ overflow-x: scroll;
1192
+ }
1193
+
1194
+ .CodeMirror-scrollbar-filler {
1195
+ right: 0;
1196
+ bottom: 0;
1197
+ }
1198
+
1199
+ .CodeMirror-gutter-filler {
1200
+ left: 0;
1201
+ bottom: 0;
1202
+ }
1203
+
1204
+ .CodeMirror-gutters {
1205
+ position: absolute;
1206
+ left: 0;
1207
+ top: 0;
1208
+ padding-bottom: 30px;
1209
+ z-index: 3;
1210
+ }
1211
+
1212
+ .CodeMirror-gutter {
1213
+ white-space: normal;
1214
+ height: 100%;
1215
+ -moz-box-sizing: content-box;
1216
+ box-sizing: content-box;
1217
+ padding-bottom: 30px;
1218
+ margin-bottom: -32px;
1219
+ display: inline-block;
1220
+ /* Hack to make IE7 behave */
1221
+ *zoom: 1;
1222
+ *display: inline;
1223
+ }
1224
+
1225
+ .CodeMirror-gutter-elt {
1226
+ position: absolute;
1227
+ cursor: default;
1228
+ z-index: 4;
1229
+ }
1230
+
1231
+ .CodeMirror-lines {
1232
+ cursor: text;
1233
+ }
1234
+
1235
+ .CodeMirror pre {
1236
+ /* Reset some styles that the rest of the page might have set */
1237
+ -moz-border-radius: 0;
1238
+ -webkit-border-radius: 0;
1239
+ border-radius: 0;
1240
+ border-width: 0;
1241
+ background: transparent;
1242
+ font-family: inherit;
1243
+ font-size: 1rem;
1244
+ margin: 0;
1245
+ white-space: pre;
1246
+ word-wrap: normal;
1247
+ z-index: 2;
1248
+ position: relative;
1249
+ overflow: visible;
1250
+ }
1251
+
1252
+ .CodeMirror-wrap pre {
1253
+ word-wrap: break-word;
1254
+ white-space: pre-wrap;
1255
+ word-break: normal;
1256
+ }
1257
+
1258
+ .CodeMirror-code pre {
1259
+ border-right: 30px solid transparent;
1260
+ width: -webkit-fit-content;
1261
+ width: -moz-fit-content;
1262
+ width: fit-content;
1263
+ }
1264
+
1265
+ .CodeMirror-wrap .CodeMirror-code pre {
1266
+ border-right: none;
1267
+ width: auto;
1268
+ }
1269
+
1270
+ .CodeMirror-linebackground {
1271
+ position: absolute;
1272
+ left: 0;
1273
+ right: 0;
1274
+ top: 0;
1275
+ bottom: 0;
1276
+ z-index: 0;
1277
+ }
1278
+
1279
+ .CodeMirror-linewidget {
1280
+ position: relative;
1281
+ z-index: 2;
1282
+ overflow: auto;
1283
+ }
1284
+
1285
+ .CodeMirror-wrap .CodeMirror-scroll {
1286
+ overflow-x: hidden;
1287
+ }
1288
+
1289
+ .CodeMirror-measure {
1290
+ position: absolute;
1291
+ width: 100%;
1292
+ height: 0;
1293
+ overflow: hidden;
1294
+ visibility: hidden;
1295
+ }
1296
+
1297
+ .CodeMirror-measure pre {
1298
+ position: static;
1299
+ }
1300
+
1301
+ .CodeMirror div.CodeMirror-cursor {
1302
+ position: absolute;
1303
+ visibility: hidden;
1304
+ border-right: none;
1305
+ width: 0;
1306
+ }
1307
+
1308
+ .CodeMirror div.CodeMirror-cursor {
1309
+ visibility: hidden;
1310
+ }
1311
+
1312
+ .CodeMirror-focused div.CodeMirror-cursor {
1313
+ visibility: inherit;
1314
+ }
1315
+
1316
+ .CodeMirror-selected {
1317
+ background: #d9d9d9;
1318
+ }
1319
+
1320
+ .CodeMirror-focused .CodeMirror-selected {
1321
+ background: #d7d4f0;
1322
+ }
1323
+
1324
+ .cm-searching {
1325
+ background: #ffa;
1326
+ background: rgba(255, 255, 0, 0.4);
1327
+ }
1328
+
1329
+ /* IE7 hack to prevent it from returning funny offsetTops on the spans */
1330
+ .CodeMirror span {
1331
+ *vertical-align: text-bottom;
1332
+ }
1333
+
1334
+ @media print {
1335
+ /* Hide the cursor when printing */
1336
+ .CodeMirror div.CodeMirror-cursor {
1337
+ visibility: hidden;
1338
+ }
1339
+ }
1340
+ /* DARK THEME */
1341
+ .theme__dark {
1342
+ /* Cursor */
1343
+ /* Selection */
1344
+ /* Syntax Highlighting */
1345
+ }
1346
+
1347
+ .theme__dark .CodeMirror {
1348
+ color: #d4d4d4;
1349
+ background: #1e1e1e;
1350
+ }
1351
+
1352
+ .theme__dark .CodeMirror-gutters {
1353
+ background-color: #1e1e1e;
1354
+ border-right: 1px solid #333;
1355
+ }
1356
+
1357
+ .theme__dark .CodeMirror-linenumber {
1358
+ color: #858585;
1359
+ }
1360
+
1361
+ .theme__dark .CodeMirror div.CodeMirror-cursor {
1362
+ border-left: 1px solid #d4d4d4;
1363
+ }
1364
+
1365
+ .theme__dark .CodeMirror-selected {
1366
+ background: #264f78;
1367
+ }
1368
+
1369
+ .theme__dark .CodeMirror-focused .CodeMirror-selected {
1370
+ background: #264f78;
1371
+ }
1372
+
1373
+ .theme__dark .cm-s-default .cm-header,
1374
+ .theme__dark .cm-s-default .cm-property {
1375
+ color: #ff79c6;
1376
+ }
1377
+
1378
+ .theme__dark .cm-s-default .cm-keyword {
1379
+ color: #c586c0;
1380
+ }
1381
+
1382
+ .theme__dark .cm-s-default .cm-atom,
1383
+ .theme__dark .cm-s-default .cm-number {
1384
+ color: #b5cea8;
1385
+ }
1386
+
1387
+ .theme__dark .cm-s-default .cm-def {
1388
+ color: #4ec9b0;
1389
+ }
1390
+
1391
+ .theme__dark .cm-s-default .cm-variable {
1392
+ color: #9cdcfe;
1393
+ }
1394
+
1395
+ .theme__dark .cm-s-default .cm-variable-2 {
1396
+ color: #9cdcfe;
1397
+ }
1398
+
1399
+ .theme__dark .cm-s-default .cm-variable-3 {
1400
+ color: #9cdcfe;
1401
+ }
1402
+
1403
+ .theme__dark .cm-s-default .cm-comment {
1404
+ color: #6a9955;
1405
+ }
1406
+
1407
+ .theme__dark .cm-s-default .cm-string {
1408
+ color: #ce9178;
1409
+ }
1410
+
1411
+ .theme__dark .cm-s-default .cm-tag {
1412
+ color: #569cd6;
1413
+ }
1414
+
1415
+ .theme__dark .cm-s-default .cm-link {
1416
+ color: #569cd6;
1417
+ }
1418
+
1419
+ .theme__dark .cm-s-default .cm-error {
1420
+ color: #f44747;
1421
+ }
1422
+
1423
+ .theme__dark .cm-s-default .CodeMirror-activeline-background {
1424
+ background: #2c2c2c;
1425
+ }
1426
+
1427
+ .theme__dark .CodeMirror-scrollbar-filler,
1428
+ .theme__dark .CodeMirror-gutter-filler {
1429
+ background-color: #1e1e1e;
1430
+ }
1431
+
1432
+ .theme__dark .CodeMirror-gutters {
1433
+ border-right: 1px solid #333;
1434
+ background-color: #1e1e1e;
1435
+ }
1436
+
1437
+ .theme__dark .CodeMirror-linenumber {
1438
+ color: #858585;
1439
+ }
1440
+
1441
+ .theme__dark .CodeMirror div.CodeMirror-cursor {
1442
+ border-left: 1px solid #d4d4d4;
1443
+ }
1444
+
1445
+ .theme__dark .CodeMirror div.CodeMirror-secondarycursor {
1446
+ border-left: 1px solid #747474;
1447
+ }
1448
+
1449
+ .theme__dark .CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor {
1450
+ background: #5a9e5a;
1451
+ }
1452
+
1453
+ .theme__dark .cm-s-default .cm-keyword {
1454
+ color: #c586c0;
1455
+ }
1456
+
1457
+ .theme__dark .cm-s-default .cm-atom, .theme__dark .cm-s-default.cm-atom {
1458
+ color: #b5cea8;
1459
+ }
1460
+
1461
+ .theme__dark .cm-s-default .cm-number {
1462
+ color: #b5cea8;
1463
+ }
1464
+
1465
+ .theme__dark .cm-s-default .cm-def {
1466
+ color: #4ec9b0;
1467
+ }
1468
+
1469
+ .theme__dark .cm-s-default .cm-variable {
1470
+ color: #9cdcfe;
1471
+ }
1472
+
1473
+ .theme__dark .cm-s-default .cm-variable-2 {
1474
+ color: #9cdcfe;
1475
+ }
1476
+
1477
+ .theme__dark .cm-s-default .cm-variable-3 {
1478
+ color: #9cdcfe;
1479
+ }
1480
+
1481
+ .theme__dark .cm-s-default .cm-property {
1482
+ color: #9cdcfe;
1483
+ }
1484
+
1485
+ .theme__dark .cm-s-default .cm-operator {
1486
+ color: #d4d4d4;
1487
+ }
1488
+
1489
+ .theme__dark .cm-s-default .cm-comment, .theme__dark .cm-s-default.cm-comment {
1490
+ color: #6a9955;
1491
+ }
1492
+
1493
+ .theme__dark .cm-s-default .cm-string {
1494
+ color: #ce9178;
1495
+ }
1496
+
1497
+ .theme__dark .cm-s-default .cm-string-2 {
1498
+ color: #ce9178;
1499
+ }
1500
+
1501
+ .theme__dark .cm-s-default .cm-meta {
1502
+ color: #9cdcfe;
1503
+ }
1504
+
1505
+ .theme__dark .cm-s-default .cm-qualifier {
1506
+ color: #9cdcfe;
1507
+ }
1508
+
1509
+ .theme__dark .cm-s-default .cm-builtin {
1510
+ color: #4ec9b0;
1511
+ }
1512
+
1513
+ .theme__dark .cm-s-default .cm-bracket {
1514
+ color: #d4d4d4;
1515
+ }
1516
+
1517
+ .theme__dark .cm-s-default .cm-tag {
1518
+ color: #569cd6;
1519
+ }
1520
+
1521
+ .theme__dark .cm-s-default .cm-attribute {
1522
+ color: #9cdcfe;
1523
+ }
1524
+
1525
+ .theme__dark .cm-s-default .cm-header, .theme__dark .cm-s-default.cm-header {
1526
+ color: #ff79c6;
1527
+ }
1528
+
1529
+ .theme__dark .cm-s-default .cm-quote, .theme__dark .cm-s-default.cm-quote {
1530
+ color: #608b4e;
1531
+ }
1532
+
1533
+ .theme__dark .cm-s-default .cm-hr, .theme__dark .cm-s-default.cm-hr {
1534
+ color: #858585;
1535
+ }
1536
+
1537
+ .theme__dark .cm-s-default .cm-link, .theme__dark .cm-s-default.cm-link {
1538
+ color: #569cd6;
1539
+ }
1540
+
1541
+ .theme__dark .cm-s-default .cm-header,
1542
+ .theme__dark .cm-s-default .cm-property {
1543
+ color: #ff79c6;
1544
+ }
1545
+
1546
+ .theme__dark .cm-s-default .cm-atom,
1547
+ .theme__dark .cm-s-default .cm-number {
1548
+ color: #b5cea8;
1549
+ }
1550
+
1551
+ .theme__dark .cm-s-default .cm-comment,
1552
+ .theme__dark .cm-s-default .cm-code {
1553
+ color: #6a9955;
1554
+ }
1555
+
1556
+ .theme__dark .cm-s-default .cm-tag {
1557
+ color: #569cd6;
1558
+ }
1559
+
1560
+ .theme__dark .cm-s-default .cm-string {
1561
+ color: #ce9178;
1562
+ }
1563
+
1564
+ .theme__dark .cm-s-default .cm-link {
1565
+ color: #569cd6;
1566
+ }
1567
+
1568
+ .theme__dark .CodeMirror.cm-s-default div.CodeMirror-cursor {
1569
+ border-left: 3px solid #ff79c6;
1570
+ }
1571
+
1572
+ .cherry-editor {
1573
+ position: relative;
1574
+ padding-top: 0.3125rem;
1575
+ padding-right: 0.3125rem;
1576
+ width: 50%;
1577
+ box-sizing: border-box;
1578
+ overflow: hidden;
1579
+ border-right: 0.125rem solid var(--border-color);
1580
+ /*scrollbar-color: transparent transparent;*/
1581
+ }
1582
+
1583
+ .cherry-editor.cherry-editor--full {
1584
+ width: 100%;
1585
+ padding-right: 0;
1586
+ }
1587
+
1588
+ .cherry-editor.cherry-editor--hidden {
1589
+ display: none;
1590
+ }
1591
+
1592
+ .cherry-editor .CodeMirror {
1593
+ font-family: var(--font-family), serif;
1594
+ background: var(--bg-color);
1595
+ color: var(--text-color);
1596
+ }
1597
+
1598
+ .cherry-editor .CodeMirror .cm-cursor-line {
1599
+ background-color: var(--hover-bg-color);
1600
+ }
1601
+
1602
+ .cherry-editor .CodeMirror .CodeMirror-vscrollbar {
1603
+ display: none !important;
1604
+ }
1605
+
1606
+ .cherry-editor .CodeMirror textarea {
1607
+ font-size: var(--font-size);
1608
+ }
1609
+
1610
+ .cherry-editor .CodeMirror .CodeMirror-line {
1611
+ /* padding-left: 2rem;
1612
+ padding-right: 2rem;*/
1613
+ }
1614
+
1615
+ .cherry-editor .CodeMirror .CodeMirror-gutters, .cherry-editor .CodeMirror .CodeMirror-gutter {
1616
+ padding-bottom: 0;
1617
+ }
1618
+
1619
+ .cherry-editor .CodeMirror-scroll {
1620
+ margin-right: 0;
1621
+ padding-right: 0;
1622
+ }
1623
+
1624
+ .cherry-editor .CodeMirror-scroll .CodeMirror-sizer {
1625
+ margin-right: 0;
1626
+ padding-right: 0 !important;
1627
+ border-right-width: 0 !important;
1628
+ }
1629
+
1630
+ .cherry-editor .CodeMirror-lines {
1631
+ padding: 0.9375rem 2rem 0.9375rem 2rem;
1632
+ box-sizing: border-box;
1633
+ width: 100%;
1634
+ }
1635
+
1636
+ .cherry-editor .CodeMirror-lines .base64 {
1637
+ display: inline-block;
1638
+ overflow: hidden;
1639
+ text-overflow: ellipsis;
1640
+ max-width: 5rem;
1641
+ white-space: nowrap;
1642
+ vertical-align: bottom;
1643
+ font-size: 0.75rem !important;
1644
+ }
1645
+
1646
+ .cherry-editor .CodeMirror pre {
1647
+ font-family: var(--font-family), serif;
1648
+ font-size: var(--font-size);
1649
+ line-height: var(--line-height);
1650
+ }
1651
+
1652
+ .cherry-previewer a {
1653
+ color: var(--primary-color);
1654
+ position: relative;
1655
+ text-decoration: none;
1656
+ }
1657
+
1658
+ .cherry-previewer a[target=_blank] {
1659
+ padding: 0 2px;
1660
+ }
1661
+
1662
+ .cherry-previewer a[target=_blank]::after {
1663
+ margin: 0 2px;
1664
+ }
1665
+
1666
+ .cherry-previewer a:hover {
1667
+ color: var(--primary-color);
1668
+ }
1669
+
1670
+ .cherry a[target=_blank] {
1671
+ padding: 0 0.1rem;
1672
+ }
1673
+
1674
+ .cherry a[target=_blank]::after {
1675
+ font-size: 1rem;
1676
+ margin: 0 0.1rem;
1677
+ content: "open_in_new";
1678
+ inset-inline-start: 0;
1679
+ font-family: "Material Symbols Outlined", serif;
1680
+ line-height: 1rem; /* 与 font-size 相同 */
1681
+ vertical-align: middle; /* 垂直居中 */
1682
+ }
1683
+
1684
+ .cherry-previewer p {
1685
+ margin: 0 0 1rem;
1686
+ }
1687
+
1688
+ .cherry-previewer ul,
1689
+ .cherry-previewer ol,
1690
+ .cherry-previewer dl {
1691
+ margin: 0.8em 0;
1692
+ }
1693
+
1694
+ .cherry-previewer li {
1695
+ display: list-item;
1696
+ unicode-bidi: isolate;
1697
+ }
1698
+
1699
+ .cherry-previewer li ol, .cherry-previewer li ul {
1700
+ margin: 0 0;
1701
+ }
1702
+
1703
+ .cherry-previewer li p {
1704
+ margin: 0.5rem;
1705
+ }
1706
+
1707
+ .cherry-previewer li p .first {
1708
+ display: inline-block;
1709
+ }
1710
+
1711
+ .cherry-previewer ol {
1712
+ list-style-type: decimal;
1713
+ }
1714
+
1715
+ .cherry-previewer ul {
1716
+ list-style-type: disc;
1717
+ }
1718
+
1719
+ .cherry-previewer ul,
1720
+ .cherry-previewer ol {
1721
+ padding-left: 1.4rem;
1722
+ }
1723
+
1724
+ .cherry-previewer ul:first-child,
1725
+ .cherry-previewer ol:first-child {
1726
+ margin-top: 0;
1727
+ }
1728
+
1729
+ .cherry-previewer ul:last-child,
1730
+ .cherry-previewer ol:last-child {
1731
+ margin-bottom: 0;
1732
+ }
1733
+
1734
+ .cherry-previewer div ul,
1735
+ .cherry-previewer div ol {
1736
+ margin-bottom: 0;
1737
+ }
1738
+
1739
+ .cherry-previewer .check-list-item {
1740
+ list-style: none;
1741
+ margin-top: 0.5rem;
1742
+ }
1743
+
1744
+ .cherry-previewer blockquote {
1745
+ border-left: 0.5rem solid var(--blur-text-color);
1746
+ padding: 1rem 1rem;
1747
+ color: var(--panel-border-color);
1748
+ margin: 1rem 0;
1749
+ background: var(--hover-bg-color);
1750
+ }
1751
+
1752
+ .cherry-previewer blockquote blockquote {
1753
+ padding-right: 0;
1754
+ }
1755
+
1756
+ .cherry-previewer div[data-type=codeBlock] {
1757
+ /* PrismJS 1.23.0
1758
+ https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+abap+abnf+actionscript+ada+agda+al+antlr4+apacheconf+apex+apl+applescript+aql+arduino+arff+asciidoc+aspnet+asm6502+autohotkey+autoit+bash+basic+batch+bbcode+birb+bison+bnf+brainfuck+brightscript+bro+bsl+c+csharp+cpp+cfscript+chaiscript+cil+clojure+cmake+cobol+coffeescript+concurnas+csp+coq+crystal+css-extras+csv+cypher+d+dart+dataweave+dax+dhall+diff+django+dns-zone-file+docker+dot+ebnf+editorconfig+eiffel+ejs+elixir+elm+etlua+erb+erlang+excel-formula+fsharp+factor+false+firestore-security-rules+flow+fortran+ftl+gml+gcode+gdscript+gedcom+gherkin+git+glsl+go+graphql+groovy+haml+handlebars+haskell+haxe+hcl+hlsl+http+hpkp+hsts+ichigojam+icon+icu-message-format+idris+ignore+inform7+ini+io+j+java+javadoc+javadoclike+javastacktrace+jexl+jolie+jq+jsdoc+js-extras+json+json5+jsonp+jsstacktrace+js-templates+julia+keyman+kotlin+kumir+latex+latte+less+lilypond+liquid+lisp+livescript+llvm+log+lolcode+lua+makefile+markdown+markup-templating+matlab+mel+mizar+mongodb+monkey+moonscript+n1ql+n4js+nand2tetris-hdl+naniscript+nasm+neon+nevod+nginx+nim+nix+nsis+objectivec+ocaml+opencl+openqasm+oz+parigp+parser+pascal+pascaligo+psl+pcaxis+peoplecode+perl+php+phpdoc+php-extras+plsql+powerquery+powershell+processing+prolog+promql+properties+protobuf+pug+puppet+pure+purebasic+purescript+python+qsharp+q+qml+qore+r+racket+jsx+tsx+reason+regex+rego+renpy+rest+rip+roboconf+robotframework+ruby+rust+sas+sass+scss+scala+scheme+shell-session+smali+smalltalk+smarty+sml+solidity+solution-file+soy+sparql+splunk-spl+sqf+sql+squirrel+stan+iecst+stylus+swift+t4-templating+t4-cs+t4-vb+tap+tcl+tt2+textile+toml+turtle+twig+typescript+typoscript+unrealscript+uri+v+vala+vbnet+velocity+verilog+vhdl+vim+visual-basic+warpscript+wasm+wiki+wolfram+xeora+xml-doc+xojo+xquery+yaml+yang+zig */
1759
+ /**
1760
+ * prism.js default theme for JavaScript, CSS and HTML
1761
+ * Based on dabblet (http://dabblet.com)
1762
+ * @author Lea Verou
1763
+ */
1764
+ /* Code blocks */
1765
+ /* Inline code */
1766
+ display: inline-block;
1767
+ width: 100%;
1768
+ box-sizing: border-box;
1769
+ border-radius: var(--border-radius);
1770
+ margin-bottom: 1rem;
1771
+ font-size: 0.8rem;
1772
+ overflow-x: auto;
1773
+ }
1774
+
1775
+ .cherry-previewer div[data-type=codeBlock] code[class*=language-],
1776
+ .cherry-previewer div[data-type=codeBlock] pre[class*=language-] {
1777
+ color: black;
1778
+ background: none;
1779
+ text-shadow: 0 1px white;
1780
+ font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
1781
+ font-size: 1em;
1782
+ text-align: left;
1783
+ white-space: pre;
1784
+ word-spacing: normal;
1785
+ word-break: normal;
1786
+ word-wrap: normal;
1787
+ line-height: 1.5;
1788
+ -moz-tab-size: 4;
1789
+ -o-tab-size: 4;
1790
+ tab-size: 4;
1791
+ -webkit-hyphens: none;
1792
+ -moz-hyphens: none;
1793
+ -ms-hyphens: none;
1794
+ hyphens: none;
1795
+ }
1796
+
1797
+ .cherry-previewer div[data-type=codeBlock] pre[class*=language-]::-moz-selection, .cherry-previewer div[data-type=codeBlock] pre[class*=language-] ::-moz-selection,
1798
+ .cherry-previewer div[data-type=codeBlock] code[class*=language-]::-moz-selection, .cherry-previewer div[data-type=codeBlock] code[class*=language-] ::-moz-selection {
1799
+ text-shadow: none;
1800
+ background: #b3d4fc;
1801
+ }
1802
+
1803
+ .cherry-previewer div[data-type=codeBlock] pre[class*=language-]::selection, .cherry-previewer div[data-type=codeBlock] pre[class*=language-] ::selection,
1804
+ .cherry-previewer div[data-type=codeBlock] code[class*=language-]::selection, .cherry-previewer div[data-type=codeBlock] code[class*=language-] ::selection {
1805
+ text-shadow: none;
1806
+ background: #b3d4fc;
1807
+ }
1808
+
1809
+ @media print {
1810
+ .cherry-previewer div[data-type=codeBlock] code[class*=language-],
1811
+ .cherry-previewer div[data-type=codeBlock] pre[class*=language-] {
1812
+ text-shadow: none;
1813
+ }
1814
+ }
1815
+ .cherry-previewer div[data-type=codeBlock] pre[class*=language-] {
1816
+ padding: 1em;
1817
+ margin: 0.5em 0;
1818
+ overflow: auto;
1819
+ }
1820
+
1821
+ .cherry-previewer div[data-type=codeBlock] :not(pre) > code[class*=language-],
1822
+ .cherry-previewer div[data-type=codeBlock] pre[class*=language-] {
1823
+ background: #f5f2f0;
1824
+ }
1825
+
1826
+ .cherry-previewer div[data-type=codeBlock] :not(pre) > code[class*=language-] {
1827
+ padding: 0.1em;
1828
+ border-radius: 0.3em;
1829
+ white-space: normal;
1830
+ }
1831
+
1832
+ .cherry-previewer div[data-type=codeBlock] .token.comment,
1833
+ .cherry-previewer div[data-type=codeBlock] .token.prolog,
1834
+ .cherry-previewer div[data-type=codeBlock] .token.doctype,
1835
+ .cherry-previewer div[data-type=codeBlock] .token.cdata {
1836
+ color: slategray;
1837
+ }
1838
+
1839
+ .cherry-previewer div[data-type=codeBlock] .token.punctuation {
1840
+ color: #999;
1841
+ }
1842
+
1843
+ .cherry-previewer div[data-type=codeBlock] .token.namespace {
1844
+ opacity: 0.7;
1845
+ }
1846
+
1847
+ .cherry-previewer div[data-type=codeBlock] .token.property,
1848
+ .cherry-previewer div[data-type=codeBlock] .token.tag,
1849
+ .cherry-previewer div[data-type=codeBlock] .token.boolean,
1850
+ .cherry-previewer div[data-type=codeBlock] .token.number,
1851
+ .cherry-previewer div[data-type=codeBlock] .token.constant,
1852
+ .cherry-previewer div[data-type=codeBlock] .token.symbol,
1853
+ .cherry-previewer div[data-type=codeBlock] .token.deleted {
1854
+ color: #905;
1855
+ }
1856
+
1857
+ .cherry-previewer div[data-type=codeBlock] .token.selector,
1858
+ .cherry-previewer div[data-type=codeBlock] .token.attr-name,
1859
+ .cherry-previewer div[data-type=codeBlock] .token.string,
1860
+ .cherry-previewer div[data-type=codeBlock] .token.char,
1861
+ .cherry-previewer div[data-type=codeBlock] .token.builtin,
1862
+ .cherry-previewer div[data-type=codeBlock] .token.inserted {
1863
+ color: #690;
1864
+ }
1865
+
1866
+ .cherry-previewer div[data-type=codeBlock] .token.operator,
1867
+ .cherry-previewer div[data-type=codeBlock] .token.entity,
1868
+ .cherry-previewer div[data-type=codeBlock] .token.url,
1869
+ .cherry-previewer div[data-type=codeBlock] .language-css .token.string,
1870
+ .cherry-previewer div[data-type=codeBlock] .style .token.string {
1871
+ color: #9a6e3a;
1872
+ }
1873
+
1874
+ .cherry-previewer div[data-type=codeBlock] .token.atrule,
1875
+ .cherry-previewer div[data-type=codeBlock] .token.attr-value,
1876
+ .cherry-previewer div[data-type=codeBlock] .token.keyword {
1877
+ color: #07a;
1878
+ }
1879
+
1880
+ .cherry-previewer div[data-type=codeBlock] .token.function,
1881
+ .cherry-previewer div[data-type=codeBlock] .token.class-name {
1882
+ color: #DD4A68;
1883
+ }
1884
+
1885
+ .cherry-previewer div[data-type=codeBlock] .token.regex,
1886
+ .cherry-previewer div[data-type=codeBlock] .token.important,
1887
+ .cherry-previewer div[data-type=codeBlock] .token.variable {
1888
+ color: #e90;
1889
+ }
1890
+
1891
+ .cherry-previewer div[data-type=codeBlock] .token.important,
1892
+ .cherry-previewer div[data-type=codeBlock] .token.bold {
1893
+ font-weight: bold;
1894
+ }
1895
+
1896
+ .cherry-previewer div[data-type=codeBlock] .token.italic {
1897
+ font-style: italic;
1898
+ }
1899
+
1900
+ .cherry-previewer div[data-type=codeBlock] .token.entity {
1901
+ cursor: help;
1902
+ }
1903
+
1904
+ .cherry-previewer div[data-type=codeBlock] pre {
1905
+ border-radius: var(--border-radius);
1906
+ }
1907
+
1908
+ .cherry-previewer div[data-type=codeBlock] pre[class*=language-] {
1909
+ padding: 1.5rem;
1910
+ }
1911
+
1912
+ .cherry-previewer div[data-type=codeBlock] > pre {
1913
+ margin: 0;
1914
+ }
1915
+
1916
+ .cherry-previewer div[data-type=codeBlock] > pre code[class*=language-] {
1917
+ counter-reset: line;
1918
+ }
1919
+
1920
+ .cherry-previewer div[data-type=codeBlock] > pre code[class*=language-].wrap {
1921
+ white-space: pre-wrap;
1922
+ }
1923
+
1924
+ .cherry-previewer div[data-type=codeBlock] > pre code[class*=language-] .code-line {
1925
+ display: inline-block;
1926
+ position: relative;
1927
+ padding-left: 3em;
1928
+ height: 1.3em;
1929
+ line-height: 2em;
1930
+ }
1931
+
1932
+ .cherry-previewer div[data-type=codeBlock] > pre code[class*=language-] .code-line:before {
1933
+ counter-increment: line;
1934
+ content: counter(line);
1935
+ margin-right: 1em;
1936
+ position: absolute;
1937
+ left: 0;
1938
+ }
1939
+
1940
+ .cherry-previewer div[data-type=codeBlock] > pre code[class*=language-] .code-line:last-child {
1941
+ margin-bottom: 0;
1942
+ }
1943
+
1944
+ .cherry-previewer pre code {
1945
+ border: unset;
1946
+ }
1947
+
1948
+ .cherry-previewer .cherry-mask-code-block {
1949
+ width: 100%;
1950
+ padding-top: 3.125rem;
1951
+ display: none;
1952
+ background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), to(var(--bg-color)));
1953
+ background-image: linear-gradient(-180deg, rgba(255, 255, 255, 0) 0%, var(--bg-color) 100%);
1954
+ text-align: center;
1955
+ position: absolute;
1956
+ left: 0;
1957
+ right: 0;
1958
+ bottom: 0.5em;
1959
+ z-index: 10;
1960
+ }
1961
+
1962
+ .cherry-previewer .cherry-mask-code-block .expand-btn {
1963
+ height: 1.3rem;
1964
+ margin: 0;
1965
+ width: 100%;
1966
+ padding: 0;
1967
+ box-sizing: border-box;
1968
+ border: 1px solid transparent;
1969
+ cursor: pointer;
1970
+ border-radius: 0.3125rem;
1971
+ transition: all 0.3s;
1972
+ z-index: 12;
1973
+ display: inline-block;
1974
+ }
1975
+
1976
+ .cherry-previewer .cherry-mask-code-block .expand-btn:hover {
1977
+ background-color: var(--hover-bg-color);
1978
+ border-radius: var(--border-radius);
1979
+ }
1980
+
1981
+ .cherry-previewer .cherry-code-unExpand pre {
1982
+ height: 15rem;
1983
+ overflow: hidden !important;
1984
+ }
1985
+
1986
+ .cherry-previewer .cherry-code-unExpand .cherry-mask-code-block {
1987
+ display: inline-block;
1988
+ }
1989
+
1990
+ .theme__dark .cherry-previewer div[data-type=codeBlock] {
1991
+ /* PrismJS 1.23.0
1992
+ https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+abap+abnf+actionscript+ada+agda+al+antlr4+apacheconf+apex+apl+applescript+aql+arduino+arff+asciidoc+aspnet+asm6502+autohotkey+autoit+bash+basic+batch+bbcode+birb+bison+bnf+brainfuck+brightscript+bro+bsl+c+csharp+cpp+cfscript+chaiscript+cil+clojure+cmake+cobol+coffeescript+concurnas+csp+coq+crystal+css-extras+csv+cypher+d+dart+dataweave+dax+dhall+diff+django+dns-zone-file+docker+dot+ebnf+editorconfig+eiffel+ejs+elixir+elm+etlua+erb+erlang+excel-formula+fsharp+factor+false+firestore-security-rules+flow+fortran+ftl+gml+gcode+gdscript+gedcom+gherkin+git+glsl+go+graphql+groovy+haml+handlebars+haskell+haxe+hcl+hlsl+http+hpkp+hsts+ichigojam+icon+icu-message-format+idris+ignore+inform7+ini+io+j+java+javadoc+javadoclike+javastacktrace+jexl+jolie+jq+jsdoc+js-extras+json+json5+jsonp+jsstacktrace+js-templates+julia+keyman+kotlin+kumir+latex+latte+less+lilypond+liquid+lisp+livescript+llvm+log+lolcode+lua+makefile+markdown+markup-templating+matlab+mel+mizar+mongodb+monkey+moonscript+n1ql+n4js+nand2tetris-hdl+naniscript+nasm+neon+nevod+nginx+nim+nix+nsis+objectivec+ocaml+opencl+openqasm+oz+parigp+parser+pascal+pascaligo+psl+pcaxis+peoplecode+perl+php+phpdoc+php-extras+plsql+powerquery+powershell+processing+prolog+promql+properties+protobuf+pug+puppet+pure+purebasic+purescript+python+qsharp+q+qml+qore+r+racket+jsx+tsx+reason+regex+rego+renpy+rest+rip+roboconf+robotframework+ruby+rust+sas+sass+scss+scala+scheme+shell-session+smali+smalltalk+smarty+sml+solidity+solution-file+soy+sparql+splunk-spl+sqf+sql+squirrel+stan+iecst+stylus+swift+t4-templating+t4-cs+t4-vb+tap+tcl+tt2+textile+toml+turtle+twig+typescript+typoscript+unrealscript+uri+v+vala+vbnet+velocity+verilog+vhdl+vim+visual-basic+warpscript+wasm+wiki+wolfram+xeora+xml-doc+xojo+xquery+yaml+yang+zig */
1993
+ /**
1994
+ * prism.js default theme for JavaScript, CSS and HTML
1995
+ * Based on dabblet (http://dabblet.com)
1996
+ * @author Lea Verou
1997
+ */
1998
+ /* Code blocks */
1999
+ /* Inline code */
2000
+ }
2001
+
2002
+ .theme__dark .cherry-previewer div[data-type=codeBlock] code[class*=language-],
2003
+ .theme__dark .cherry-previewer div[data-type=codeBlock] pre[class*=language-] {
2004
+ color: black;
2005
+ background: none;
2006
+ text-shadow: 0 1px white;
2007
+ font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
2008
+ font-size: 1em;
2009
+ text-align: left;
2010
+ white-space: pre;
2011
+ word-spacing: normal;
2012
+ word-break: normal;
2013
+ word-wrap: normal;
2014
+ line-height: 1.5;
2015
+ -moz-tab-size: 4;
2016
+ -o-tab-size: 4;
2017
+ tab-size: 4;
2018
+ -webkit-hyphens: none;
2019
+ -moz-hyphens: none;
2020
+ -ms-hyphens: none;
2021
+ hyphens: none;
2022
+ }
2023
+
2024
+ .theme__dark .cherry-previewer div[data-type=codeBlock] pre[class*=language-]::-moz-selection, .theme__dark .cherry-previewer div[data-type=codeBlock] pre[class*=language-] ::-moz-selection,
2025
+ .theme__dark .cherry-previewer div[data-type=codeBlock] code[class*=language-]::-moz-selection, .theme__dark .cherry-previewer div[data-type=codeBlock] code[class*=language-] ::-moz-selection {
2026
+ text-shadow: none;
2027
+ background: #b3d4fc;
2028
+ }
2029
+
2030
+ .theme__dark .cherry-previewer div[data-type=codeBlock] pre[class*=language-]::selection, .theme__dark .cherry-previewer div[data-type=codeBlock] pre[class*=language-] ::selection,
2031
+ .theme__dark .cherry-previewer div[data-type=codeBlock] code[class*=language-]::selection, .theme__dark .cherry-previewer div[data-type=codeBlock] code[class*=language-] ::selection {
2032
+ text-shadow: none;
2033
+ background: #b3d4fc;
2034
+ }
2035
+
2036
+ @media print {
2037
+ .theme__dark .cherry-previewer div[data-type=codeBlock] code[class*=language-],
2038
+ .theme__dark .cherry-previewer div[data-type=codeBlock] pre[class*=language-] {
2039
+ text-shadow: none;
2040
+ }
2041
+ }
2042
+ .theme__dark .cherry-previewer div[data-type=codeBlock] pre[class*=language-] {
2043
+ padding: 1em;
2044
+ margin: 0.5em 0;
2045
+ overflow: auto;
2046
+ }
2047
+
2048
+ .theme__dark .cherry-previewer div[data-type=codeBlock] :not(pre) > code[class*=language-],
2049
+ .theme__dark .cherry-previewer div[data-type=codeBlock] pre[class*=language-] {
2050
+ background: #f5f2f0;
2051
+ }
2052
+
2053
+ .theme__dark .cherry-previewer div[data-type=codeBlock] :not(pre) > code[class*=language-] {
2054
+ padding: 0.1em;
2055
+ border-radius: 0.3em;
2056
+ white-space: normal;
2057
+ }
2058
+
2059
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.comment,
2060
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.prolog,
2061
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.doctype,
2062
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.cdata {
2063
+ color: slategray;
2064
+ }
2065
+
2066
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.punctuation {
2067
+ color: #999;
2068
+ }
2069
+
2070
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.namespace {
2071
+ opacity: 0.7;
2072
+ }
2073
+
2074
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.property,
2075
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.tag,
2076
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.boolean,
2077
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.number,
2078
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.constant,
2079
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.symbol,
2080
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.deleted {
2081
+ color: #905;
2082
+ }
2083
+
2084
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.selector,
2085
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.attr-name,
2086
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.string,
2087
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.char,
2088
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.builtin,
2089
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.inserted {
2090
+ color: #690;
2091
+ }
2092
+
2093
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.operator,
2094
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.entity,
2095
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.url,
2096
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .language-css .token.string,
2097
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .style .token.string {
2098
+ color: #9a6e3a;
2099
+ /* This background color was intended by the author of this theme. */
2100
+ background: hsla(0deg, 0%, 100%, 0.5);
2101
+ }
2102
+
2103
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.atrule,
2104
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.attr-value,
2105
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.keyword {
2106
+ color: #07a;
2107
+ }
2108
+
2109
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.function,
2110
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.class-name {
2111
+ color: #DD4A68;
2112
+ }
2113
+
2114
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.regex,
2115
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.important,
2116
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.variable {
2117
+ color: #e90;
2118
+ }
2119
+
2120
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.important,
2121
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.bold {
2122
+ font-weight: bold;
2123
+ }
2124
+
2125
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.italic {
2126
+ font-style: italic;
2127
+ }
2128
+
2129
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.entity {
2130
+ cursor: help;
2131
+ }
2132
+
2133
+ .theme__dark .cherry-previewer div[data-type=codeBlock] {
2134
+ /* PrismJS 1.23.0
2135
+ https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript */
2136
+ /**
2137
+ * prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML
2138
+ * Based on https://github.com/chriskempson/tomorrow-theme
2139
+ * @author Rose Pritchard
2140
+ */
2141
+ /* Code blocks */
2142
+ /* Inline code */
2143
+ }
2144
+
2145
+ .theme__dark .cherry-previewer div[data-type=codeBlock] code[class*=language-],
2146
+ .theme__dark .cherry-previewer div[data-type=codeBlock] pre[class*=language-] {
2147
+ color: #ccc;
2148
+ background: none;
2149
+ font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
2150
+ font-size: 1em;
2151
+ text-align: left;
2152
+ white-space: pre;
2153
+ word-spacing: normal;
2154
+ word-break: normal;
2155
+ word-wrap: normal;
2156
+ line-height: 1.5;
2157
+ -moz-tab-size: 4;
2158
+ -o-tab-size: 4;
2159
+ tab-size: 4;
2160
+ -webkit-hyphens: none;
2161
+ -moz-hyphens: none;
2162
+ -ms-hyphens: none;
2163
+ hyphens: none;
2164
+ }
2165
+
2166
+ .theme__dark .cherry-previewer div[data-type=codeBlock] pre[class*=language-] {
2167
+ padding: 1em;
2168
+ margin: 0.5em 0;
2169
+ overflow: auto;
2170
+ }
2171
+
2172
+ .theme__dark .cherry-previewer div[data-type=codeBlock] :not(pre) > code[class*=language-],
2173
+ .theme__dark .cherry-previewer div[data-type=codeBlock] pre[class*=language-] {
2174
+ background: #2d2d2d;
2175
+ }
2176
+
2177
+ .theme__dark .cherry-previewer div[data-type=codeBlock] :not(pre) > code[class*=language-] {
2178
+ padding: 0.1em;
2179
+ border-radius: 0.3em;
2180
+ white-space: normal;
2181
+ }
2182
+
2183
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.comment,
2184
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.block-comment,
2185
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.prolog,
2186
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.doctype,
2187
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.cdata {
2188
+ color: #999;
2189
+ }
2190
+
2191
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.punctuation {
2192
+ color: #ccc;
2193
+ }
2194
+
2195
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.tag,
2196
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.attr-name,
2197
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.namespace,
2198
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.deleted {
2199
+ color: #e2777a;
2200
+ }
2201
+
2202
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.function-name {
2203
+ color: #6196cc;
2204
+ }
2205
+
2206
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.boolean,
2207
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.number,
2208
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.function {
2209
+ color: #f08d49;
2210
+ }
2211
+
2212
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.property,
2213
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.class-name,
2214
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.constant,
2215
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.symbol {
2216
+ color: #f8c555;
2217
+ }
2218
+
2219
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.selector,
2220
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.important,
2221
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.atrule,
2222
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.keyword,
2223
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.builtin {
2224
+ color: #cc99cd;
2225
+ }
2226
+
2227
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.string,
2228
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.char,
2229
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.attr-value,
2230
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.regex,
2231
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.variable {
2232
+ color: #7ec699;
2233
+ }
2234
+
2235
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.operator,
2236
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.entity,
2237
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.url {
2238
+ color: #67cdcc;
2239
+ background: none;
2240
+ }
2241
+
2242
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.important,
2243
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.bold {
2244
+ font-weight: bold;
2245
+ }
2246
+
2247
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.italic {
2248
+ font-style: italic;
2249
+ }
2250
+
2251
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.entity {
2252
+ cursor: help;
2253
+ }
2254
+
2255
+ .theme__dark .cherry-previewer div[data-type=codeBlock] .token.inserted {
2256
+ color: green;
2257
+ }
2258
+
2259
+ .theme__dark .cherry-previewer div[data-type=codeBlock] code[class*=language-],
2260
+ .theme__dark .cherry-previewer div[data-type=codeBlock] pre[class*=language-] {
2261
+ text-shadow: none;
2262
+ }
2263
+
2264
+ .cherry .cherry-previewer-codeBlock-content-handler .cherry-previewer-codeBlock-content-handler__input {
2265
+ position: absolute;
2266
+ }
2267
+
2268
+ .cherry .cherry-previewer-codeBlock-click-handler {
2269
+ position: absolute;
2270
+ z-index: 1;
2271
+ }
2272
+
2273
+ .cherry .cherry-previewer-codeBlock-hover-handler {
2274
+ z-index: 0;
2275
+ position: absolute;
2276
+ }
2277
+
2278
+ .cherry .cherry-previewer-codeBlock-hover-handler .cherry-copy-code-block,
2279
+ .cherry .cherry-previewer-codeBlock-hover-handler .cherry-edit-code-block,
2280
+ .cherry .cherry-previewer-codeBlock-hover-handler .cherry-unExpand-code-block {
2281
+ position: relative;
2282
+ width: 2.5rem;
2283
+ text-align: center;
2284
+ height: 2.5rem;
2285
+ cursor: pointer;
2286
+ float: right;
2287
+ top: 1rem;
2288
+ margin-left: -1.5rem;
2289
+ transition: all 0.3s;
2290
+ z-index: 2;
2291
+ color: var(--panel-border-color);
2292
+ background-color: transparent;
2293
+ }
2294
+
2295
+ .cherry .cherry-previewer-codeBlock-hover-handler .cherry-copy-code-block .material-symbols-outlined,
2296
+ .cherry .cherry-previewer-codeBlock-hover-handler .cherry-edit-code-block .material-symbols-outlined,
2297
+ .cherry .cherry-previewer-codeBlock-hover-handler .cherry-unExpand-code-block .material-symbols-outlined {
2298
+ font-size: 1.2rem;
2299
+ }
2300
+
2301
+ .cherry .cherry-previewer-codeBlock-hover-handler .cherry-copy-code-block {
2302
+ right: 0;
2303
+ }
2304
+
2305
+ .cherry .cherry-previewer-codeBlock-hover-handler .cherry-edit-code-block {
2306
+ right: 3.5rem;
2307
+ }
2308
+
2309
+ .cherry .cherry-previewer-codeBlock-hover-handler .cherry-expand-code-block {
2310
+ position: absolute;
2311
+ text-align: center;
2312
+ height: 1.3rem;
2313
+ border: 1px solid var(--primary-color);
2314
+ cursor: pointer;
2315
+ float: right;
2316
+ border-radius: 0.3125rem;
2317
+ margin-left: -1.6875rem;
2318
+ transition: all 0.3s;
2319
+ z-index: 2;
2320
+ color: var(--primary-color);
2321
+ background-color: var(--bg-color);
2322
+ border-color: var(--primary-color);
2323
+ }
2324
+
2325
+ .cherry .cherry-previewer-codeBlock-hover-handler .cherry-expand-code-block {
2326
+ top: 2.8125rem;
2327
+ right: 0.625rem;
2328
+ }
2329
+
2330
+ .cherry .cherry-previewer-codeBlock-hover-handler .cherry-unExpand-code-block {
2331
+ right: 4rem;
2332
+ }
2333
+
2334
+ .cherry .cherry-previewer-codeBlock-hover-handler .cherry-unExpand-code-block.hidden {
2335
+ display: none;
2336
+ }
2337
+
2338
+ .cherry .cherry-previewer-codeBlock-hover-handler .cherry-copy-code-block:hover,
2339
+ .cherry .cherry-previewer-codeBlock-hover-handler .cherry-expand-code-block:hover,
2340
+ .cherry .cherry-previewer-codeBlock-hover-handler .cherry-unExpand-code-block:hover,
2341
+ .cherry .cherry-previewer-codeBlock-hover-handler .cherry-edit-code-block:hover {
2342
+ background-color: var(--hover-bg-color);
2343
+ border-radius: var(--border-radius);
2344
+ }
2345
+
2346
+ .cherry .cherry-previewer-codeBlock-hover-handler .cherry-code-preview-lang-select {
2347
+ position: absolute;
2348
+ transform: translate(0.125rem, -50%);
2349
+ }
2350
+
2351
+ .cherry-previewer :not(pre) > code {
2352
+ border: var(--border);
2353
+ background-color: var(--code-bg);
2354
+ border-radius: var(--border-radius);
2355
+ padding: 0.1rem 0.3rem;
2356
+ margin: 0 0.2rem;
2357
+ font-size: 0.9em;
2358
+ }
2359
+
2360
+ .cherry-previewer {
2361
+ word-break: break-all;
2362
+ }
2363
+
2364
+ .cherry-previewer h1,
2365
+ .cherry-previewer h2,
2366
+ .cherry-previewer h3,
2367
+ .cherry-previewer h4,
2368
+ .cherry-previewer h5,
2369
+ .cherry-previewer h6,
2370
+ .cherry-previewer .h1,
2371
+ .cherry-previewer .h2,
2372
+ .cherry-previewer .h3,
2373
+ .cherry-previewer .h4,
2374
+ .cherry-previewer .h5,
2375
+ .cherry-previewer .h6 {
2376
+ font-family: inherit;
2377
+ font-weight: 700;
2378
+ line-height: 1.1;
2379
+ color: var(--text-color);
2380
+ }
2381
+
2382
+ .cherry-previewer h1 a,
2383
+ .cherry-previewer h2 a,
2384
+ .cherry-previewer h3 a,
2385
+ .cherry-previewer h4 a,
2386
+ .cherry-previewer h5 a,
2387
+ .cherry-previewer h6 a,
2388
+ .cherry-previewer .h1 a,
2389
+ .cherry-previewer .h2 a,
2390
+ .cherry-previewer .h3 a,
2391
+ .cherry-previewer .h4 a,
2392
+ .cherry-previewer .h5 a,
2393
+ .cherry-previewer .h6 a {
2394
+ color: var(--text-color);
2395
+ }
2396
+
2397
+ .cherry-previewer h1 a.anchor,
2398
+ .cherry-previewer h2 a.anchor,
2399
+ .cherry-previewer h3 a.anchor,
2400
+ .cherry-previewer h4 a.anchor,
2401
+ .cherry-previewer h5 a.anchor,
2402
+ .cherry-previewer h6 a.anchor,
2403
+ .cherry-previewer .h1 a.anchor,
2404
+ .cherry-previewer .h2 a.anchor,
2405
+ .cherry-previewer .h3 a.anchor,
2406
+ .cherry-previewer .h4 a.anchor,
2407
+ .cherry-previewer .h5 a.anchor,
2408
+ .cherry-previewer .h6 a.anchor {
2409
+ color: var(--primary-color);
2410
+ display: none;
2411
+ }
2412
+
2413
+ .cherry-previewer h1:hover a.anchor,
2414
+ .cherry-previewer h2:hover a.anchor,
2415
+ .cherry-previewer h3:hover a.anchor,
2416
+ .cherry-previewer h4:hover a.anchor,
2417
+ .cherry-previewer h5:hover a.anchor,
2418
+ .cherry-previewer h6:hover a.anchor,
2419
+ .cherry-previewer .h1:hover a.anchor,
2420
+ .cherry-previewer .h2:hover a.anchor,
2421
+ .cherry-previewer .h3:hover a.anchor,
2422
+ .cherry-previewer .h4:hover a.anchor,
2423
+ .cherry-previewer .h5:hover a.anchor,
2424
+ .cherry-previewer .h6:hover a.anchor {
2425
+ display: inline;
2426
+ }
2427
+
2428
+ .cherry-previewer h1 small,
2429
+ .cherry-previewer h1 .small,
2430
+ .cherry-previewer h2 small,
2431
+ .cherry-previewer h2 .small,
2432
+ .cherry-previewer h3 small,
2433
+ .cherry-previewer h3 .small,
2434
+ .cherry-previewer h4 small,
2435
+ .cherry-previewer h4 .small,
2436
+ .cherry-previewer h5 small,
2437
+ .cherry-previewer h5 .small,
2438
+ .cherry-previewer h6 small,
2439
+ .cherry-previewer h6 .small,
2440
+ .cherry-previewer .h1 small,
2441
+ .cherry-previewer .h1 .small,
2442
+ .cherry-previewer .h2 small,
2443
+ .cherry-previewer .h2 .small,
2444
+ .cherry-previewer .h3 small,
2445
+ .cherry-previewer .h3 .small,
2446
+ .cherry-previewer .h4 small,
2447
+ .cherry-previewer .h4 .small,
2448
+ .cherry-previewer .h5 small,
2449
+ .cherry-previewer .h5 .small,
2450
+ .cherry-previewer .h6 small,
2451
+ .cherry-previewer .h6 .small {
2452
+ font-weight: normal;
2453
+ line-height: 1;
2454
+ color: var(--active-file-border-color);
2455
+ }
2456
+
2457
+ .cherry-previewer h1, .cherry-previewer .h1 {
2458
+ line-height: 1.2;
2459
+ }
2460
+
2461
+ .cherry-previewer h2, .cherry-previewer .h2 {
2462
+ line-height: 1.225;
2463
+ }
2464
+
2465
+ .cherry-previewer h3, .cherry-previewer .h3 {
2466
+ line-height: 1.43;
2467
+ }
2468
+
2469
+ .cherry-previewer h1, .cherry-previewer h2, .cherry-previewer .h1, .cherry-previewer .h2 {
2470
+ border-bottom: 1px solid var(--active-file-bg-color);
2471
+ }
2472
+
2473
+ .cherry-previewer h1,
2474
+ .cherry-previewer h2,
2475
+ .cherry-previewer h3,
2476
+ .cherry-previewer .h1,
2477
+ .cherry-previewer .h2,
2478
+ .cherry-previewer .h3 {
2479
+ margin-top: 1.3rem;
2480
+ margin-bottom: 1.3rem;
2481
+ }
2482
+
2483
+ .cherry-previewer h1 small,
2484
+ .cherry-previewer h1 .small,
2485
+ .cherry-previewer h2 small,
2486
+ .cherry-previewer h2 .small,
2487
+ .cherry-previewer h3 small,
2488
+ .cherry-previewer h3 .small,
2489
+ .cherry-previewer .h1 small,
2490
+ .cherry-previewer .h1 .small,
2491
+ .cherry-previewer .h2 small,
2492
+ .cherry-previewer .h2 .small,
2493
+ .cherry-previewer .h3 small,
2494
+ .cherry-previewer .h3 .small {
2495
+ font-size: 65%;
2496
+ }
2497
+
2498
+ .cherry-previewer h4,
2499
+ .cherry-previewer h5,
2500
+ .cherry-previewer h6,
2501
+ .cherry-previewer .h4,
2502
+ .cherry-previewer .h5,
2503
+ .cherry-previewer .h6 {
2504
+ margin-top: 0.8rem;
2505
+ margin-bottom: 0.8rem;
2506
+ }
2507
+
2508
+ .cherry-previewer h4 small,
2509
+ .cherry-previewer h4 .small,
2510
+ .cherry-previewer h5 small,
2511
+ .cherry-previewer h5 .small,
2512
+ .cherry-previewer h6 small,
2513
+ .cherry-previewer h6 .small,
2514
+ .cherry-previewer .h4 small,
2515
+ .cherry-previewer .h4 .small,
2516
+ .cherry-previewer .h5 small,
2517
+ .cherry-previewer .h5 .small,
2518
+ .cherry-previewer .h6 small,
2519
+ .cherry-previewer .h6 .small {
2520
+ font-size: 75%;
2521
+ }
2522
+
2523
+ .cherry-previewer h1-1,
2524
+ .cherry-previewer .h1-1 {
2525
+ font-size: 2.25em;
2526
+ }
2527
+
2528
+ .cherry-previewer h1-1,
2529
+ .cherry-previewer .h1-1 {
2530
+ font-size: 1.75em;
2531
+ }
2532
+
2533
+ .cherry-previewer h1-1,
2534
+ .cherry-previewer .h1-1 {
2535
+ font-size: 1.5em;
2536
+ }
2537
+
2538
+ .cherry-previewer h1-1,
2539
+ .cherry-previewer .h1-1 {
2540
+ font-size: 1.25em;
2541
+ }
2542
+
2543
+ .cherry-previewer h1-1,
2544
+ .cherry-previewer .h1-1 {
2545
+ font-size: 1.1em;
2546
+ }
2547
+
2548
+ .cherry-previewer h1-1,
2549
+ .cherry-previewer .h1-1 {
2550
+ font-size: 1em;
2551
+ }
2552
+
2553
+ :root {
2554
+ --important-title-color: #230555;
2555
+ --important-bg-color: #f4eefe;
2556
+ --important-border-color: #a371f7;
2557
+ --important-code-bg-color: rgb(163 113 247 / 10%);
2558
+ --info-title-color: #193c47;
2559
+ --info-bg-color: #eef9fd;
2560
+ --info-border-color: #4cb3d4;
2561
+ --info-code-bg-color: rgb(76 179 212 / 10%);
2562
+ --note-title-color: #474748;
2563
+ --note-bg-color: #fdfdfe;
2564
+ --note-border-color: #ccc;
2565
+ --note-code-bg-color: rgb(212 213 216 / 20%);
2566
+ --tip-title-color: #003100;
2567
+ --tip-bg-color: #e6f6e6;
2568
+ --tip-border-color: #009400;
2569
+ --tip-code-bg-color: rgb(0 148 0 / 15%);
2570
+ --warning-title-color: #4d3800;
2571
+ --warning-bg-color: #fff8e6;
2572
+ --warning-border-color: #e6a700;
2573
+ --warning-code-bg-color: rgb(230 167 0 / 15%);
2574
+ --danger-title-color: #4b1113;
2575
+ --danger-bg-color: #ffebec;
2576
+ --danger-border-color: #e13238;
2577
+ --danger-code-bg-color: rgb(225 50 56 / 15%);
2578
+ }
2579
+
2580
+ .theme__dark {
2581
+ --important-title-color: #f4eefe;
2582
+ --important-bg-color: #230555;
2583
+ --info-title-color: #eef9fd;
2584
+ --info-bg-color: #193c47;
2585
+ --note-title-color: #fdfdfe;
2586
+ --note-bg-color: #474748;
2587
+ --tip-title-color: #e6f6e6;
2588
+ --tip-bg-color: #003100;
2589
+ --warning-title-color: #fff8e6;
2590
+ --warning-bg-color: #4d3800;
2591
+ --danger-title-color: #ffebec;
2592
+ --danger-bg-color: #4b1113;
2593
+ }
2594
+
2595
+ .cherry-previewer .cherry-panel {
2596
+ margin: 1rem 0;
2597
+ padding: 0.25rem 1rem;
2598
+ border-inline-start-width: 0.3rem;
2599
+ border-inline-start-style: solid;
2600
+ border-radius: var(--border-radius);
2601
+ color: inherit;
2602
+ }
2603
+
2604
+ .cherry-previewer .cherry-panel .cherry-panel--title__not-empty {
2605
+ padding: 0.25rem 1rem;
2606
+ padding-inline-start: 1.75rem;
2607
+ line-height: 1.5;
2608
+ position: relative;
2609
+ font-weight: 600;
2610
+ overflow-wrap: break-word;
2611
+ }
2612
+
2613
+ .cherry-previewer .cherry-panel .cherry-panel--title__not-empty:before {
2614
+ content: " ";
2615
+ position: absolute;
2616
+ inset-inline-start: 0;
2617
+ top: calc(50% - 0.6125em);
2618
+ width: 1.25em;
2619
+ height: 1.25em;
2620
+ background-position: left;
2621
+ background-repeat: no-repeat;
2622
+ }
2623
+
2624
+ .cherry-previewer .cherry-panel .cherry-panel--title {
2625
+ margin: 1rem 0;
2626
+ }
2627
+
2628
+ .cherry-previewer .cherry-panel.cherry-panel__important {
2629
+ border-color: var(--important-border-color);
2630
+ background: var(--important-bg-color);
2631
+ color: var(--important-title-color);
2632
+ }
2633
+
2634
+ .cherry-previewer .cherry-panel.cherry-panel__important .cherry-panel--title__not-empty:before {
2635
+ background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M512 981.333a84.992 84.992 0 0 1-84.907-84.906h169.814A84.992 84.992 0 0 1 512 981.333zm384-128H128v-42.666l85.333-85.334v-256A298.325 298.325 0 0 1 448 177.92V128a64 64 0 0 1 128 0v49.92a298.325 298.325 0 0 1 234.667 291.413v256L896 810.667v42.666zm-426.667-256v85.334h85.334v-85.334h-85.334zm0-256V512h85.334V341.333h-85.334z' fill='%23a371f7'/%3E%3C/svg%3E");
2636
+ }
2637
+
2638
+ .cherry-previewer .cherry-panel.cherry-panel__important .cherry-panel--body pre {
2639
+ background: var(--important-code-bg-color);
2640
+ }
2641
+
2642
+ .cherry-previewer .cherry-panel.cherry-panel__info {
2643
+ border-color: var(--info-border-color);
2644
+ background: var(--info-bg-color);
2645
+ color: var(--info-title-color);
2646
+ }
2647
+
2648
+ .cherry-previewer .cherry-panel.cherry-panel__info .cherry-panel--title__not-empty:before {
2649
+ background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-11v6h2v-6h-2zm0-4v2h2V7h-2z' fill='%234cb3d4'/%3E%3C/svg%3E");
2650
+ }
2651
+
2652
+ .cherry-previewer .cherry-panel.cherry-panel__info .cherry-panel--body pre {
2653
+ background: var(--info-code-bg-color);
2654
+ }
2655
+
2656
+ .cherry-previewer .cherry-panel.cherry-panel__note {
2657
+ border-color: var(--note-border-color);
2658
+ background: var(--note-bg-color);
2659
+ color: var(--note-title-color);
2660
+ }
2661
+
2662
+ .cherry-previewer .cherry-panel.cherry-panel__note .cherry-panel--title__not-empty:before {
2663
+ background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-11v6h2v-6h-2zm0-4v2h2V7h-2z' fill='%23ccc'/%3E%3C/svg%3E");
2664
+ }
2665
+
2666
+ .cherry-previewer .cherry-panel.cherry-panel__note .cherry-panel--body pre {
2667
+ background: var(--note-code-bg-color);
2668
+ }
2669
+
2670
+ .cherry-previewer .cherry-panel.cherry-panel__tip {
2671
+ border-color: var(--tip-border-color);
2672
+ background: var(--tip-bg-color);
2673
+ color: var(--tip-title-color);
2674
+ }
2675
+
2676
+ .cherry-previewer .cherry-panel.cherry-panel__tip .cherry-panel--title__not-empty:before {
2677
+ background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23009400' d='M7.941 18c-.297-1.273-1.637-2.314-2.187-3a8 8 0 1 1 12.49.002c-.55.685-1.888 1.726-2.185 2.998H7.94zM16 20v1a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-1h8zm-3-9.995V6l-4.5 6.005H11v4l4.5-6H13z'/%3E%3C/svg%3E");
2678
+ }
2679
+
2680
+ .cherry-previewer .cherry-panel.cherry-panel__tip .cherry-panel--body pre {
2681
+ background: var(--tip-code-bg-color);
2682
+ }
2683
+
2684
+ .cherry-previewer .cherry-panel.cherry-panel__warning {
2685
+ border-color: var(--warning-border-color);
2686
+ background: var(--warning-bg-color);
2687
+ color: var(--warning-title-color);
2688
+ }
2689
+
2690
+ .cherry-previewer .cherry-panel.cherry-panel__warning .cherry-panel--title__not-empty:before {
2691
+ background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M576.286 752.57v-95.425q0-7.031-4.771-11.802t-11.3-4.772h-96.43q-6.528 0-11.3 4.772t-4.77 11.802v95.424q0 7.031 4.77 11.803t11.3 4.77h96.43q6.528 0 11.3-4.77t4.77-11.803zm-1.005-187.836 9.04-230.524q0-6.027-5.022-9.543-6.529-5.524-12.053-5.524H456.754q-5.524 0-12.053 5.524-5.022 3.516-5.022 10.547l8.538 229.52q0 5.023 5.022 8.287t12.053 3.265h92.913q7.032 0 11.803-3.265t5.273-8.287zM568.25 95.65l385.714 707.142q17.578 31.641-1.004 63.282-8.538 14.564-23.354 23.102t-31.892 8.538H126.286q-17.076 0-31.892-8.538T71.04 866.074q-18.582-31.641-1.004-63.282L455.75 95.65q8.538-15.57 23.605-24.61T512 62t32.645 9.04 23.605 24.61z' fill='%23e6a700'/%3E%3C/svg%3E");
2692
+ }
2693
+
2694
+ .cherry-previewer .cherry-panel.cherry-panel__warning .cherry-panel--body pre {
2695
+ background: var(--warning-code-bg-color);
2696
+ }
2697
+
2698
+ .cherry-previewer .cherry-panel.cherry-panel__danger {
2699
+ border-color: var(--danger-border-color);
2700
+ background: var(--danger-bg-color);
2701
+ color: var(--danger-title-color);
2702
+ }
2703
+
2704
+ .cherry-previewer .cherry-panel.cherry-panel__danger .cherry-panel--title__not-empty:before {
2705
+ background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c5.523 0 10 4.477 10 10v3.764a2 2 0 0 1-1.106 1.789L18 19v1a3 3 0 0 1-2.824 2.995L14.95 23a2.5 2.5 0 0 0 .044-.33L15 22.5V22a2 2 0 0 0-1.85-1.995L13 20h-2a2 2 0 0 0-1.995 1.85L9 22v.5c0 .171.017.339.05.5H9a3 3 0 0 1-3-3v-1l-2.894-1.447A2 2 0 0 1 2 15.763V12C2 6.477 6.477 2 12 2zm-4 9a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm8 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4z' fill='%23e13238'/%3E%3C/svg%3E");
2706
+ }
2707
+
2708
+ .cherry-previewer .cherry-panel.cherry-panel__danger .cherry-panel--body pre {
2709
+ background: var(--danger-code-bg-color);
2710
+ }
2711
+
2712
+ .cherry-previewer .cherry-text-align.cherry-text-align__center table {
2713
+ margin-left: auto;
2714
+ margin-right: auto;
2715
+ }
2716
+
2717
+ .cherry-previewer .cherry-text-align.cherry-text-align__right table {
2718
+ margin-left: auto;
2719
+ }
2720
+
2721
+ .cherry-editor .cm-panel-container {
2722
+ color: var(--codemirror-operator-color);
2723
+ font-weight: bold;
2724
+ }
2725
+
2726
+ .cherry-editor .cm-panel-type {
2727
+ color: var(--codemirror-operator-inner-color);
2728
+ }
2729
+
2730
+ .cherry-editor .cm-panel-title {
2731
+ color: var(--codemirror-operator-text-color);
2732
+ }
2733
+
2734
+ .cherry-previewer {
2735
+ --detail-bg-color: #eee;
2736
+ --detail-summary-icon-bg:#ccc;
2737
+ --detail-text-color: inherit;
2738
+ --detail-code-bg-color: rgb(127 127 127 / 15%);
2739
+ }
2740
+
2741
+ .cherry-previewer .cherry-detail {
2742
+ position: relative;
2743
+ display: block;
2744
+ margin: 1rem 0;
2745
+ padding: 1.5rem;
2746
+ border-radius: var(--border-radius);
2747
+ background: var(--detail-bg-color);
2748
+ color: var(--detail-text-color);
2749
+ }
2750
+
2751
+ .cherry-previewer .cherry-detail details summary {
2752
+ position: relative;
2753
+ margin: -1.5rem;
2754
+ padding-block: 1.5rem;
2755
+ padding-inline: 4rem 1.5rem;
2756
+ list-style: none;
2757
+ cursor: pointer;
2758
+ }
2759
+
2760
+ .cherry-previewer .cherry-detail details summary:before {
2761
+ content: " ";
2762
+ position: absolute;
2763
+ inset-inline-start: 1.5rem;
2764
+ top: calc(50% - 0.75rem);
2765
+ width: 1.5rem;
2766
+ height: 1.5rem;
2767
+ border-radius: var(--border-radius);
2768
+ background: var(--detail-summary-icon-bg);
2769
+ }
2770
+
2771
+ .cherry-previewer .cherry-detail details summary:after {
2772
+ content: " ";
2773
+ position: absolute;
2774
+ inset-inline-start: 1.5rem;
2775
+ top: calc(50% - 0.75rem);
2776
+ width: 1.5rem;
2777
+ height: 1.5rem;
2778
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgb(0,0,0,0.5)' d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E");
2779
+ line-height: normal;
2780
+ transition: transform 0.3s ease;
2781
+ transform: rotate(90deg);
2782
+ }
2783
+
2784
+ .cherry-previewer .cherry-detail.cherry-detail__multiple summary {
2785
+ margin: -0.8rem;
2786
+ }
2787
+
2788
+ .cherry-previewer .cherry-detail.cherry-detail__multiple .cherry-detail-body {
2789
+ padding: 1rem 1.5rem 1rem 1.5rem;
2790
+ }
2791
+
2792
+ .cherry-previewer .cherry-detail details[open] summary:after {
2793
+ transform: rotate(180deg);
2794
+ }
2795
+
2796
+ .cherry-previewer .cherry-detail .cherry-detail-body {
2797
+ padding: 1rem 1.5rem 0 1.5rem;
2798
+ }
2799
+
2800
+ .cherry-previewer .cherry-detail .cherry-detail-body :last-child {
2801
+ margin-bottom: 0;
2802
+ }
2803
+
2804
+ .cherry-editor .cm-detail-container {
2805
+ color: var(--codemirror-operator-color);
2806
+ font-weight: bold;
2807
+ }
2808
+
2809
+ .cherry-editor .cm-detail-title {
2810
+ color: var(--codemirror-operator-text-color);
2811
+ }
2812
+
2813
+ .theme__dark .cherry-previewer {
2814
+ --detail-bg-color: #2d2d2d;
2815
+ --detail-summary-icon-bg: #444444;
2816
+ --detail-text-color: #e0e0e0;
2817
+ --detail-code-bg-color: rgb(0 0 0 / 20%);
2818
+ }
2819
+
2820
+ .theme__dark .cherry-previewer .cherry-detail details summary:after {
2821
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgb(224,224,224,0.8)' d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E");
2822
+ }
2823
+
2824
+ .cherry-previewer em {
2825
+ font-style: italic;
2826
+ }
2827
+
2828
+ .cherry-previewer b,
2829
+ .cherry-previewer strong {
2830
+ font-weight: bold;
2831
+ }
2832
+
2833
+ .cherry-previewer img, .cherry-previewer video, .cherry-previewer audio {
2834
+ max-width: 100%;
2835
+ }
2836
+
2837
+ .cherry-previewer a[target=_blank].cherry-file {
2838
+ padding: 0 !important;
2839
+ }
2840
+
2841
+ .cherry-previewer a[target=_blank].cherry-file::after {
2842
+ content: "";
2843
+ display: none;
2844
+ }
2845
+
2846
+ .cherry-previewer .cherry-file {
2847
+ max-width: 300px;
2848
+ }
2849
+
2850
+ .cherry-previewer .cherry-file.cherry-card-list-container {
2851
+ margin: 0 !important;
2852
+ }
2853
+
2854
+ .cherry-previewer .cherry-file .cherry-card-item {
2855
+ padding: 0;
2856
+ background: var(--primary-color) !important;
2857
+ color: var(--primary-btn-text-color) !important;
2858
+ }
2859
+
2860
+ .cherry-previewer .cherry-file .cherry-card-image {
2861
+ font-size: 4rem;
2862
+ position: unset;
2863
+ transform: none;
2864
+ display: flex;
2865
+ align-items: center;
2866
+ margin-left: 1rem;
2867
+ }
2868
+
2869
+ .cherry-previewer .cherry-file .cherry-no-desc {
2870
+ display: flex !important;
2871
+ align-items: center;
2872
+ justify-content: center;
2873
+ }
2874
+
2875
+ .cherry-previewer .cherry-file .cherry-card-desc {
2876
+ display: flex !important;
2877
+ align-items: center; /* 垂直对齐 */
2878
+ justify-content: center;
2879
+ }
2880
+
2881
+ .cherry-previewer .cherry-file .cherry-card-desc span {
2882
+ position: unset;
2883
+ transform: none;
2884
+ }
2885
+
2886
+ .cherry-editor .cm-s-default .cm-image-type, .cherry-editor .cm-s-default .cm-image-split {
2887
+ color: var(--codemirror-operator-inner-color);
2888
+ }
2889
+
2890
+ .cherry-previewer .cherry-card {
2891
+ margin: 0.7rem 0;
2892
+ }
2893
+
2894
+ .cherry-previewer .cherry-card a::after {
2895
+ content: "";
2896
+ display: none;
2897
+ clear: both;
2898
+ }
2899
+
2900
+ .cherry-previewer .cherry-card .cherry-card-item {
2901
+ width: calc(33.3333333333% - 1rem);
2902
+ margin: 0.35rem;
2903
+ background: var(--bg-color);
2904
+ border-radius: var(--border-radius);
2905
+ color: var(--text-color);
2906
+ display: flex;
2907
+ box-shadow: var(--shadow);
2908
+ transition: all 0.4s;
2909
+ }
2910
+
2911
+ .cherry-previewer .cherry-card .cherry-card-item.cherry-card-row-1 {
2912
+ width: calc(100% - 1rem);
2913
+ }
2914
+
2915
+ .cherry-previewer .cherry-card .cherry-card-item.cherry-card-row-2 {
2916
+ width: calc(50% - 1rem);
2917
+ }
2918
+
2919
+ @media screen and (max-width: 500px) {
2920
+ .cherry-previewer .cherry-card .cherry-card-item.cherry-card-row-2 {
2921
+ width: calc(100% - 1rem);
2922
+ }
2923
+ }
2924
+ .cherry-previewer .cherry-card .cherry-card-item.cherry-card-row-3 {
2925
+ width: calc(33.3333333333% - 1rem);
2926
+ }
2927
+
2928
+ @media screen and (max-width: 720px) {
2929
+ .cherry-previewer .cherry-card .cherry-card-item.cherry-card-row-3 {
2930
+ width: calc(50% - 1rem);
2931
+ }
2932
+ }
2933
+ @media (max-width: 500px) {
2934
+ .cherry-previewer .cherry-card .cherry-card-item.cherry-card-row-3 {
2935
+ width: calc(100% - 1rem);
2936
+ }
2937
+ }
2938
+ .cherry-previewer .cherry-card .cherry-card-item.cherry-card-row-4 {
2939
+ width: calc(25% - 1rem);
2940
+ }
2941
+
2942
+ @media screen and (max-width: 900px) {
2943
+ .cherry-previewer .cherry-card .cherry-card-item.cherry-card-row-4 {
2944
+ width: calc(33.3333333333% - 1rem);
2945
+ }
2946
+ }
2947
+ @media screen and (max-width: 720px) {
2948
+ .cherry-previewer .cherry-card .cherry-card-item.cherry-card-row-4 {
2949
+ width: calc(50% - 1rem);
2950
+ }
2951
+ }
2952
+ @media screen and (max-width: 500px) {
2953
+ .cherry-previewer .cherry-card .cherry-card-item.cherry-card-row-4 {
2954
+ width: calc(100% - 1rem);
2955
+ }
2956
+ }
2957
+ .cherry-previewer .cherry-card.cherry-card-list-container {
2958
+ margin: -0.35rem;
2959
+ display: flex;
2960
+ flex-wrap: wrap;
2961
+ align-items: flex-start;
2962
+ }
2963
+
2964
+ .cherry-previewer .cherry-card.cherry-card-list-container .cherry-card-item .cherry-card-body {
2965
+ height: 4rem;
2966
+ width: calc(100% - 6rem);
2967
+ }
2968
+
2969
+ .cherry-previewer .cherry-card.cherry-card-list-container .cherry-card-item:hover {
2970
+ text-decoration: none;
2971
+ box-shadow: var(--shadow);
2972
+ transform: translateY(-3px) scale(1.01);
2973
+ }
2974
+
2975
+ .cherry-previewer .cherry-card.cherry-card-list-container .cherry-card-item:hover img {
2976
+ box-shadow: var(--shadow);
2977
+ }
2978
+
2979
+ .cherry-previewer .cherry-card.cherry-card-list-container .cherry-card-item:hover div p {
2980
+ text-shadow: var(--shadow);
2981
+ }
2982
+
2983
+ .cherry-previewer .cherry-card.cherry-card-list-container .cherry-card-item img {
2984
+ width: 4rem;
2985
+ height: 4rem;
2986
+ border-radius: 50%;
2987
+ border: var(--border);
2988
+ margin: 1rem 0 1rem 1rem;
2989
+ box-shadow: var(--shadow);
2990
+ transition: all 0.4s;
2991
+ }
2992
+
2993
+ .cherry-previewer .cherry-card.cherry-card-list-container .cherry-card-item div {
2994
+ flex: 1;
2995
+ display: inline-block;
2996
+ float: right;
2997
+ padding: 1rem 0;
2998
+ }
2999
+
3000
+ .cherry-previewer .cherry-card.cherry-card-list-container .cherry-card-item div p {
3001
+ margin: 0;
3002
+ padding: 0 1rem;
3003
+ transition: text-shadow 0.4s;
3004
+ text-align: center;
3005
+ }
3006
+
3007
+ .cherry-previewer .cherry-card.cherry-card-list-container .cherry-card-item div .cherry-card-title {
3008
+ margin: 0.2rem 0 0.3rem;
3009
+ font-size: 1rem;
3010
+ font-weight: bold;
3011
+ white-space: nowrap; /* 文本不换行 */
3012
+ overflow: hidden; /* 隐藏超出容器的内容 */
3013
+ text-overflow: ellipsis; /* 超出部分显示省略号 */
3014
+ }
3015
+
3016
+ .cherry-previewer .cherry-card.cherry-card-list-container .cherry-card-item div .cherry-card-desc {
3017
+ font-size: 0.8rem;
3018
+ opacity: 0.8;
3019
+ margin-bottom: 0.2rem;
3020
+ overflow: hidden; /* 隐藏超出容器的内容 */
3021
+ display: -webkit-box; /* 使用弹性盒子模型 */
3022
+ -webkit-box-orient: vertical; /* 垂直布局 */
3023
+ -webkit-line-clamp: 2; /* 限制显示的行数为 2 行 */
3024
+ text-overflow: ellipsis; /* 超出部分显示省略号 */
3025
+ line-height: 1.5; /* 设置行高 */
3026
+ max-height: 3em; /* 行高的倍数(2行 * 1.5行高 = 3em) */
3027
+ }
3028
+
3029
+ .cherry-previewer .cherry-card.cherry-card-list-container .cherry-card-item.cherry-card-row-1 img {
3030
+ margin-left: 2rem;
3031
+ }
3032
+
3033
+ .cherry-previewer .cherry-card.cherry-card-list-container .cherry-card-item.cherry-card-row-2 img {
3034
+ margin-left: 1.5rem;
3035
+ }
3036
+
3037
+ .cherry-previewer .cherry-card.cherry-card-image-container {
3038
+ margin: 1rem 0;
3039
+ display: flex;
3040
+ flex-wrap: wrap;
3041
+ align-items: flex-start;
3042
+ }
3043
+
3044
+ .cherry-previewer .cherry-card.cherry-card-image-container .cherry-card-item {
3045
+ background: transparent;
3046
+ }
3047
+
3048
+ .cherry-previewer .cherry-card.cherry-card-image-container .cherry-card-item:hover {
3049
+ box-shadow: var(--shadow);
3050
+ transform: translateY(-3px);
3051
+ }
3052
+
3053
+ .cherry-previewer .cherry-card.cherry-card-image-container .cherry-card-item .cherry-card-box-img {
3054
+ border-radius: var(--border-radius) var(--border-radius) 0 0;
3055
+ overflow: hidden;
3056
+ position: relative;
3057
+ background: transparent;
3058
+ height: 8rem;
3059
+ }
3060
+
3061
+ .cherry-previewer .cherry-card.cherry-card-image-container .cherry-card-item .cherry-card-box-img img {
3062
+ display: block;
3063
+ width: 100%;
3064
+ height: 100%;
3065
+ transition: all 0.3s;
3066
+ }
3067
+
3068
+ .cherry-previewer .cherry-card.cherry-card-image-container .cherry-card-item a {
3069
+ color: var(--textColor);
3070
+ transition: color 0.3s;
3071
+ }
3072
+
3073
+ .cherry-previewer .cherry-card.cherry-card-image-container .cherry-card-item a:hover {
3074
+ text-decoration: none;
3075
+ }
3076
+
3077
+ .cherry-previewer .cherry-card.cherry-card-image-container .cherry-card-item .cherry-card-box-info {
3078
+ border-radius: 0 0 var(--border-radius) var(--border-radius);
3079
+ padding: 0.8rem 1rem;
3080
+ background: var(--bg-color);
3081
+ }
3082
+
3083
+ .cherry-previewer .cherry-card.cherry-card-image-container .cherry-card-item .cherry-card-box-info p {
3084
+ margin: 0;
3085
+ }
3086
+
3087
+ .cherry-previewer .cherry-card.cherry-card-image-container .cherry-card-item .cherry-card-box-info .cherry-card-title {
3088
+ font-size: 1rem;
3089
+ font-weight: bold;
3090
+ }
3091
+
3092
+ .cherry-previewer .cherry-card.cherry-card-image-container .cherry-card-item .cherry-card-box-info .cherry-card-desc {
3093
+ margin-top: 0.3rem;
3094
+ opacity: 0.8;
3095
+ font-size: 0.9rem;
3096
+ line-height: 1.1rem;
3097
+ overflow: hidden;
3098
+ white-space: normal;
3099
+ text-overflow: ellipsis;
3100
+ display: -webkit-box;
3101
+ -webkit-box-orient: vertical;
3102
+ -webkit-line-clamp: 3;
3103
+ }
3104
+
3105
+ .cherry-previewer hr {
3106
+ height: 0;
3107
+ border: 0;
3108
+ border-top: 2px solid var(--border-color2);
3109
+ margin: 1rem 0;
3110
+ box-sizing: content-box;
3111
+ overflow: visible;
3112
+ }
3113
+
3114
+ .cherry-previewer table {
3115
+ margin: 0.8em 0;
3116
+ padding: 0;
3117
+ word-break: initial;
3118
+ border-collapse: collapse;
3119
+ }
3120
+
3121
+ .cherry-previewer table tr {
3122
+ border: 1px solid var(--table-border-color);
3123
+ margin: 0;
3124
+ padding: 0;
3125
+ }
3126
+
3127
+ .cherry-previewer table tr:nth-child(2n),
3128
+ .cherry-previewer table tr thead {
3129
+ background-color: var(--table-bg-color);
3130
+ }
3131
+
3132
+ .cherry-previewer table tr th,
3133
+ .cherry-previewer table tr td {
3134
+ border: 1px solid var(--table-border-color);
3135
+ margin: 0;
3136
+ padding: 0.375rem 0.8125rem;
3137
+ }
3138
+
3139
+ .cherry-previewer table tr th:first-child,
3140
+ .cherry-previewer table tr td:first-child {
3141
+ margin-top: 0;
3142
+ }
3143
+
3144
+ .cherry-previewer table tr th:last-child,
3145
+ .cherry-previewer table tr td:last-child {
3146
+ margin-bottom: 0;
3147
+ }
3148
+
3149
+ .cherry-previewer table tr th {
3150
+ font-weight: bold;
3151
+ border-bottom: 0;
3152
+ background-color: var(--table-bg-color);
3153
+ }
3154
+
3155
+ .cherry-table-container {
3156
+ max-width: 100%;
3157
+ overflow-x: auto;
3158
+ }
3159
+
3160
+ .cherry-insert-table-menu {
3161
+ display: block;
3162
+ position: fixed;
3163
+ top: 3rem;
3164
+ left: 3rem;
3165
+ border-collapse: separate;
3166
+ box-shadow: var(--shadow);
3167
+ padding: 0.5rem;
3168
+ border-radius: var(--border-radius);
3169
+ width: auto !important;
3170
+ height: auto;
3171
+ }
3172
+
3173
+ .cherry-insert-table-menu-item {
3174
+ padding: 0.5rem;
3175
+ border: var(--border);
3176
+ }
3177
+
3178
+ .cherry-insert-table-menu-item.active {
3179
+ background-color: var(--hover-bg-color);
3180
+ }
3181
+
3182
+ .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input {
3183
+ position: absolute;
3184
+ }
3185
+
3186
+ .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea {
3187
+ width: 100%;
3188
+ height: 100%;
3189
+ border: 0;
3190
+ box-sizing: border-box;
3191
+ resize: none;
3192
+ outline: 1px solid var(--primary-color);
3193
+ word-break: break-all;
3194
+ }
3195
+
3196
+ .cherry-previewer-table-hover-handler {
3197
+ position: absolute;
3198
+ pointer-events: none;
3199
+ z-index: 999;
3200
+ }
3201
+
3202
+ .cherry-previewer-table-hover-handler-container {
3203
+ position: relative;
3204
+ height: 100%;
3205
+ padding: 0;
3206
+ margin: 0;
3207
+ list-style-type: none;
3208
+ }
3209
+
3210
+ .cherry-previewer-table-hover-handler__symbol {
3211
+ pointer-events: auto;
3212
+ display: flex;
3213
+ justify-content: center;
3214
+ position: absolute;
3215
+ color: var(--primary-color);
3216
+ width: 0.9rem;
3217
+ height: 0.9rem;
3218
+ line-height: 0.9rem;
3219
+ border: 0;
3220
+ background-color: transparent;
3221
+ cursor: pointer;
3222
+ transition: all 0.3s;
3223
+ }
3224
+
3225
+ .cherry-previewer-table-hover-handler__symbol:hover {
3226
+ background-color: var(--primary-color);
3227
+ color: var(--bg-color);
3228
+ }
3229
+
3230
+ .cherry-editor .cm-table-split {
3231
+ color: var(--codemirror-operator-color);
3232
+ }
3233
+
3234
+ .cherry-editor .cm-table-line {
3235
+ color: var(--codemirror-operator-inner-color);
3236
+ }
3237
+
3238
+ .cherry-editor .cm-table-position {
3239
+ color: var(--codemirror-operator-text-color);
3240
+ }
3241
+
3242
+ .cherry-suggester-panel {
3243
+ display: none;
3244
+ position: absolute;
3245
+ left: 0;
3246
+ top: 0;
3247
+ background: var(--bg-color);
3248
+ border-radius: var(--border-radius);
3249
+ max-height: 50vh;
3250
+ box-shadow: var(--shadow);
3251
+ overflow-x: hidden;
3252
+ overflow-y: auto;
3253
+ }
3254
+
3255
+ .cherry-suggester-panel .cherry-suggester-panel__item {
3256
+ border: none;
3257
+ white-space: nowrap;
3258
+ min-width: 3.2rem;
3259
+ padding: 0.4rem 0.9rem;
3260
+ color: var(--text-color);
3261
+ display: block;
3262
+ cursor: pointer;
3263
+ }
3264
+
3265
+ .cherry-suggester-panel .cherry-suggester-panel__item.cherry-suggester-panel__item--selected {
3266
+ background-color: var(--hover-bg-color);
3267
+ text-decoration: none;
3268
+ color: var(--primary-color);
3269
+ }
3270
+
3271
+ .cherry-suggester-panel .cherry-suggester-panel__item > i {
3272
+ display: inline-block;
3273
+ transform: translateY(2px);
3274
+ margin-right: 0.5rem;
3275
+ }
3276
+
3277
+ .cherry-suggester-panel::-webkit-scrollbar {
3278
+ height: 0.5rem;
3279
+ width: 0.5rem;
3280
+ background: var(--code-bg);
3281
+ }
3282
+
3283
+ .cherry-suggester-panel::-webkit-scrollbar:hover {
3284
+ background: var(--hover-bg-color);
3285
+ }
3286
+
3287
+ .cherry-suggester-panel::-webkit-scrollbar-thumb {
3288
+ background: var(--hover-bg-color);
3289
+ -webkit-border-radius: var(--border-radius);
3290
+ }
3291
+
3292
+ .cherry-suggester-panel::-webkit-scrollbar-thumb:hover {
3293
+ background: var(--panel-border-color);
3294
+ }
3295
+
3296
+ .cherry-suggester-panel::-webkit-scrollbar-corner {
3297
+ background: transparent;
3298
+ }
3299
+
3300
+ .cherry-suggestion {
3301
+ background-color: var(--bg-on-bg-color);
3302
+ color: var(--text-color);
3303
+ padding: 0.1rem 0.3rem;
3304
+ border-radius: var(--border-radius);
3305
+ cursor: pointer;
3306
+ }
3307
+
3308
+ .cherry .cherry-color-wrap {
3309
+ display: none;
3310
+ position: fixed;
3311
+ width: auto;
3312
+ padding: 0.3125rem 0.625rem;
3313
+ z-index: 6;
3314
+ background: var(--bg-color);
3315
+ }
3316
+
3317
+ .cherry .cherry-color-wrap h3 {
3318
+ font-size: 0.75rem;
3319
+ margin: 0;
3320
+ font-weight: 400;
3321
+ }
3322
+
3323
+ .cherry .cherry-color-wrap .cherry-color-text, .cherry .cherry-color-wrap .cherry-color-bg {
3324
+ float: left;
3325
+ width: 8rem;
3326
+ margin: 0.5rem;
3327
+ }
3328
+
3329
+ .cherry .cherry-color-wrap .cherry-color-item {
3330
+ float: left;
3331
+ width: 0.875rem;
3332
+ height: 0.875rem;
3333
+ border: 0.0625rem solid var(--border-color);
3334
+ cursor: pointer;
3335
+ }
3336
+
3337
+ .cherry .cherry-color-wrap .cherry-color-item:hover {
3338
+ border: 0.0625rem solid var(--text-color);
3339
+ }
3340
+
3341
+ .cherry .cherry-emoji-wrap {
3342
+ display: none;
3343
+ position: fixed;
3344
+ width: 20rem;
3345
+ padding: 0.3125rem 0.625rem;
3346
+ z-index: 6;
3347
+ background: var(--bg-color);
3348
+ }
3349
+
3350
+ .cherry .cherry-emoji-header {
3351
+ display: flex;
3352
+ justify-content: space-around;
3353
+ width: 100%;
3354
+ margin-bottom: 0.5rem;
3355
+ }
3356
+
3357
+ .cherry .cherry-emoji-item-btn {
3358
+ background-color: var(--bg-color);
3359
+ border: none;
3360
+ border-radius: var(--border-radius);
3361
+ padding: 0.5rem;
3362
+ cursor: pointer;
3363
+ transition: background-color 0.3s;
3364
+ }
3365
+
3366
+ .cherry .cherry-emoji-item-btn.show {
3367
+ background-color: var(--hover-bg-color);
3368
+ }
3369
+
3370
+ .cherry .cherry-emoji-item-btn:hover {
3371
+ background-color: var(--hover-bg-color);
3372
+ }
3373
+
3374
+ .cherry .cherry-emoji-item-btn span.material-symbols-outlined {
3375
+ margin: 0;
3376
+ font-size: 1.2rem;
3377
+ }
3378
+
3379
+ .cherry .cherry-emoji-search {
3380
+ width: 100%;
3381
+ margin-bottom: 0;
3382
+ }
3383
+
3384
+ .cherry .cherry-emoji-search .cherry-emoji-search-input {
3385
+ width: 100%;
3386
+ padding: 0.6rem;
3387
+ border: var(--border);
3388
+ border-radius: var(--border-radius);
3389
+ box-sizing: border-box;
3390
+ background: var(--hover-bg-color);
3391
+ }
3392
+
3393
+ .cherry .cherry-emoji-search .cherry-emoji-search-input:focus {
3394
+ border-color: var(--primary-color); /* 焦点时的边框颜色 */
3395
+ outline: none; /* 移除默认的焦点轮廓 */
3396
+ }
3397
+
3398
+ .cherry .cherry-emoji {
3399
+ margin: 0 0.25rem;
3400
+ }
3401
+
3402
+ .cherry .cherry-emoji-body {
3403
+ display: flex;
3404
+ flex-direction: column;
3405
+ align-items: center;
3406
+ width: 100%;
3407
+ }
3408
+
3409
+ .cherry .cherry-emoji-body .cherry-emoji-panel {
3410
+ display: none;
3411
+ flex-wrap: wrap;
3412
+ justify-content: center;
3413
+ width: 100%;
3414
+ }
3415
+
3416
+ .cherry .cherry-emoji-body .cherry-emoji-panel.show {
3417
+ display: flex;
3418
+ }
3419
+
3420
+ .cherry .cherry-emoji-body .cherry-emoji-panel .cherry-emoji-category {
3421
+ font-size: 1rem;
3422
+ color: var(--text-color);
3423
+ font-weight: bold;
3424
+ padding: 0.3rem;
3425
+ width: 100%;
3426
+ }
3427
+
3428
+ .cherry .cherry-emoji-body .cherry-emoji-panel .cherry-emoji-container {
3429
+ display: flex;
3430
+ flex-wrap: wrap;
3431
+ justify-content: center;
3432
+ max-height: calc(50vh - 10rem);
3433
+ overflow-y: scroll;
3434
+ padding: 0.5rem 0;
3435
+ }
3436
+
3437
+ .cherry .cherry-emoji-body .cherry-emoji-panel .cherry-emoji-item {
3438
+ cursor: pointer;
3439
+ font-size: 2rem;
3440
+ text-align: center;
3441
+ line-height: 1.5rem;
3442
+ padding: 0.5rem;
3443
+ border-radius: var(--border-radius);
3444
+ transition: background-color 0.3s;
3445
+ }
3446
+
3447
+ .cherry .cherry-emoji-body .cherry-emoji-panel .cherry-emoji-item:hover {
3448
+ background: var(--hover-bg-color);
3449
+ }
3450
+
3451
+ .cherry-editor .cm-emoji-container {
3452
+ color: var(--codemirror-operator-color);
3453
+ font-weight: bold;
3454
+ }
3455
+
3456
+ .cherry-editor .cm-emoji-text {
3457
+ color: var(--codemirror-operator-text-color);
3458
+ }
3459
+
3460
+ .theme__dark .cherry-emoji-header .material-symbols-outlined {
3461
+ color: var(--text-color);
3462
+ }
3463
+
3464
+ .cherry-previewer sub {
3465
+ vertical-align: sub;
3466
+ }
3467
+
3468
+ .cherry-previewer sup {
3469
+ vertical-align: super;
3470
+ }
3471
+
3472
+ .cherry-previewer .toc {
3473
+ margin-bottom: 1rem;
3474
+ padding-left: 0;
3475
+ }
3476
+
3477
+ .cherry-previewer .toc .toc-title {
3478
+ font-size: 1.5rem;
3479
+ margin-bottom: 0.5rem;
3480
+ }
3481
+
3482
+ .cherry-previewer .toc .toc-li {
3483
+ border-bottom: var(--border);
3484
+ list-style: none;
3485
+ }
3486
+
3487
+ .cherry-previewer .toc .toc-li a {
3488
+ text-decoration: none;
3489
+ color: var(--textColor);
3490
+ }
3491
+
3492
+ .cherry-previewer .toc .toc-li a:hover {
3493
+ color: var(--primary-color);
3494
+ }
3495
+
3496
+ .cherry-previewer .toc .toc-li a.anchor {
3497
+ display: none;
3498
+ }
3499
+
3500
+ .cherry-editor .cm-size-container {
3501
+ color: var(--codemirror-operator-color);
3502
+ }
3503
+
3504
+ .cherry-editor .cm-size-number {
3505
+ color: var(--codemirror-operator-text-color);
3506
+ }
3507
+
3508
+ .cherry-editor .cm-mark-container {
3509
+ font-size: unset;
3510
+ background: #f0ff0b;
3511
+ color: var(--text-color);
3512
+ }
3513
+
3514
+ .theme__dark .cherry-editor .cm-mark-container {
3515
+ background: #5c5c00;
3516
+ }
3517
+
3518
+ .cherry-previewer {
3519
+ --badge-bg-color: var(--info-bg-color);
3520
+ --badge-text-color: var(--info-title-color);
3521
+ --badge-padding: 0.1rem 0.25rem;
3522
+ --badge-font-size: 0.8rem;
3523
+ --badge-line-height: 1.2;
3524
+ --badge-border-color: var(--info-border-color);
3525
+ }
3526
+
3527
+ .cherry-previewer .cherry-badge {
3528
+ display: inline-block;
3529
+ padding: var(--badge-padding);
3530
+ background: var(--badge-bg-color);
3531
+ color: var(--badge-text-color);
3532
+ font-size: var(--badge-font-size);
3533
+ line-height: var(--badge-line-height);
3534
+ border: 1px solid var(--badge-border);
3535
+ border-radius: var(--border-radius);
3536
+ }
3537
+
3538
+ .cherry-previewer .cherry-badge.cherry-badge-important {
3539
+ border-color: var(--badge-important-border-color);
3540
+ background: var(--badge-important-bg-color);
3541
+ color: var(--badge-important-title-color);
3542
+ }
3543
+
3544
+ .cherry-previewer .cherry-badge.cherry-badge-info {
3545
+ border-color: var(--badge-info-border-color);
3546
+ background: var(--badge-info-bg-color);
3547
+ color: var(--badge-info-title-color);
3548
+ }
3549
+
3550
+ .cherry-previewer .cherry-badge.cherry-badge-note {
3551
+ border-color: var(--badge-note-border-color);
3552
+ background: var(--badge-note-bg-color);
3553
+ color: var(--badge-note-title-color);
3554
+ }
3555
+
3556
+ .cherry-previewer .cherry-badge.cherry-badge-tip {
3557
+ border-color: var(--badge-tip-border-color);
3558
+ background: var(--badge-tip-bg-color);
3559
+ color: var(--badge-tip-title-color);
3560
+ }
3561
+
3562
+ .cherry-previewer .cherry-badge.cherry-badge-warning {
3563
+ border-color: var(--badge-warning-border-color);
3564
+ background: var(--badge-warning-bg-color);
3565
+ color: var(--badge-warning-title-color);
3566
+ }
3567
+
3568
+ .cherry-previewer .cherry-badge.cherry-badge-danger {
3569
+ border-color: var(--badge-danger-border-color);
3570
+ background: var(--badge-danger-bg-color);
3571
+ color: var(--badge-danger-title-color);
3572
+ }
3573
+
3574
+ .cherry-previewer .cherry-badge.cherry-badge-top {
3575
+ vertical-align: top;
3576
+ margin-bottom: 4px;
3577
+ }
3578
+
3579
+ .cherry-previewer .cherry-badge.cherry-badge-center {
3580
+ vertical-align: middle;
3581
+ }
3582
+
3583
+ .cherry-previewer .cherry-badge.cherry-badge-bottom {
3584
+ vertical-align: bottom;
3585
+ margin-top: 4px;
3586
+ }
3587
+
3588
+ .cherry-editor .cm-s-default .cm-badge-container {
3589
+ color: var(--codemirror-operator-color);
3590
+ }
3591
+
3592
+ .cherry-editor .cm-s-default .cm-badge-position {
3593
+ color: var(--codemirror-operator-inner-color);
3594
+ }
3595
+
3596
+ .cherry-editor .cm-s-default .cm-badge-text {
3597
+ color: var(--codemirror-operator-text-color);
3598
+ }
3599
+
3600
+ :root {
3601
+ --badge-info-border-color: #4cb3d4;
3602
+ --badge-info-bg-color: #2171c1;
3603
+ --badge-info-title-color: #ffffff;
3604
+ --badge-important-border-color: #a371f7;
3605
+ --badge-important-bg-color: #6a1b9a;
3606
+ --badge-important-title-color: #ffffff;
3607
+ --badge-note-border-color: #9e9e9e;
3608
+ --badge-note-bg-color: #616161;
3609
+ --badge-note-title-color: #ffffff;
3610
+ --badge-tip-border-color: #4caf50;
3611
+ --badge-tip-bg-color: #2e7d32;
3612
+ --badge-tip-title-color: #ffffff;
3613
+ --badge-warning-border-color: #ff9800;
3614
+ --badge-warning-bg-color: #e65100;
3615
+ --badge-warning-title-color: #ffffff;
3616
+ --badge-danger-border-color: #f44336;
3617
+ --badge-danger-bg-color: #c62828;
3618
+ --badge-danger-title-color: #ffffff;
3619
+ }
3620
+
3621
+ .theme__dark {
3622
+ --badge-info-bg-color: #1565c0;
3623
+ --badge-info-title-color: #e3f2fd;
3624
+ --badge-important-bg-color: #4a148c;
3625
+ --badge-important-title-color: #f3e5f5;
3626
+ --badge-note-bg-color: #424242;
3627
+ --badge-note-title-color: #f5f5f5;
3628
+ --badge-tip-bg-color: #1b5e20;
3629
+ --badge-tip-title-color: #e8f5e9;
3630
+ --badge-warning-bg-color: #bf360c;
3631
+ --badge-warning-title-color: #fff3e0;
3632
+ --badge-danger-bg-color: #b71c1c;
3633
+ --badge-danger-title-color: #ffebee;
3634
+ }
3635
+
3636
+ .cherry-editor .cm-math-container {
3637
+ color: var(--codemirror-operator-color);
3638
+ font-weight: bold;
3639
+ }
3640
+
3641
+ .cherry-editor .cm-math-text {
3642
+ color: var(--codemirror-operator-text-color);
3643
+ }
3644
+
3645
+ .cherry .footnote:not(a) {
3646
+ padding-top: 1.25rem;
3647
+ border-top: 1px solid var(--border-color);
3648
+ margin-top: 3.125rem;
3649
+ }
3650
+
3651
+ .cherry .footnote:not(a) .footnote-title {
3652
+ font-size: 1.25rem;
3653
+ margin-top: -2.375rem;
3654
+ background-color: var(--bg-color);
3655
+ width: 3.75rem;
3656
+ margin-bottom: 1rem;
3657
+ }
3658
+
3659
+ .cherry .footnote:not(a) .one-footnote {
3660
+ color: var(--text-color);
3661
+ margin-bottom: 1rem;
3662
+ border-bottom: 1px dotted var(--border-color);
3663
+ }
3664
+
3665
+ .cherry-editor .cm-iframe-marker {
3666
+ color: #888888;
3667
+ }
3668
+
3669
+ .cherry-editor .cm-iframe-url {
3670
+ color: #4EC9B0;
3671
+ }
3672
+
3673
+ .theme__dark .cherry-editor .cm-iframe-marker {
3674
+ color: #6B6B6B;
3675
+ }
3676
+
3677
+ .theme__dark .cherry-editor .cm-iframe-url {
3678
+ color: #2EFFDC;
3679
+ text-decoration: underline;
3680
+ text-decoration-color: rgba(46, 255, 220, 0.3);
3681
+ }
3682
+
3683
+ .cherry-preview iframe {
3684
+ border-radius: 3px;
3685
+ border: none;
3686
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
3687
+ background: #fff;
3688
+ overflow: hidden;
3689
+ }
3690
+
3691
+ .theme__dark .cherry-preview iframe {
3692
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
3693
+ background: #1e1e1e;
3694
+ }
3695
+
3696
+ .cherry-editor .cm-vars-container {
3697
+ color: #888888;
3698
+ }
3699
+
3700
+ .cherry-editor .cm-vars-text {
3701
+ color: #4EC9B0;
3702
+ }
3703
+
3704
+ .theme__dark .cherry-editor .cm-vars-container {
3705
+ color: #6B6B6B;
3706
+ }
3707
+
3708
+ .theme__dark .cherry-editor .cm-vars-text {
3709
+ color: #2EFFDC;
3710
+ text-decoration: underline;
3711
+ text-decoration-color: rgba(46, 255, 220, 0.3);
3712
+ }
3713
+
3714
+ .cherry-previewer {
3715
+ padding: 1.25rem 2rem;
3716
+ border-left: 0.125rem solid var(--border-color);
3717
+ width: 50%;
3718
+ box-sizing: border-box;
3719
+ background-color: var(--bg-color);
3720
+ min-height: auto;
3721
+ overflow-y: auto;
3722
+ -webkit-print-color-adjust: exact;
3723
+ }
3724
+
3725
+ .cherry-previewer.cherry-previewer--hidden {
3726
+ width: 0;
3727
+ display: none;
3728
+ }
3729
+
3730
+ .cherry-previewer.cherry-previewer--full {
3731
+ width: 100%;
3732
+ border-left: unset;
3733
+ }
3734
+
3735
+ .cherry-previewer .cherry-list__upper-roman {
3736
+ list-style: upper-roman;
3737
+ }
3738
+
3739
+ .cherry-previewer .cherry-list__lower-greek {
3740
+ list-style: lower-greek;
3741
+ }
3742
+
3743
+ .cherry-previewer .cherry-list__cjk-ideographic {
3744
+ list-style: cjk-ideographic;
3745
+ }
3746
+
3747
+ .cherry-previewer .cherry-list__circle {
3748
+ list-style: circle;
3749
+ }
3750
+
3751
+ .cherry-previewer .cherry-list__square {
3752
+ list-style: square;
3753
+ }
3754
+
3755
+ .cherry .cherry-flex-toc {
3756
+ z-index: 11;
3757
+ position: absolute;
3758
+ width: 10rem;
3759
+ height: calc(100% - 12.75rem);
3760
+ max-height: 37.5rem;
3761
+ right: 0;
3762
+ top: 12.5rem;
3763
+ white-space: nowrap;
3764
+ overflow: hidden;
3765
+ text-overflow: ellipsis;
3766
+ background: var(--bg-on-bg-color);
3767
+ margin-right: 0.5rem;
3768
+ box-sizing: border-box;
3769
+ user-select: none;
3770
+ box-shadow: 0 0.3125rem 0.6875rem rgba(51, 51, 51, 0.2);
3771
+ border-radius: 0.625rem;
3772
+ transition: all 0.3s;
3773
+ border-bottom: 1px dashed var(--border-color);
3774
+ }
3775
+
3776
+ .cherry .cherry-flex-toc.cherry-flex-toc__fixed {
3777
+ position: fixed;
3778
+ }
3779
+
3780
+ .cherry .cherry-flex-toc:hover {
3781
+ background-color: var(--bg-color);
3782
+ width: 260px;
3783
+ }
3784
+
3785
+ .cherry .cherry-flex-toc .cherry-toc-head {
3786
+ border-bottom: 1px dashed var(--border-color);
3787
+ padding: 0.3125rem;
3788
+ }
3789
+
3790
+ .cherry .cherry-flex-toc .cherry-toc-head .cherry-toc-title {
3791
+ font-size: 1rem;
3792
+ font-weight: bold;
3793
+ padding-left: 0.3125rem;
3794
+ color: var(--text-color);
3795
+ }
3796
+
3797
+ .cherry .cherry-flex-toc .cherry-toc-head .ch-icon-chevronsLeft {
3798
+ display: none;
3799
+ }
3800
+
3801
+ .cherry .cherry-flex-toc .cherry-toc-head .ch-icon-chevronsRight,
3802
+ .cherry .cherry-flex-toc .cherry-toc-head .ch-icon-chevronsLeft {
3803
+ padding: 0.3125rem;
3804
+ position: absolute;
3805
+ right: 0;
3806
+ top: 0;
3807
+ transform: none;
3808
+ margin: 0;
3809
+ font-size: 1rem;
3810
+ cursor: pointer;
3811
+ }
3812
+
3813
+ .cherry .cherry-flex-toc .cherry-toc-head i {
3814
+ cursor: pointer;
3815
+ padding: 0.3125rem 0.3125rem 0;
3816
+ }
3817
+
3818
+ .cherry .cherry-flex-toc .cherry-toc-head i:hover {
3819
+ color: var(--primary-color);
3820
+ }
3821
+
3822
+ .cherry .cherry-flex-toc .cherry-toc-list {
3823
+ overflow-y: auto;
3824
+ height: calc(100% - 3.8rem);
3825
+ overflow-x: hidden;
3826
+ width: 100%;
3827
+ padding-bottom: 0.625rem;
3828
+ }
3829
+
3830
+ .cherry .cherry-flex-toc .cherry-toc-list .cherry-toc-one-a {
3831
+ display: block;
3832
+ text-decoration: none;
3833
+ color: var(--text-color);
3834
+ border-left: 0.3125rem solid var(--border-color);
3835
+ height: 1.75rem;
3836
+ line-height: 1.75rem;
3837
+ transition: all 0.3s;
3838
+ padding-left: 0.625rem;
3839
+ overflow: hidden;
3840
+ word-break: break-all;
3841
+ text-overflow: ellipsis;
3842
+ cursor: pointer;
3843
+ }
3844
+
3845
+ .cherry .cherry-flex-toc .cherry-toc-list .cherry-toc-one-a.current {
3846
+ border-left-color: var(--primary-color);
3847
+ color: var(--primary-color);
3848
+ }
3849
+
3850
+ .cherry .cherry-flex-toc .cherry-toc-list .cherry-toc-one-a:hover {
3851
+ border-left-color: var(--primary-color);
3852
+ color: var(--primary-color);
3853
+ }
3854
+
3855
+ .cherry .cherry-flex-toc .cherry-toc-list .cherry-toc-one-a__1 {
3856
+ font-weight: bold;
3857
+ }
3858
+
3859
+ .cherry .cherry-flex-toc .cherry-toc-list .cherry-toc-one-a__2 {
3860
+ padding-left: 1.25rem;
3861
+ }
3862
+
3863
+ .cherry .cherry-flex-toc .cherry-toc-list .cherry-toc-one-a__3 {
3864
+ padding-left: 2.5rem;
3865
+ }
3866
+
3867
+ .cherry .cherry-flex-toc .cherry-toc-list .cherry-toc-one-a__4 {
3868
+ padding-left: 3.75rem;
3869
+ }
3870
+
3871
+ .cherry .cherry-flex-toc .cherry-toc-list .cherry-toc-one-a__5 {
3872
+ padding-left: 5rem;
3873
+ }
3874
+
3875
+ .cherry .cherry-flex-toc.cherry-flex-toc__pure {
3876
+ width: 1.875rem;
3877
+ height: calc(100% - 12.75rem);
3878
+ max-height: 37.5rem;
3879
+ background: transparent;
3880
+ box-shadow: none;
3881
+ border-radius: 0;
3882
+ }
3883
+
3884
+ .cherry .cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head {
3885
+ height: 1.5625rem;
3886
+ border-bottom: 1px dashed transparent;
3887
+ }
3888
+
3889
+ .cherry .cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head .cherry-toc-title {
3890
+ display: none;
3891
+ }
3892
+
3893
+ .cherry .cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head .ch-icon-chevronsRight {
3894
+ display: none;
3895
+ }
3896
+
3897
+ .cherry .cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head .ch-icon-chevronsLeft {
3898
+ display: inline;
3899
+ }
3900
+
3901
+ .cherry .cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-list {
3902
+ height: calc(100% - 1.5625rem);
3903
+ padding-left: 0.4375rem;
3904
+ }
3905
+
3906
+ .cherry .cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-list .cherry-toc-one-a {
3907
+ overflow: hidden;
3908
+ width: 0;
3909
+ margin-bottom: 0.1875rem;
3910
+ height: 0.3125rem;
3911
+ border-left-width: 1.125rem;
3912
+ }
3913
+
3914
+ .cherry .cherry-flex-toc.auto-num .cherry-toc-list {
3915
+ counter-reset: toclevel1;
3916
+ }
3917
+
3918
+ .cherry .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__1 {
3919
+ counter-reset: toclevel2;
3920
+ }
3921
+
3922
+ .cherry .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__2 {
3923
+ counter-reset: toclevel3;
3924
+ }
3925
+
3926
+ .cherry .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__3 {
3927
+ counter-reset: toclevel4;
3928
+ }
3929
+
3930
+ .cherry .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__4 {
3931
+ counter-reset: toclevel5;
3932
+ }
3933
+
3934
+ .cherry .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__5 {
3935
+ counter-reset: toclevel6;
3936
+ }
3937
+
3938
+ .cherry .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__1:before {
3939
+ counter-increment: toclevel1;
3940
+ content: counter(toclevel1) ". ";
3941
+ }
3942
+
3943
+ .cherry .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__2:before {
3944
+ counter-increment: toclevel2;
3945
+ content: counter(toclevel1) "." counter(toclevel2) ". ";
3946
+ }
3947
+
3948
+ .cherry .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__3:before {
3949
+ counter-increment: toclevel3;
3950
+ content: counter(toclevel1) "." counter(toclevel2) "." counter(toclevel3) ". ";
3951
+ }
3952
+
3953
+ .cherry .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__4:before {
3954
+ counter-increment: toclevel4;
3955
+ content: counter(toclevel1) "." counter(toclevel2) "." counter(toclevel3) "." counter(toclevel4) ". ";
3956
+ }
3957
+
3958
+ .cherry .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__5:before {
3959
+ counter-increment: toclevel5;
3960
+ content: counter(toclevel1) "." counter(toclevel2) "." counter(toclevel3) "." counter(toclevel4) "." counter(toclevel5) ". ";
3961
+ }
3962
+
3963
+ .cherry .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__6:before {
3964
+ counter-increment: toclevel5;
3965
+ content: counter(toclevel1) "." counter(toclevel2) "." counter(toclevel3) "." counter(toclevel4) "." counter(toclevel5) "." counter(toclevel6) ". ";
3966
+ }
3967
+
3968
+ .cherry .cherry-editor-stats {
3969
+ position: absolute;
3970
+ bottom: 0;
3971
+ left: 0;
3972
+ font-size: 0.75rem;
3973
+ color: var(--text-color);
3974
+ background: var(--bg-color);
3975
+ padding: 0.125rem 0.5rem;
3976
+ box-sizing: border-box;
3977
+ z-index: 100;
3978
+ user-select: none;
3979
+ display: flex;
3980
+ gap: 0.75rem;
3981
+ align-items: center;
3982
+ width: 100%;
3983
+ opacity: 1;
3984
+ }
3985
+
3986
+ .cherry .cherry-stats-item {
3987
+ display: flex;
3988
+ align-items: center;
3989
+ gap: 0.25rem;
3990
+ }
3991
+
3992
+ .cherry .cherry-stats-item .material-symbols-outlined {
3993
+ font-size: 1rem;
3994
+ color: var(--text-color);
3995
+ margin: 0;
3996
+ transform: none;
3997
+ }
3998
+
3999
+ .cherry {
4000
+ display: flex;
4001
+ flex-flow: row wrap;
4002
+ align-items: stretch;
4003
+ align-content: flex-start;
4004
+ height: 100%;
4005
+ min-height: 100px;
4006
+ position: relative;
4007
+ line-height: var(--line-height);
4008
+ color: var(--text-color);
4009
+ background: var(--bg-color);
4010
+ font-size: var(--font-size);
4011
+ font-family: var(--font-family), serif;
4012
+ }
4013
+ .cherry.fullscreen {
4014
+ position: fixed;
4015
+ top: 0;
4016
+ left: 0;
4017
+ right: 0;
4018
+ bottom: 0;
4019
+ z-index: 2000;
4020
+ }
4021
+ .cherry .cherry-editor,
4022
+ .cherry .cherry-previewer {
4023
+ max-height: calc(100% - var(--toolbar-height));
4024
+ min-height: calc(100% - var(--toolbar-height));
4025
+ }
4026
+ .cherry .CodeMirror {
4027
+ height: 100%;
4028
+ }
4029
+ .cherry.cherry--no-toolbar .cherry-toolbar,
4030
+ .cherry.cherry--no-toolbar .cherry-sidebar {
4031
+ height: 0;
4032
+ display: none;
4033
+ }
4034
+ .cherry.cherry--no-toolbar .cherry-editor,
4035
+ .cherry.cherry--no-toolbar .cherry-previewer {
4036
+ max-height: 100%;
4037
+ min-height: 100%;
4038
+ }
4039
+ .cherry .cherry-drag {
4040
+ width: 1rem;
4041
+ cursor: ew-resize;
4042
+ position: absolute;
4043
+ z-index: 12;
4044
+ background: transparent;
4045
+ }
4046
+ .cherry .cherry-drag.cherry-drag--show {
4047
+ width: 0.5rem;
4048
+ display: block;
4049
+ background: var(--drag-bg-color);
4050
+ }
4051
+ .cherry .cherry-drag.cherry-drag--hidden {
4052
+ display: none;
4053
+ }
4054
+ .cherry .cherry-editor-mask {
4055
+ z-index: 10;
4056
+ position: absolute;
4057
+ display: none;
4058
+ background: var(--editor-mask-bg);
4059
+ }
4060
+ .cherry .cherry-editor-mask.cherry-editor-mask--show {
4061
+ display: block;
4062
+ }
4063
+ .cherry .cherry-previewer-mask {
4064
+ z-index: 10;
4065
+ position: absolute;
4066
+ display: none;
4067
+ background: var(--previewer-mask-bg);
4068
+ }
4069
+ .cherry .cherry-previewer-mask.cherry-previewer-mask--show {
4070
+ display: block;
4071
+ }
4072
+ .cherry *::-webkit-scrollbar {
4073
+ height: 0.5rem;
4074
+ width: 0.5rem;
4075
+ background: transparent;
4076
+ }
4077
+ .cherry *::-webkit-scrollbar:hover {
4078
+ background: transparent;
4079
+ }
4080
+ .cherry *::-webkit-scrollbar-thumb {
4081
+ background: var(--hover-bg-color);
4082
+ -webkit-border-radius: var(--border-radius);
4083
+ }
4084
+ .cherry *::-webkit-scrollbar-thumb:hover {
4085
+ background: var(--panel-border-color);
4086
+ }
4087
+ .cherry *::-webkit-scrollbar-corner {
4088
+ background: transparent;
4089
+ }