themes.css 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. /*---------------------------------------------------------------------------*/
  2. /*github theme*/
  3. .markdown-body {
  4. overflow: auto;
  5. min-width: 830px;
  6. max-width: 830px;
  7. padding: 32px;
  8. margin: 20px auto !important;
  9. }
  10. .markdown-body #_html>*:first-child {
  11. margin-top: 0 !important;
  12. }
  13. .markdown-body #_html>*:last-child {
  14. margin-bottom: 0 !important;
  15. }
  16. .markdown-body img {
  17. background-color: transparent;
  18. }
  19. /*---------------------------------------------------------------------------*/
  20. /*toc*/
  21. /*github*/
  22. ._theme-github #_toc { /*.markdown-body {*/
  23. background-color: var(--color-canvas-default);
  24. font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
  25. font-size: 16px;
  26. line-height: 1.5;
  27. word-wrap: break-word;
  28. }
  29. ._theme-github #_toc a { /*.markdown-body a {*/
  30. background-color: transparent;
  31. color: #0969da;
  32. text-decoration: none;
  33. }
  34. ._theme-github #_toc a:hover {
  35. text-decoration: underline;
  36. }
  37. /*github-dark*/
  38. ._theme-github-dark #_toc { /*.markdown-body {*/
  39. background-color: #0d1117;
  40. font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
  41. font-size: 16px;
  42. line-height: 1.5;
  43. word-wrap: break-word;
  44. }
  45. ._theme-github-dark #_toc a { /*.markdown-body a {*/
  46. background-color: transparent;
  47. color: #58a6ff;
  48. text-decoration: none;
  49. }
  50. ._theme-github-dark #_toc a:hover {
  51. text-decoration: underline;
  52. }
  53. /*---------------------------------------------------------------------------*/
  54. /*anchor link*/
  55. /*fix hover*/
  56. .markdown-theme .anchor {
  57. border-bottom: 0;
  58. }
  59. /*fix position*/
  60. ._theme-almond .octicon,
  61. ._theme-awsm .octicon,
  62. ._theme-axist .octicon,
  63. ._theme-kacit .octicon,
  64. ._theme-mini .octicon,
  65. ._theme-new .octicon,
  66. ._theme-sakura .octicon,
  67. ._theme-sakura-vader .octicon,
  68. ._theme-semantic .octicon,
  69. ._theme-simple .octicon,
  70. ._theme-stylize .octicon,
  71. ._theme-superstylin .octicon {
  72. line-height: 1px;
  73. }
  74. ._theme-splendor .anchor,
  75. ._theme-splendor .octicon {
  76. padding: 0 !important;
  77. margin: 0 0 0 -10px !important;
  78. }
  79. ._theme-splendor h3 .octicon,
  80. ._theme-splendor h4 .octicon,
  81. ._theme-splendor h5 .octicon,
  82. ._theme-splendor h6 .octicon
  83. {
  84. position: relative;
  85. top: 4px;
  86. }
  87. ._theme-no-class h1 .octicon,
  88. ._theme-no-class h2 .octicon,
  89. ._theme-no-class h3 .octicon {
  90. position: relative;
  91. top: -5px;
  92. }
  93. ._theme-pico h1 .octicon,
  94. ._theme-pico h2 .octicon {
  95. position: relative;
  96. top: 5px;
  97. }
  98. ._theme-superstylin h1 .octicon {
  99. position: relative;
  100. top: -5px;
  101. }
  102. ._theme-writ .octicon {
  103. line-height: 0;
  104. }
  105. ._theme-writ h2 .octicon {
  106. position: relative;
  107. top: 4px;
  108. }
  109. ._theme-writ h3 .octicon {
  110. position: relative;
  111. top: 10px;
  112. }
  113. /*---------------------------------------------------------------------------*/
  114. /*task list checkboxes*/
  115. ._theme-awsm input[type=checkbox],
  116. ._theme-kacit input[type=checkbox],
  117. ._theme-no-class input[type=checkbox],
  118. ._theme-semantic input[type=checkbox],
  119. ._theme-tacit input[type=checkbox],
  120. ._theme-vanilla input[type=checkbox] {
  121. display: inline-block !important;
  122. box-sizing: border-box !important;
  123. padding: 0 !important;
  124. margin: 0 !important;
  125. }
  126. ._theme-bullframe input[type=checkbox],
  127. ._theme-superstylin input[type=checkbox] {
  128. position: relative;
  129. top: 3px;
  130. }
  131. ._theme-mini input[type=checkbox] {
  132. position: relative;
  133. top: 4px;
  134. }
  135. ._theme-no-class input[type=checkbox] {
  136. width: auto !important;
  137. }
  138. ._theme-vanilla input[type=checkbox] {
  139. appearance: auto !important;
  140. }
  141. /*---------------------------------------------------------------------------*/
  142. /*fix auto dark*/
  143. /*set default background color*/
  144. ._theme-air,
  145. ._theme-marx,
  146. ._theme-modest,
  147. ._theme-splendor,
  148. ._theme-stylize,
  149. ._theme-writ {
  150. background-color: #fff;
  151. }
  152. /*set default text and link color*/
  153. ._theme-semantic { color: #000; }
  154. ._theme-semantic a { color: #0000ff; }
  155. ._theme-semantic a:visited { color: #800080; }
  156. ._theme-semantic a:active { color: #ff0000; }
  157. /*---------------------------------------------------------------------------*/
  158. /*mermaid*/
  159. ._theme-mini code { line-height: normal; }
  160. ._theme-tacit * { max-width: none; }
  161. ._theme-kacit * { max-width: none; }
  162. /*---------------------------------------------------------------------------*/
  163. /*panzoom*/
  164. ._theme-mini pre > code.mermaid { padding: 0; }
  165. ._theme-superstylin pre > code.mermaid { background: none; padding: 0; margin: 0; border-radius: 0; }
  166. ._theme-superstylin pre:has(> code.mermaid) { background: #f6f6f6; padding: 1rem; margin-bottom: 1.563rem; border-radius: 10px; }
  167. ._theme-water pre > code.mermaid { padding: 0; background: none; border-radius: 0; }
  168. ._theme-water pre:has(> code.mermaid) { padding: 10px; background: #efefef; border-radius: 6px; }
  169. ._theme-water-dark pre > code.mermaid { padding: 0; background: none; border-radius: 0; }
  170. ._theme-water-dark pre:has(> code.mermaid) { padding: 10px; background: #161f27; border-radius: 6px; }
  171. @media (prefers-color-scheme: dark) {
  172. ._theme-superstylin pre:has(> code.mermaid) { background: #595859; }
  173. }
  174. /*---------------------------------------------------------------------------*/
  175. /*theme fixes*/
  176. @media (prefers-color-scheme: dark) {
  177. /*no-class - fix code block*/
  178. ._theme-no-class pre {
  179. background: #303030;
  180. }
  181. /*no-class - fix table*/
  182. ._theme-no-class tbody tr:nth-of-type(odd) {
  183. background-color: #303030;
  184. }
  185. }
  186. /*github*/
  187. ._theme-github {
  188. background-color: #fff;
  189. }
  190. ._theme-github > pre {
  191. color: #000;
  192. }
  193. ._theme-github .markdown-body {
  194. border: 1px solid #e1e4e8;
  195. }
  196. /*github-dark*/
  197. ._theme-github-dark {
  198. background-color: #0d1117;
  199. }
  200. ._theme-github-dark > pre {
  201. color: #fff;
  202. }
  203. ._theme-github-dark a {
  204. color: #4493f8 !important;
  205. }
  206. ._theme-github-dark .markdown-body {
  207. border: 1px solid #30363d;
  208. }
  209. /*markdown-air - fix images*/
  210. ._theme-air img {
  211. border-radius: 0;
  212. width: auto;
  213. height: auto;
  214. }
  215. /*axist - fix lists*/
  216. ._theme-axist ul li p {
  217. display: inline-block;
  218. }
  219. /*axist - fix fenced code blocks*/
  220. ._theme-axist pre::after {
  221. content: none;
  222. }
  223. /*kacit, tacit - fix mermaid diagrams size*/
  224. ._theme-kacit pre code,
  225. ._theme-tacit pre code {
  226. display: block;
  227. }
  228. /*mini - fix table*/
  229. ._theme-mini table {
  230. overflow-x: clip !important;
  231. max-height: none !important;
  232. }
  233. /*mini - fix special symbols*/
  234. ._theme-mini blockquote::before {
  235. content: "“";
  236. }
  237. ._theme-mini [type=checkbox]:checked:before {
  238. content: "✓";
  239. top: -3px;
  240. }
  241. /*simple - fix body width*/
  242. ._theme-simple {
  243. display: block;
  244. }
  245. /*style-sans, style-serif - fix inline code*/
  246. ._theme-style-sans *:not(pre) > code::before,
  247. ._theme-style-sans *:not(pre) > code::after,
  248. ._theme-style-serif *:not(pre) > code::before,
  249. ._theme-style-serif *:not(pre) > code::after {
  250. content: '';
  251. padding-left: 5px;
  252. padding-right: 5px;
  253. }
  254. /*superstylin - fix lists*/
  255. ._theme-superstylin ul ul,
  256. ._theme-superstylin ol ol {
  257. padding-left: 40px;
  258. }
  259. ._theme-superstylin ul li p,
  260. ._theme-superstylin ol li p {
  261. display: inline-block;
  262. margin-bottom: 0;
  263. }
  264. /*vanilla - fix pre margin*/
  265. ._theme-vanilla pre {
  266. margin-bottom: 10px;
  267. }