themes.css 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  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 pan/zoom*/
  159. ._theme-mini pre > code.mermaid { padding: 0; }
  160. ._theme-superstylin pre > code.mermaid { background: none; padding: 0; margin: 0; border-radius: 0; }
  161. ._theme-superstylin pre:has(> code.mermaid) { background: #f6f6f6; padding: 1rem; margin-bottom: 1.563rem; border-radius: 10px; }
  162. ._theme-water pre > code.mermaid { padding: 0; background: none; border-radius: 0; }
  163. ._theme-water pre:has(> code.mermaid) { padding: 10px; background: #efefef; border-radius: 6px; }
  164. ._theme-water-dark pre > code.mermaid { padding: 0; background: none; border-radius: 0; }
  165. ._theme-water-dark pre:has(> code.mermaid) { padding: 10px; background: #161f27; border-radius: 6px; }
  166. @media (prefers-color-scheme: dark) {
  167. ._theme-superstylin pre:has(> code.mermaid) { background: #595859; }
  168. }
  169. /*---------------------------------------------------------------------------*/
  170. /*theme fixes*/
  171. @media (prefers-color-scheme: dark) {
  172. /*no-class - fix code block*/
  173. ._theme-no-class pre {
  174. background: #303030;
  175. }
  176. /*no-class - fix table*/
  177. ._theme-no-class tbody tr:nth-of-type(odd) {
  178. background-color: #303030;
  179. }
  180. }
  181. /*github*/
  182. ._theme-github {
  183. background-color: #fff;
  184. }
  185. ._theme-github > pre {
  186. color: #000;
  187. }
  188. ._theme-github .markdown-body {
  189. border: 1px solid #e1e4e8;
  190. }
  191. /*github-dark*/
  192. ._theme-github-dark {
  193. background-color: #0d1117;
  194. }
  195. ._theme-github-dark > pre {
  196. color: #fff;
  197. }
  198. ._theme-github-dark a {
  199. color: #4493f8 !important;
  200. }
  201. ._theme-github-dark .markdown-body {
  202. border: 1px solid #30363d;
  203. }
  204. /*markdown-air - fix images*/
  205. ._theme-air img {
  206. border-radius: 0;
  207. width: auto;
  208. height: auto;
  209. }
  210. /*axist - fix lists*/
  211. ._theme-axist ul li p {
  212. display: inline-block;
  213. }
  214. /*axist - fix fenced code blocks*/
  215. ._theme-axist pre::after {
  216. content: none;
  217. }
  218. /*kacit, tacit - fix mermaid diagrams size*/
  219. ._theme-kacit pre code,
  220. ._theme-tacit pre code {
  221. display: block;
  222. }
  223. /*mini - fix table*/
  224. ._theme-mini table {
  225. overflow-x: clip !important;
  226. max-height: none !important;
  227. }
  228. /*mini - fix special symbols*/
  229. ._theme-mini blockquote::before {
  230. content: "“";
  231. }
  232. ._theme-mini [type=checkbox]:checked:before {
  233. content: "✓";
  234. top: -3px;
  235. }
  236. /*simple - fix body width*/
  237. ._theme-simple {
  238. display: block;
  239. }
  240. /*style-sans, style-serif - fix inline code*/
  241. ._theme-style-sans *:not(pre) > code::before,
  242. ._theme-style-sans *:not(pre) > code::after,
  243. ._theme-style-serif *:not(pre) > code::before,
  244. ._theme-style-serif *:not(pre) > code::after {
  245. content: '';
  246. padding-left: 5px;
  247. padding-right: 5px;
  248. }
  249. /*superstylin - fix lists*/
  250. ._theme-superstylin ul ul,
  251. ._theme-superstylin ol ol {
  252. padding-left: 40px;
  253. }
  254. ._theme-superstylin ul li p,
  255. ._theme-superstylin ol li p {
  256. display: inline-block;
  257. margin-bottom: 0;
  258. }
  259. /*vanilla - fix pre margin*/
  260. ._theme-vanilla pre {
  261. margin-bottom: 10px;
  262. }