@bytechain.cn/colamd 1.5.1 → 2.7.7

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 (398) hide show
  1. package/LICENSE +22 -21
  2. package/README.md +160 -1012
  3. package/README_CN.md +210 -1070
  4. package/dist/main/chunks/docx-export.js +29695 -0
  5. package/dist/main/chunks/image-export.js +175 -0
  6. package/dist/main/index.js +17765 -452
  7. package/dist/preload/index.js +135 -23
  8. package/dist/renderer/assets/2DXBBFLN-BmaQ8lqV.js +667 -0
  9. package/dist/renderer/assets/46IJ22JX-Caywmaj-.js +854 -0
  10. package/dist/renderer/assets/4TTDE5I4-C82Tw8vO.js +502 -0
  11. package/dist/renderer/assets/4UF3HTLV-BD8W-BSm.js +30 -0
  12. package/dist/renderer/assets/5THPTBWS-2mBFupjU.js +21 -0
  13. package/dist/renderer/assets/7WLXJQOR-C8MM6Bra.js +23 -0
  14. package/dist/renderer/assets/AAXQQPKT-CCArPgA1.js +1131 -0
  15. package/dist/renderer/assets/AKE5O7KZ-DOAgUvEX.js +185 -0
  16. package/dist/renderer/assets/BNMLP6AG-igM96Ol7.js +805 -0
  17. package/dist/renderer/assets/DKTLEL5E-Dj3316cp.js +42 -0
  18. package/dist/renderer/assets/DR6PKOQU-C-e6zzyf.js +302 -0
  19. package/dist/renderer/assets/E4RJ7UJB-BMF4zoOQ.js +442 -0
  20. package/dist/renderer/assets/ELSXBIJH-BI2ySIoX.js +39 -0
  21. package/dist/renderer/assets/ERTIBQVS-CnvF3w9r.js +183 -0
  22. package/dist/renderer/assets/F653G4FO-CgzvjfOe.js +1498 -0
  23. package/dist/renderer/assets/FKCDD66M-BkVPFntx.js +205 -0
  24. package/dist/renderer/assets/FP7KDXVC-K0VCFuri.js +222 -0
  25. package/dist/renderer/assets/FT5I3RHX-zgsvTvBh.js +244 -0
  26. package/dist/renderer/assets/FTXIJQGB-BX14b7pN.js +13 -0
  27. package/dist/renderer/assets/G3MDBVQH-qZ3yfAIw.js +25 -0
  28. package/dist/renderer/assets/GY35JXOZ-Lo9DxsPK.js +169 -0
  29. package/dist/renderer/assets/H5EEJPP2-Bw2musel.js +354 -0
  30. package/dist/renderer/assets/HWDLEDTA-CCOSSl9K.js +982 -0
  31. package/dist/renderer/assets/JZWSX6AR-BBtw8K-1.js +67 -0
  32. package/dist/renderer/assets/KQOEJWJY-Brg31xSn.js +84 -0
  33. package/dist/renderer/assets/KS3BB3KE-2GQdjVNT.js +139 -0
  34. package/dist/renderer/assets/KXJRRZHI-B0Oj-tMS.js +503 -0
  35. package/dist/renderer/assets/MFVI5XKI-BpwEOECT.js +10 -0
  36. package/dist/renderer/assets/MWY2J62P-CSmi7lMQ.js +1103 -0
  37. package/dist/renderer/assets/MXGNCBL2-CSoCLfJw.js +217 -0
  38. package/dist/renderer/assets/N6DAJLIZ-DB-xlSjM.js +120 -0
  39. package/dist/renderer/assets/NU5M23IW-BhGgUeDk.js +117 -0
  40. package/dist/renderer/assets/NV4XNBIS-DMg8ibKU.js +1221 -0
  41. package/dist/renderer/assets/OGLU4SIR-DOU7cIL3.js +290 -0
  42. package/dist/renderer/assets/OUNS5N76-BO_k5M0O.js +1065 -0
  43. package/dist/renderer/assets/PU4ISKXV-Cw53csyu.js +516 -0
  44. package/dist/renderer/assets/PUZGS23X-_iUQg51-.js +21 -0
  45. package/dist/renderer/assets/Q3IYVLG5-ZFBZi3vs.js +501 -0
  46. package/dist/renderer/assets/QYHQDLKZ-BPb6lHi6.js +984 -0
  47. package/dist/renderer/assets/RVARI57O-DMrXgtoB.js +10 -0
  48. package/dist/renderer/assets/RZSVICHU-I7fvqLMQ.js +263 -0
  49. package/dist/renderer/assets/UEXXS2NB-AVpw2xTC.js +25 -0
  50. package/dist/renderer/assets/UHTQJXKL-6oSc4D2k.js +135 -0
  51. package/dist/renderer/assets/URA2L2QI-DkFUeeK0.js +201 -0
  52. package/dist/renderer/assets/UXCHDUKG-B54p4156.js +174 -0
  53. package/dist/renderer/assets/VKNV3BUX-Cc_4x0WI.js +278 -0
  54. package/dist/renderer/assets/VMV7XPHP-BjfrE66I.js +127 -0
  55. package/dist/renderer/assets/WEVWDWVA-Ca8eMbXN.js +57 -0
  56. package/dist/renderer/assets/XRRJ35LF-EWRU-xXu.js +120 -0
  57. package/dist/renderer/assets/YFKBLVVN-D2oaE2c2.js +991 -0
  58. package/dist/renderer/assets/YHRE5QGZ-ucJgE2vP.js +698 -0
  59. package/dist/renderer/assets/ZF3OVT4B-SN2E7Wbi.js +421 -0
  60. package/dist/renderer/assets/apl-fqmucPXA.js +140 -0
  61. package/dist/renderer/assets/asciiarmor-DucZyvP0.js +56 -0
  62. package/dist/renderer/assets/asn1-BnOEsgAm.js +144 -0
  63. package/dist/renderer/assets/asterisk-QAlztEwS.js +345 -0
  64. package/dist/renderer/assets/brainfuck-DZVCuF_t.js +53 -0
  65. package/dist/renderer/assets/clike-xqXYL6ge.js +805 -0
  66. package/dist/renderer/assets/clojure-BhXMqnxz.js +849 -0
  67. package/dist/renderer/assets/cmake-BGaNd9E7.js +71 -0
  68. package/dist/renderer/assets/cobol-4yqQntpt.js +120 -0
  69. package/dist/renderer/assets/coffeescript-D2dXvhEc.js +308 -0
  70. package/dist/renderer/assets/commonlisp-CF_VNHQR.js +130 -0
  71. package/dist/renderer/assets/crystal-DyuLTqLs.js +398 -0
  72. package/dist/renderer/assets/css-c-jst79C.js +1783 -0
  73. package/dist/renderer/assets/cypher-Dlu_3r4V.js +121 -0
  74. package/dist/renderer/assets/d-UURgV0Ux.js +179 -0
  75. package/dist/renderer/assets/diff-B_Bi2Crb.js +25 -0
  76. package/dist/renderer/assets/dockerfile-Bvk733Ga.js +201 -0
  77. package/dist/renderer/assets/dtd-Dy74G54E.js +114 -0
  78. package/dist/renderer/assets/dylan-TSb-Nfix.js +314 -0
  79. package/dist/renderer/assets/ebnf-4fKAGW3a.js +140 -0
  80. package/dist/renderer/assets/ecl-B59qGGVg.js +178 -0
  81. package/dist/renderer/assets/eiffel-Dze7nlu3.js +134 -0
  82. package/dist/renderer/assets/elm-DG7jkhNZ.js +176 -0
  83. package/dist/renderer/assets/erlang-BO6gOnGA.js +674 -0
  84. package/dist/renderer/assets/factor-CMxFHDqz.js +65 -0
  85. package/dist/renderer/assets/fcl-CDDUNjTj.js +141 -0
  86. package/dist/renderer/assets/forth-B9D2JCeE.js +116 -0
  87. package/dist/renderer/assets/fortran-CAG2BFbe.js +467 -0
  88. package/dist/renderer/assets/gas-d3KEcW3x.js +294 -0
  89. package/dist/renderer/assets/gherkin-DhZlEZiy.js +115 -0
  90. package/dist/renderer/assets/groovy-CpwJiBl7.js +223 -0
  91. package/dist/renderer/assets/haskell-ySd-OUo8.js +459 -0
  92. package/dist/renderer/assets/haxe-7MlzfeYV.js +514 -0
  93. package/dist/renderer/assets/http-BqypyemW.js +79 -0
  94. package/dist/renderer/assets/idl-4HIGJlDI.js +985 -0
  95. package/dist/renderer/assets/index-6G13Twgt.js +311 -0
  96. package/dist/renderer/assets/index-B2_pQa3G.js +384 -0
  97. package/dist/renderer/assets/index-B4keY9Xz.js +328 -0
  98. package/dist/renderer/assets/index-B5Jih3QA.js +47421 -0
  99. package/dist/renderer/assets/index-BH0PaTow.js +405 -0
  100. package/dist/renderer/assets/index-BWfIKsyn.js +8 -0
  101. package/dist/renderer/assets/index-B_BLxvag.js +156 -0
  102. package/dist/renderer/assets/index-BnXxA35e.js +325 -0
  103. package/dist/renderer/assets/index-Bu1PrnbA.js +81 -0
  104. package/dist/renderer/assets/index-BvXJHaQ4.js +60 -0
  105. package/dist/renderer/assets/index-BzHXcCGC.js +307 -0
  106. package/dist/renderer/assets/index-CXI9cRfo.js +287 -0
  107. package/dist/renderer/assets/index-Ccsf_83j.js +149 -0
  108. package/dist/renderer/assets/index-CkLQq2g4.js +688 -0
  109. package/dist/renderer/assets/index-DNL6Tijf.js +8 -0
  110. package/dist/renderer/assets/index-DRZsGkXi.js +78 -0
  111. package/dist/renderer/assets/index-Dfyz4Aee.js +181 -0
  112. package/dist/renderer/assets/index-HtqODURL.js +703 -0
  113. package/dist/renderer/assets/{index-DxOzbfR-.js → index-MJfkvBRx.js} +1 -1
  114. package/dist/renderer/assets/index-NsiBA9UX.js +113 -0
  115. package/dist/renderer/assets/index-aUzhL6sM.js +96 -0
  116. package/dist/renderer/assets/index-bx07CRyn.css +2503 -0
  117. package/dist/renderer/assets/{index-CBcVpA3d.js → index-k1ZFPJcr.js} +3 -4
  118. package/dist/renderer/assets/javascript-C_OHM9hj.js +994 -0
  119. package/dist/renderer/assets/julia-Bs6JJhYG.js +407 -0
  120. package/dist/renderer/assets/lazy-BY7ljzvO.js +1041 -0
  121. package/dist/renderer/assets/livescript-DmzgM3Yt.js +296 -0
  122. package/dist/renderer/assets/lua-Cvg8VrAA.js +256 -0
  123. package/dist/renderer/assets/mathematica-DNLOL9PQ.js +110 -0
  124. package/dist/renderer/assets/mbox-Ga7d4MMN.js +117 -0
  125. package/dist/renderer/assets/mirc-Dma3B8rS.js +107 -0
  126. package/dist/renderer/assets/mllike-DHn7xckP.js +334 -0
  127. package/dist/renderer/assets/modelica-0d55jYY0.js +147 -0
  128. package/dist/renderer/assets/mscgen-DdqZYINH.js +135 -0
  129. package/dist/renderer/assets/mumps-Btr8VblO.js +93 -0
  130. package/dist/renderer/assets/nginx-DTDtBDVN.js +141 -0
  131. package/dist/renderer/assets/nsis-CyKBdPWp.js +62 -0
  132. package/dist/renderer/assets/ntriples-CvgOYMpL.js +153 -0
  133. package/dist/renderer/assets/octave-DYBj3-tl.js +200 -0
  134. package/dist/renderer/assets/oz-R_e8WMIi.js +231 -0
  135. package/dist/renderer/assets/pascal-GD8iposT.js +105 -0
  136. package/dist/renderer/assets/perl-DL9mHpoi.js +1105 -0
  137. package/dist/renderer/assets/pig-C_4T4YIV.js +101 -0
  138. package/dist/renderer/assets/powershell-B0suO7Vd.js +328 -0
  139. package/dist/renderer/assets/properties-BR-vP1aU.js +58 -0
  140. package/dist/renderer/assets/protobuf-BxgpyhoW.js +77 -0
  141. package/dist/renderer/assets/pug-CTXt1f8z.js +405 -0
  142. package/dist/renderer/assets/puppet-Bdao66PW.js +137 -0
  143. package/dist/renderer/assets/python-CvWbmiX4.js +427 -0
  144. package/dist/renderer/assets/q-CrbCVq4a.js +131 -0
  145. package/dist/renderer/assets/r-V7nswm59.js +170 -0
  146. package/dist/renderer/assets/rpm-C-DLY-If.js +109 -0
  147. package/dist/renderer/assets/ruby-CQTpZw6f.js +331 -0
  148. package/dist/renderer/assets/sas-D2UG-yhZ.js +207 -0
  149. package/dist/renderer/assets/scheme-BKzrkGJD.js +222 -0
  150. package/dist/renderer/assets/shell-BlsXDxCn.js +222 -0
  151. package/dist/renderer/assets/sieve-CjwBwOY5.js +135 -0
  152. package/dist/renderer/assets/simple-mode-DMneyfDu.js +130 -0
  153. package/dist/renderer/assets/smalltalk-BOIGQuhN.js +121 -0
  154. package/dist/renderer/assets/solr-CwD7U71z.js +69 -0
  155. package/dist/renderer/assets/sparql-DYskk2vE.js +249 -0
  156. package/dist/renderer/assets/spreadsheet-Bgtt3oLP.js +87 -0
  157. package/dist/renderer/assets/sql-BSrOzCRI.js +354 -0
  158. package/dist/renderer/assets/stex-B6LNC55o.js +231 -0
  159. package/dist/renderer/assets/stylus-BkS-boTH.js +565 -0
  160. package/dist/renderer/assets/swift-FRZi1uvB.js +291 -0
  161. package/dist/renderer/assets/tcl-CUcaCdmq.js +114 -0
  162. package/dist/renderer/assets/textile-BnFpjsrl.js +414 -0
  163. package/dist/renderer/assets/tiddlywiki-CjprD-Qp.js +218 -0
  164. package/dist/renderer/assets/tiki-DK9DOeWn.js +268 -0
  165. package/dist/renderer/assets/toml-BOuWGMcf.js +76 -0
  166. package/dist/renderer/assets/troff-E1bJ0PPL.js +61 -0
  167. package/dist/renderer/assets/ttcn-cfg-Dc39-fIP.js +133 -0
  168. package/dist/renderer/assets/ttcn-tKd4HLu4.js +192 -0
  169. package/dist/renderer/assets/turtle-Dq7-1WAf.js +124 -0
  170. package/dist/renderer/assets/vb-Dp90gtsv.js +196 -0
  171. package/dist/renderer/assets/vbscript-CI6_mxxU.js +479 -0
  172. package/dist/renderer/assets/velocity-BwIZK1TH.js +149 -0
  173. package/dist/renderer/assets/verilog-DDCYnHN8.js +430 -0
  174. package/dist/renderer/assets/vhdl-DCkMIyT9.js +158 -0
  175. package/dist/renderer/assets/{web-BKE0SH0E.js → web-C4yaM4Cl.js} +1 -1
  176. package/dist/renderer/assets/{web-CBsFp24u.js → web-CF2Dtak3.js} +2 -3
  177. package/dist/renderer/assets/{web-Dc8YgoHP.js → web-DUy9unYf.js} +1 -1
  178. package/dist/renderer/assets/webidl-BTLTThCm.js +204 -0
  179. package/dist/renderer/assets/xquery-BrBUuxMR.js +525 -0
  180. package/dist/renderer/assets/yacas-b5lAVEIl.js +130 -0
  181. package/dist/renderer/assets/z80-BZV19vqv.js +93 -0
  182. package/dist/renderer/index.html +97 -77
  183. package/package.json +88 -60
  184. package/themes/README.md +99 -300
  185. package/themes/bear.css +38 -0
  186. package/themes/dark.css +20 -0
  187. package/themes/dracula.css +38 -0
  188. package/themes/elegant.css +53 -671
  189. package/themes/gruvbox.css +42 -0
  190. package/themes/light.css +20 -0
  191. package/themes/midnight.css +31 -0
  192. package/themes/nord.css +38 -0
  193. package/themes/notion.css +48 -0
  194. package/themes/sepia.css +48 -0
  195. package/themes/solarized-dark.css +35 -0
  196. package/themes/template.css +76 -498
  197. package/themes/writer.css +44 -0
  198. package/.github/workflows/release.yml +0 -66
  199. package/.trae/specs/optimize-theme-loading/checklist.md +0 -20
  200. package/.trae/specs/optimize-theme-loading/spec.md +0 -103
  201. package/.trae/specs/optimize-theme-loading/tasks.md +0 -40
  202. package/CHANGELOG.md +0 -320
  203. package/CLAUDE.md +0 -143
  204. package/android/app/build/.npmkeep +0 -0
  205. package/android/app/build.gradle +0 -76
  206. package/android/app/capacitor.build.gradle +0 -24
  207. package/android/app/proguard-rules.pro +0 -21
  208. package/android/app/release.keystore +0 -0
  209. package/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java +0 -26
  210. package/android/app/src/main/AndroidManifest.xml +0 -64
  211. package/android/app/src/main/java/cn/bytechain/colamd/MainActivity.java +0 -180
  212. package/android/app/src/main/res/drawable/ic_launcher_background.xml +0 -170
  213. package/android/app/src/main/res/drawable/splash.png +0 -0
  214. package/android/app/src/main/res/drawable-land-hdpi/splash.png +0 -0
  215. package/android/app/src/main/res/drawable-land-mdpi/splash.png +0 -0
  216. package/android/app/src/main/res/drawable-land-xhdpi/splash.png +0 -0
  217. package/android/app/src/main/res/drawable-land-xxhdpi/splash.png +0 -0
  218. package/android/app/src/main/res/drawable-land-xxxhdpi/splash.png +0 -0
  219. package/android/app/src/main/res/drawable-port-hdpi/splash.png +0 -0
  220. package/android/app/src/main/res/drawable-port-mdpi/splash.png +0 -0
  221. package/android/app/src/main/res/drawable-port-xhdpi/splash.png +0 -0
  222. package/android/app/src/main/res/drawable-port-xxhdpi/splash.png +0 -0
  223. package/android/app/src/main/res/drawable-port-xxxhdpi/splash.png +0 -0
  224. package/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +0 -34
  225. package/android/app/src/main/res/layout/activity_main.xml +0 -12
  226. package/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -5
  227. package/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -5
  228. package/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  229. package/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png +0 -0
  230. package/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  231. package/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  232. package/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png +0 -0
  233. package/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  234. package/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  235. package/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
  236. package/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  237. package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  238. package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
  239. package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  240. package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  241. package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
  242. package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  243. package/android/app/src/main/res/values/ic_launcher_background.xml +0 -4
  244. package/android/app/src/main/res/values/strings.xml +0 -7
  245. package/android/app/src/main/res/values/styles.xml +0 -22
  246. package/android/app/src/main/res/xml/file_paths.xml +0 -5
  247. package/android/app/src/main/res/xml/network_security_config.xml +0 -8
  248. package/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java +0 -18
  249. package/android/build.gradle +0 -29
  250. package/android/capacitor.settings.gradle +0 -21
  251. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  252. package/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  253. package/android/gradle.properties +0 -22
  254. package/android/gradlew +0 -248
  255. package/android/gradlew.bat +0 -92
  256. package/android/settings.gradle +0 -5
  257. package/android/variables.gradle +0 -16
  258. package/capacitor.config.js +0 -29
  259. package/capacitor.config.ts +0 -30
  260. package/demo.md +0 -193
  261. package/dist/renderer/assets/arc-_lugyDzx.js +0 -131
  262. package/dist/renderer/assets/architectureDiagram-3BPJPVTR-DDfP-F9D.js +0 -8721
  263. package/dist/renderer/assets/blockDiagram-GPEHLZMM-DOETUKma.js +0 -3826
  264. package/dist/renderer/assets/c4Diagram-AAUBKEIU-kAmLfVtk.js +0 -2483
  265. package/dist/renderer/assets/channel-CD4vJFwr.js +0 -7
  266. package/dist/renderer/assets/chunk-2J33WTMH-DkVrgw4l.js +0 -24
  267. package/dist/renderer/assets/chunk-4BX2VUAB-JTZ-VKNX.js +0 -16
  268. package/dist/renderer/assets/chunk-55IACEB6-Di_O5box.js +0 -13
  269. package/dist/renderer/assets/chunk-727SXJPM-BgKvwR8w.js +0 -2016
  270. package/dist/renderer/assets/chunk-AQP2D5EJ-DonSXCCQ.js +0 -1953
  271. package/dist/renderer/assets/chunk-FMBD7UC4-CsV8Lmy6.js +0 -19
  272. package/dist/renderer/assets/chunk-ND2GUHAM-C_-_dlq7.js +0 -116
  273. package/dist/renderer/assets/chunk-QZHKN3VN-aCmcDsfu.js +0 -19
  274. package/dist/renderer/assets/classDiagram-4FO5ZUOK-nuHQLjzM.js +0 -24
  275. package/dist/renderer/assets/classDiagram-v2-Q7XG4LA2-nuHQLjzM.js +0 -24
  276. package/dist/renderer/assets/cose-bilkent-S5V4N54A-Di1_SXt9.js +0 -4943
  277. package/dist/renderer/assets/cytoscape.esm-CpHeHM5e.js +0 -30269
  278. package/dist/renderer/assets/dagre-BM42HDAG-CqOUIYsL.js +0 -706
  279. package/dist/renderer/assets/defaultLocale-B2RvLBDe.js +0 -206
  280. package/dist/renderer/assets/diagram-2AECGRRQ-F-fP19TC.js +0 -302
  281. package/dist/renderer/assets/diagram-5GNKFQAL-BD5XZc8G.js +0 -170
  282. package/dist/renderer/assets/diagram-KO2AKTUF-Qa3ZxA67.js +0 -633
  283. package/dist/renderer/assets/diagram-LMA3HP47-DqDnw2RA.js +0 -213
  284. package/dist/renderer/assets/diagram-OG6HWLK6-BH4Elzby.js +0 -852
  285. package/dist/renderer/assets/erDiagram-TEJ5UH35-CaKZCewa.js +0 -1228
  286. package/dist/renderer/assets/flowDiagram-I6XJVG4X-C8znUgyL.js +0 -2333
  287. package/dist/renderer/assets/ganttDiagram-6RSMTGT7-DnRvbMnU.js +0 -3721
  288. package/dist/renderer/assets/gitGraphDiagram-PVQCEYII-CZuRZzk4.js +0 -1374
  289. package/dist/renderer/assets/graph-CYiEKt0j.js +0 -1988
  290. package/dist/renderer/assets/index-B4uDgADr.js +0 -530
  291. package/dist/renderer/assets/index-BX6JHKv6.js +0 -73314
  292. package/dist/renderer/assets/index-CGj1spkU.js +0 -27
  293. package/dist/renderer/assets/index-CcwAgVRi.css +0 -2226
  294. package/dist/renderer/assets/index-D4CPFkph.js +0 -9
  295. package/dist/renderer/assets/index-Y89U1ptl.js +0 -9
  296. package/dist/renderer/assets/infoDiagram-5YYISTIA-BlBUdqMb.js +0 -32
  297. package/dist/renderer/assets/init-ZxktEp_H.js +0 -16
  298. package/dist/renderer/assets/ishikawaDiagram-YF4QCWOH-TeVytCrP.js +0 -968
  299. package/dist/renderer/assets/journeyDiagram-JHISSGLW-BLZa3jnX.js +0 -1256
  300. package/dist/renderer/assets/kanban-definition-UN3LZRKU-foVxWrJn.js +0 -1053
  301. package/dist/renderer/assets/layout-DOAlFUVb.js +0 -2610
  302. package/dist/renderer/assets/linear-BMBn6kVq.js +0 -340
  303. package/dist/renderer/assets/mindmap-definition-RKZ34NQL-5pGeNCcp.js +0 -1181
  304. package/dist/renderer/assets/ordinal-DSZU4PqD.js +0 -76
  305. package/dist/renderer/assets/pieDiagram-4H26LBE5-N9aAUxfr.js +0 -247
  306. package/dist/renderer/assets/preload-helper-tXtZnHb0.js +0 -88
  307. package/dist/renderer/assets/quadrantDiagram-W4KKPZXB-BPxbtjga.js +0 -1345
  308. package/dist/renderer/assets/requirementDiagram-4Y6WPE33-CK1LrJyG.js +0 -1205
  309. package/dist/renderer/assets/sankeyDiagram-5OEKKPKP-BNj7Sqii.js +0 -1275
  310. package/dist/renderer/assets/sequenceDiagram-3UESZ5HK-B-r7lNhI.js +0 -4515
  311. package/dist/renderer/assets/stateDiagram-AJRCARHV-wrWE0MRa.js +0 -451
  312. package/dist/renderer/assets/stateDiagram-v2-BHNVJYJU-CE-Lqo2d.js +0 -22
  313. package/dist/renderer/assets/timeline-definition-PNZ67QCA-BkeMGH4J.js +0 -1597
  314. package/dist/renderer/assets/vennDiagram-CIIHVFJN-BTxVzto3.js +0 -2487
  315. package/dist/renderer/assets/wardley-L42UT6IY-b-_GPpqL.js +0 -30699
  316. package/dist/renderer/assets/wardleyDiagram-YWT4CUSO-D2r5dVGW.js +0 -976
  317. package/dist/renderer/assets/web-TfDzToU7.js +0 -58
  318. package/dist/renderer/assets/xychartDiagram-2RQKCTM6-BHQdINVc.js +0 -1933
  319. package/docs/RELEASE_NOTES_v1.5.1.md +0 -382
  320. package/docs/academic-demo.md +0 -567
  321. package/docs/agent-diff-view.md +0 -48
  322. package/docs/demo.html +0 -748
  323. package/docs/demo.md +0 -546
  324. package/docs/demo.pdf +0 -0
  325. package/docs/theme-paradigm.md +0 -797
  326. package/electron-builder.yml +0 -64
  327. package/electron.vite.config.js +0 -31
  328. package/electron.vite.config.ts +0 -30
  329. package/ios/App/App/AppDelegate.swift +0 -49
  330. package/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png +0 -0
  331. package/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -14
  332. package/ios/App/App/Assets.xcassets/Contents.json +0 -6
  333. package/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +0 -23
  334. package/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png +0 -0
  335. package/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png +0 -0
  336. package/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png +0 -0
  337. package/ios/App/App/Base.lproj/LaunchScreen.storyboard +0 -32
  338. package/ios/App/App/Base.lproj/Main.storyboard +0 -19
  339. package/ios/App/App/Info.plist +0 -49
  340. package/ios/App/App.xcodeproj/project.pbxproj +0 -408
  341. package/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  342. package/ios/App/Podfile +0 -28
  343. package/resources/entitlements.mac.plist +0 -12
  344. package/resources/icon.icns +0 -0
  345. package/resources/icon.png +0 -0
  346. package/resources/icon.svg +0 -23
  347. package/resources/templates/slides/icon.png +0 -0
  348. package/resources/templates/slides/slides-template.md +0 -74
  349. package/resources/templates/slides/template-forest-ink.html +0 -540
  350. package/resources/templates/slides/template.html +0 -535
  351. package/scripts/afterPack.js +0 -13
  352. package/scripts/generate-icons.js +0 -102
  353. package/src/main/index.ts +0 -919
  354. package/src/preload/index.d.ts +0 -51
  355. package/src/preload/index.js +0 -70
  356. package/src/preload/index.ts +0 -110
  357. package/src/renderer/capacitor-api.ts +0 -713
  358. package/src/renderer/editor/editor.ts +0 -287
  359. package/src/renderer/editor/html-view.ts +0 -15
  360. package/src/renderer/editor/plugins/index.ts +0 -86
  361. package/src/renderer/editor/plugins/math-plugin.ts +0 -305
  362. package/src/renderer/editor/plugins/mermaid-plugin-custom.css +0 -46
  363. package/src/renderer/editor/plugins/mermaid-plugin-dark.css +0 -428
  364. package/src/renderer/editor/plugins/mermaid-plugin-elegant.css +0 -443
  365. package/src/renderer/editor/plugins/mermaid-plugin-newsprint.css +0 -208
  366. package/src/renderer/editor/plugins/mermaid-plugin.css +0 -111
  367. package/src/renderer/editor/plugins/mermaid-plugin.ts +0 -680
  368. package/src/renderer/editor/plugins/themes/base/dark.css +0 -23
  369. package/src/renderer/editor/plugins/themes/base/elegant.css +0 -32
  370. package/src/renderer/editor/plugins/themes/base/light.css +0 -20
  371. package/src/renderer/editor/plugins/themes/base/newsprint.css +0 -27
  372. package/src/renderer/editor/plugins/themes/base.css +0 -509
  373. package/src/renderer/editor/plugins/themes/components/mermaid/academic.css +0 -43
  374. package/src/renderer/editor/plugins/themes/components/mermaid/dark.css +0 -20
  375. package/src/renderer/editor/plugins/themes/components/mermaid/elegant.css +0 -24
  376. package/src/renderer/editor/plugins/themes/components/mermaid/light.css +0 -21
  377. package/src/renderer/editor/plugins/themes/components/mermaid/newsprint.css +0 -26
  378. package/src/renderer/editor/plugins/themes/components/mermaid/variables.css +0 -592
  379. package/src/renderer/editor/plugins/themes/foundation.css +0 -143
  380. package/src/renderer/editor/plugins/themes/theme-manager.ts +0 -133
  381. package/src/renderer/env.d.ts +0 -10
  382. package/src/renderer/index.html +0 -76
  383. package/src/renderer/main.ts +0 -775
  384. package/src/renderer/mobile.css +0 -428
  385. package/themes/academic-paper-pt.css +0 -1321
  386. package/themes/academic-paper.css +0 -1416
  387. package/themes/forest-ink.css +0 -664
  388. package/themes/guizang.css +0 -732
  389. package/themes/pixso-design.css +0 -1261
  390. package/themes/swiss-design.css +0 -596
  391. package/tsconfig.json +0 -14
  392. package/tsconfig.main.json +0 -12
  393. package/tsconfig.main.tsbuildinfo +0 -1
  394. package/tsconfig.preload.json +0 -12
  395. package/tsconfig.preload.tsbuildinfo +0 -1
  396. package/tsconfig.renderer.json +0 -13
  397. package/tsconfig.renderer.tsbuildinfo +0 -1
  398. package/tsconfig.tsbuildinfo +0 -1
