语雀美化

让语雀更加美观

  1. // ==UserScript==
  2. // @name 语雀美化
  3. // @namespace https://gf.qytechs.cn/users/1268743-okoala
  4. // @version 1.0.0
  5. // @description 让语雀更加美观
  6. // @author 仙森
  7. // @icon https://www.google.com/s2/favicons?domain=yuque.com
  8. // @match *://*.yuque.com/*
  9. // @match *://yuque.antfin.com/*
  10. // @match *://yuque.antfin-inc.com/*
  11. // @grant none
  12. // @grant GM_addStyle
  13. // @license MIT
  14. // ==/UserScript==
  15. (function () {
  16. 'use strict';
  17.  
  18. const style = document.createElement('style');
  19. style.id = 'yuque-tampermonkey-beauty';
  20. style.type = 'text/css';
  21.  
  22. const cssString = `
  23. body,
  24. html {
  25. letter-spacing: 0.02em;
  26. -webkit-font-smoothing: subpixel-antialiased;
  27. }
  28. #doc-reader-content #article-title,
  29. #comment-floor-mini,
  30. .ne-toc-view {
  31. font-weight: 400;
  32. line-height: 1.5;
  33. overflow-wrap: break-word;
  34. word-wrap: break-word;
  35. hyphens: auto;
  36. letter-spacing: 0.02em;
  37. }
  38. #doc-reader-content #article-title {
  39. font-size: 2.2em;
  40. }
  41. #sidePanel .ne-toc-normal-view .ne-toc-item .ne-toc-item-text:hover,
  42. #sidePanel .ne-toc-normal-view .ne-toc-item.ne-toc-selected {
  43. font-weight: 400;
  44. }
  45. #sidePanel .ne-toc-normal-view .ne-toc-item .ne-toc-item-text:hover a,
  46. #sidePanel .ne-toc-normal-view .ne-toc-item.ne-toc-selected a {
  47. color: var(--yq-yuque-grey-900);
  48. }
  49. #sidePanel .ne-toc-normal-view .ne-toc-content::after {
  50. width: 1px;
  51. background: var(--yq-yuque-grey-300);
  52. }
  53. #sidePanel .ne-toc-normal-view .ne-toc-pin,
  54. #sidePanel .ne-toc-view .ne-toc-pin .ne-toc-pin-text {
  55. color: var(--yq-yuque-grey-700);
  56. transition: all 0.5s ease;
  57. }
  58. #sidePanel .ne-toc-normal-view .ne-toc-item .ne-toc-fold-btn,
  59. #sidePanel .ne-toc-normal-view .ne-toc-item a {
  60. color: var(--yq-yuque-grey-600);
  61. transition: all 0.5s ease;
  62. }
  63. #sidePanel .ne-toc-normal-view .ne-toc-item.ne-toc-selected a {
  64. color: var(--yq-yuque-grey-900);
  65. }
  66. #sidePanel .ne-toc-normal-view:hover .ne-toc-pin,
  67. #sidePanel .ne-toc-normal-view:hover .ne-toc-pin .ne-toc-pin-text,
  68. #sidePanel .ne-toc-normal-view:hover .ne-toc-item.ne-toc-selected a {
  69. color: var(--yq-yuque-grey-900);
  70. }
  71. #sidePanel .ne-toc-normal-view:hover .ne-toc-item .ne-toc-fold-btn,
  72. #sidePanel .ne-toc-normal-view:hover .ne-toc-item a {
  73. color: var(--yq-yuque-grey-700);
  74. }
  75. div[class*='index-module_recentTable_'] .ant-table-tbody > tr > .ant-table-cell,
  76. div[class*='index-module_recentTable_'] .ant-table tfoot > tr > .ant-table-cell {
  77. padding: 8px 1px;
  78. }
  79. div[class*='index-module_recentTable_'] td[class*='index-module_columnsTime_'],
  80. div[class*='index-module_recentTable_'] div[class*='index-module_belongCol_'],
  81. div[class*='index-module_recentTable_'] a[class*='index-module_bookTitle_'],
  82. div[class*='index-module_recentTable_'] a[class*='index-module_groupTitle_'] {
  83. color: var(--yq-text-disable);
  84. }
  85. div[class*='ReaderLayout-module_asideHead_'] {
  86. border: none;
  87. padding: 0;
  88. flex-direction: column-reverse;
  89. }
  90. div[class*='ReaderLayout-module_asideHead_']:hover div[class*='ReaderLayout-module_crumb_'] {
  91. opacity: 1;
  92. }
  93. div[class*='ReaderLayout-module_bookName_'] {
  94. margin: 8px 0;
  95. }
  96. div[class*='ReaderLayout-module_crumb_'] {
  97. padding: 0 0 0 6px;
  98. height: 0;
  99. opacity: 0;
  100. transition: all 0.3s ease;
  101. }
  102. #lark-mini-editor .ne-paragraph-spacing-relax.ne-typography-classic,
  103. #lark-mini-editor .ne-viewer.ne-paragraph-spacing-relax.ne-typography-classic .ne-viewer-body,
  104. #lark-mini-editor .ne-viewer-body,
  105. #lark-mini-editor .ne-editor-body,
  106. .yuque-doc-content .ne-paragraph-spacing-relax.ne-typography-classic,
  107. .yuque-doc-content .ne-viewer.ne-paragraph-spacing-relax.ne-typography-classic .ne-viewer-body,
  108. .yuque-doc-content .ne-viewer-body,
  109. .yuque-doc-content .ne-editor-body,
  110. .ne-doc-major-editor .ne-paragraph-spacing-relax.ne-typography-classic,
  111. .ne-doc-major-editor .ne-viewer.ne-paragraph-spacing-relax.ne-typography-classic .ne-viewer-body,
  112. .ne-doc-major-editor .ne-viewer-body,
  113. .ne-doc-major-editor .ne-editor-body,
  114. .ne-doc-major-viewer .ne-paragraph-spacing-relax.ne-typography-classic,
  115. .ne-doc-major-viewer .ne-viewer.ne-paragraph-spacing-relax.ne-typography-classic .ne-viewer-body,
  116. .ne-doc-major-viewer .ne-viewer-body,
  117. .ne-doc-major-viewer .ne-editor-body {
  118. font-family: Source Sans Pro, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', Segoe UI Symbol, 'Noto Color Emoji';
  119. font-weight: 400;
  120. line-height: 1.5;
  121. overflow-wrap: break-word;
  122. word-wrap: break-word;
  123. hyphens: auto;
  124. letter-spacing: 0.02em;
  125. }
  126. #lark-mini-editor ne-alert-hole,
  127. #lark-mini-editor ne-container-hole,
  128. #lark-mini-editor ne-hole,
  129. #lark-mini-editor .ne-editor-body ne-p,
  130. #lark-mini-editor .ne-viewer-body ne-p,
  131. .yuque-doc-content ne-alert-hole,
  132. .yuque-doc-content ne-container-hole,
  133. .yuque-doc-content ne-hole,
  134. .yuque-doc-content .ne-editor-body ne-p,
  135. .yuque-doc-content .ne-viewer-body ne-p,
  136. .ne-doc-major-editor ne-alert-hole,
  137. .ne-doc-major-editor ne-container-hole,
  138. .ne-doc-major-editor ne-hole,
  139. .ne-doc-major-editor .ne-editor-body ne-p,
  140. .ne-doc-major-editor .ne-viewer-body ne-p,
  141. .ne-doc-major-viewer ne-alert-hole,
  142. .ne-doc-major-viewer ne-container-hole,
  143. .ne-doc-major-viewer ne-hole,
  144. .ne-doc-major-viewer .ne-editor-body ne-p,
  145. .ne-doc-major-viewer .ne-viewer-body ne-p {
  146. margin-top: 16px !important;
  147. margin-bottom: 16px !important;
  148. }
  149. #lark-mini-editor ne-h1,
  150. #lark-mini-editor ne-h2,
  151. #lark-mini-editor ne-h3,
  152. #lark-mini-editor ne-h4,
  153. #lark-mini-editor ne-h5,
  154. #lark-mini-editor ne-h6,
  155. .yuque-doc-content ne-h1,
  156. .yuque-doc-content ne-h2,
  157. .yuque-doc-content ne-h3,
  158. .yuque-doc-content ne-h4,
  159. .yuque-doc-content ne-h5,
  160. .yuque-doc-content ne-h6,
  161. .ne-doc-major-editor ne-h1,
  162. .ne-doc-major-editor ne-h2,
  163. .ne-doc-major-editor ne-h3,
  164. .ne-doc-major-editor ne-h4,
  165. .ne-doc-major-editor ne-h5,
  166. .ne-doc-major-editor ne-h6,
  167. .ne-doc-major-viewer ne-h1,
  168. .ne-doc-major-viewer ne-h2,
  169. .ne-doc-major-viewer ne-h3,
  170. .ne-doc-major-viewer ne-h4,
  171. .ne-doc-major-viewer ne-h5,
  172. .ne-doc-major-viewer ne-h6 {
  173. letter-spacing: 0.05em !important;
  174. margin-top: 24px !important;
  175. margin-bottom: 16px !important;
  176. line-height: 1.25 !important;
  177. }
  178. #lark-mini-editor ne-h1,
  179. .yuque-doc-content ne-h1,
  180. .ne-doc-major-editor ne-h1,
  181. .ne-doc-major-viewer ne-h1 {
  182. margin-top: 34px !important;
  183. padding-bottom: 0.3em !important;
  184. border-bottom: 1px solid var(--yq-yuque-grey-200);
  185. font-size: 2em !important;
  186. }
  187. #lark-mini-editor ne-h2,
  188. .yuque-doc-content ne-h2,
  189. .ne-doc-major-editor ne-h2,
  190. .ne-doc-major-viewer ne-h2 {
  191. margin-top: 34px !important;
  192. padding-bottom: 0.3em !important;
  193. border-bottom: 1px solid var(--yq-yuque-grey-200);
  194. font-size: 1.5em !important;
  195. }
  196. #lark-mini-editor ne-h3,
  197. .yuque-doc-content ne-h3,
  198. .ne-doc-major-editor ne-h3,
  199. .ne-doc-major-viewer ne-h3 {
  200. font-size: 1.25em !important;
  201. }
  202. #lark-mini-editor ne-h4,
  203. .yuque-doc-content ne-h4,
  204. .ne-doc-major-editor ne-h4,
  205. .ne-doc-major-viewer ne-h4 {
  206. font-size: 1em !important;
  207. }
  208. #lark-mini-editor ne-h5,
  209. .yuque-doc-content ne-h5,
  210. .ne-doc-major-editor ne-h5,
  211. .ne-doc-major-viewer ne-h5 {
  212. font-size: 0.875em !important;
  213. }
  214. #lark-mini-editor ne-h6,
  215. .yuque-doc-content ne-h6,
  216. .ne-doc-major-editor ne-h6,
  217. .ne-doc-major-viewer ne-h6 {
  218. font-size: 0.85em !important;
  219. }
  220. #lark-mini-editor ne-card[data-card-type='block'][data-card-name='hr'],
  221. .yuque-doc-content ne-card[data-card-type='block'][data-card-name='hr'],
  222. .ne-doc-major-editor ne-card[data-card-type='block'][data-card-name='hr'],
  223. .ne-doc-major-viewer ne-card[data-card-type='block'][data-card-name='hr'] {
  224. width: 30%;
  225. height: 1px;
  226. margin-top: 48px;
  227. margin-bottom: 47px;
  228. margin-inline-start: auto;
  229. margin-inline-end: auto;
  230. border: 0;
  231. box-sizing: content-box;
  232. overflow: visible;
  233. padding: 0 !important;
  234. }
  235. #lark-mini-editor .ne-viewer ne-card[data-card-name='hr'] .ne-hr,
  236. .yuque-doc-content .ne-viewer ne-card[data-card-name='hr'] .ne-hr,
  237. .ne-doc-major-editor .ne-viewer ne-card[data-card-name='hr'] .ne-hr,
  238. .ne-doc-major-viewer .ne-viewer ne-card[data-card-name='hr'] .ne-hr {
  239. height: 1px;
  240. }
  241. #lark-mini-editor ne-uli-i .ne-list-symbol > span,
  242. .yuque-doc-content ne-uli-i .ne-list-symbol > span,
  243. .ne-doc-major-editor ne-uli-i .ne-list-symbol > span,
  244. .ne-doc-major-viewer ne-uli-i .ne-list-symbol > span {
  245. transform: scale(0.4) !important;
  246. }
  247. #lark-mini-editor .ne-engine .ne-spacing-all,
  248. #lark-mini-editor .ne-viewer-body .ne-spacing-all,
  249. .yuque-doc-content .ne-engine .ne-spacing-all,
  250. .yuque-doc-content .ne-viewer-body .ne-spacing-all,
  251. .ne-doc-major-editor .ne-engine .ne-spacing-all,
  252. .ne-doc-major-editor .ne-viewer-body .ne-spacing-all,
  253. .ne-doc-major-viewer .ne-engine .ne-spacing-all,
  254. .ne-doc-major-viewer .ne-viewer-body .ne-spacing-all {
  255. margin-top: 0px;
  256. margin-bottom: 0px;
  257. }
  258. #lark-mini-editor .ne-toc-view .ne-toc-pin,
  259. .yuque-doc-content .ne-toc-view .ne-toc-pin,
  260. .ne-doc-major-editor .ne-toc-view .ne-toc-pin,
  261. .ne-doc-major-viewer .ne-toc-view .ne-toc-pin {
  262. padding-left: 12px !important;
  263. }
  264. #lark-mini-editor .ne-toc-normal-view .ne-toc-depth-1,
  265. #lark-mini-editor .ne-toc-sidebar-hover .ne-toc-view .ne-toc-depth-1,
  266. #lark-mini-editor .ne-toc-small-view:hover .ne-toc-depth-1,
  267. #lark-mini-editor .ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-depth-1,
  268. .yuque-doc-content .ne-toc-normal-view .ne-toc-depth-1,
  269. .yuque-doc-content .ne-toc-sidebar-hover .ne-toc-view .ne-toc-depth-1,
  270. .yuque-doc-content .ne-toc-small-view:hover .ne-toc-depth-1,
  271. .yuque-doc-content .ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-depth-1,
  272. .ne-doc-major-editor .ne-toc-normal-view .ne-toc-depth-1,
  273. .ne-doc-major-editor .ne-toc-sidebar-hover .ne-toc-view .ne-toc-depth-1,
  274. .ne-doc-major-editor .ne-toc-small-view:hover .ne-toc-depth-1,
  275. .ne-doc-major-editor .ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-depth-1,
  276. .ne-doc-major-viewer .ne-toc-normal-view .ne-toc-depth-1,
  277. .ne-doc-major-viewer .ne-toc-sidebar-hover .ne-toc-view .ne-toc-depth-1,
  278. .ne-doc-major-viewer .ne-toc-small-view:hover .ne-toc-depth-1,
  279. .ne-doc-major-viewer .ne-viewer-toc-sidebar-hover .ne-toc-view .ne-toc-depth-1 {
  280. padding-left: 10px !important;
  281. }
  282. #lark-mini-editor a.ne-link,
  283. #lark-mini-editor ne-link,
  284. .yuque-doc-content a.ne-link,
  285. .yuque-doc-content ne-link,
  286. .ne-doc-major-editor a.ne-link,
  287. .ne-doc-major-editor ne-link,
  288. .ne-doc-major-viewer a.ne-link,
  289. .ne-doc-major-viewer ne-link {
  290. text-decoration: underline !important;
  291. text-underline-offset: 0.2rem !important;
  292. color: var(--lakex-editor-text-link);
  293. }
  294. #lark-mini-editor ne-hole,
  295. .yuque-doc-content ne-hole,
  296. .ne-doc-major-editor ne-hole,
  297. .ne-doc-major-viewer ne-hole {
  298. margin-bottom: 16px !important;
  299. }
  300. #lark-mini-editor ne-card[data-card-name='codeblock'],
  301. .yuque-doc-content ne-card[data-card-name='codeblock'],
  302. .ne-doc-major-editor ne-card[data-card-name='codeblock'],
  303. .ne-doc-major-viewer ne-card[data-card-name='codeblock'] {
  304. border-color: transparent !important;
  305. }
  306. #lark-mini-editor .codeblock-menu,
  307. #lark-mini-editor .codeblock-menu,
  308. .yuque-doc-content .codeblock-menu,
  309. .yuque-doc-content .codeblock-menu,
  310. .ne-doc-major-editor .codeblock-menu,
  311. .ne-doc-major-editor .codeblock-menu,
  312. .ne-doc-major-viewer .codeblock-menu,
  313. .ne-doc-major-viewer .codeblock-menu {
  314. border-bottom-color: transparent !important;
  315. }
  316. #lark-mini-editor .ne-codeblock[theme='Github Light'] .CodeMirror-gutter-wrapper,
  317. #lark-mini-editor .ne-codeblock[theme='Github Light'] .CodeMirror-gutters,
  318. #lark-mini-editor .ne-codeblock[theme='Github Light'] .ne-codeblock,
  319. #lark-mini-editor .ne-codeblock[theme='Github Light'] .ne-codeblock-content,
  320. #lark-mini-editor .ne-codeblock[theme='Github Light'] .ne-codeblock-inner,
  321. #lark-mini-editor l.cm-editor,
  322. #lark-mini-editor .cm-gutters,
  323. .yuque-doc-content .ne-codeblock[theme='Github Light'] .CodeMirror-gutter-wrapper,
  324. .yuque-doc-content .ne-codeblock[theme='Github Light'] .CodeMirror-gutters,
  325. .yuque-doc-content .ne-codeblock[theme='Github Light'] .ne-codeblock,
  326. .yuque-doc-content .ne-codeblock[theme='Github Light'] .ne-codeblock-content,
  327. .yuque-doc-content .ne-codeblock[theme='Github Light'] .ne-codeblock-inner,
  328. .yuque-doc-content l.cm-editor,
  329. .yuque-doc-content .cm-gutters,
  330. .ne-doc-major-editor .ne-codeblock[theme='Github Light'] .CodeMirror-gutter-wrapper,
  331. .ne-doc-major-editor .ne-codeblock[theme='Github Light'] .CodeMirror-gutters,
  332. .ne-doc-major-editor .ne-codeblock[theme='Github Light'] .ne-codeblock,
  333. .ne-doc-major-editor .ne-codeblock[theme='Github Light'] .ne-codeblock-content,
  334. .ne-doc-major-editor .ne-codeblock[theme='Github Light'] .ne-codeblock-inner,
  335. .ne-doc-major-editor l.cm-editor,
  336. .ne-doc-major-editor .cm-gutters,
  337. .ne-doc-major-viewer .ne-codeblock[theme='Github Light'] .CodeMirror-gutter-wrapper,
  338. .ne-doc-major-viewer .ne-codeblock[theme='Github Light'] .CodeMirror-gutters,
  339. .ne-doc-major-viewer .ne-codeblock[theme='Github Light'] .ne-codeblock,
  340. .ne-doc-major-viewer .ne-codeblock[theme='Github Light'] .ne-codeblock-content,
  341. .ne-doc-major-viewer .ne-codeblock[theme='Github Light'] .ne-codeblock-inner,
  342. .ne-doc-major-viewer l.cm-editor,
  343. .ne-doc-major-viewer .cm-gutters {
  344. caret-color: transparent !important;
  345. color: var(--yq-yuque-grey-400) !important;
  346. }
  347. #lark-mini-editor .cm-lightLineGutter,
  348. .yuque-doc-content .cm-lightLineGutter,
  349. .ne-doc-major-editor .cm-lightLineGutter,
  350. .ne-doc-major-viewer .cm-lightLineGutter {
  351. background-color: transparent !important;
  352. }
  353. #lark-mini-editor .cm-foldGutter,
  354. .yuque-doc-content .cm-foldGutter,
  355. .ne-doc-major-editor .cm-foldGutter,
  356. .ne-doc-major-viewer .cm-foldGutter {
  357. visibility: hidden;
  358. }
  359. #lark-mini-editor .cm-gutters:hover .cm-foldGutter,
  360. .yuque-doc-content .cm-gutters:hover .cm-foldGutter,
  361. .ne-doc-major-editor .cm-gutters:hover .cm-foldGutter,
  362. .ne-doc-major-viewer .cm-gutters:hover .cm-foldGutter {
  363. visibility: visible;
  364. }
  365. #lark-mini-editor ne-alert ne-oli:first-child,
  366. #lark-mini-editor ne-alert ne-p:first-child,
  367. #lark-mini-editor ne-alert ne-p:first-child,
  368. #lark-mini-editor ne-alert ne-h1:first-child,
  369. #lark-mini-editor ne-alert ne-h1:first-child,
  370. #lark-mini-editor ne-alert ne-h2:first-child,
  371. #lark-mini-editor ne-alert ne-h2:first-child,
  372. #lark-mini-editor ne-alert ne-h3:first-child,
  373. #lark-mini-editor ne-alert ne-h3:first-child,
  374. #lark-mini-editor ne-alert ne-h4:first-child,
  375. #lark-mini-editor ne-alert ne-h4:first-child,
  376. #lark-mini-editor ne-alert ne-h5:first-child,
  377. #lark-mini-editor ne-alert ne-h5:first-child,
  378. #lark-mini-editor ne-alert ne-h6:first-child,
  379. #lark-mini-editor ne-alert ne-h6:first-child,
  380. .yuque-doc-content ne-alert ne-oli:first-child,
  381. .yuque-doc-content ne-alert ne-p:first-child,
  382. .yuque-doc-content ne-alert ne-p:first-child,
  383. .yuque-doc-content ne-alert ne-h1:first-child,
  384. .yuque-doc-content ne-alert ne-h1:first-child,
  385. .yuque-doc-content ne-alert ne-h2:first-child,
  386. .yuque-doc-content ne-alert ne-h2:first-child,
  387. .yuque-doc-content ne-alert ne-h3:first-child,
  388. .yuque-doc-content ne-alert ne-h3:first-child,
  389. .yuque-doc-content ne-alert ne-h4:first-child,
  390. .yuque-doc-content ne-alert ne-h4:first-child,
  391. .yuque-doc-content ne-alert ne-h5:first-child,
  392. .yuque-doc-content ne-alert ne-h5:first-child,
  393. .yuque-doc-content ne-alert ne-h6:first-child,
  394. .yuque-doc-content ne-alert ne-h6:first-child,
  395. .ne-doc-major-editor ne-alert ne-oli:first-child,
  396. .ne-doc-major-editor ne-alert ne-p:first-child,
  397. .ne-doc-major-editor ne-alert ne-p:first-child,
  398. .ne-doc-major-editor ne-alert ne-h1:first-child,
  399. .ne-doc-major-editor ne-alert ne-h1:first-child,
  400. .ne-doc-major-editor ne-alert ne-h2:first-child,
  401. .ne-doc-major-editor ne-alert ne-h2:first-child,
  402. .ne-doc-major-editor ne-alert ne-h3:first-child,
  403. .ne-doc-major-editor ne-alert ne-h3:first-child,
  404. .ne-doc-major-editor ne-alert ne-h4:first-child,
  405. .ne-doc-major-editor ne-alert ne-h4:first-child,
  406. .ne-doc-major-editor ne-alert ne-h5:first-child,
  407. .ne-doc-major-editor ne-alert ne-h5:first-child,
  408. .ne-doc-major-editor ne-alert ne-h6:first-child,
  409. .ne-doc-major-editor ne-alert ne-h6:first-child,
  410. .ne-doc-major-viewer ne-alert ne-oli:first-child,
  411. .ne-doc-major-viewer ne-alert ne-p:first-child,
  412. .ne-doc-major-viewer ne-alert ne-p:first-child,
  413. .ne-doc-major-viewer ne-alert ne-h1:first-child,
  414. .ne-doc-major-viewer ne-alert ne-h1:first-child,
  415. .ne-doc-major-viewer ne-alert ne-h2:first-child,
  416. .ne-doc-major-viewer ne-alert ne-h2:first-child,
  417. .ne-doc-major-viewer ne-alert ne-h3:first-child,
  418. .ne-doc-major-viewer ne-alert ne-h3:first-child,
  419. .ne-doc-major-viewer ne-alert ne-h4:first-child,
  420. .ne-doc-major-viewer ne-alert ne-h4:first-child,
  421. .ne-doc-major-viewer ne-alert ne-h5:first-child,
  422. .ne-doc-major-viewer ne-alert ne-h5:first-child,
  423. .ne-doc-major-viewer ne-alert ne-h6:first-child,
  424. .ne-doc-major-viewer ne-alert ne-h6:first-child {
  425. margin-top: 0 !important;
  426. margin-bottom: 0 !important;
  427. }
  428. #lark-mini-editor .ne-viewer-body ne-h1:first-child,
  429. #lark-mini-editor .ne-viewer-body ne-h2:first-child,
  430. #lark-mini-editor .ne-viewer-body ne-h3:first-child,
  431. #lark-mini-editor .ne-viewer-body ne-h4:first-child,
  432. #lark-mini-editor .ne-viewer-body ne-h5:first-child,
  433. #lark-mini-editor .ne-viewer-body ne-h6:first-child,
  434. #lark-mini-editor .ne-viewer-body ne-p:first-child,
  435. #lark-mini-editor .ne-engine ne-h1:first-child,
  436. #lark-mini-editor .ne-engine ne-h2:first-child,
  437. #lark-mini-editor .ne-engine ne-h3:first-child,
  438. #lark-mini-editor .ne-engine ne-h4:first-child,
  439. #lark-mini-editor .ne-engine ne-h5:first-child,
  440. #lark-mini-editor .ne-engine ne-h6:first-child,
  441. #lark-mini-editor .ne-engine ne-p:first-child,
  442. .yuque-doc-content .ne-viewer-body ne-h1:first-child,
  443. .yuque-doc-content .ne-viewer-body ne-h2:first-child,
  444. .yuque-doc-content .ne-viewer-body ne-h3:first-child,
  445. .yuque-doc-content .ne-viewer-body ne-h4:first-child,
  446. .yuque-doc-content .ne-viewer-body ne-h5:first-child,
  447. .yuque-doc-content .ne-viewer-body ne-h6:first-child,
  448. .yuque-doc-content .ne-viewer-body ne-p:first-child,
  449. .yuque-doc-content .ne-engine ne-h1:first-child,
  450. .yuque-doc-content .ne-engine ne-h2:first-child,
  451. .yuque-doc-content .ne-engine ne-h3:first-child,
  452. .yuque-doc-content .ne-engine ne-h4:first-child,
  453. .yuque-doc-content .ne-engine ne-h5:first-child,
  454. .yuque-doc-content .ne-engine ne-h6:first-child,
  455. .yuque-doc-content .ne-engine ne-p:first-child,
  456. .ne-doc-major-editor .ne-viewer-body ne-h1:first-child,
  457. .ne-doc-major-editor .ne-viewer-body ne-h2:first-child,
  458. .ne-doc-major-editor .ne-viewer-body ne-h3:first-child,
  459. .ne-doc-major-editor .ne-viewer-body ne-h4:first-child,
  460. .ne-doc-major-editor .ne-viewer-body ne-h5:first-child,
  461. .ne-doc-major-editor .ne-viewer-body ne-h6:first-child,
  462. .ne-doc-major-editor .ne-viewer-body ne-p:first-child,
  463. .ne-doc-major-editor .ne-engine ne-h1:first-child,
  464. .ne-doc-major-editor .ne-engine ne-h2:first-child,
  465. .ne-doc-major-editor .ne-engine ne-h3:first-child,
  466. .ne-doc-major-editor .ne-engine ne-h4:first-child,
  467. .ne-doc-major-editor .ne-engine ne-h5:first-child,
  468. .ne-doc-major-editor .ne-engine ne-h6:first-child,
  469. .ne-doc-major-editor .ne-engine ne-p:first-child,
  470. .ne-doc-major-viewer .ne-viewer-body ne-h1:first-child,
  471. .ne-doc-major-viewer .ne-viewer-body ne-h2:first-child,
  472. .ne-doc-major-viewer .ne-viewer-body ne-h3:first-child,
  473. .ne-doc-major-viewer .ne-viewer-body ne-h4:first-child,
  474. .ne-doc-major-viewer .ne-viewer-body ne-h5:first-child,
  475. .ne-doc-major-viewer .ne-viewer-body ne-h6:first-child,
  476. .ne-doc-major-viewer .ne-viewer-body ne-p:first-child,
  477. .ne-doc-major-viewer .ne-engine ne-h1:first-child,
  478. .ne-doc-major-viewer .ne-engine ne-h2:first-child,
  479. .ne-doc-major-viewer .ne-engine ne-h3:first-child,
  480. .ne-doc-major-viewer .ne-engine ne-h4:first-child,
  481. .ne-doc-major-viewer .ne-engine ne-h5:first-child,
  482. .ne-doc-major-viewer .ne-engine ne-h6:first-child,
  483. .ne-doc-major-viewer .ne-engine ne-p:first-child {
  484. margin-top: 0 !important;
  485. }
  486. #lark-mini-editor ne-alert ne-h1:last-child,
  487. #lark-mini-editor ne-alert ne-h2:last-child,
  488. #lark-mini-editor ne-alert ne-h3:last-child,
  489. #lark-mini-editor ne-alert ne-h4:last-child,
  490. #lark-mini-editor ne-alert ne-h5:last-child,
  491. #lark-mini-editor ne-alert ne-h6:last-child,
  492. #lark-mini-editor ne-alert ne-p:last-child,
  493. #lark-mini-editor .ne-viewer-body ne-h1:last-child,
  494. #lark-mini-editor .ne-viewer-body ne-h2:last-child,
  495. #lark-mini-editor .ne-viewer-body ne-h3:last-child,
  496. #lark-mini-editor .ne-viewer-body ne-h4:last-child,
  497. #lark-mini-editor .ne-viewer-body ne-h5:last-child,
  498. #lark-mini-editor .ne-viewer-body ne-h6:last-child,
  499. #lark-mini-editor .ne-viewer-body ne-p:last-child,
  500. .yuque-doc-content ne-alert ne-h1:last-child,
  501. .yuque-doc-content ne-alert ne-h2:last-child,
  502. .yuque-doc-content ne-alert ne-h3:last-child,
  503. .yuque-doc-content ne-alert ne-h4:last-child,
  504. .yuque-doc-content ne-alert ne-h5:last-child,
  505. .yuque-doc-content ne-alert ne-h6:last-child,
  506. .yuque-doc-content ne-alert ne-p:last-child,
  507. .yuque-doc-content .ne-viewer-body ne-h1:last-child,
  508. .yuque-doc-content .ne-viewer-body ne-h2:last-child,
  509. .yuque-doc-content .ne-viewer-body ne-h3:last-child,
  510. .yuque-doc-content .ne-viewer-body ne-h4:last-child,
  511. .yuque-doc-content .ne-viewer-body ne-h5:last-child,
  512. .yuque-doc-content .ne-viewer-body ne-h6:last-child,
  513. .yuque-doc-content .ne-viewer-body ne-p:last-child,
  514. .ne-doc-major-editor ne-alert ne-h1:last-child,
  515. .ne-doc-major-editor ne-alert ne-h2:last-child,
  516. .ne-doc-major-editor ne-alert ne-h3:last-child,
  517. .ne-doc-major-editor ne-alert ne-h4:last-child,
  518. .ne-doc-major-editor ne-alert ne-h5:last-child,
  519. .ne-doc-major-editor ne-alert ne-h6:last-child,
  520. .ne-doc-major-editor ne-alert ne-p:last-child,
  521. .ne-doc-major-editor .ne-viewer-body ne-h1:last-child,
  522. .ne-doc-major-editor .ne-viewer-body ne-h2:last-child,
  523. .ne-doc-major-editor .ne-viewer-body ne-h3:last-child,
  524. .ne-doc-major-editor .ne-viewer-body ne-h4:last-child,
  525. .ne-doc-major-editor .ne-viewer-body ne-h5:last-child,
  526. .ne-doc-major-editor .ne-viewer-body ne-h6:last-child,
  527. .ne-doc-major-editor .ne-viewer-body ne-p:last-child,
  528. .ne-doc-major-viewer ne-alert ne-h1:last-child,
  529. .ne-doc-major-viewer ne-alert ne-h2:last-child,
  530. .ne-doc-major-viewer ne-alert ne-h3:last-child,
  531. .ne-doc-major-viewer ne-alert ne-h4:last-child,
  532. .ne-doc-major-viewer ne-alert ne-h5:last-child,
  533. .ne-doc-major-viewer ne-alert ne-h6:last-child,
  534. .ne-doc-major-viewer ne-alert ne-p:last-child,
  535. .ne-doc-major-viewer .ne-viewer-body ne-h1:last-child,
  536. .ne-doc-major-viewer .ne-viewer-body ne-h2:last-child,
  537. .ne-doc-major-viewer .ne-viewer-body ne-h3:last-child,
  538. .ne-doc-major-viewer .ne-viewer-body ne-h4:last-child,
  539. .ne-doc-major-viewer .ne-viewer-body ne-h5:last-child,
  540. .ne-doc-major-viewer .ne-viewer-body ne-h6:last-child,
  541. .ne-doc-major-viewer .ne-viewer-body ne-p:last-child {
  542. margin-bottom: 0 !important;
  543. }
  544. #lark-mini-editor ne-card[data-card-type='block'],
  545. .yuque-doc-content ne-card[data-card-type='block'],
  546. .ne-doc-major-editor ne-card[data-card-type='block'],
  547. .ne-doc-major-viewer ne-card[data-card-type='block'] {
  548. border-radius: 8px !important;
  549. overflow: hidden;
  550. }
  551. #lark-mini-editor ne-card[data-card-name='hr'] .ne-card-container,
  552. .yuque-doc-content ne-card[data-card-name='hr'] .ne-card-container,
  553. .ne-doc-major-editor ne-card[data-card-name='hr'] .ne-card-container,
  554. .ne-doc-major-viewer ne-card[data-card-name='hr'] .ne-card-container {
  555. padding: 0 !important;
  556. }
  557. .larkui-icon-permission-private {
  558. color: var(--yq-red-400) !important;
  559. }
  560. .larkui-icon-icon-public {
  561. color: var(--yq-yuque-green-700) !important;
  562. }
  563. `;
  564.  
  565. style.appendChild(document.createTextNode(cssString));
  566. var head = document.getElementsByTagName('head')[0];
  567. head.appendChild(style);
  568. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址