index.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  1. /*---------------------------------------------------------------------------*/
  2. /*global*/
  3. html, body {
  4. padding: 0 !important; margin: 0 !important;
  5. width: auto !important; max-width: 100% !important;
  6. }
  7. details summary {
  8. cursor: pointer;
  9. }
  10. /*---------------------------------------------------------------------------*/
  11. /*raw markdown view*/
  12. pre#_markdown {
  13. word-wrap: break-word;
  14. white-space: pre-wrap;
  15. }
  16. /*---------------------------------------------------------------------------*/
  17. /*github theme*/
  18. .markdown-body {
  19. overflow: auto;
  20. min-width: 830px;
  21. max-width: 830px;
  22. background-color: #fff;
  23. border: 1px solid var(--toc-delimiter);
  24. padding: 32px;
  25. margin: 20px auto !important;
  26. }
  27. .markdown-body #_html>*:first-child {
  28. margin-top: 0 !important;
  29. }
  30. .markdown-body #_html>*:last-child {
  31. margin-bottom: 0 !important;
  32. }
  33. .markdown-body img {
  34. background-color: transparent;
  35. }
  36. /*---------------------------------------------------------------------------*/
  37. /*all other themes*/
  38. .markdown-theme {
  39. box-sizing: border-box;
  40. max-width: 100% !important;
  41. padding: 20px !important;
  42. margin: 0 auto !important;
  43. }
  44. .markdown-theme pre,
  45. .markdown-theme pre code {
  46. overflow: auto;
  47. overflow-x: auto;
  48. overflow-y: auto;
  49. }
  50. @media (max-width: 576px) { /*Extra small - none*/
  51. .markdown-theme { width: auto !important; }
  52. }
  53. @media (min-width: 576px) and (max-width: 768px) { /*Small sm*/
  54. .markdown-theme { width: 576px !important; }
  55. }
  56. @media (min-width: 768px) and (max-width: 992px) { /*Medium md*/
  57. .markdown-theme { width: 768px !important; }
  58. }
  59. @media (min-width: 992px) and (max-width: 1200px) { /*Large lg*/
  60. .markdown-theme { width: 992px !important; }
  61. }
  62. @media (min-width: 1200px) and (max-width: 1400px) { /*Extra large xl*/
  63. .markdown-theme { width: 1200px !important; }
  64. }
  65. @media (min-width: 1400px) { /*Extra extra large xxl*/
  66. .markdown-theme { width: 1400px !important; }
  67. }
  68. ._width-full {
  69. box-sizing: border-box;
  70. width: 100% !important;
  71. max-width: 100% !important;
  72. min-width: 100% !important;
  73. border: none;
  74. padding: 20px !important;
  75. margin: 0 !important;
  76. }
  77. ._width-wide {
  78. width: 1400px !important;
  79. }
  80. ._width-large {
  81. width: 1200px !important;
  82. }
  83. ._width-medium {
  84. width: 992px !important;
  85. }
  86. ._width-small {
  87. width: 768px !important;
  88. }
  89. ._width-tiny {
  90. width: 576px !important;
  91. }
  92. /*---------------------------------------------------------------------------*/
  93. /*toc*/
  94. @media (prefers-color-scheme: light) {
  95. body {
  96. --toc-link: #0969da;
  97. --toc-delimiter: #e1e4e8;
  98. }
  99. }
  100. @media (prefers-color-scheme: dark) {
  101. body {
  102. --toc-link: #58a6ff;
  103. --toc-delimiter: #30363d;
  104. }
  105. }
  106. body {
  107. display: flex;
  108. }
  109. body._toc-left { padding-left: 300px !important; }
  110. body._toc-right { padding-right: 300px !important; }
  111. #_toc {
  112. position: fixed;
  113. top: 0; bottom: 0; left: 0;
  114. width: 299px;
  115. height: 100%;
  116. border-right: 1px solid var(--toc-delimiter);
  117. overflow-y: auto;
  118. overflow-x: hidden;
  119. }
  120. #_toc ._ul {
  121. padding: 0 0 0 20px !important;
  122. margin: 0 !important;
  123. }
  124. #_toc ._ul a {
  125. border: 0 !important;
  126. padding: 5px 10px !important;
  127. display: block !important;
  128. }
  129. #_toc > ._ul {
  130. padding: 0 0 0 10px !important;
  131. }
  132. /*light*/
  133. ._theme-almond #_toc,
  134. ._theme-awsm #_toc,
  135. ._theme-axist #_toc,
  136. ._theme-bullframe #_toc,
  137. ._theme-kacit #_toc,
  138. ._theme-latex #_toc,
  139. ._theme-mini #_toc,
  140. ._theme-sakura #_toc,
  141. ._theme-style-sans #_toc,
  142. ._theme-style-serif #_toc,
  143. ._theme-tacit #_toc,
  144. ._theme-water #_toc {
  145. border-right: 1px solid #e1e4e8;
  146. }
  147. /*dark*/
  148. ._theme-github-dark #_toc,
  149. ._theme-retro #_toc,
  150. ._theme-sakura-vader #_toc,
  151. ._theme-water-dark #_toc {
  152. border-right: 1px solid #30363d;
  153. }
  154. /*github*/
  155. ._theme-github #_toc { /*.markdown-body {*/
  156. background-color: var(--color-canvas-default);
  157. font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
  158. font-size: 16px;
  159. line-height: 1.5;
  160. word-wrap: break-word;
  161. }
  162. ._theme-github #_toc a { /*.markdown-body a {*/
  163. background-color: transparent;
  164. color: var(--toc-link);
  165. text-decoration: none;
  166. }
  167. ._theme-github #_toc a:hover {
  168. text-decoration: underline;
  169. }
  170. /*github-dark*/
  171. ._theme-github-dark #_toc { /*.markdown-body {*/
  172. background-color: #0d1117;
  173. font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
  174. font-size: 16px;
  175. line-height: 1.5;
  176. word-wrap: break-word;
  177. }
  178. ._theme-github-dark #_toc a { /*.markdown-body a {*/
  179. background-color: transparent;
  180. color: #58a6ff;
  181. text-decoration: none;
  182. }
  183. ._theme-github-dark #_toc a:hover {
  184. text-decoration: underline;
  185. }
  186. /*---------------------------------------------------------------------------*/
  187. /*scrollbar*/
  188. /*auto*/
  189. @media (prefers-color-scheme: light) {
  190. body {
  191. --scrollbar-track: #efefef;
  192. --scrollbar-thumb: #d5d5d5;
  193. --scrollbar-thumb-hover: #c4c4c4;
  194. }
  195. }
  196. @media (prefers-color-scheme: dark) {
  197. body {
  198. --scrollbar-track: #424242;
  199. --scrollbar-thumb: #686868;
  200. --scrollbar-thumb-hover: #7b7b7b;
  201. }
  202. }
  203. ::-webkit-scrollbar,
  204. ::-webkit-scrollbar-corner {
  205. height: 10px;
  206. width: 10px;
  207. }
  208. ::-webkit-scrollbar-track {
  209. background: var(--scrollbar-track);
  210. border-radius: 6px;
  211. }
  212. ::-webkit-scrollbar-thumb {
  213. background: var(--scrollbar-thumb);
  214. border-radius: 6px;
  215. }
  216. ::-webkit-scrollbar-thumb:hover {
  217. background: var(--scrollbar-thumb-hover);
  218. }
  219. /*light*/
  220. ._theme-almond::-webkit-scrollbar-track, ._theme-almond *::-webkit-scrollbar-track,
  221. ._theme-awsm::-webkit-scrollbar-track, ._theme-awsm *::-webkit-scrollbar-track,
  222. ._theme-axist::-webkit-scrollbar-track, ._theme-axist *::-webkit-scrollbar-track,
  223. ._theme-bullframe::-webkit-scrollbar-track, ._theme-bullframe *::-webkit-scrollbar-track,
  224. ._theme-kacit::-webkit-scrollbar-track, ._theme-kacit *::-webkit-scrollbar-track,
  225. ._theme-latex::-webkit-scrollbar-track, ._theme-latex *::-webkit-scrollbar-track,
  226. ._theme-mini::-webkit-scrollbar-track, ._theme-mini *::-webkit-scrollbar-track,
  227. ._theme-sakura::-webkit-scrollbar-track, ._theme-sakura *::-webkit-scrollbar-track,
  228. ._theme-style-sans::-webkit-scrollbar-track, ._theme-style-sans *::-webkit-scrollbar-track,
  229. ._theme-style-serif::-webkit-scrollbar-track, ._theme-style-serif *::-webkit-scrollbar-track,
  230. ._theme-tacit::-webkit-scrollbar-track, ._theme-tacit *::-webkit-scrollbar-track,
  231. ._theme-water::-webkit-scrollbar-track, ._theme-water *::-webkit-scrollbar-track
  232. {
  233. background: #efefef;
  234. }
  235. ._theme-almond::-webkit-scrollbar-thumb, ._theme-almond *::-webkit-scrollbar-thumb,
  236. ._theme-awsm::-webkit-scrollbar-thumb, ._theme-awsm *::-webkit-scrollbar-thumb,
  237. ._theme-axist::-webkit-scrollbar-thumb, ._theme-axist *::-webkit-scrollbar-thumb,
  238. ._theme-bullframe::-webkit-scrollbar-thumb, ._theme-bullframe *::-webkit-scrollbar-thumb,
  239. ._theme-kacit::-webkit-scrollbar-thumb, ._theme-kacit *::-webkit-scrollbar-thumb,
  240. ._theme-latex::-webkit-scrollbar-thumb, ._theme-latex *::-webkit-scrollbar-thumb,
  241. ._theme-mini::-webkit-scrollbar-thumb, ._theme-mini *::-webkit-scrollbar-thumb,
  242. ._theme-sakura::-webkit-scrollbar-thumb, ._theme-sakura *::-webkit-scrollbar-thumb,
  243. ._theme-style-sans::-webkit-scrollbar-thumb, ._theme-style-sans *::-webkit-scrollbar-thumb,
  244. ._theme-style-serif::-webkit-scrollbar-thumb, ._theme-style-serif *::-webkit-scrollbar-thumb,
  245. ._theme-tacit::-webkit-scrollbar-thumb, ._theme-tacit *::-webkit-scrollbar-thumb,
  246. ._theme-water::-webkit-scrollbar-thumb, ._theme-water *::-webkit-scrollbar-thumb
  247. {
  248. background: #d5d5d5;
  249. }
  250. ._theme-almond::-webkit-scrollbar-thumb:hover, ._theme-almond *::-webkit-scrollbar-thumb:hover,
  251. ._theme-awsm::-webkit-scrollbar-thumb:hover, ._theme-awsm *::-webkit-scrollbar-thumb:hover,
  252. ._theme-axist::-webkit-scrollbar-thumb:hover, ._theme-axist *::-webkit-scrollbar-thumb:hover,
  253. ._theme-bullframe::-webkit-scrollbar-thumb:hover, ._theme-bullframe *::-webkit-scrollbar-thumb:hover,
  254. ._theme-kacit::-webkit-scrollbar-thumb:hover, ._theme-kacit *::-webkit-scrollbar-thumb:hover,
  255. ._theme-latex::-webkit-scrollbar-thumb:hover, ._theme-latex *::-webkit-scrollbar-thumb:hover,
  256. ._theme-mini::-webkit-scrollbar-thumb:hover, ._theme-mini *::-webkit-scrollbar-thumb:hover,
  257. ._theme-sakura::-webkit-scrollbar-thumb:hover, ._theme-sakura *::-webkit-scrollbar-thumb:hover,
  258. ._theme-style-sans::-webkit-scrollbar-thumb:hover, ._theme-style-sans *::-webkit-scrollbar-thumb:hover,
  259. ._theme-style-serif::-webkit-scrollbar-thumb:hover, ._theme-style-serif *::-webkit-scrollbar-thumb:hover,
  260. ._theme-tacit::-webkit-scrollbar-thumb:hover, ._theme-tacit *::-webkit-scrollbar-thumb:hover,
  261. ._theme-water::-webkit-scrollbar-thumb:hover, ._theme-water *::-webkit-scrollbar-thumb:hover
  262. {
  263. background: #c4c4c4;
  264. }
  265. /*dark*/
  266. ._theme-github-dark::-webkit-scrollbar-track, ._theme-github-dark *::-webkit-scrollbar-track,
  267. ._theme-retro::-webkit-scrollbar-track, ._theme-retro *::-webkit-scrollbar-track,
  268. ._theme-sakura-vader::-webkit-scrollbar-track, ._theme-sakura-vader *::-webkit-scrollbar-track
  269. {
  270. background: #424242;
  271. }
  272. ._theme-github-dark::-webkit-scrollbar-thumb, ._theme-github-dark *::-webkit-scrollbar-thumb,
  273. ._theme-retro::-webkit-scrollbar-thumb, ._theme-retro *::-webkit-scrollbar-thumb,
  274. ._theme-sakura-vader::-webkit-scrollbar-thumb, ._theme-sakura-vader *::-webkit-scrollbar-thumb
  275. {
  276. background: #686868;
  277. }
  278. ._theme-github-dark::-webkit-scrollbar-thumb:hover, ._theme-github-dark *::-webkit-scrollbar-thumb:hover,
  279. ._theme-retro::-webkit-scrollbar-thumb:hover, ._theme-retro *::-webkit-scrollbar-thumb:hover,
  280. ._theme-sakura-vader::-webkit-scrollbar-thumb:hover, ._theme-sakura-vader *::-webkit-scrollbar-thumb:hover
  281. {
  282. background: #7b7b7b;
  283. }
  284. /*---------------------------------------------------------------------------*/
  285. /*anchor link*/
  286. /*github theme styles follows*/
  287. .markdown-theme .octicon {
  288. display: inline-block;
  289. fill: currentColor;
  290. vertical-align: text-bottom;
  291. overflow: visible !important;
  292. }
  293. .markdown-theme .anchor {
  294. float: left;
  295. padding-right: 4px;
  296. margin-left: -20px;
  297. line-height: 1;
  298. }
  299. .markdown-theme .anchor:focus {
  300. outline: none;
  301. }
  302. .markdown-theme h1:hover .anchor .octicon-link:before,
  303. .markdown-theme h2:hover .anchor .octicon-link:before,
  304. .markdown-theme h3:hover .anchor .octicon-link:before,
  305. .markdown-theme h4:hover .anchor .octicon-link:before,
  306. .markdown-theme h5:hover .anchor .octicon-link:before,
  307. .markdown-theme h6:hover .anchor .octicon-link:before {
  308. width: 16px;
  309. height: 16px;
  310. content: ' ';
  311. display: inline-block;
  312. background-color: currentColor;
  313. -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>");
  314. mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>");
  315. }
  316. .markdown-theme h1 .octicon-link,
  317. .markdown-theme h2 .octicon-link,
  318. .markdown-theme h3 .octicon-link,
  319. .markdown-theme h4 .octicon-link,
  320. .markdown-theme h5 .octicon-link,
  321. .markdown-theme h6 .octicon-link {
  322. vertical-align: middle;
  323. visibility: hidden;
  324. }
  325. .markdown-theme h1:hover .anchor,
  326. .markdown-theme h2:hover .anchor,
  327. .markdown-theme h3:hover .anchor,
  328. .markdown-theme h4:hover .anchor,
  329. .markdown-theme h5:hover .anchor,
  330. .markdown-theme h6:hover .anchor {
  331. text-decoration: none;
  332. }
  333. .markdown-theme h1:hover .anchor .octicon-link,
  334. .markdown-theme h2:hover .anchor .octicon-link,
  335. .markdown-theme h3:hover .anchor .octicon-link,
  336. .markdown-theme h4:hover .anchor .octicon-link,
  337. .markdown-theme h5:hover .anchor .octicon-link,
  338. .markdown-theme h6:hover .anchor .octicon-link {
  339. visibility: visible;
  340. }
  341. /*auto*/
  342. @media (prefers-color-scheme: light) {
  343. .markdown-theme {
  344. --anchor: #24292f;
  345. }
  346. }
  347. @media (prefers-color-scheme: dark) {
  348. .markdown-theme {
  349. --anchor: #c9d1d9;
  350. }
  351. }
  352. .markdown-theme .octicon-link {
  353. color: var(--anchor);
  354. }
  355. /*light*/
  356. ._theme-almond .octicon-link,
  357. ._theme-awsm .octicon-link,
  358. ._theme-axist .octicon-link,
  359. ._theme-bullframe .octicon-link,
  360. ._theme-kacit .octicon-link,
  361. ._theme-latex .octicon-link,
  362. ._theme-mini .octicon-link,
  363. ._theme-sakura .octicon-link,
  364. ._theme-style-sans .octicon-link,
  365. ._theme-style-serif .octicon-link,
  366. ._theme-tacit .octicon-link,
  367. ._theme-water .octicon-link {
  368. color: #24292f;
  369. }
  370. /*dark*/
  371. ._theme-github-dark .octicon-link,
  372. ._theme-retro .octicon-link,
  373. ._theme-sakura-vader .octicon-link,
  374. ._theme-water-dark .octicon-link {
  375. color: #c9d1d9;
  376. }
  377. /*fix hover*/
  378. .markdown-theme .anchor {
  379. border-bottom: 0;
  380. }
  381. /*fix position*/
  382. ._theme-almond .octicon,
  383. ._theme-awsm .octicon,
  384. ._theme-axist .octicon,
  385. ._theme-kacit .octicon,
  386. ._theme-mini .octicon,
  387. ._theme-new .octicon,
  388. ._theme-sakura .octicon,
  389. ._theme-sakura-vader .octicon,
  390. ._theme-semantic .octicon,
  391. ._theme-simplecss .octicon,
  392. ._theme-stylize .octicon,
  393. ._theme-superstylin .octicon {
  394. line-height: 1px;
  395. }
  396. ._theme-markdown-splendor .anchor,
  397. ._theme-markdown-splendor .octicon {
  398. padding: 0 !important;
  399. margin: 0 0 0 -10px !important;
  400. }
  401. ._theme-markdown-splendor h3 .octicon,
  402. ._theme-markdown-splendor h4 .octicon,
  403. ._theme-markdown-splendor h5 .octicon,
  404. ._theme-markdown-splendor h6 .octicon
  405. {
  406. position: relative;
  407. top: 4px;
  408. }
  409. ._theme-no-class h1 .octicon,
  410. ._theme-no-class h2 .octicon,
  411. ._theme-no-class h3 .octicon {
  412. position: relative;
  413. top: -5px;
  414. }
  415. ._theme-pico h1 .octicon,
  416. ._theme-pico h2 .octicon {
  417. position: relative;
  418. top: 5px;
  419. }
  420. ._theme-superstylin h1 .octicon {
  421. position: relative;
  422. top: -5px;
  423. }
  424. ._theme-writ .octicon {
  425. line-height: 0;
  426. }
  427. ._theme-writ h2 .octicon {
  428. position: relative;
  429. top: 4px;
  430. }
  431. ._theme-writ h3 .octicon {
  432. position: relative;
  433. top: 10px;
  434. }
  435. /*---------------------------------------------------------------------------*/
  436. /*theme fixes*/
  437. /*code block*/
  438. ._theme-retro pre,
  439. ._theme-sakura-vader pre,
  440. ._theme-water-dark pre {
  441. background-color: #161b22 !important;
  442. }
  443. /*github-dark*/
  444. ._theme-github-dark {
  445. background-color:#0d1117;
  446. }
  447. ._theme-github-dark .markdown-body {
  448. border: 1px solid #30363d;
  449. }
  450. /*superstylin - fix lists*/
  451. ._theme-superstylin ul ul,
  452. ._theme-superstylin ol ol {
  453. padding-left: 40px;
  454. }
  455. ._theme-superstylin ul li p,
  456. ._theme-superstylin ol li p {
  457. display: inline-block;
  458. margin-bottom: 0;
  459. }
  460. /*markdown-air - fix images*/
  461. ._theme-markdown-air img {
  462. border-radius: 0;
  463. width: auto;
  464. height: auto;
  465. }
  466. /*---------------------------------------------------------------------------*/
  467. /*misc*/
  468. /*mermaid text bold effect*/
  469. svg[id^=mermaid] text {
  470. stroke: none !important;
  471. }
  472. /*emojione*/
  473. .emojione {
  474. /* Emoji Sizing */
  475. font-size: inherit;
  476. height: 3ex;
  477. width: 3.1ex;
  478. min-height: 20px;
  479. min-width: 20px;
  480. /* Inline alignment adjust the margins */
  481. display: inline-block;
  482. margin: -.2ex .15em .2ex;
  483. line-height: normal;
  484. vertical-align: middle;
  485. }
  486. img.emojione {
  487. /* prevent img stretch */
  488. width: auto;
  489. }