@@ -0,0 +1,2503 @@
1
+ @font-face{font-display:block;font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(./KaTeX_AMS-Regular-BQhdFMY1.woff2) format("woff2"),url(./KaTeX_AMS-Regular-DMm9YOAa.woff) format("woff"),url(./KaTeX_AMS-Regular-DRggAlZN.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(./KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2) format("woff2"),url(./KaTeX_Caligraphic-Bold-BEiXGLvX.woff) format("woff"),url(./KaTeX_Caligraphic-Bold-ATXxdsX0.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(./KaTeX_Caligraphic-Regular-Di6jR-x-.woff2) format("woff2"),url(./KaTeX_Caligraphic-Regular-CTRA-rTL.woff) format("woff"),url(./KaTeX_Caligraphic-Regular-wX97UBjC.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(./KaTeX_Fraktur-Bold-CL6g_b3V.woff2) format("woff2"),url(./KaTeX_Fraktur-Bold-BsDP51OF.woff) format("woff"),url(./KaTeX_Fraktur-Bold-BdnERNNW.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(./KaTeX_Fraktur-Regular-CTYiF6lA.woff2) format("woff2"),url(./KaTeX_Fraktur-Regular-Dxdc4cR9.woff) format("woff"),url(./KaTeX_Fraktur-Regular-CB_wures.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(./KaTeX_Main-Bold-Cx986IdX.woff2) format("woff2"),url(./KaTeX_Main-Bold-Jm3AIy58.woff) format("woff"),url(./KaTeX_Main-Bold-waoOVXN0.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(./KaTeX_Main-BoldItalic-DxDJ3AOS.woff2) format("woff2"),url(./KaTeX_Main-BoldItalic-SpSLRI95.woff) format("woff"),url(./KaTeX_Main-BoldItalic-DzxPMmG6.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(./KaTeX_Main-Italic-NWA7e6Wa.woff2) format("woff2"),url(./KaTeX_Main-Italic-BMLOBm91.woff) format("woff"),url(./KaTeX_Main-Italic-3WenGoN9.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(./KaTeX_Main-Regular-B22Nviop.woff2) format("woff2"),url(./KaTeX_Main-Regular-Dr94JaBh.woff) format("woff"),url(./KaTeX_Main-Regular-ypZvNtVU.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(./KaTeX_Math-BoldItalic-CZnvNsCZ.woff2) format("woff2"),url(./KaTeX_Math-BoldItalic-iY-2wyZ7.woff) format("woff"),url(./KaTeX_Math-BoldItalic-B3XSjfu4.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(./KaTeX_Math-Italic-t53AETM-.woff2) format("woff2"),url(./KaTeX_Math-Italic-DA0__PXp.woff) format("woff"),url(./KaTeX_Math-Italic-flOr_0UB.ttf) format("truetype")}@font-face{font-display:block;font-family:"KaTeX_SansSerif";font-style:normal;font-weight:700;src:url(./KaTeX_SansSerif-Bold-D1sUS0GD.woff2) format("woff2"),url(./KaTeX_SansSerif-Bold-DbIhKOiC.woff) format("woff"),url(./KaTeX_SansSerif-Bold-CFMepnvq.ttf) format("truetype")}@font-face{font-display:block;font-family:"KaTeX_SansSerif";font-style:italic;font-weight:400;src:url(./KaTeX_SansSerif-Italic-C3H0VqGB.woff2) format("woff2"),url(./KaTeX_SansSerif-Italic-DN2j7dab.woff) format("woff"),url(./KaTeX_SansSerif-Italic-YYjJ1zSn.ttf) format("truetype")}@font-face{font-display:block;font-family:"KaTeX_SansSerif";font-style:normal;font-weight:400;src:url(./KaTeX_SansSerif-Regular-DDBCnlJ7.woff2) format("woff2"),url(./KaTeX_SansSerif-Regular-CS6fqUqJ.woff) format("woff"),url(./KaTeX_SansSerif-Regular-BNo7hRIc.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(./KaTeX_Script-Regular-D3wIWfF6.woff2) format("woff2"),url(./KaTeX_Script-Regular-D5yQViql.woff) format("woff"),url(./KaTeX_Script-Regular-C5JkGWo-.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(./KaTeX_Size1-Regular-mCD8mA8B.woff2) format("woff2"),url(./KaTeX_Size1-Regular-C195tn64.woff) format("woff"),url(./KaTeX_Size1-Regular-Dbsnue_I.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(./KaTeX_Size2-Regular-Dy4dx90m.woff2) format("woff2"),url(./KaTeX_Size2-Regular-oD1tc_U0.woff) format("woff"),url(./KaTeX_Size2-Regular-B7gKUWhC.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC) format("woff2"),url(./KaTeX_Size3-Regular-CTq5MqoE.woff) format("woff"),url(./KaTeX_Size3-Regular-DgpXs0kz.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(./KaTeX_Size4-Regular-Dl5lxZxV.woff2) format("woff2"),url(./KaTeX_Size4-Regular-BF-4gkZK.woff) format("woff"),url(./KaTeX_Size4-Regular-DWFBv043.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(./KaTeX_Typewriter-Regular-CO6r4hn1.woff2) format("woff2"),url(./KaTeX_Typewriter-Regular-C0xS9mPB.woff) format("woff"),url(./KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf) format("truetype")}.katex{font:normal 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;position:relative;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.47"}.katex .katex-mathml{border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .smash{display:inline;line-height:0}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.1666666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.6666666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.4566666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.1466666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.7142857143em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.8571428571em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.1428571429em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.2857142857em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.4285714286em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.7142857143em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.0571428571em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.4685714286em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.9628571429em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.5542857143em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.7777777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.8888888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.1111111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.3044444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.7644444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.5833333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.7283333333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.0733333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.4861111111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.4402777778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.7277777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.2893518519em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.4050925926em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462962963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.5208333333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.2002314815em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.4398148148em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.2410800386em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.2892960463em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512054em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.3857280617em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.4339440694em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.4821600771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.5785920926em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.6943105111em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.8331726133em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.1996142719em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.2009646302em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.2411575563em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.2813504823em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.3215434084em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.3617363344em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.4019292605em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.4823151125em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778135em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.6945337621em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.8336012862em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex svg{fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}
2
+ *, *::before, *::after {
3
+ box-sizing: border-box;
4
+ margin: 0;
5
+ padding: 0;
6
+ }
7
+
8
+ html, body {
9
+ height: 100%;
10
+ overflow: hidden;
11
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
12
+ background: var(--bg-color);
13
+ color: var(--text-color);
14
+ }
15
+
16
+ :root {
17
+ /* The single top row's height, in one place: the row itself, the editor and
18
+ the panel all sit on this number, and the main process's TITLEBAR_HEIGHT
19
+ (which Windows uses for the system buttons) has to agree with it. Shorter
20
+ rows make the chrome lighter, but 28px controls need air around them, and
21
+ the macOS traffic lights are centred against it (trafficLightPosition.y =
22
+ rowHeight / 2 - 8). */
23
+ --chrome-row-height: 36px;
24
+ /* Zero: the strip lives inside the top row, so the editor starts right below
25
+ it and nothing below needs a second offset. */
26
+ --tab-bar-height: 0px;
27
+ --editor-top-gap: 0px;
28
+ }
29
+
30
+ /* The room the panel's column takes out of the right-hand end of the row. Zero
31
+ when the panel is hidden, so one expression covers both states. */
32
+ body.show-file-panel {
33
+ --panel-column: var(--file-panel-width, 220px);
34
+ --editor-region-width: calc(100% - var(--file-panel-width, 220px));
35
+ }
36
+
37
+ /* The file panel is fixed so it can remain shell furniture, rather than taking
38
+ part in the document's scroll. The document region must nevertheless claim
39
+ only the remaining width: otherwise a centred reading column stays centred in
40
+ the whole window and appears off-centre as soon as the panel opens. */
41
+ body.show-file-panel.panel-left {
42
+ --editor-region-offset: var(--file-panel-width, 220px);
43
+ }
44
+
45
+ /* 正文要避开的那一列。默认两边都是 0,面板显示时才有一边非零,
46
+ 这样下面每条表达式都不用再判断面板开没开。 */
47
+ body {
48
+ --panel-inset-left: 0px;
49
+ --panel-inset-right: 0px;
50
+ }
51
+
52
+ /* 面板是一列浮在窗口上的纸(position: fixed),它不占布局,所以避让只能自己写:
53
+ 右停靠让右边,左停靠让左边(#143)。同一对值同时给渲染模式与源码模式用,
54
+ 两边正文于是永远落在同一块可见区域里,切换模式时文字不会横向跳(#48)。 */
55
+ body.show-file-panel {
56
+ --panel-inset-right: 0px;
57
+ }
58
+
59
+ body {
60
+ /* One chrome colour for the single top row. These MUST live on body, never
61
+ on :root: the themes override --bg-color/--text-color on body.theme-*, and
62
+ html never sees those overrides, so a :root definition bakes the light
63
+ theme's mix in and the titlebar stops following the theme entirely
64
+ (2026-09-15, found in the dark themes where the row stayed light grey and
65
+ the buttons vanished into it). Custom properties resolve where they are
66
+ DEFINED, not where they are used. */
67
+ --chrome-bg: color-mix(in srgb, var(--text-color) 6%, var(--bg-color));
68
+ /* Fully opaque, so the hovered tab and the close button that covers text use
69
+ one solid colour instead of stacking translucent layers. */
70
+ --chrome-bg-hover: color-mix(in srgb, var(--text-color) 6%, var(--chrome-bg));
71
+ /* Every seam in the shell: tab boundaries, the row's baseline, the panel's
72
+ edge. ONE opaque colour, not a translucent one: a translucent hairline is
73
+ resolved against whatever is underneath, so the same value came out as two
74
+ different lines where the surface changed — the panel's edge read lighter
75
+ below the row than in it, and looked like two lines meeting (2026-09-15). */
76
+ --shell-line: color-mix(in srgb, var(--text-color) 5%, var(--chrome-bg));
77
+ /* Every icon control in the row — the plus, the word count, the source
78
+ toggle, the file-panel toggle — reads at this one grey. They report nothing
79
+ by weight: no hover step, no lit on-state, no dimmed disabled step. */
80
+ --row-icon-color: color-mix(in srgb, var(--text-muted) 55%, transparent);
81
+ --search-match-bg: color-mix(in srgb, var(--link-color) 18%, transparent);
82
+ --search-match-current-bg: color-mix(in srgb, var(--link-color) 32%, transparent);
83
+ /* The reading column's width. A comfort setting, not a document property: the
84
+ View menu's Text Width switches the two body classes below, and everything
85
+ that lays text out reads this one value (the editor, source mode, and an
86
+ export snapshot, which carries the body class with it). */
87
+ --editor-column-width: 780px;
88
+ }
89
+
90
+ /* 代码块里的 token 配色(语法高亮)。
91
+ 两套:深色代码底一套、浅色代码底一套。用哪一套由 theme-manager 按 --code-block-bg
92
+ 的明暗决定(和 Mermaid 图同一个判据——elegant、bear 是浅色主题却配深色代码块),
93
+ 在 body 上加 .code-palette-light 切换。
94
+ 为什么不逐主题写进 12 个主题文件:自定义主题只有一份 :root 变量,逐主题写会漏掉它们。 */
95
+ body {
96
+ --code-keyword: #c678dd;
97
+ --code-string: #98c379;
98
+ --code-comment: #7f848e;
99
+ --code-number: #d19a66;
100
+ --code-function: #61afef;
101
+ --code-type: #e5c07b;
102
+ --code-property: #e06c75;
103
+ --code-meta: #56b6c2;
104
+ }
105
+
106
+ /* 浅色代码底的那几个主题(light、sepia、notion、writer) */
107
+ body.code-palette-light {
108
+ --code-keyword: #cf222e;
109
+ --code-string: #0a3069;
110
+ --code-comment: #6e7781;
111
+ --code-number: #0550ae;
112
+ --code-function: #8250df;
113
+ --code-type: #953800;
114
+ --code-property: #116329;
115
+ --code-meta: #6639ba;
116
+ }
117
+
118
+ /* Text Width, from the View menu. `standard` needs no class: it is the value
119
+ body already carries. 640 is a comfortable measure on a narrow window, 1080
120
+ answers the wide displays where the default leaves two large margins. */
121
+ body.page-width-narrow { --editor-column-width: 640px; }
122
+ body.page-width-wide { --editor-column-width: 1080px; }
123
+
124
+ #titlebar {
125
+ /* The single top row. The strip, the save status and the three buttons are
126
+ all flex children of THIS element: one surface, one baseline, one stacking
127
+ order. (58f66f4 floated the strip above it with z-index 31; the broken
128
+ baseline, the wrong colour and the dead buttons all came from that split.)
129
+ Left padding clears the macOS traffic lights. */
130
+ -webkit-app-region: drag;
131
+ height: var(--chrome-row-height);
132
+ flex-shrink: 0;
133
+ display: flex;
134
+ align-items: center;
135
+ /* The left of the row belongs to the document: the strip starts after the
136
+ traffic lights (they end at 68px; 16px of clearance read as crowded, 28px
137
+ sits right) and the file panel docks on the RIGHT, so the tabs never shift
138
+ when it opens. */
139
+ padding: 0 6px 0 96px;
140
+ background: var(--chrome-bg, transparent);
141
+ position: relative;
142
+ /* Tooltips inside the titlebar must paint above the editor. */
143
+ z-index: 30;
144
+ }
145
+
146
+ /* The clearance above belongs to the traffic lights. macOS hides them in full
147
+ screen and no other platform has them, so the strip starts on the window's own
148
+ left edge there instead of leaving 96px of empty chrome (2026-09-15). */
149
+ body.fullscreen #titlebar,
150
+ body.platform-non-mac #titlebar {
151
+ padding-left: 6px;
152
+ }
153
+
154
+ /* Windows paints its window controls inside this row (titleBarOverlay) instead of
155
+ in a title bar of its own, which is what turns three stacked bars into one row.
156
+ The controls are drawn over the web content, so the row keeps their width clear:
157
+ env() reports the area the OS left us, and the 138px fallback is the Windows 11
158
+ control cluster when the variable is unavailable. */
159
+ body.platform-win #titlebar {
160
+ padding-right: calc(100vw - env(titlebar-area-width, calc(100vw - 138px)) + 6px);
161
+ }
162
+
163
+ /* The row's one baseline. It is its own element rather than an inset shadow
164
+ because the active tab has to be able to cover it: the tab is opaque paper
165
+ flush with the bottom of the row, so the line is cut where the tab opens into
166
+ the document. */
167
+ #titlebar::before {
168
+ content: '';
169
+ position: absolute;
170
+ left: 0;
171
+ right: 0;
172
+ bottom: 0;
173
+ height: 1px;
174
+ background: var(--shell-line);
175
+ }
176
+
177
+ /* The panel's column is a column below the row, and only below it: the row keeps
178
+ its own surface across the full width. Carrying the seam up through the row
179
+ (2.4.0) put a vertical line in the chrome at the row's right end, which read as
180
+ a stray mark rather than as an edge — there is no surface change up there to
181
+ justify a line (2026-09-15). */
182
+
183
+ #save-status {
184
+ /* A flex member of the row, left of the button cluster. The free space in the
185
+ row collects HERE, between the plus and the save status, so the strip stays
186
+ next to its tabs and the right-hand group stays pinned to the right edge. */
187
+ margin-left: auto;
188
+ flex: none;
189
+ margin-right: 2px;
190
+ white-space: nowrap;
191
+ font-size: 11px;
192
+ line-height: 1.3;
193
+ color: var(--text-muted);
194
+ opacity: 0;
195
+ transition: opacity 0.6s ease;
196
+ pointer-events: none;
197
+ }
198
+
199
+ /* Only unsaved edits are announced; a successful save fades out silently. */
200
+ #save-status.pending {
201
+ opacity: 0.55;
202
+ }
203
+
204
+ /* Tabs are created from the File menu / ⌘T, from the file list (⌘-click or the
205
+ right-click menu), and from the plus at the end of the strip, which appears
206
+ together with the strip. There is deliberately no plus in the title bar: it
207
+ would disappear the moment the strip shows up. */
208
+ #tab-bar {
209
+ /* The strip is the titlebar's first flex child, not a floating sibling. It
210
+ hugs its tabs and shrinks when they run out of room: min-width: 0 lets it,
211
+ and overflow scrolls the tabs. It paints nothing of its own: the surface and
212
+ the baseline belong to the titlebar. It may not run past the panel's column
213
+ either — the tabs belong to the document's side of the row. */
214
+ flex: 0 1 auto;
215
+ min-width: 0;
216
+ /* …and it stops one plus-button short of the column, so that button lands just
217
+ inside the document's side of the row rather than on the panel's paper. */
218
+ max-width: calc(100% - var(--panel-column, 0px) - 36px);
219
+ align-self: stretch;
220
+ display: flex;
221
+ /* Tabs fill the row instead of floating inside it: no gap and no separator
222
+ lines, because the paper against the chrome is the whole reading. */
223
+ align-items: stretch;
224
+ gap: 0;
225
+ overflow-x: auto;
226
+ overflow-y: hidden;
227
+ scrollbar-width: none;
228
+ background: transparent;
229
+ -webkit-app-region: drag;
230
+ }
231
+
232
+ #tab-bar[hidden] {
233
+ display: none;
234
+ }
235
+
236
+ #tab-bar::-webkit-scrollbar {
237
+ display: none;
238
+ }
239
+
240
+ /* The plus carries no styling of its own: it is one of the row's icon controls
241
+ (#titlebar > button), so it is the same size, the same grey, and reports
242
+ nothing by weight. It sits right after the strip, and `.tab-new-btn` survives
243
+ as the hook the renderer finds it by. */
244
+
245
+ .tab-entry {
246
+ position: relative;
247
+ display: flex;
248
+ align-items: center;
249
+ gap: 6px;
250
+ flex: 0 1 auto;
251
+ /* A tab hugs its filename, inside a floor and a ceiling that are both READ
252
+ OFF the row's height, so they follow it instead of a past one: twice it so
253
+ a short name never collapses to a bare square, four times it so a long one
254
+ stops growing. In between the name decides, and when the row runs out the
255
+ tabs compress to the floor before the strip starts scrolling. Written as
256
+ the row's multiples rather than as millimetres of a remembered row: these
257
+ two numbers used to be 80/160, which was 2x/4x of the 40px row and stayed
258
+ there when the row became 36px (2026-09-20). */
259
+ min-width: calc(var(--chrome-row-height) * 2);
260
+ max-width: calc(var(--chrome-row-height) * 4);
261
+ /* Full row height: the active tab is a column of paper running from the
262
+ window's top edge down into the document, not a chip inside the row. */
263
+ height: 100%;
264
+ /* Symmetric: 16px either side, roomier than the air the name gets above and
265
+ below, so a label reads as sitting in the tab rather than filling it. */
266
+ padding: 0 16px;
267
+ border: 1px solid transparent;
268
+ /* No top edge and no bottom edge. The bottom stays open so the active tab
269
+ runs into the document; the top would sit on the window's own top edge,
270
+ where a hairline reads as a seam in the sky. */
271
+ border-top: none;
272
+ border-bottom: none;
273
+ /* Every tab marks its LEFT edge, full height: the line runs from the window's
274
+ top edge down to the row's baseline, so the tabs read as one connected row
275
+ of columns rather than as names floating over chrome. The first tab is
276
+ marked too, which is where the strip begins. */
277
+ border-left-color: var(--shell-line);
278
+ /* Square on purpose: a full-height tab meets the window's top edge, where a
279
+ radius reads as a notch. */
280
+ border-radius: 0;
281
+ background: transparent;
282
+ color: var(--text-muted);
283
+ font-family: inherit;
284
+ font-size: 12px;
285
+ line-height: 1;
286
+ white-space: nowrap;
287
+ overflow: hidden;
288
+ cursor: default;
289
+ -webkit-app-region: no-drag;
290
+ transition: background 0.15s, color 0.15s;
291
+ }
292
+
293
+ .tab-entry:hover {
294
+ background: var(--chrome-bg-hover);
295
+ color: var(--text-secondary, var(--text-color));
296
+ }
297
+
298
+ /* The active tab wears the paper colour with no bottom edge, so it opens into the
299
+ document. No shadow, and no accent line either: the paper set
300
+ against the chrome is the active state, and a 1px theme line on top of it made the
301
+ strip shout for attention. */
302
+ .tab-entry.active {
303
+ background: var(--bg-color);
304
+ /* Its edges carry the same hairline as every other boundary: the active state
305
+ is the paper column itself, not a heavier line around it. */
306
+ border-color: var(--shell-line);
307
+ color: var(--text-color);
308
+ }
309
+
310
+ /* The active tab already lays a full-height edge against its right neighbour,
311
+ so the neighbour gives up its own mark there instead of doubling up. */
312
+ .tab-entry.active + .tab-entry {
313
+ border-left-color: transparent;
314
+ }
315
+
316
+ .tab-entry-name {
317
+ flex: 1 1 auto;
318
+ min-width: 0;
319
+ /* The label's box has to be TALLER than its glyphs, not exactly as tall. With
320
+ line-height 1 the ink filled the box edge to edge, and a CJK font with a
321
+ roomier em box (Windows) had the bottom of its strokes cut off by the
322
+ overflow clip below. 20px of box around ~16px of ink leaves 2px of air each
323
+ side on every platform's font (2026-09-15). */
324
+ line-height: 20px;
325
+ overflow: hidden;
326
+ text-overflow: ellipsis;
327
+ }
328
+
329
+ .tab-entry.dirty::before {
330
+ content: '';
331
+ flex: none;
332
+ width: 5px;
333
+ height: 5px;
334
+ border-radius: 50%;
335
+ background: currentColor;
336
+ opacity: 0.5;
337
+ }
338
+
339
+ /* The close button floats over the tab: no width, no padding, nothing reserved
340
+ at rest, so a resting tab hugs its filename exactly. When it shows it masks the
341
+ text behind it with a fully opaque surface colour, and it is never translucent:
342
+ a faded button lets the tab name read straight through it. Quietness comes from
343
+ the muted glyph colour, not from an opacity on the button. */
344
+ .tab-entry-close {
345
+ position: absolute;
346
+ top: 50%;
347
+ right: 5px;
348
+ transform: translateY(-50%);
349
+ flex: none;
350
+ width: 16px;
351
+ height: 16px;
352
+ padding: 0;
353
+ border: none;
354
+ border-radius: 4px;
355
+ background: var(--chrome-bg-hover);
356
+ color: inherit;
357
+ opacity: 0;
358
+ pointer-events: none;
359
+ display: flex;
360
+ align-items: center;
361
+ justify-content: center;
362
+ cursor: default;
363
+ transition: opacity 0s, background 0.12s, color 0.12s;
364
+ }
365
+
366
+ /* 16×16 是保持「静止的标签恰好贴着文件名」所需的可见尺寸,但它低于 24×24
367
+ 的最小点击热区。这一圈不可见的外扩把热区补到 24×24:它不绘制任何东西,
368
+ 所以按钮用来遮住背后文字的实色底仍然是 16×16;它绝对定位,所以不参与
369
+ flex 排版,标签宽度与行高一个像素都不动。按钮静止时 pointer-events 为 none,
370
+ 伪元素继承,于是看不见的时候也不会被点到。 */
371
+ .tab-entry-close::after {
372
+ content: '';
373
+ position: absolute;
374
+ inset: -4px;
375
+ }
376
+
377
+ .tab-entry.active .tab-entry-close {
378
+ background: var(--bg-color);
379
+ }
380
+
381
+ .tab-entry:hover .tab-entry-close,
382
+ .tab-entry-close:focus-visible {
383
+ opacity: 1;
384
+ pointer-events: auto;
385
+ /* A resting tab's surface fades in over 0.15s: wait for it, so the opaque mask
386
+ never lands on a half-transparent tab. */
387
+ transition: opacity 0s 0.15s, background 0.12s, color 0.12s;
388
+ }
389
+
390
+ /* The active tab's paper surface never fades, so its close button pops at once. */
391
+ .tab-entry.active:hover .tab-entry-close,
392
+ .tab-entry.active .tab-entry-close:focus-visible {
393
+ transition: opacity 0s, background 0.12s, color 0.12s;
394
+ }
395
+
396
+ .tab-entry-close:hover {
397
+ background: color-mix(in srgb, var(--text-color) 14%, var(--chrome-bg-hover));
398
+ color: var(--text-color);
399
+ }
400
+
401
+ .tab-entry.active .tab-entry-close:hover {
402
+ background: color-mix(in srgb, var(--text-color) 12%, var(--bg-color));
403
+ }
404
+
405
+ /* One floating label, used by the strip and by the file panel. */
406
+ #hover-tip {
407
+ position: fixed;
408
+ padding: 4px 8px;
409
+ border-radius: 5px;
410
+ background: color-mix(in srgb, var(--text-color) 86%, transparent);
411
+ color: var(--bg-color);
412
+ font-size: 11px;
413
+ letter-spacing: 0.01em;
414
+ white-space: nowrap;
415
+ pointer-events: none;
416
+ z-index: 60;
417
+ }
418
+
419
+ #hover-tip[hidden] {
420
+ display: none;
421
+ }
422
+
423
+ /* The three titlebar buttons share ONE box rule: same size, same radius, same
424
+ colour. They also share one weight, always: no hover step, no disabled step,
425
+ no on-state. A control that lights up — or dims — pulls the eye row-ward, and
426
+ both states it could report are plain to see by themselves (2026-09-15).
427
+ The .active class survives as the state marker; nothing styles it. */
428
+ #titlebar > button {
429
+ width: 28px;
430
+ height: 28px;
431
+ margin-left: 8px;
432
+ border-radius: 6px;
433
+ border: none;
434
+ background: transparent;
435
+ color: var(--row-icon-color);
436
+ cursor: pointer;
437
+ display: flex;
438
+ align-items: center;
439
+ justify-content: center;
440
+ -webkit-app-region: no-drag;
441
+ }
442
+
443
+ /* `display: flex` above outranks the UA rule for [hidden], so the attribute has
444
+ to be honoured explicitly: the menu button only exists on Windows, and an
445
+ invisible-looking 28px box would still sit in the row and push the others. */
446
+ #titlebar > button[hidden] {
447
+ display: none;
448
+ }
449
+
450
+ /* The Windows menu button is the row's first child, so it gets its own air
451
+ instead of the 8px gap the right-hand cluster uses: the row's 6px gutter is
452
+ its left margin, and 6px on the right puts the glyph exactly halfway between
453
+ the window's edge and the line the document's strip starts on. Inheriting the
454
+ shared margin-left left it jammed against the first tab (2026-09-15). */
455
+ #titlebar > #app-menu-btn {
456
+ margin-left: 0;
457
+ margin-right: 6px;
458
+ }
459
+
460
+ /* One focus ring for the whole shell, drawn in the theme's own ink. The platform
461
+ default follows the SYSTEM accent colour, so a keyboard focus inside a
462
+ monochrome row came out orange on macOS (2026-09-15) and would come out a
463
+ different colour on every machine, in neither case the theme's. Colour accents
464
+ belong to the document; the shell reports focus with weight and shape. */
465
+ :focus-visible {
466
+ outline: 2px solid color-mix(in srgb, var(--text-color) 40%, transparent);
467
+ outline-offset: 1px;
468
+ }
469
+
470
+ /* The close button sits INSIDE its tab, so its ring has to grow inward: an
471
+ outward one would paint over the neighbouring tab's edge. */
472
+ .tab-entry-close:focus-visible {
473
+ outline-offset: -2px;
474
+ }
475
+
476
+ /* The tooltip reveal is its own rule, apart from anything that changes colour:
477
+ 58f66f4 fused the hover selectors into the tip's block, which teleported and
478
+ hid the buttons on hover (the "flicker / unclickable" bug). */
479
+ .toolbar-tip {
480
+ position: absolute;
481
+ top: calc(100% + 6px);
482
+ right: 0;
483
+ z-index: 20;
484
+ padding: 4px 9px;
485
+ border-radius: 6px;
486
+ background: var(--bg-color);
487
+ border: 1px solid var(--border-color);
488
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
489
+ color: var(--text-color);
490
+ font-size: 12px;
491
+ font-weight: 400;
492
+ line-height: 1.4;
493
+ white-space: nowrap;
494
+ opacity: 0;
495
+ pointer-events: none;
496
+ transform: translateY(-3px);
497
+ /* No opacity transition: a hover label is either fully visible or not there
498
+ at all. A fade reads as a transparent label over the document text. */
499
+ transition: transform 0.15s;
500
+ }
501
+
502
+ #titlebar > button:hover .toolbar-tip {
503
+ opacity: 1;
504
+ transform: translateY(0);
505
+ }
506
+
507
+ #word-count {
508
+ cursor: default;
509
+ }
510
+
511
+ #editor-region {
512
+ width: var(--editor-region-width, 100%);
513
+ height: calc(100vh - var(--chrome-row-height) - var(--tab-bar-height, 0px));
514
+ margin-left: var(--editor-region-offset, 0px);
515
+ }
516
+
517
+ /* The panel does not push the document; it is fixed shell furniture. Give the
518
+ visible document region the same short motion so the reading column follows
519
+ the new centre instead of jumping after the panel has arrived. */
520
+ body.panel-motion-ready #editor-region {
521
+ transition: width 180ms cubic-bezier(0.2, 0, 0, 1), margin-left 180ms cubic-bezier(0.2, 0, 0, 1);
522
+ }
523
+
524
+ #editor {
525
+ position: relative; /* anchor for the absolutely-positioned code copy button */
526
+ height: 100%;
527
+ overflow-y: auto;
528
+ /* 正常情况没有内边距。正文那 40px 呼吸留白搬到 .cm-content 上(见 themes/editor-preview.css),
529
+ 两个理由都是看得见的:
530
+ 1. CodeMirror 的滚动容器是 .cm-scroller,它在 #editor 的内边距之内。旧版(Milkdown)
531
+ 滚动发生在 #editor 自己身上,滚动条贴窗口右缘;留着这 40px,滚动条就会缩进 40px,
532
+ 浮在留白中间。
533
+ 2. 内边距留在外层,限宽就只能靠 max-width,而 .cm-content 是 flex 子项、
534
+ baseTheme 给了它 flex-grow: 2,剩余空间被它先吃掉,自动外边距吸不到东西,
535
+ 正文会左对齐(实测窗口 1623px、正文 640px 贴左边)。
536
+ 唯一一处例外是面板那一列(#143):它是两三百像素的让位,不是呼吸留白。那点宽度要么
537
+ 让 #editor 留出来(滚动条落在面板边缘),要么就让正文和滚动条一起待在面板底下。
538
+ 正文仍然靠 .cm-content 的自动外边距在剩下的宽度里居中,flex: 0 0 auto 保证它吸得到空间。 */
539
+ padding: 0 var(--panel-inset-right, 0px) 0 var(--panel-inset-left, 0px);
540
+ }
541
+
542
+ /* Same-directory file panel */
543
+ #file-panel {
544
+ position: fixed;
545
+ top: calc(var(--chrome-row-height) + var(--tab-bar-height, 0px));
546
+ right: 0;
547
+ bottom: 0;
548
+ width: var(--file-panel-width, 220px);
549
+ z-index: 5;
550
+ display: flex;
551
+ flex-direction: column;
552
+ background: var(--bg-color);
553
+ /* The same hairline as the row's dividers and its baseline: every seam in the
554
+ shell is one weight, and --border-color stays for things INSIDE a surface
555
+ (cards, modals, tables), where a quieter line would read as an accident. */
556
+ border-left: 1px solid var(--shell-line);
557
+ overflow-y: auto;
558
+ padding: 10px 8px;
559
+ opacity: 0;
560
+ pointer-events: none;
561
+ transform: translateX(100%);
562
+ }
563
+
564
+ #file-panel[hidden] {
565
+ display: none;
566
+ }
567
+
568
+ body.panel-motion-ready #file-panel {
569
+ transition: transform 180ms cubic-bezier(0.2, 0, 0, 1), opacity 120ms ease-out;
570
+ }
571
+
572
+ body.show-file-panel #file-panel {
573
+ opacity: 1;
574
+ pointer-events: auto;
575
+ transform: translateX(0);
576
+ }
577
+
578
+ /* With the panel shown, the strip starts on the panel's edge line: the first tab
579
+ sits exactly on the line the panel draws down the window, so the panel's right
580
+ edge and the tab's left edge are one vertical. The band itself still spans the
581
+ window — the panel starts below it, and nothing is cut. */
582
+ /* Edge hot zone for resizing the panel; deliberately handle-free — the divider
583
+ itself is the whole affordance (design.md). The hit area is 7px wide and
584
+ centred on the border's own column (the panel is border-box, so its 1px edge
585
+ sits in the last pixel), which puts the feedback exactly ON the line instead of
586
+ next to it. The tint is neutral: an accent colour belongs to the document, and
587
+ this is shell furniture. */
588
+ #panel-resizer {
589
+ position: fixed;
590
+ top: calc(var(--chrome-row-height) + var(--tab-bar-height, 0px));
591
+ bottom: 0;
592
+ right: calc(var(--file-panel-width, 220px) - 4px);
593
+ width: 7px;
594
+ cursor: col-resize;
595
+ z-index: 6;
596
+ background: transparent;
597
+ opacity: 0;
598
+ pointer-events: none;
599
+ }
600
+
601
+ body.panel-motion-ready #panel-resizer {
602
+ transition: opacity 120ms ease-out;
603
+ }
604
+
605
+ body.show-file-panel #panel-resizer {
606
+ opacity: 1;
607
+ pointer-events: auto;
608
+ }
609
+
610
+ /* 3px in: the border's column inside a 7px hit area. */
611
+ #panel-resizer::after {
612
+ content: '';
613
+ position: absolute;
614
+ top: 0;
615
+ bottom: 0;
616
+ left: 3px;
617
+ width: 1px;
618
+ background: transparent;
619
+ transition: background 0.15s;
620
+ }
621
+
622
+ /* The panel can sit on either side (View menu, 2026-09-20). Deliberately the
623
+ smallest version of it: the panel and the room it claims move, the row does
624
+ not. The buttons stay at the right end where they have always been, and the
625
+ strip keeps the whole row instead of stopping one column short of it, because
626
+ the column it stopped short of is now on the other side. */
627
+ body.panel-left #file-panel {
628
+ left: 0;
629
+ right: auto;
630
+ border-left: 0;
631
+ border-right: 1px solid var(--shell-line);
632
+ transform: translateX(-100%);
633
+ }
634
+
635
+ body.panel-left.show-file-panel #file-panel {
636
+ transform: translateX(0);
637
+ }
638
+
639
+ body.panel-left #panel-resizer {
640
+ left: calc(var(--file-panel-width, 220px) - 4px);
641
+ right: auto;
642
+ }
643
+
644
+ body.panel-left.show-file-panel {
645
+ --panel-column: 0px;
646
+ --panel-inset-left: 0px;
647
+ --panel-inset-right: 0px;
648
+ }
649
+
650
+ /* The button cannot follow the panel to the left end (it stays where it has
651
+ always been), so the icon is the only thing left that can point at the list:
652
+ the same mirror the file-list icon got when the panel moved right (2026-09-15). */
653
+ body.panel-left #file-toggle-btn svg {
654
+ transform: scaleX(-1);
655
+ }
656
+
657
+ /* Motion must never be the only way to understand the panel state. Readers who
658
+ ask the OS to reduce movement get the same final layout immediately. */
659
+ @media (prefers-reduced-motion: reduce) {
660
+ body.panel-motion-ready #editor-region,
661
+ body.panel-motion-ready #file-panel,
662
+ body.panel-motion-ready #panel-resizer {
663
+ transition: none;
664
+ }
665
+ }
666
+
667
+ #panel-resizer:hover::after,
668
+ #panel-resizer.dragging::after {
669
+ background: color-mix(in srgb, var(--text-color) 24%, transparent);
670
+ }
671
+
672
+ body.panel-resizing {
673
+ cursor: col-resize;
674
+ user-select: none;
675
+ }
676
+
677
+ .file-panel-tabs {
678
+ display: grid;
679
+ grid-template-columns: 1fr 1fr;
680
+ gap: 0;
681
+ margin: 0 0 8px;
682
+ padding: 2px;
683
+ /* One rectangle, not two: the tray carries a surface and nothing else, so the
684
+ active chip can wear the tabs' exact recipe — paper plus the same 1px
685
+ hairline — and the sidebar and the strip say "chosen" the same way. */
686
+ border: none;
687
+ /* Concentric with the chip inside it: outer radius = inner 4px + the 2px
688
+ inset, so the two outlines stay the same distance apart all the way round
689
+ the corner. 6px is also the radius the title-bar buttons already use. */
690
+ border-radius: 6px;
691
+ /* The tray is the theme's raised chrome surface, not a hardcoded grey: a
692
+ hardcoded tint sits at the same luminance as the paper chip in dark themes
693
+ and the active state dissolves (2026-09-15). With --chrome-bg the chip
694
+ (paper) reads as pressed-in on dark and lifted on light. */
695
+ background: var(--chrome-bg);
696
+ }
697
+
698
+ .file-panel-tabs button {
699
+ /* 26px inside a 2px tray: the switch's whole box is 30px, the height of a
700
+ tab, and the chip inside sits a step below the tab so the control does not
701
+ outweigh the document's own chip. */
702
+ min-height: 26px;
703
+ /* Transparent, not absent: the active chip adds the hairline, and a border
704
+ that appears only when chosen would shift the label by a pixel. */
705
+ border: 1px solid transparent;
706
+ border-radius: 4px;
707
+ background: transparent;
708
+ color: var(--text-muted);
709
+ font-size: 12px;
710
+ cursor: pointer;
711
+ transition: background 0.15s, color 0.15s;
712
+ }
713
+
714
+ .file-panel-tabs button:hover {
715
+ color: var(--text-color);
716
+ }
717
+
718
+ .file-panel-tabs button.active {
719
+ background: var(--bg-color);
720
+ color: var(--text-color);
721
+ /* Deliberately no shadow: a raised chip reads as hardware in an otherwise
722
+ flat shell (2026-09-15). The tray/chip contrast alone carries the state. */
723
+ }
724
+
725
+ #file-list,
726
+ #outline-list {
727
+ list-style: none;
728
+ display: flex;
729
+ flex-direction: column;
730
+ gap: 1px;
731
+ }
732
+
733
+ #file-list button,
734
+ #outline-list button {
735
+ display: flex;
736
+ align-items: center;
737
+ gap: 6px;
738
+ width: 100%;
739
+ text-align: left;
740
+ padding: 5px 8px;
741
+ border: none;
742
+ border-radius: 6px;
743
+ background: transparent;
744
+ color: var(--text-color);
745
+ font-size: 13px;
746
+ line-height: 1.4;
747
+ cursor: pointer;
748
+ white-space: nowrap;
749
+ overflow: hidden;
750
+ }
751
+
752
+ /* Chevron slot: reserved for files too, so names line up along one column at
753
+ every depth. Expanded levels point down. */
754
+ .file-entry-chevron {
755
+ display: inline-flex;
756
+ flex: 0 0 10px;
757
+ width: 10px;
758
+ height: 10px;
759
+ align-items: center;
760
+ justify-content: center;
761
+ color: var(--text-muted);
762
+ transition: transform 120ms ease;
763
+ }
764
+
765
+ .file-entry-chevron.expanded {
766
+ transform: rotate(90deg);
767
+ }
768
+
769
+ .file-entry-chevron svg {
770
+ display: block;
771
+ width: 10px;
772
+ height: 10px;
773
+ fill: none;
774
+ stroke: currentColor;
775
+ stroke-width: 1.4;
776
+ stroke-linecap: round;
777
+ stroke-linejoin: round;
778
+ }
779
+
780
+ .file-entry-icon {
781
+ display: inline-flex;
782
+ flex: 0 0 14px;
783
+ width: 14px;
784
+ height: 14px;
785
+ align-items: center;
786
+ justify-content: center;
787
+ color: var(--text-muted);
788
+ }
789
+
790
+ .file-entry-icon svg {
791
+ display: block;
792
+ width: 14px;
793
+ height: 14px;
794
+ fill: none;
795
+ stroke: currentColor;
796
+ stroke-width: 1.3;
797
+ stroke-linecap: round;
798
+ stroke-linejoin: round;
799
+ }
800
+
801
+ .file-entry-name {
802
+ min-width: 0;
803
+ overflow: hidden;
804
+ text-overflow: ellipsis;
805
+ white-space: nowrap;
806
+ }
807
+
808
+ #outline-list {
809
+ list-style: none;
810
+ display: flex;
811
+ flex-direction: column;
812
+ gap: 1px;
813
+ }
814
+
815
+ #file-list[hidden],
816
+ #outline-list[hidden] {
817
+ display: none;
818
+ }
819
+
820
+ #outline-list button {
821
+ line-height: 1.4;
822
+ }
823
+
824
+ #outline-list button.empty {
825
+ color: var(--text-muted);
826
+ cursor: default;
827
+ font-style: italic;
828
+ }
829
+
830
+ #outline-list button.empty:hover {
831
+ background: transparent;
832
+ }
833
+
834
+ /* Names are shortened with an ellipsis and spelled out in the hover label;
835
+ they are never scrolled, which covers the row it belongs to. */
836
+
837
+ #file-list button:hover,
838
+ #outline-list button:hover {
839
+ background: color-mix(in srgb, var(--text-color) 14%, transparent);
840
+ }
841
+
842
+ #file-list .file-empty {
843
+ padding: 4px 8px;
844
+ color: var(--text-muted);
845
+ font-size: 12.5px;
846
+ font-style: italic;
847
+ }
848
+
849
+ /* Active entry in both lists: a NEUTRAL raised surface, not an accent colour.
850
+ The reading position is location, not importance, so it gets the same quiet
851
+ lifted chip in every theme (--chrome-bg-hover derives from the theme, stays
852
+ visible on dark and light); colour accents belong to the document, not the
853
+ shell. The old hardcoded orange (#F1752D) ignored themes entirely. */
854
+ #file-list button.active,
855
+ #outline-list button.active {
856
+ background: var(--chrome-bg-hover);
857
+ color: var(--text-color);
858
+ }
859
+
860
+ /* Outline-jump feedback: the landing heading flashes once and fades (#64). */
861
+ @keyframes heading-flash {
862
+ 0% {
863
+ background-color: color-mix(in srgb, var(--link-color) 28%, transparent);
864
+ }
865
+ 70% {
866
+ background-color: color-mix(in srgb, var(--link-color) 14%, transparent);
867
+ }
868
+ 100% {
869
+ background-color: transparent;
870
+ }
871
+ }
872
+
873
+ .cm-md-jump-flash {
874
+ animation: heading-flash 1.6s ease-out;
875
+ border-radius: 4px;
876
+ }
877
+
878
+ #file-list button.directory {
879
+ color: var(--text-color);
880
+ font-weight: 500;
881
+ }
882
+
883
+ /* The parent row is a row like the others: same radius, same hover, same text
884
+ colour. It used to be squared off with a rule under it, which broke both the
885
+ hover highlight and the shell's line rule. */
886
+ #file-list button.parent {
887
+ margin-bottom: 4px;
888
+ }
889
+
890
+ /* CodeMirror 的根节点。旧版这里是 Milkdown 的包装层 `.milkdown`,结构换成 CM6 之后
891
+ 不需要了:`.cm-content` 自己撑满 `.cm-scroller`,点击正文下方空白仍能落光标。
892
+ 编辑器的高度、阅读列宽与正文排版都在 themes/editor-preview.css 里。 */
893
+
894
+ /* 旧版的正文排版(h1..h6、p、a、strong、code、pre、blockquote、ul/ol/li、任务列表、
895
+ mark、table、hr、img、::selection、mermaid 图)写在这里,选择器全部指向 `.ProseMirror`。
896
+ CodeMirror 不产出这些元素,规则已整片搬到 themes/editor-preview.css 的 `.cm-md-*`
897
+ 行类与 mark 类上。删掉而不是留着:留着的死选择器会让下一个人照它改样式,改不动又找不到原因。 */
898
+
899
+ /* ======= THEMES ======= */
900
+
901
+ :root, body.theme-light {
902
+ --bg-color: #ffffff;
903
+ --text-color: #24292f;
904
+ --text-secondary: #656d76;
905
+ --text-muted: #656d76;
906
+ --border-color: #dce1e6;
907
+ --link-color: #0969da;
908
+ --code-bg: rgba(175, 184, 193, 0.2);
909
+ --code-block-bg: #f6f8fa;
910
+ --blockquote-border: #d0d7de;
911
+ --table-header-bg: #f6f8fa;
912
+ --selection-bg: rgba(9, 105, 218, 0.15);
913
+ --highlight-bg: #fff3bf;
914
+ }
915
+
916
+ body.theme-dark {
917
+ --bg-color: #0d1117;
918
+ --text-color: #e6edf3;
919
+ --text-secondary: #aab3bd;
920
+ --text-muted: #8b949e;
921
+ --border-color: #272d34;
922
+ --link-color: #58a6ff;
923
+ --code-bg: rgba(110, 118, 129, 0.3);
924
+ --code-block-bg: #161b22;
925
+ --blockquote-border: #30363d;
926
+ --table-header-bg: #161b22;
927
+ --selection-bg: rgba(88, 166, 255, 0.2);
928
+ --highlight-bg: rgba(210, 153, 34, 0.35);
929
+ }
930
+
931
+ body.theme-elegant {
932
+ --bg-color: #f0edea;
933
+ --text-color: #2c2c2c;
934
+ --text-secondary: #6c6c6c;
935
+ --text-muted: #777;
936
+ --border-color: #dedad5;
937
+ --link-color: #bc4424;
938
+ --code-bg: #e8e4df;
939
+ --code-block-bg: #2c2c2c;
940
+ --code-block-text: #e0dcd7;
941
+ --blockquote-border: #c44b2b;
942
+ --blockquote-bg: #eae6e1;
943
+ --table-header-bg: #eae6e1;
944
+ --table-border: #d8d3ce;
945
+ --selection-bg: rgba(196, 75, 43, 0.2);
946
+ --highlight-bg: #f0d9a8;
947
+ }
948
+
949
+ /* elegant 的正文排版(字体、加粗色、行内代码色、代码块字色、引用底色、表格线)
950
+ 已搬到 themes/editor-preview.css:主题在那边只用覆盖 --md-* 变量和几条表格规则,
951
+ 一处写完,不用每个主题在 base 里再分一段。 */
952
+
953
+ /* Scrollbar: macOS keeps its native overlay bars, which are drawn while you
954
+ scroll, take no layout space and are absent the rest of the time. Only Windows
955
+ and Linux get the thin custom bar below. Chromium never repaints a custom
956
+ scrollbar on hover, so a "reveal the thumb on :hover" rule paints nothing
957
+ (verified on the tab bar and the editor): the honest options are the system
958
+ overlay bars or an always-on bar. */
959
+ body.platform-non-mac *::-webkit-scrollbar,
960
+ body.web-playground *::-webkit-scrollbar {
961
+ width: 6px;
962
+ height: 6px;
963
+ }
964
+
965
+ body.platform-non-mac *::-webkit-scrollbar-track,
966
+ body.web-playground *::-webkit-scrollbar-track {
967
+ background: transparent;
968
+ }
969
+
970
+ body.platform-non-mac *::-webkit-scrollbar-thumb,
971
+ body.web-playground *::-webkit-scrollbar-thumb {
972
+ background: var(--border-color);
973
+ border-radius: 3px;
974
+ }
975
+
976
+ body.platform-non-mac *::-webkit-scrollbar-corner,
977
+ body.web-playground *::-webkit-scrollbar-corner {
978
+ background: var(--bg-color);
979
+ }
980
+
981
+ /* ======= SEARCH PANEL ======= */
982
+
983
+ .search-panel {
984
+ position: fixed;
985
+ /* Below the top row, like every other floating layer: the row is where the
986
+ window controls live (our own three buttons on macOS, the system's on
987
+ Windows), and a panel placed inside it ends up with its buttons sitting on
988
+ top of the find field (issue #112). */
989
+ top: calc(var(--chrome-row-height) + var(--tab-bar-height, 0px) + 8px);
990
+ right: 12px;
991
+ z-index: 1000;
992
+ display: grid;
993
+ grid-template-columns: minmax(0, 1fr) auto auto auto auto;
994
+ grid-template-areas:
995
+ "query count prev next close"
996
+ "replace replace replace replace replace";
997
+ align-items: center;
998
+ column-gap: 4px;
999
+ row-gap: 6px;
1000
+ width: 360px;
1001
+ padding: 6px 8px;
1002
+ background: var(--bg-color);
1003
+ border: 1px solid var(--border-color);
1004
+ border-radius: 8px;
1005
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
1006
+ -webkit-app-region: no-drag;
1007
+ }
1008
+
1009
+ .search-input {
1010
+ width: 180px;
1011
+ padding: 4px 8px;
1012
+ border: 1px solid var(--border-color);
1013
+ border-radius: 4px;
1014
+ background: var(--bg-color);
1015
+ color: var(--text-color);
1016
+ font-size: 13px;
1017
+ outline: none;
1018
+ }
1019
+
1020
+ .search-input:focus {
1021
+ border-color: var(--link-color);
1022
+ }
1023
+
1024
+ .search-count {
1025
+ min-width: 32px;
1026
+ color: var(--text-secondary, var(--text-muted));
1027
+ font-size: 12px;
1028
+ text-align: center;
1029
+ }
1030
+
1031
+ .search-panel > .search-input { grid-area: query; min-width: 0; width: auto; }
1032
+ .search-panel > .search-count { grid-area: count; min-width: 32px; }
1033
+ .search-panel > .search-btn:nth-of-type(1) { grid-area: prev; }
1034
+ .search-panel > .search-btn:nth-of-type(2) { grid-area: next; }
1035
+ .search-panel > .search-btn.search-close { grid-area: close; }
1036
+
1037
+ .search-replace-row {
1038
+ grid-area: replace;
1039
+ display: grid;
1040
+ grid-template-columns: minmax(0, 1fr) auto auto;
1041
+ gap: 4px;
1042
+ padding: 0;
1043
+ }
1044
+
1045
+ .search-replace-input {
1046
+ flex: 1;
1047
+ min-width: 0;
1048
+ }
1049
+
1050
+ .search-action {
1051
+ border: 1px solid var(--border-color);
1052
+ border-radius: 4px;
1053
+ padding: 4px 7px;
1054
+ background: none;
1055
+ color: var(--text-secondary, var(--text-muted));
1056
+ font-size: 12px;
1057
+ line-height: 1;
1058
+ cursor: pointer;
1059
+ }
1060
+
1061
+ .search-action:hover {
1062
+ background: var(--code-bg);
1063
+ color: var(--text-color);
1064
+ }
1065
+
1066
+ .search-btn {
1067
+ display: grid;
1068
+ width: 24px;
1069
+ height: 24px;
1070
+ place-items: center;
1071
+ padding: 0;
1072
+ border: 1px solid var(--border-color);
1073
+ border-radius: 4px;
1074
+ background: none;
1075
+ color: var(--text-color);
1076
+ font-size: 16px;
1077
+ line-height: 1;
1078
+ cursor: pointer;
1079
+ }
1080
+
1081
+ .search-btn:hover {
1082
+ background: var(--code-bg);
1083
+ }
1084
+
1085
+ .search-close {
1086
+ font-size: 16px;
1087
+ }
1088
+
1089
+ .search-match {
1090
+ background: var(--search-match-bg);
1091
+ border-radius: 2px;
1092
+ }
1093
+
1094
+ .search-match-current {
1095
+ background: var(--search-match-current-bg);
1096
+ border-radius: 2px;
1097
+ }
1098
+
1099
+ /* ======= MATH ======= */
1100
+
1101
+ .math-modal-overlay {
1102
+ position: fixed;
1103
+ inset: 0;
1104
+ z-index: 10000;
1105
+ display: flex;
1106
+ align-items: center;
1107
+ justify-content: center;
1108
+ background: rgba(0, 0, 0, 0.4);
1109
+ backdrop-filter: blur(2px);
1110
+ }
1111
+
1112
+ .math-modal {
1113
+ display: flex;
1114
+ width: 480px;
1115
+ max-width: 90vw;
1116
+ padding: 20px;
1117
+ flex-direction: column;
1118
+ gap: 16px;
1119
+ background: var(--bg-color);
1120
+ border: 1px solid var(--border-color);
1121
+ border-radius: 12px;
1122
+ box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
1123
+ -webkit-app-region: no-drag;
1124
+ }
1125
+
1126
+ .math-modal h3 {
1127
+ margin: 0;
1128
+ color: var(--text-color);
1129
+ font-size: 16px;
1130
+ font-weight: 600;
1131
+ }
1132
+
1133
+ .math-modal-input {
1134
+ width: 100%;
1135
+ padding: 12px;
1136
+ border: 1px solid var(--border-color);
1137
+ border-radius: 6px;
1138
+ background: var(--bg-color);
1139
+ color: var(--text-color);
1140
+ font-family: 'SF Mono', 'Fira Code', Menlo, monospace;
1141
+ font-size: 14px;
1142
+ line-height: 1.5;
1143
+ outline: none;
1144
+ resize: vertical;
1145
+ }
1146
+
1147
+ .math-modal-input:focus {
1148
+ border-color: var(--link-color);
1149
+ }
1150
+
1151
+ .math-modal-options {
1152
+ display: flex;
1153
+ align-items: center;
1154
+ gap: 8px;
1155
+ color: var(--text-secondary, var(--text-muted));
1156
+ font-size: 13px;
1157
+ }
1158
+
1159
+ .math-modal-footer {
1160
+ display: flex;
1161
+ justify-content: flex-end;
1162
+ gap: 10px;
1163
+ margin-top: 4px;
1164
+ }
1165
+
1166
+ .math-modal-btn {
1167
+ padding: 6px 16px;
1168
+ border: none;
1169
+ border-radius: 6px;
1170
+ font-size: 14px;
1171
+ font-weight: 500;
1172
+ cursor: pointer;
1173
+ }
1174
+
1175
+ .math-modal-btn.cancel {
1176
+ border: 1px solid var(--border-color);
1177
+ background: transparent;
1178
+ color: var(--text-color);
1179
+ }
1180
+
1181
+ .math-modal-btn.cancel:hover {
1182
+ background: var(--code-bg);
1183
+ }
1184
+
1185
+ .math-modal-btn.save {
1186
+ background: var(--link-color);
1187
+ color: #fff;
1188
+ }
1189
+
1190
+ /* --- Footnote hover preview (#25): definition in a floating card --- */
1191
+ .footnote-preview {
1192
+ position: fixed;
1193
+ z-index: 40;
1194
+ max-width: 420px;
1195
+ max-height: 40vh;
1196
+ overflow-y: auto;
1197
+ padding: 10px 14px;
1198
+ background: var(--bg-color);
1199
+ border: 1px solid var(--border-color);
1200
+ border-radius: 8px;
1201
+ box-shadow: 0 8px 30px rgba(62, 53, 42, .14);
1202
+ color: var(--text-color);
1203
+ font-size: 13px;
1204
+ line-height: 1.6;
1205
+ white-space: pre-wrap;
1206
+ }
1207
+
1208
+ .footnote-preview[hidden] {
1209
+ display: none;
1210
+ }
1211
+
1212
+ .math-modal-btn.save:hover {
1213
+ opacity: 0.9;
1214
+ }
1215
+
1216
+ /* Update banner (weak, non-blocking) */
1217
+ #update-banner {
1218
+ position: fixed;
1219
+ bottom: 20px;
1220
+ right: 20px;
1221
+ display: flex;
1222
+ align-items: center;
1223
+ gap: 10px;
1224
+ padding: 9px 10px 9px 14px;
1225
+ border-radius: 8px;
1226
+ background: var(--bg-color);
1227
+ border: 1px solid var(--border-color);
1228
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
1229
+ color: var(--text-color);
1230
+ font-size: 13px;
1231
+ z-index: 100;
1232
+ }
1233
+
1234
+ #update-banner[hidden] {
1235
+ display: none;
1236
+ }
1237
+
1238
+ #update-banner-text {
1239
+ white-space: nowrap;
1240
+ }
1241
+
1242
+ #update-banner-action {
1243
+ border: none;
1244
+ border-radius: 5px;
1245
+ padding: 4px 10px;
1246
+ font-size: 12px;
1247
+ cursor: pointer;
1248
+ background: var(--link-color);
1249
+ color: #fff;
1250
+ }
1251
+
1252
+ #update-banner-action:hover {
1253
+ opacity: 0.9;
1254
+ }
1255
+
1256
+ #update-banner-action:disabled {
1257
+ opacity: 0.5;
1258
+ cursor: default;
1259
+ }
1260
+
1261
+ #update-banner-dismiss {
1262
+ display: flex;
1263
+ align-items: center;
1264
+ justify-content: center;
1265
+ width: 20px;
1266
+ height: 20px;
1267
+ border: none;
1268
+ border-radius: 5px;
1269
+ background: transparent;
1270
+ color: var(--text-muted);
1271
+ cursor: pointer;
1272
+ }
1273
+
1274
+ #update-banner-dismiss:hover {
1275
+ background: color-mix(in srgb, var(--text-color) 14%, transparent);
1276
+ color: var(--text-color);
1277
+ }
1278
+
1279
+ /* ===== Editor font preferences (#7752855) =====
1280
+ User preference > theme > built-in defaults. Only the editor prose and the
1281
+ source editor are overridden; code blocks keep the theme's code font. */
1282
+ /* 字体族和字号分开挂类:只调字号时不能带上字体族那条,否则空的 var(--editor-font) 会让
1283
+ font-family 变成无效声明,主题自己的字体被顶掉(2026-10-06 报的)。 */
1284
+ body.has-custom-font #editor .cm-content {
1285
+ font-family: var(--editor-font) !important;
1286
+ }
1287
+
1288
+ body.has-custom-font-size #editor .cm-content {
1289
+ font-size: var(--editor-font-size, 16px) !important;
1290
+ }
1291
+
1292
+ /* Font settings modal (reuses math-modal shell) */
1293
+ .font-modal {
1294
+ width: 440px;
1295
+ gap: 14px;
1296
+ }
1297
+
1298
+ .font-modal h3 {
1299
+ font-size: 15px;
1300
+ }
1301
+
1302
+ .font-modal-row {
1303
+ display: flex;
1304
+ gap: 10px;
1305
+ }
1306
+
1307
+ .font-modal-col {
1308
+ display: flex;
1309
+ flex-direction: column;
1310
+ gap: 6px;
1311
+ flex: 1;
1312
+ min-width: 0;
1313
+ position: relative;
1314
+ }
1315
+
1316
+ .font-modal-col-size {
1317
+ flex: none;
1318
+ width: 84px;
1319
+ }
1320
+
1321
+ .font-modal-label {
1322
+ font-size: 12px;
1323
+ color: var(--text-secondary);
1324
+ }
1325
+
1326
+ .font-modal .math-modal-input {
1327
+ font-family: inherit;
1328
+ padding: 8px 10px;
1329
+ font-size: 13px;
1330
+ }
1331
+
1332
+ .font-modal .font-modal-size {
1333
+ width: 100%;
1334
+ }
1335
+
1336
+ .font-modal-list {
1337
+ position: absolute;
1338
+ top: calc(100% + 4px);
1339
+ left: 0;
1340
+ right: 0;
1341
+ z-index: 10001;
1342
+ max-height: 208px;
1343
+ overflow-y: auto;
1344
+ background: var(--bg-color);
1345
+ border: 1px solid var(--border-color);
1346
+ border-radius: 8px;
1347
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
1348
+ font-size: 13px;
1349
+ }
1350
+
1351
+ .font-modal-list-item {
1352
+ padding: 6px 10px;
1353
+ cursor: pointer;
1354
+ color: var(--text-color);
1355
+ font-weight: 400;
1356
+ white-space: nowrap;
1357
+ overflow: hidden;
1358
+ text-overflow: ellipsis;
1359
+ }
1360
+
1361
+ .font-modal-list-item:hover,
1362
+ .font-modal-list-item.active {
1363
+ background: var(--code-bg);
1364
+ }
1365
+
1366
+ .font-modal-preview {
1367
+ padding: 12px 16px;
1368
+ border: none;
1369
+ border-radius: 8px;
1370
+ background: var(--code-bg);
1371
+ line-height: 1.7;
1372
+ word-break: break-word;
1373
+ }
1374
+
1375
+ .font-modal-footer {
1376
+ justify-content: space-between;
1377
+ margin-top: 2px;
1378
+ }
1379
+
1380
+ .font-modal-footer-group {
1381
+ display: flex;
1382
+ gap: 10px;
1383
+ }
1384
+
1385
+ /* ===== 放映幻灯片 (View → Play Slideshow) =====
1386
+ `---` divides the document; the surface shows one division at a time and
1387
+ nothing else. The page is made of the editor's own blocks (renderer/
1388
+ slideshow.ts hides the stretches around it), so the theme's typography,
1389
+ tables, formulas and diagrams come along unchanged. */
1390
+ body.presenting {
1391
+ /* A pointer is noise over a slide, and every gesture the deck needs is either
1392
+ a key or a plain click. */
1393
+ cursor: none;
1394
+ }
1395
+
1396
+ body.presenting #titlebar,
1397
+ body.presenting #file-panel,
1398
+ body.presenting #panel-resizer,
1399
+ body.presenting #hover-tip,
1400
+ body.presenting #update-banner,
1401
+ body.presenting #editor .code-copy-btn,
1402
+ body.presenting #editor > .footnote-preview {
1403
+ display: none !important;
1404
+ }
1405
+
1406
+ /* The editor becomes the surface: the whole window, the theme's paper, no
1407
+ chrome and no 780px column. Fixed, so it covers the row rather than starting
1408
+ below it. */
1409
+ body.presenting #editor-region,
1410
+ body.paper #editor-region,
1411
+ body.slides-printing #editor-region {
1412
+ width: 100% !important;
1413
+ height: auto !important;
1414
+ margin-left: 0 !important;
1415
+ }
1416
+
1417
+ body.presenting #editor {
1418
+ position: fixed;
1419
+ inset: 0;
1420
+ z-index: 50;
1421
+ height: auto;
1422
+ padding: 0;
1423
+ background: var(--bg-color);
1424
+ }
1425
+
1426
+ /* 放映时滚动发生在 CM6 的 .cm-scroller 上,#editor 自己不动,所以这里要把
1427
+ scroller 变成一个居中的容器。`safe center` 是关键:普通 center 会让超出窗口的页面
1428
+ 从上方溢出且滚不回去,safe 会在装不下时退回顶对齐。 */
1429
+ body.presenting #editor .cm-scroller {
1430
+ display: flex !important;
1431
+ align-items: safe center !important;
1432
+ overflow: auto !important;
1433
+ }
1434
+
1435
+ /* Centred by auto margins instead of justify-content: a page taller than the
1436
+ window has to stay scrollable from its own first line, and centring inside a
1437
+ flex container clips exactly that. */
1438
+ body.presenting #editor .cm-content {
1439
+ flex: 0 0 auto;
1440
+ margin: 0 auto;
1441
+ max-width: min(38em, 86vw);
1442
+ padding: 4vh 0;
1443
+ font-size: var(--slide-font-size, 24px);
1444
+ line-height: 1.6;
1445
+ caret-color: transparent;
1446
+ }
1447
+
1448
+ /* Content that does not fit gives way to the surface: a table scrolls inside the
1449
+ page, a diagram or a photo shrinks to fit it. */
1450
+ body.presenting #editor .cm-content > * {
1451
+ max-width: 100%;
1452
+ }
1453
+
1454
+ body.presenting #editor .cm-content .cm-md-table-widget {
1455
+ display: block;
1456
+ overflow-x: auto;
1457
+ }
1458
+
1459
+ body.presenting #editor .cm-content .cm-md-codeblock {
1460
+ overflow-x: auto;
1461
+ }
1462
+
1463
+ body.presenting #editor .cm-content img,
1464
+ body.presenting #editor .cm-content svg {
1465
+ max-height: 72vh;
1466
+ }
1467
+
1468
+ /* Print only document content; app overlays can appear at any time. */
1469
+ @media print {
1470
+ body > :not(#editor-region),
1471
+ #editor .code-copy-btn,
1472
+ #editor > .footnote-preview {
1473
+ display: none !important;
1474
+ }
1475
+ }
1476
+
1477
+ /* Android 是单文档:手机上没有第二篇文档可切,页签条只会挤占顶行;
1478
+ 文件列表面板也只属于桌面,导航开关已经移除,这里把面板和它的拖拽把手
1479
+ 一起藏掉,避免留下一个打不开又关不掉的界面。 */
1480
+ body.platform-android #tab-bar,
1481
+ body.platform-android #file-panel,
1482
+ body.platform-android #panel-resizer {
1483
+ display: none;
1484
+ }
1485
+ /* ======= PREMIUM THEMES =======
1486
+ 9 built-in themes inspired by best-in-class writing & reading apps.
1487
+ Light: Sepia 羊皮纸 · Notion 简白 · Bear 熊红 · Writer 作家
1488
+ Dark: Solarized Dark 夜航 · Nord 极地 · Gruvbox 暖木 · Dracula 德古拉 · Midnight 午夜
1489
+ */
1490
+
1491
+ /* ---------- 羊皮纸 Sepia ----------
1492
+ Kindle / Apple Books warm paper. Serif body, brown ink,
1493
+ for reading-heavy long-form writing. */
1494
+ body.theme-sepia {
1495
+ --bg-color: #f6efe0;
1496
+ --text-color: #4f4032;
1497
+ --text-secondary: #7b6b54;
1498
+ --text-muted: #9a8a72;
1499
+ --border-color: #e7ddc7;
1500
+ --link-color: #9c5e29;
1501
+ --code-bg: rgba(122, 90, 51, 0.1);
1502
+ --code-block-bg: #ece2cb;
1503
+ --blockquote-border: #c9a86a;
1504
+ --blockquote-bg: #efe6d0;
1505
+ --table-header-bg: #ece2cb;
1506
+ --selection-bg: rgba(160, 98, 45, 0.15);
1507
+ --highlight-bg: #f2dfa8;
1508
+ }
1509
+ /* ---------- 简白 Notion ----------
1510
+ Clean minimal workspace. Warm off-black text on white,
1511
+ restrained borders, nothing decorative. */
1512
+ body.theme-notion {
1513
+ --bg-color: #ffffff;
1514
+ --text-color: #37352f;
1515
+ --text-secondary: #777674;
1516
+ --text-muted: #9b9a97;
1517
+ --border-color: #eeeeed;
1518
+ --link-color: #37352f;
1519
+ --code-bg: #f7f6f3;
1520
+ --code-block-bg: #f7f6f3;
1521
+ --blockquote-border: #37352f;
1522
+ --table-header-bg: #f7f6f3;
1523
+ --selection-bg: rgba(35, 131, 226, 0.14);
1524
+ --highlight-bg: #fdecc8;
1525
+ }
1526
+ /* ---------- 熊红 Bear ----------
1527
+ Bear's signature warmth: crisp white, near-black ink,
1528
+ confident red accent threading through links and marks. */
1529
+ body.theme-bear {
1530
+ --bg-color: #ffffff;
1531
+ --text-color: #262626;
1532
+ --text-secondary: #767676;
1533
+ --text-muted: #8a8a8a;
1534
+ --border-color: #eeecea;
1535
+ --link-color: #d43d2a;
1536
+ --code-bg: rgba(212, 61, 42, 0.07);
1537
+ --code-block-bg: #2e2a28;
1538
+ --code-block-text: #efe9e4;
1539
+ --blockquote-border: #d43d2a;
1540
+ --table-header-bg: #f7f5f3;
1541
+ --selection-bg: rgba(212, 61, 42, 0.12);
1542
+ --highlight-bg: #ffe9a8;
1543
+ }
1544
+ /* ---------- 作家 Writer ----------
1545
+ iA Writer homage: monospace body, zero decoration,
1546
+ the text itself is the interface. */
1547
+ body.theme-writer {
1548
+ --bg-color: #fcfcfa;
1549
+ --text-color: #1a1a1a;
1550
+ --text-secondary: #757571;
1551
+ --text-muted: #8e8e8a;
1552
+ --border-color: #e9e9e5;
1553
+ --link-color: #3b6ec4;
1554
+ --code-bg: rgba(0, 0, 0, 0.05);
1555
+ --code-block-bg: #f2f2ee;
1556
+ --blockquote-border: #1a1a1a;
1557
+ --table-header-bg: #f2f2ee;
1558
+ --selection-bg: rgba(59, 110, 196, 0.15);
1559
+ --highlight-bg: #fff3a3;
1560
+ }
1561
+ /* ---------- 夜航 Solarized Dark ----------
1562
+ The dark half of Solarized: deep teal-black sea,
1563
+ muted cyan text, stars of orange and blue. */
1564
+ body.theme-solarized-dark {
1565
+ --bg-color: #002b36;
1566
+ --text-color: #c2d5d7;
1567
+ --text-secondary: #a4bbc3;
1568
+ --text-muted: #586e75;
1569
+ --border-color: #0a3845;
1570
+ --link-color: #3093da;
1571
+ --code-bg: rgba(88, 110, 117, 0.22);
1572
+ --code-block-bg: #073642;
1573
+ --blockquote-border: #2aa198;
1574
+ --table-header-bg: #073642;
1575
+ --selection-bg: rgba(38, 139, 210, 0.25);
1576
+ --highlight-bg: rgba(181, 137, 0, 0.3);
1577
+ }
1578
+ /* ---------- 极地 Nord ----------
1579
+ Arctic night. Cool blue-grays, frost-cyan links,
1580
+ calm and focused like a Scandinavian winter. */
1581
+ body.theme-nord {
1582
+ --bg-color: #2e3440;
1583
+ --text-color: #d8dee9;
1584
+ --text-secondary: #aebdd4;
1585
+ --text-muted: #7d8ba1;
1586
+ --border-color: #383e4e;
1587
+ --link-color: #88c0d0;
1588
+ --code-bg: rgba(136, 192, 208, 0.12);
1589
+ --code-block-bg: #262c37;
1590
+ --blockquote-border: #81a1c1;
1591
+ --table-header-bg: #3b4252;
1592
+ --selection-bg: rgba(136, 192, 208, 0.2);
1593
+ --highlight-bg: rgba(235, 203, 139, 0.25);
1594
+ }
1595
+ /* ---------- 暖木 Gruvbox ----------
1596
+ Retro groove: warm walnut dark, cream text,
1597
+ orange ember accents. A cabin desk lamp at night. */
1598
+ body.theme-gruvbox {
1599
+ --bg-color: #282828;
1600
+ --text-color: #ebdbb2;
1601
+ --text-secondary: #c5b5a5;
1602
+ --text-muted: #928374;
1603
+ --border-color: #373432;
1604
+ --link-color: #83a598;
1605
+ --code-bg: rgba(235, 219, 178, 0.1);
1606
+ --code-block-bg: #1d2021;
1607
+ --blockquote-border: #fe8019;
1608
+ --table-header-bg: #3c3836;
1609
+ --selection-bg: rgba(254, 128, 25, 0.2);
1610
+ --highlight-bg: rgba(250, 189, 47, 0.22);
1611
+ }
1612
+ /* ---------- 德古拉 Dracula ----------
1613
+ Gothic neon: dark castle walls with pink, purple,
1614
+ and cyan candlelight. Playful but disciplined. */
1615
+ body.theme-dracula {
1616
+ --bg-color: #282a36;
1617
+ --text-color: #f8f8f2;
1618
+ --text-secondary: #afb7db;
1619
+ --text-muted: #7f86a8;
1620
+ --border-color: #3d4051;
1621
+ --link-color: #bd93f9;
1622
+ --code-bg: rgba(98, 114, 164, 0.2);
1623
+ --code-block-bg: #21222c;
1624
+ --blockquote-border: #ff79c6;
1625
+ --table-header-bg: #343746;
1626
+ --selection-bg: rgba(189, 147, 249, 0.25);
1627
+ --highlight-bg: rgba(241, 250, 140, 0.22);
1628
+ }
1629
+ /* ---------- 午夜 Midnight ----------
1630
+ Pure OLED black. Apple-style dark-mode blue links,
1631
+ hairline borders, maximum contrast for late nights. */
1632
+ body.theme-midnight {
1633
+ --bg-color: #000000;
1634
+ --text-color: #d6d6d6;
1635
+ --text-secondary: #b1b1b1;
1636
+ --text-muted: #7a7a7a;
1637
+ --border-color: #1c1c1c;
1638
+ --link-color: #0a84ff;
1639
+ --code-bg: rgba(255, 255, 255, 0.08);
1640
+ --code-block-bg: #111111;
1641
+ --blockquote-border: #3a3a3a;
1642
+ --table-header-bg: #111111;
1643
+ --selection-bg: rgba(10, 132, 255, 0.28);
1644
+ --highlight-bg: rgba(255, 214, 10, 0.25);
1645
+ }/* 编辑器渲染层(CodeMirror 6 live preview)的样式。
1646
+ *
1647
+ * 这一层把 markdown 源码画成所见即所得的样子。它只画,不改文本,所以这里的样式
1648
+ * 无论好不好看,都不会影响文件里存了什么。
1649
+ *
1650
+ * 两条规矩(design.md):
1651
+ * 1. 颜色一律用主题已有的变量(--text-color、--border-color、--code-bg、
1652
+ * --code-block-bg、--blockquote-border、--table-header-bg、--link-color、
1653
+ * --highlight-bg、--selection-bg),不新造一层颜色变量。主题之间剩下的差别
1654
+ * 用 `body.theme-x .cm-content ...` 直接写,跟旧版一样,一眼能看全。
1655
+ * 2. 交给源码模式的颜色与这里共用同一批变量,两种视图看起来才是一套东西。
1656
+ *
1657
+ * 选择器的写法有讲究,不是风格问题:
1658
+ * CodeMirror 自己的 baseTheme 给每一行钉了 `padding: 0 2px 0 6px`,而它的主题选择器
1659
+ * 是 `.ͼX .cm-line`(两个类),比单类选择器优先。所以这里所有行级规则都写成
1660
+ * `.cm-content .cm-line` / `.cm-content .cm-md-*` 两个类的形式,先归零再逐条给值,
1661
+ * 靠同一文件内的顺序决胜。若写成单类,引用块、列表、代码块的内边距会被整片吃掉
1662
+ * (实测全为 0px,就是「界面错乱」的一部分)。
1663
+ *
1664
+ * 字号、行高这类块级排版写在这里的行类上,不写在 source-theme.ts 的 HighlightStyle 里:
1665
+ * HighlightStyle 作用在行内的 span 上,两边都设 fontSize 会各放大一次(标题曾变成
1666
+ * 1.75em × 1.75em,大得离谱)。那边只管字重、斜体、删除线。
1667
+ */
1668
+
1669
+ :root {
1670
+ --font-mono: 'SF Mono', 'Fira Code', Menlo, Consolas, monospace;
1671
+ }
1672
+
1673
+ /* ======= 容器与阅读列宽 ======= */
1674
+
1675
+ .cm-editor {
1676
+ height: 100%;
1677
+ }
1678
+
1679
+ /* 正文容器。字体与字号在这里,主题在下面各自覆盖。
1680
+ *
1681
+ * 列宽、内边距、flex 不在这里,而在下面的 `#editor .cm-content` 里:
1682
+ * CodeMirror 的 baseTheme 是**运行时注入**到 <head> 末尾的,同为单类选择器时它总排在
1683
+ * 我们后面,所以 `.cm-content` 上写的 `flex: 0 0 auto` 会被它的 `flex-grow: 2` 压掉,
1684
+ * 正文就会左对齐(实测窗口 1623px、正文 640px 贴左边)。一个 id 就能压过它,
1685
+ * 而应用和导出都把编辑器包在 `#editor` 里。 */
1686
+ .cm-content {
1687
+ font-family: var(--font-body, inherit);
1688
+ font-size: var(--editor-font-size, 16px);
1689
+ line-height: 1.75;
1690
+ color: var(--text-color);
1691
+ }
1692
+
1693
+ /* 阅读列宽与呼吸留白。
1694
+ *
1695
+ * 列宽说的是「文字」的宽度,所以外层再加左右各 40px。这 40px 必须留在这里、不能留给
1696
+ * `#editor`:CodeMirror 的滚动容器 `.cm-scroller` 在 `#editor` 的内边距之内,留在外层
1697
+ * 会把滚动条从窗口右缘推进去 40px。
1698
+ *
1699
+ * `flex: 0 0 auto` 也不是风格问题:baseTheme 的 `flex-grow: 2` 会先把剩余空间吃掉,
1700
+ * `margin: 0 auto` 就吸不到任何空间,居中就不成立。基准尺寸要是列宽本身,居中才成立。 */
1701
+ #editor .cm-content {
1702
+ flex: 0 0 auto;
1703
+ width: min(100%, calc(var(--editor-column-width) + 80px));
1704
+ margin: 0 auto;
1705
+ padding: calc(40px + var(--editor-top-gap, 0px)) 40px 40px;
1706
+ box-sizing: border-box;
1707
+ }
1708
+
1709
+ /* ======= 源码模式 =======
1710
+ 源码模式不是第二个编辑器:缓冲区里本来就是文件的字节,它只是把渲染装饰层关掉
1711
+ (见 editor/core.ts 的 livePreviewCompartment)。所以这里剩下的差别只有字体:
1712
+ 源码按等宽排,行距比正文紧一点。颜色、字重、斜体、删除线由 source-theme.ts 的
1713
+ HighlightStyle 给,用的是与正文同一批主题变量。 */
1714
+ body.source-mode #editor .cm-content {
1715
+ font-family: var(--font-mono);
1716
+ font-size: var(--editor-font-size, 14px);
1717
+ line-height: 1.7;
1718
+ tab-size: 2;
1719
+ }
1720
+
1721
+ /* 行的归零。必须用两个类才压得住 CodeMirror baseTheme 的 `0 2px 0 6px`。
1722
+ * 下面所有行级内边距都写在这条之后,靠顺序覆盖它。 */
1723
+ .cm-content .cm-line {
1724
+ padding: 0;
1725
+ box-sizing: border-box;
1726
+ }
1727
+
1728
+ /* ======= 标题 ======= */
1729
+
1730
+ .cm-content .cm-md-atxheading1 {
1731
+ font-size: 2em;
1732
+ font-weight: 700;
1733
+ line-height: 1.25;
1734
+ padding-bottom: 0.3em;
1735
+ border-bottom: 1px solid var(--border-color);
1736
+ }
1737
+
1738
+ .cm-content .cm-md-atxheading2 {
1739
+ font-size: 1.5em;
1740
+ font-weight: 600;
1741
+ line-height: 1.3;
1742
+ padding-bottom: 0.25em;
1743
+ border-bottom: 1px solid var(--border-color);
1744
+ }
1745
+
1746
+ .cm-content .cm-md-atxheading3 {
1747
+ font-size: 1.25em;
1748
+ font-weight: 600;
1749
+ line-height: 1.4;
1750
+ }
1751
+
1752
+ .cm-content .cm-md-atxheading4,
1753
+ .cm-content .cm-md-atxheading5,
1754
+ .cm-content .cm-md-atxheading6 {
1755
+ font-weight: 600;
1756
+ line-height: 1.5;
1757
+ }
1758
+
1759
+ /* 标记字符(#、>、-、围栏、*):光标不在这一行时压淡。 */
1760
+ .cm-content .cm-md-marker,
1761
+ .cm-content .cm-md-quotemark,
1762
+ .cm-content .cm-md-listmark {
1763
+ color: var(--text-muted);
1764
+ }
1765
+
1766
+ /* ======= 行内格式 ======= */
1767
+
1768
+ .cm-content .cm-md-strong {
1769
+ font-weight: 700;
1770
+ }
1771
+
1772
+ .cm-content .cm-md-em {
1773
+ font-style: italic;
1774
+ }
1775
+
1776
+ .cm-content .cm-md-strike {
1777
+ text-decoration: line-through;
1778
+ color: var(--text-muted);
1779
+ }
1780
+
1781
+ /* 行内代码:底色与圆角,跟旧版一致(2px 6px、圆角 3px、0.875em)。 */
1782
+ .cm-content .cm-md-inlinecode {
1783
+ background: var(--code-bg);
1784
+ border-radius: 3px;
1785
+ padding: 2px 6px;
1786
+ font-size: 0.875em;
1787
+ font-family: var(--font-mono);
1788
+ }
1789
+
1790
+ /* 链接地址压暗,让正文里的链接文字更突出。 */
1791
+ .cm-content .cm-md-url {
1792
+ color: var(--text-muted);
1793
+ }
1794
+
1795
+ /* `==高亮==`:底色跟主题走。 */
1796
+ .cm-content .cm-md-highlight {
1797
+ background: var(--highlight-bg, #fff3bf);
1798
+ border-radius: 3px;
1799
+ padding: 0 0.15em;
1800
+ }
1801
+
1802
+ /* 大纲跳转的落点:整行闪一下(#64)。关键帧在 base.css。 */
1803
+ .cm-content .cm-md-jump-flash {
1804
+ animation: heading-flash 1.6s ease-out;
1805
+ border-radius: 4px;
1806
+ }
1807
+
1808
+ /* ======= 引用块 ======= */
1809
+
1810
+ .cm-content .cm-md-blockquote {
1811
+ color: var(--text-secondary, var(--text-muted));
1812
+ border-left: 4px solid var(--blockquote-border);
1813
+ padding-left: 16px;
1814
+ padding-right: 16px;
1815
+ }
1816
+
1817
+ /* ======= 列表 ======= */
1818
+
1819
+ /* CM6 里没有 ul/ol/li 元素,整行就是一个 div,所以缩进与标记全靠行装饰。
1820
+ * 层级由代码算出来写在类名里(cm-md-li-0 … cm-md-li-6)。
1821
+ * 嵌套时同一行会同时带外层与内层的类,所以这里按层级从小到大排列,
1822
+ * 靠顺序让最内层的那个值生效。第 1 层缩进 1.5em(旧版是 ul 的 24px),每深一层加 1.5em。 */
1823
+ .cm-content .cm-md-li-0 { padding-left: 1.5em; }
1824
+ .cm-content .cm-md-li-1 { padding-left: 3em; }
1825
+ .cm-content .cm-md-li-2 { padding-left: 4.5em; }
1826
+ .cm-content .cm-md-li-3 { padding-left: 6em; }
1827
+ .cm-content .cm-md-li-4 { padding-left: 7.5em; }
1828
+ .cm-content .cm-md-li-5 { padding-left: 9em; }
1829
+ .cm-content .cm-md-li-6 { padding-left: 10.5em; }
1830
+
1831
+ /* 无序列表的圆点。宽度与 `- ` 接近,避免换掉标记时行内文字抖动。 */
1832
+ .cm-content .cm-md-li-bullet {
1833
+ color: var(--text-muted);
1834
+ display: inline-block;
1835
+ width: 0.8em;
1836
+ }
1837
+
1838
+ /* ======= 代码块 ======= */
1839
+
1840
+ /* 逐行加底色,首末行加圆角,拼出整块的外形(旧版 pre 是 16px 内边距、圆角 6px)。
1841
+ * 不用真 <pre> 是因为 CM6 的行是一个个 div,插不了包住多行的元素。 */
1842
+ .cm-content .cm-md-codeblock {
1843
+ /* 底色本身在 ::before 上,位置因此需要 relative(见下一条)。 */
1844
+ position: relative;
1845
+ color: var(--code-block-text, var(--text-color));
1846
+ font-family: var(--font-mono);
1847
+ font-size: 0.875em;
1848
+ line-height: 1.6;
1849
+ padding-left: 1em;
1850
+ padding-right: 1em;
1851
+ }
1852
+
1853
+ /* 代码块的底色。
1854
+ *
1855
+ * 不能直接把 background 写在行元素上:CodeMirror 的选区层(.cm-selectionLayer)是
1856
+ * z-index -2 的兄弟层,行底色会盖在它上面 —— 代码块里选中看不到高亮,只有代码块两侧
1857
+ * 多出一条色带(2026-10-12 报的 #154)。把底色挪到 z-index -3 的伪元素上,色带就落在
1858
+ * 底色之上、文字之下:高亮看得见,代码文字本身不被染色。 */
1859
+ .cm-content .cm-md-codeblock::before {
1860
+ content: '';
1861
+ position: absolute;
1862
+ inset: 0;
1863
+ z-index: -3;
1864
+ border-radius: inherit;
1865
+ background: var(--code-block-bg);
1866
+ pointer-events: none;
1867
+ }
1868
+
1869
+ .cm-content .cm-md-codeblock-first {
1870
+ border-top-left-radius: 6px;
1871
+ border-top-right-radius: 6px;
1872
+ padding-top: 0.8em;
1873
+ }
1874
+
1875
+ .cm-content .cm-md-codeblock-last {
1876
+ border-bottom-left-radius: 6px;
1877
+ border-bottom-right-radius: 6px;
1878
+ padding-bottom: 0.8em;
1879
+ }
1880
+
1881
+ /* 围栏上的语言名。压淡到与底色同族的灰,别抢代码正文的注意力。 */
1882
+ .cm-content .cm-md-codeinfo {
1883
+ color: color-mix(in srgb, var(--code-block-text, var(--text-color)) 45%, transparent);
1884
+ }
1885
+
1886
+ /* 块级 widget 两边的光标缓冲块。
1887
+ *
1888
+ * CodeMirror 在每个替换 widget 两边各插一个 `.cm-widgetBuffer`:1em 高的行内 img,
1889
+ * 作用是给光标留一个能落的位置。行内 widget(图片)无所谓,但表格、图表、块公式、
1890
+ * HTML 块是**块级**的,缓冲块会把所在行再撑高——实测每个块多出 55 到 73px 的空档
1891
+ * (HTML 块:widget 81px,所在行 154px)。
1892
+ *
1893
+ * 只把它的 height 设成 0 不够:行内元素会按**所在块的行高**产生一个 strut,两个缓冲块
1894
+ * 夹着一个块级 widget,就成了两个各 30.4px 高的匿名块,照样多出 61px。所以要让它们
1895
+ * **脱离行内流**(absolute)。不能用 display:none:缓冲块是 CodeMirror 用来给光标定位
1896
+ * 的,没有 rect 时光标会跳到别处。 */
1897
+ .cm-content .cm-line:has(> .cm-md-table-widget) > .cm-widgetBuffer,
1898
+ .cm-content .cm-line:has(> .cm-md-mermaid) > .cm-widgetBuffer,
1899
+ .cm-content .cm-line:has(> .cm-md-math-block) > .cm-widgetBuffer,
1900
+ .cm-content .cm-line:has(> .cm-md-html-block) > .cm-widgetBuffer {
1901
+ position: absolute;
1902
+ height: 0;
1903
+ line-height: 0;
1904
+ }
1905
+
1906
+ /* ======= 表格 ======= */
1907
+
1908
+ /* 表格画成真表格(live-preview 的 TableWidget)。光标进表格时退回源码,
1909
+ * 这时每一行是一段等宽文字,底色让它读起来还是一块。 */
1910
+ .cm-content .cm-md-table {
1911
+ background: color-mix(in srgb, var(--table-header-bg, transparent) 45%, transparent);
1912
+ font-family: var(--font-mono);
1913
+ font-size: 0.875em;
1914
+ }
1915
+
1916
+ .cm-content .cm-md-table-widget {
1917
+ border-collapse: collapse;
1918
+ width: 100%;
1919
+ margin: 0.25em 0;
1920
+ }
1921
+
1922
+ .cm-content .cm-md-table-widget th,
1923
+ .cm-content .cm-md-table-widget td {
1924
+ border: 1px solid var(--border-color);
1925
+ padding: 8px 12px;
1926
+ text-align: left;
1927
+ }
1928
+
1929
+ .cm-content .cm-md-table-widget th {
1930
+ background: var(--table-header-bg);
1931
+ font-weight: 600;
1932
+ }
1933
+
1934
+ /* ======= 分隔线 ======= */
1935
+
1936
+ /* 分隔线。
1937
+ * 只画一条上边框,不把字号钉成 0:钉成 0 的话光标落进这一行时 `---` 是看不见的,
1938
+ * 用户会以为这里空了。上下空白由前后那两个空行给。 */
1939
+ .cm-content .cm-md-hr {
1940
+ border-top: 1px solid var(--border-color);
1941
+ }
1942
+
1943
+ /* ======= 代码块的复制按钮 ======= */
1944
+
1945
+ /*
1946
+ * 按钮是代码块第一行里的一个 widget,绝对定位在右上角:
1947
+ * 它不占正文的位置,鼠标悬停代码块时才显形。
1948
+ */
1949
+ .cm-content .cm-md-codeblock-first {
1950
+ position: relative;
1951
+ }
1952
+
1953
+ .cm-content .code-copy-btn {
1954
+ position: absolute;
1955
+ top: 4px;
1956
+ right: 6px;
1957
+ z-index: 1;
1958
+ padding: 2px 7px;
1959
+ border: 1px solid var(--border-color);
1960
+ border-radius: 4px;
1961
+ background: var(--bg-color);
1962
+ color: var(--text-secondary, var(--text-muted));
1963
+ font: inherit;
1964
+ font-size: 12px;
1965
+ line-height: 1.4;
1966
+ cursor: pointer;
1967
+ opacity: 0;
1968
+ transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
1969
+ }
1970
+
1971
+ .cm-content .cm-md-codeblock-first:hover .code-copy-btn,
1972
+ .cm-content .code-copy-btn:focus-visible,
1973
+ .cm-content .code-copy-btn.copied {
1974
+ opacity: 1;
1975
+ }
1976
+
1977
+ .cm-content .code-copy-btn:hover,
1978
+ .cm-content .code-copy-btn.copied {
1979
+ background: color-mix(in srgb, var(--text-color) 14%, transparent);
1980
+ color: var(--text-color);
1981
+ }
1982
+
1983
+ /* ======= 链接 ======= */
1984
+
1985
+ /*
1986
+ * 链接文字是链接的样子,地址在非编辑行藏起来(Obsidian 的做法)。
1987
+ * 点击行为认 `data-href`,不依赖真 `<a>`:换成 `<a>` 就得把文字整个换成 widget,
1988
+ * 文字里的加粗、行内代码会跟着没掉。
1989
+ */
1990
+ .cm-content .cm-md-link {
1991
+ color: var(--link-color);
1992
+ cursor: pointer;
1993
+ }
1994
+
1995
+ .cm-content .cm-md-link:hover {
1996
+ text-decoration: underline;
1997
+ }
1998
+
1999
+ /* ======= 脚注 ======= */
2000
+
2001
+ .cm-content .cm-md-footnote-ref {
2002
+ color: var(--link-color);
2003
+ cursor: help;
2004
+ font-size: 0.75em;
2005
+ vertical-align: super;
2006
+ padding: 0 1px;
2007
+ }
2008
+
2009
+ /* 定义行照原样显示,只压淡:隐藏了用户就看不到自己写了什么 */
2010
+ .cm-content .cm-md-footnote-def {
2011
+ color: var(--text-muted);
2012
+ }
2013
+
2014
+ /* ======= HTML ======= */
2015
+
2016
+ /*
2017
+ * 文件里的 HTML 照原样画出来(先过 html-sanitize 的闸)。
2018
+ * 自己的外观交给元素自身的属性,这里只给块级留一点呼吸。
2019
+ */
2020
+ .cm-content .cm-md-html-block {
2021
+ margin: 0.4em 0;
2022
+ }
2023
+
2024
+ .cm-content .cm-md-html-inline {
2025
+ white-space: normal;
2026
+ }
2027
+
2028
+ /* ======= 图片 ======= */
2029
+
2030
+ /*
2031
+ * 图片按文件里写的位置就地画出来。地址在画图那一刻按文档自己的 file:// URL 解析,
2032
+ * 文件里那串相对路径一个字符都不改(改了就等于保存时动用户的文件)。
2033
+ */
2034
+ .cm-content .cm-md-image {
2035
+ display: inline-block;
2036
+ max-width: 100%;
2037
+ }
2038
+
2039
+ .cm-content .cm-md-image img {
2040
+ max-width: 100%;
2041
+ height: auto;
2042
+ border-radius: 4px;
2043
+ vertical-align: bottom;
2044
+ }
2045
+
2046
+ /* 加载不出来就把源码放回去:宁可难看,不吞用户的字 */
2047
+ .cm-content .cm-md-image-failed {
2048
+ font-family: var(--font-mono);
2049
+ font-size: 0.92em;
2050
+ color: var(--text-muted);
2051
+ }
2052
+
2053
+ /* ======= 任务列表 ======= */
2054
+
2055
+ .cm-content .cm-md-task {
2056
+ color: var(--text-muted);
2057
+ cursor: pointer;
2058
+ padding-right: 0.2em;
2059
+ user-select: none;
2060
+ }
2061
+
2062
+ .cm-content .cm-md-task-checked {
2063
+ color: var(--link-color);
2064
+ }
2065
+
2066
+ /* ======= 公式 ======= */
2067
+
2068
+ .cm-content .cm-md-math-inline {
2069
+ padding: 0 2px;
2070
+ border-radius: 3px;
2071
+ cursor: text;
2072
+ }
2073
+
2074
+ .cm-content .cm-md-math-inline:hover {
2075
+ background: var(--code-bg);
2076
+ }
2077
+
2078
+ .cm-content .cm-md-math-block {
2079
+ display: block;
2080
+ text-align: center;
2081
+ padding: 8px;
2082
+ margin: 0.25em 0;
2083
+ border-radius: 6px;
2084
+ cursor: text;
2085
+ }
2086
+
2087
+ .cm-content .cm-md-math-block:hover {
2088
+ background: var(--code-bg);
2089
+ }
2090
+
2091
+ /* 渲不出来时退回源码,用一个淡底色提示「这里没能渲染」,但文字照旧可读。 */
2092
+ .cm-content .cm-md-math-error {
2093
+ font-family: var(--font-mono);
2094
+ font-size: 0.92em;
2095
+ color: var(--text-muted);
2096
+ background: var(--code-bg);
2097
+ border-radius: 4px;
2098
+ padding: 0.1em 0.3em;
2099
+ }
2100
+
2101
+ /* ======= 属性区 ======= */
2102
+
2103
+ /*
2104
+ * 文件开头的 YAML 属性区。它照原样显示,只是压淡、不参与 markdown 排版:
2105
+ * 里面的 `- ` 不画圆点、`---` 不画横线、`**` 不加粗(装饰层里已把它们排出)。
2106
+ *
2107
+ * 不再用一个「属性区(N 行)」的胶囊按钮把它收起来:那个控件在文件里并不存在。
2108
+ */
2109
+ .cm-content .cm-md-frontmatter {
2110
+ color: var(--text-muted);
2111
+ }
2112
+
2113
+ /*
2114
+ * 选中文字的底色按主题走。
2115
+ *
2116
+ * 必须用带 id 的选择器,两个类的写法压不住 baseTheme:CodeMirror 自己给选区钉了
2117
+ * `.ͼX.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground`(四个类),
2118
+ * 底色按 `&light` / `&dark` 分岔(light 那支是不透明的浅紫 #d7d4f0,dark 那支是 #233)。
2119
+ * 我们从没告诉过 CodeMirror 应用切到深色主题了,于是深色主题下也走 light 那一支,
2120
+ * 浅紫盖在近白色的文字上。实测深色主题里选中文字与底色带的对比度只剩 1.01~1.35,
2121
+ * 看起来就是「字被盖住了」(2026-10-04 报的)。
2122
+ *
2123
+ * 变量在主题里定义(--selection-bg 是半透明的),所以中深两套都跟着主题走。
2124
+ */
2125
+ #editor .cm-scroller .cm-selectionLayer .cm-selectionBackground {
2126
+ background: var(--selection-bg, color-mix(in srgb, var(--text-color) 18%, transparent));
2127
+ }
2128
+
2129
+ /*
2130
+ * 导出时把编辑器自身的痕迹收起来。
2131
+ *
2132
+ * 导出的是一篇文档,不是编辑器此刻的样子:光标、选区、以及文件开头那段 YAML 元数据
2133
+ * 都不该跟着上纸(Typora 导出时同样不含属性区)。
2134
+ * 主进程打印前给 body 加 `exporting`,导出完成后去掉。
2135
+ */
2136
+ body.exporting .cm-cursor,
2137
+ body.exporting .cm-cursorLayer,
2138
+ body.exporting .cm-selectionLayer,
2139
+ body.exporting .cm-selectionBackground,
2140
+ body.exporting .cm-content .cm-md-frontmatter {
2141
+ display: none !important;
2142
+ }
2143
+
2144
+ @media print {
2145
+ .cm-cursor,
2146
+ .cm-cursorLayer,
2147
+ .cm-selectionLayer,
2148
+ .cm-selectionBackground,
2149
+ .cm-content .cm-md-frontmatter {
2150
+ display: none !important;
2151
+ }
2152
+ }
2153
+
2154
+ /* ======= mermaid ======= */
2155
+
2156
+ .cm-content .cm-md-mermaid {
2157
+ display: block;
2158
+ text-align: center;
2159
+ padding: 0.8em 0;
2160
+ color: var(--text-muted);
2161
+ font-size: 0.9em;
2162
+
2163
+ /* Pele 画图用的变量。它的 SVG 里写的是 `var(--pele-*)`,在 SVG 落进的文档里取值,
2164
+ 所以换主题不用重画。
2165
+
2166
+ 取值的依据是图**画在什么底上**:mermaid 代码块那一行的底色还在(`.cm-md-codeblock`
2167
+ 的 ::before),图就浮在它上面。所以底取自代码块,字取自代码块的字色;
2168
+ elegant 和 bear 是浅色主题配深色代码块,它们的 --code-block-text 就是为这种情况
2169
+ 准备的(和 editor-preview.css 里代码块自己的写法一致)。
2170
+
2171
+ 明暗两套调色板、按亮度挑一套的那套逻辑没了:底色和字色都从主题推出来,
2172
+ 对比度是算出来的,不是猜出来的。
2173
+
2174
+ 百分比是量着定的:节点填充最初取 10%,Nord 上量出来是 #383E49 贴在 #262C37 的底上,
2175
+ 只靠一圈描边分界,显得糊(2026-10-19)。18% / 28% / 45% 三档在 9 个主题上都拉开了。 */
2176
+ --pele-bg: var(--code-block-bg);
2177
+ --pele-fg: var(--code-block-text, var(--text-color));
2178
+ --pele-muted: color-mix(in srgb, var(--code-block-text, var(--text-color)) 70%, var(--code-block-bg));
2179
+ --pele-line: var(--code-block-text, var(--text-color));
2180
+ --pele-surface: color-mix(in srgb, var(--code-block-text, var(--text-color)) 18%, var(--code-block-bg));
2181
+ --pele-surface-alt: color-mix(in srgb, var(--code-block-text, var(--text-color)) 28%, var(--code-block-bg));
2182
+ --pele-border: color-mix(in srgb, var(--code-block-text, var(--text-color)) 45%, var(--code-block-bg));
2183
+ --pele-accent: var(--link-color);
2184
+ --pele-radius: 6px;
2185
+ }
2186
+
2187
+ .cm-content .cm-md-mermaid svg {
2188
+ max-width: 100%;
2189
+ height: auto;
2190
+ }
2191
+
2192
+ .cm-content .cm-md-mermaid-failed {
2193
+ text-align: left;
2194
+ font-family: var(--font-mono);
2195
+ font-size: 0.9em;
2196
+ color: var(--text-muted);
2197
+ background: var(--code-block-bg);
2198
+ border-radius: 6px;
2199
+ padding: 0.8em 1em;
2200
+ white-space: pre-wrap;
2201
+ }
2202
+
2203
+ /* ======= 各主题的差别 ======= */
2204
+
2205
+ /* 正文字体与行高 */
2206
+ body.theme-elegant .cm-content {
2207
+ font-family: 'LXGW WenKai', 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', Georgia, serif;
2208
+ line-height: 1.9;
2209
+ }
2210
+
2211
+ body.theme-sepia .cm-content {
2212
+ font-family: Georgia, 'Source Han Serif SC', 'Noto Serif SC', 'Songti SC', serif;
2213
+ line-height: 1.85;
2214
+ }
2215
+
2216
+ body.theme-writer .cm-content {
2217
+ font-family: 'SF Mono', 'JetBrains Mono', 'Fira Code', Menlo, Consolas, 'PingFang SC', 'Noto Sans SC', monospace;
2218
+ font-size: 15px;
2219
+ line-height: 1.8;
2220
+ }
2221
+
2222
+ /* 加粗的颜色 */
2223
+ body.theme-elegant .cm-content .cm-md-strong { color: #c44b2b; }
2224
+ body.theme-bear .cm-content .cm-md-strong { color: #d43d2a; }
2225
+ body.theme-solarized-dark .cm-content .cm-md-strong { color: #cb4b16; }
2226
+ body.theme-nord .cm-content .cm-md-strong { color: #8fbcbb; }
2227
+ body.theme-gruvbox .cm-content .cm-md-strong { color: #fe8019; }
2228
+ body.theme-dracula .cm-content .cm-md-strong { color: #ff79c6; }
2229
+ body.theme-sepia .cm-content .cm-md-strong { color: #7a5a33; }
2230
+ body.theme-dark .cm-content .cm-md-strong { color: #e6edf3; }
2231
+ body.theme-notion .cm-content .cm-md-strong { color: #37352f; }
2232
+ body.theme-midnight .cm-content .cm-md-strong { color: #e8e8e8; }
2233
+ body.theme-writer .cm-content .cm-md-strong { color: #2f2f2c; }
2234
+
2235
+ /* 行内代码的字色 */
2236
+ body.theme-elegant .cm-content .cm-md-inlinecode { color: #c44b2b; }
2237
+ body.theme-sepia .cm-content .cm-md-inlinecode { color: #7a5a33; }
2238
+ body.theme-notion .cm-content .cm-md-inlinecode { color: #eb5757; background: #f7f6f3; }
2239
+ body.theme-bear .cm-content .cm-md-inlinecode { color: #d43d2a; }
2240
+ body.theme-solarized-dark .cm-content .cm-md-inlinecode { color: #2aa198; }
2241
+ body.theme-nord .cm-content .cm-md-inlinecode { color: #88c0d0; }
2242
+ body.theme-gruvbox .cm-content .cm-md-inlinecode { color: #b8bb26; }
2243
+ body.theme-dracula .cm-content .cm-md-inlinecode { color: #8be9fd; }
2244
+ body.theme-dark .cm-content .cm-md-inlinecode { color: #ff7b72; }
2245
+ body.theme-midnight .cm-content .cm-md-inlinecode { color: #e5786d; }
2246
+ body.theme-writer .cm-content .cm-md-inlinecode { color: #3b6ec4; }
2247
+
2248
+ /* 标题的颜色 */
2249
+ body.theme-solarized-dark .cm-content .cm-md-atxheading1,
2250
+ body.theme-solarized-dark .cm-content .cm-md-atxheading2,
2251
+ body.theme-solarized-dark .cm-content .cm-md-atxheading3,
2252
+ body.theme-solarized-dark .cm-content .cm-md-atxheading4 { color: #93a1a1; }
2253
+
2254
+ body.theme-nord .cm-content .cm-md-atxheading1,
2255
+ body.theme-nord .cm-content .cm-md-atxheading2,
2256
+ body.theme-nord .cm-content .cm-md-atxheading3 { color: #eceff4; }
2257
+
2258
+ body.theme-gruvbox .cm-content .cm-md-atxheading1,
2259
+ body.theme-gruvbox .cm-content .cm-md-atxheading2,
2260
+ body.theme-gruvbox .cm-content .cm-md-atxheading3 { color: #fbf1c7; }
2261
+
2262
+ body.theme-dracula .cm-content .cm-md-atxheading1,
2263
+ body.theme-dracula .cm-content .cm-md-atxheading2,
2264
+ body.theme-dracula .cm-content .cm-md-atxheading3 { color: #ffffff; }
2265
+
2266
+ body.theme-midnight .cm-content .cm-md-atxheading1,
2267
+ body.theme-midnight .cm-content .cm-md-atxheading2,
2268
+ body.theme-midnight .cm-content .cm-md-atxheading3 { color: #f5f5f5; }
2269
+
2270
+ /* 标题的下划线:Notion 与 Writer 不要,羊皮纸 h1 居中、h2 虚线。 */
2271
+ body.theme-notion .cm-content .cm-md-atxheading1,
2272
+ body.theme-notion .cm-content .cm-md-atxheading2,
2273
+ body.theme-writer .cm-content .cm-md-atxheading1,
2274
+ body.theme-writer .cm-content .cm-md-atxheading2,
2275
+ body.theme-writer .cm-content .cm-md-atxheading3 {
2276
+ border-bottom: none;
2277
+ padding-bottom: 0;
2278
+ }
2279
+
2280
+ body.theme-notion .cm-content .cm-md-atxheading1,
2281
+ body.theme-notion .cm-content .cm-md-atxheading2,
2282
+ body.theme-writer .cm-content .cm-md-atxheading1,
2283
+ body.theme-writer .cm-content .cm-md-atxheading2,
2284
+ body.theme-writer .cm-content .cm-md-atxheading3 {
2285
+ font-weight: 700;
2286
+ }
2287
+
2288
+ body.theme-sepia .cm-content .cm-md-atxheading1 {
2289
+ text-align: center;
2290
+ border-bottom: none;
2291
+ letter-spacing: 0.02em;
2292
+ }
2293
+
2294
+ body.theme-sepia .cm-content .cm-md-atxheading2 {
2295
+ border-bottom-style: dashed;
2296
+ }
2297
+
2298
+ body.theme-bear .cm-content .cm-md-atxheading1 {
2299
+ letter-spacing: -0.01em;
2300
+ }
2301
+
2302
+ /* 引用块 */
2303
+ body.theme-elegant .cm-content .cm-md-blockquote {
2304
+ background: var(--blockquote-bg);
2305
+ }
2306
+
2307
+ body.theme-sepia .cm-content .cm-md-blockquote {
2308
+ background: var(--blockquote-bg);
2309
+ }
2310
+
2311
+ body.theme-writer .cm-content .cm-md-blockquote {
2312
+ border-left-width: 3px;
2313
+ font-style: normal;
2314
+ }
2315
+
2316
+ body.theme-nord .cm-content .cm-md-blockquote { color: #aeb9c9; }
2317
+ body.theme-gruvbox .cm-content .cm-md-blockquote { color: #bdae93; }
2318
+ body.theme-dracula .cm-content .cm-md-blockquote { color: #c3c8e0; }
2319
+ body.theme-midnight .cm-content .cm-md-blockquote { color: #9a9a9a; }
2320
+
2321
+ /* 表格 */
2322
+ body.theme-elegant .cm-content .cm-md-table-widget th,
2323
+ body.theme-elegant .cm-content .cm-md-table-widget td,
2324
+ body.theme-notion .cm-content .cm-md-table-widget th,
2325
+ body.theme-notion .cm-content .cm-md-table-widget td {
2326
+ border-left: none;
2327
+ border-right: none;
2328
+ }
2329
+
2330
+ body.theme-elegant .cm-content .cm-md-table-widget th {
2331
+ border-bottom: 2px solid #c44b2b;
2332
+ }
2333
+
2334
+ body.theme-writer .cm-content .cm-md-table-widget th,
2335
+ body.theme-writer .cm-content .cm-md-table-widget td {
2336
+ font-size: 0.9em;
2337
+ }
2338
+
2339
+ /* 分隔线 */
2340
+ body.theme-bear .cm-content .cm-md-hr {
2341
+ border-top-color: #d43d2a;
2342
+ opacity: 0.35;
2343
+ }
2344
+
2345
+ body.theme-gruvbox .cm-content .cm-md-hr {
2346
+ border-top-color: #504945;
2347
+ }
2348
+
2349
+ /* 链接 */
2350
+ body.theme-notion .cm-content .cm-md-url {
2351
+ color: #9b9a97;
2352
+ }
2353
+
2354
+ /* 属性区收起后留下的那一行空壳:压成零高,顶上就不会多出一条空白(见 live-preview
2355
+ 的 collectFrontmatter)。只在收起时有这个类,光标进去、属性区露出来时它就不在了。 */
2356
+ .cm-content .cm-md-frontmatter-folded {
2357
+ height: 0;
2358
+ line-height: 0;
2359
+ }
2360
+ /*
2361
+ * 导出的 HTML 里那份「文档样式」。
2362
+ *
2363
+ * 应用自己的排版是挂在 `.cm-md-*` 这些装饰类上的(编辑器需要按行、按标记来画),
2364
+ * 导出的 HTML 交出去的是**语义标签**(h1/p/ul/pre/table…),两者不能共用一套规则。
2365
+ * 所以这里只做一件事:用主题变量给语义标签一份正常的文档排版。
2366
+ *
2367
+ * 作用域是 `.colamd-document`,应用界面里不存在这个类,所以这份规则只对导出的文件生效。
2368
+ * 颜色一律取主题变量,导出时这些变量的值会跟着 CSS 一起被内联进去。
2369
+ */
2370
+
2371
+ .colamd-document {
2372
+ max-width: 780px;
2373
+ margin: 0 auto;
2374
+ padding: 40px 24px 64px;
2375
+ color: var(--text-color);
2376
+ font-family: var(--font-body, inherit);
2377
+ font-size: 16px;
2378
+ line-height: 1.75;
2379
+ word-wrap: break-word;
2380
+ }
2381
+
2382
+ .colamd-document h1,
2383
+ .colamd-document h2,
2384
+ .colamd-document h3,
2385
+ .colamd-document h4,
2386
+ .colamd-document h5,
2387
+ .colamd-document h6 {
2388
+ margin: 1.4em 0 0.6em;
2389
+ font-weight: 700;
2390
+ line-height: 1.35;
2391
+ }
2392
+
2393
+ .colamd-document h1 { font-size: 1.9em; }
2394
+ .colamd-document h2 { font-size: 1.55em; }
2395
+ .colamd-document h3 { font-size: 1.3em; }
2396
+ .colamd-document h4 { font-size: 1.12em; }
2397
+ .colamd-document h5,
2398
+ .colamd-document h6 { font-size: 1em; }
2399
+
2400
+ .colamd-document h1:first-child,
2401
+ .colamd-document h2:first-child { margin-top: 0; }
2402
+
2403
+ .colamd-document p {
2404
+ margin: 0.75em 0;
2405
+ }
2406
+
2407
+ .colamd-document a {
2408
+ color: var(--link-color);
2409
+ text-decoration: none;
2410
+ }
2411
+
2412
+ .colamd-document a:hover {
2413
+ text-decoration: underline;
2414
+ }
2415
+
2416
+ .colamd-document strong { font-weight: 700; }
2417
+ .colamd-document em { font-style: italic; }
2418
+ .colamd-document s { text-decoration: line-through; }
2419
+
2420
+ .colamd-document mark {
2421
+ background: color-mix(in srgb, var(--link-color) 22%, transparent);
2422
+ color: inherit;
2423
+ padding: 0 2px;
2424
+ border-radius: 3px;
2425
+ }
2426
+
2427
+ .colamd-document code {
2428
+ padding: 2px 6px;
2429
+ border-radius: 3px;
2430
+ background: var(--code-bg);
2431
+ font-family: var(--font-mono, Menlo, Monaco, monospace);
2432
+ font-size: 0.875em;
2433
+ }
2434
+
2435
+ .colamd-document pre {
2436
+ margin: 1em 0;
2437
+ padding: 14px 16px;
2438
+ border-radius: 6px;
2439
+ background: var(--code-block-bg);
2440
+ overflow-x: auto;
2441
+ }
2442
+
2443
+ .colamd-document pre code {
2444
+ padding: 0;
2445
+ background: none;
2446
+ font-size: 0.875em;
2447
+ line-height: 1.6;
2448
+ }
2449
+
2450
+ .colamd-document blockquote {
2451
+ margin: 1em 0;
2452
+ padding: 0.1em 0 0.1em 1em;
2453
+ border-left: 4px solid var(--blockquote-border);
2454
+ color: var(--text-secondary, var(--text-muted));
2455
+ }
2456
+
2457
+ .colamd-document blockquote p {
2458
+ margin: 0.4em 0;
2459
+ }
2460
+
2461
+ .colamd-document ul,
2462
+ .colamd-document ol {
2463
+ margin: 0.75em 0;
2464
+ padding-left: 1.6em;
2465
+ }
2466
+
2467
+ .colamd-document li {
2468
+ margin: 0.3em 0;
2469
+ }
2470
+
2471
+ .colamd-document hr {
2472
+ margin: 2em 0;
2473
+ border: none;
2474
+ border-top: 1px solid var(--border-color);
2475
+ }
2476
+
2477
+ .colamd-document table {
2478
+ margin: 1em 0;
2479
+ border-collapse: collapse;
2480
+ width: 100%;
2481
+ }
2482
+
2483
+ .colamd-document th,
2484
+ .colamd-document td {
2485
+ padding: 8px 12px;
2486
+ border: 1px solid var(--border-color);
2487
+ }
2488
+
2489
+ .colamd-document th {
2490
+ background: var(--table-header-bg);
2491
+ font-weight: 600;
2492
+ text-align: left;
2493
+ }
2494
+
2495
+ .colamd-document img {
2496
+ max-width: 100%;
2497
+ height: auto;
2498
+ }
2499
+
2500
+ .colamd-document sup {
2501
+ font-size: 0.75em;
2502
+ vertical-align: super;
2503
+ }