index.css 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  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. #_html, #_toc {
  11. word-wrap: break-word;
  12. visibility: hidden;
  13. }
  14. /*---------------------------------------------------------------------------*/
  15. /*print*/
  16. @media print {
  17. /*avoid page breaks immediately after these tags*/
  18. h1, h2, h3, h4 {
  19. break-after: avoid;
  20. }
  21. /*avoid page breaks within these tags*/
  22. pre, blockquote, summary, table, math, svg {
  23. break-inside: avoid;
  24. }
  25. /*hide sidebar*/
  26. html body._toc-left { padding-left: 0px !important; }
  27. html body._toc-right { padding-right: 0px !important; }
  28. #_toc { display: none; }
  29. /*fix github themes auto*/
  30. body._theme-github .markdown-body { border: 0; padding: 20px; }
  31. body._theme-github-dark .markdown-body { border: 0; padding: 20px; }
  32. /*wrap long code lines*/
  33. pre, pre code, pre[class*=language-], code[class*=language-]
  34. {
  35. word-wrap: break-word !important;
  36. white-space: pre-wrap !important;
  37. }
  38. }
  39. /*---------------------------------------------------------------------------*/
  40. /*raw markdown view*/
  41. pre#_markdown,
  42. #_markdown > pre > code {
  43. word-wrap: break-word;
  44. white-space: pre-wrap;
  45. }
  46. /*---------------------------------------------------------------------------*/
  47. /*all other themes*/
  48. .markdown-theme {
  49. box-sizing: border-box;
  50. max-width: 100% !important;
  51. padding: 20px !important;
  52. margin: 0 auto !important;
  53. }
  54. .markdown-theme pre,
  55. .markdown-theme pre code {
  56. overflow: auto;
  57. overflow-x: auto;
  58. overflow-y: auto;
  59. }
  60. @media (max-width: 576px) { /*Extra small - none*/
  61. .markdown-theme { width: auto !important; }
  62. }
  63. @media (min-width: 576px) and (max-width: 768px) { /*Small sm*/
  64. .markdown-theme { width: 576px !important; }
  65. }
  66. @media (min-width: 768px) and (max-width: 992px) { /*Medium md*/
  67. .markdown-theme { width: 768px !important; }
  68. }
  69. @media (min-width: 992px) and (max-width: 1200px) { /*Large lg*/
  70. .markdown-theme { width: 992px !important; }
  71. }
  72. @media (min-width: 1200px) and (max-width: 1400px) { /*Extra large xl*/
  73. .markdown-theme { width: 1200px !important; }
  74. }
  75. @media (min-width: 1400px) { /*Extra extra large xxl*/
  76. .markdown-theme { width: 1400px !important; }
  77. }
  78. ._width-full,
  79. ._width-wide,
  80. ._width-large,
  81. ._width-medium,
  82. ._width-small,
  83. ._width-tiny {
  84. box-sizing: border-box;
  85. border: none !important;
  86. padding: 20px !important;
  87. min-width: auto !important;
  88. max-width: none !important;
  89. }
  90. ._width-full {
  91. width: 100% !important;
  92. margin: 0 !important;
  93. }
  94. ._width-wide {
  95. width: 1400px !important;
  96. }
  97. ._width-large {
  98. width: 1200px !important;
  99. }
  100. ._width-medium {
  101. width: 992px !important;
  102. }
  103. ._width-small {
  104. width: 768px !important;
  105. }
  106. ._width-tiny {
  107. width: 576px !important;
  108. }
  109. /*---------------------------------------------------------------------------*/
  110. /*toc*/
  111. @media (prefers-color-scheme: light) {
  112. body {
  113. --toc-delimiter: #e1e4e8;
  114. }
  115. }
  116. @media (prefers-color-scheme: dark) {
  117. body {
  118. --toc-delimiter: #30363d;
  119. }
  120. }
  121. body {
  122. display: flex;
  123. }
  124. body._toc-left { padding-left: 300px !important; }
  125. body._toc-right { padding-right: 300px !important; }
  126. #_toc {
  127. position: fixed;
  128. top: 0; bottom: 0; left: 0;
  129. width: 299px;
  130. height: 100%;
  131. border-right: 1px solid var(--toc-delimiter);
  132. overflow-y: auto;
  133. overflow-x: hidden;
  134. }
  135. #_toc ._ul {
  136. padding-left: 20px !important;
  137. margin: 0 !important;
  138. }
  139. #_toc > ._ul {
  140. padding: 0 0 0 10px !important;
  141. }
  142. #_toc > ._ul:first-child {
  143. padding-top: 15px !important;
  144. }
  145. #_toc > ._ul:last-child {
  146. padding-bottom: 15px !important;
  147. }
  148. #_toc ._ul a {
  149. border: 0 !important;
  150. padding: 5px 10px !important;
  151. display: block !important;
  152. }
  153. ._color-light #_toc {
  154. border-right: 1px solid #e1e4e8;
  155. }
  156. ._color-dark #_toc {
  157. border-right: 1px solid #30363d;
  158. }
  159. /*---------------------------------------------------------------------------*/
  160. /*scrollbar*/
  161. /*auto*/
  162. @media (prefers-color-scheme: light) {
  163. body {
  164. --scrollbar-track: #efefef;
  165. --scrollbar-thumb: #d5d5d5;
  166. --scrollbar-thumb-hover: #c4c4c4;
  167. }
  168. }
  169. @media (prefers-color-scheme: dark) {
  170. body {
  171. --scrollbar-track: #424242;
  172. --scrollbar-thumb: #686868;
  173. --scrollbar-thumb-hover: #7b7b7b;
  174. }
  175. }
  176. ::-webkit-scrollbar,
  177. ::-webkit-scrollbar-corner {
  178. height: 10px;
  179. width: 10px;
  180. }
  181. ::-webkit-scrollbar-track {
  182. background: var(--scrollbar-track);
  183. border-radius: 6px;
  184. }
  185. ::-webkit-scrollbar-thumb {
  186. background: var(--scrollbar-thumb);
  187. border-radius: 6px;
  188. }
  189. ::-webkit-scrollbar-thumb:hover {
  190. background: var(--scrollbar-thumb-hover);
  191. }
  192. ._color-light::-webkit-scrollbar-track, ._color-light *::-webkit-scrollbar-track {
  193. background: #efefef;
  194. }
  195. ._color-light::-webkit-scrollbar-thumb, ._color-light *::-webkit-scrollbar-thumb {
  196. background: #d5d5d5;
  197. }
  198. ._color-light::-webkit-scrollbar-thumb:hover, ._color-light *::-webkit-scrollbar-thumb:hover {
  199. background: #c4c4c4;
  200. }
  201. /*dark*/
  202. ._color-dark::-webkit-scrollbar-track, ._color-dark *::-webkit-scrollbar-track {
  203. background: #424242;
  204. }
  205. ._color-dark::-webkit-scrollbar-thumb, ._color-dark *::-webkit-scrollbar-thumb {
  206. background: #686868;
  207. }
  208. ._color-dark::-webkit-scrollbar-thumb:hover, ._color-dark *::-webkit-scrollbar-thumb:hover {
  209. background: #7b7b7b;
  210. }
  211. /*---------------------------------------------------------------------------*/
  212. /*anchor link*/
  213. /*github theme styles follows*/
  214. .markdown-theme .octicon {
  215. display: inline-block;
  216. fill: currentColor;
  217. vertical-align: text-bottom;
  218. overflow: visible !important;
  219. }
  220. .markdown-theme .anchor {
  221. float: left;
  222. padding-right: 4px;
  223. margin-left: -20px;
  224. line-height: 1;
  225. }
  226. .markdown-theme .anchor:focus {
  227. outline: none;
  228. }
  229. .markdown-theme h1:hover .anchor .octicon-link:before,
  230. .markdown-theme h2:hover .anchor .octicon-link:before,
  231. .markdown-theme h3:hover .anchor .octicon-link:before,
  232. .markdown-theme h4:hover .anchor .octicon-link:before,
  233. .markdown-theme h5:hover .anchor .octicon-link:before,
  234. .markdown-theme h6:hover .anchor .octicon-link:before {
  235. width: 16px;
  236. height: 16px;
  237. content: ' ';
  238. display: inline-block;
  239. background-color: currentColor;
  240. mask-image: url("chrome-extension://__MSG_@@extension_id__/content/anchor.svg");
  241. }
  242. @supports (-moz-appearance: none) {
  243. .markdown-theme h1:hover .anchor .octicon-link:before,
  244. .markdown-theme h2:hover .anchor .octicon-link:before,
  245. .markdown-theme h3:hover .anchor .octicon-link:before,
  246. .markdown-theme h4:hover .anchor .octicon-link:before,
  247. .markdown-theme h5:hover .anchor .octicon-link:before,
  248. .markdown-theme h6:hover .anchor .octicon-link:before {
  249. mask-image: url("moz-extension://__MSG_@@extension_id__/content/anchor.svg");
  250. }
  251. }
  252. .markdown-theme h1 .octicon-link,
  253. .markdown-theme h2 .octicon-link,
  254. .markdown-theme h3 .octicon-link,
  255. .markdown-theme h4 .octicon-link,
  256. .markdown-theme h5 .octicon-link,
  257. .markdown-theme h6 .octicon-link {
  258. vertical-align: middle;
  259. visibility: hidden;
  260. }
  261. .markdown-theme h1:hover .anchor,
  262. .markdown-theme h2:hover .anchor,
  263. .markdown-theme h3:hover .anchor,
  264. .markdown-theme h4:hover .anchor,
  265. .markdown-theme h5:hover .anchor,
  266. .markdown-theme h6:hover .anchor {
  267. text-decoration: none;
  268. }
  269. .markdown-theme h1:hover .anchor .octicon-link,
  270. .markdown-theme h2:hover .anchor .octicon-link,
  271. .markdown-theme h3:hover .anchor .octicon-link,
  272. .markdown-theme h4:hover .anchor .octicon-link,
  273. .markdown-theme h5:hover .anchor .octicon-link,
  274. .markdown-theme h6:hover .anchor .octicon-link {
  275. visibility: visible;
  276. }
  277. /*auto*/
  278. @media (prefers-color-scheme: light) {
  279. .markdown-theme {
  280. --anchor: #24292f;
  281. }
  282. }
  283. @media (prefers-color-scheme: dark) {
  284. .markdown-theme {
  285. --anchor: #c9d1d9;
  286. }
  287. }
  288. .markdown-theme .octicon-link {
  289. color: var(--anchor);
  290. }
  291. ._color-light .octicon-link {
  292. color: #24292f;
  293. }
  294. ._color-dark .octicon-link {
  295. color: #c9d1d9;
  296. }
  297. /*---------------------------------------------------------------------------*/
  298. /*misc*/
  299. /*resize*/
  300. pre:has(> code.mermaid) {
  301. resize: vertical;
  302. }
  303. /*pan/zoom*/
  304. .markdown-body code.mermaid,
  305. .markdown-theme code.mermaid {
  306. display: block;
  307. height: 100%;
  308. }
  309. /*mermaid text bold effect*/
  310. svg[id^=mermaid] text {
  311. stroke: none !important;
  312. }
  313. /*emojione*/
  314. .emojione {
  315. /* Emoji Sizing */
  316. font-size: inherit;
  317. height: 3ex;
  318. width: 3.1ex;
  319. min-height: 20px;
  320. min-width: 20px;
  321. /* Inline alignment adjust the margins */
  322. display: inline-block;
  323. margin: -.2ex .15em .2ex;
  324. line-height: normal;
  325. vertical-align: middle;
  326. }
  327. img.emojione {
  328. /* prevent img stretch */
  329. width: auto;
  330. }