extra.css 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. :root > * {
  2. --md-code-fg-color: #A9B7C6;
  3. --md-code-bg-color: #2b2b2b;
  4. --md-code-hl-color: #214283;
  5. --md-code-hl-number-color: #82AAFF;
  6. --md-code-hl-special-color: #A9B7C6;
  7. --md-code-hl-function-color: #FFE64C;
  8. --md-code-hl-constant-color: hsla(250, 70%, 64%, 1);
  9. --md-code-hl-keyword-color: #CC7832;
  10. --md-code-hl-string-color: #6A8759;
  11. --md-code-hl-name-color: var(--md-code-fg-color);
  12. --md-code-hl-operator-color: #A9B7C6;
  13. --md-code-hl-punctuation-color: #A9B7C6;
  14. --md-code-hl-comment-color: #787878;
  15. --md-code-hl-generic-color: #A9B7C6;
  16. --md-code-hl-variable-color: #A9B7C6;
  17. --md-typeset-color: #333333;
  18. --drake-highlight: #d63200;
  19. --drake-accent: #e95f59;
  20. --drake-highlight-opacity: #d6320022;
  21. --md-admonition-fg-color: #333333;
  22. --drake-font-size: 12px;
  23. }
  24. [data-md-color-scheme="drake"] {
  25. --md-primary-fg-color: hsla(0, 0%, 100%, 1);
  26. --md-primary-fg-color--light: hsla(0, 0%, 100%, 0.7);
  27. --md-primary-fg-color--dark: hsla(0, 0%, 0%, 0.07);
  28. --md-primary-bg-color: hsla(0, 0%, 0%, 0.87);
  29. --md-primary-bg-color--light: hsla(0, 0%, 0%, 0.54);
  30. --md-accent-fg-color: #d63200;
  31. --md-accent-fg-color--light: #d63200;
  32. --md-accent-fg-color--dark: #d63200;
  33. --md-typeset-a-color: #d63200 !important;
  34. }
  35. /*字体渲染*/
  36. @font-face{
  37. font-family: 'JetBrains Mono';
  38. src: local('JetBrains Mono'),
  39. url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/fonts/webfonts/JetBrainsMono-Regular.woff2') format('woff2'),
  40. url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/fonts/ttf/JetBrainsMono-Regular.ttf') format('truetype');
  41. font-display: swap;
  42. font-weight: normal;
  43. font-style: normal;
  44. }
  45. @font-face{
  46. font-family: 'JetBrains Mono';
  47. src: local('JetBrains Mono'),
  48. url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/fonts/webfonts/JetBrainsMono-Bold.woff2') format('woff2'),
  49. url('https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/fonts/ttf/JetBrainsMono-Bold.ttf') format('truetype');
  50. font-display: swap;
  51. font-weight: bold;
  52. font-style: normal;
  53. }
  54. * {
  55. -webkit-font-feature-settings: "liga" on, "calt" on;
  56. -webkit-font-smoothing: subpixel-antialiased;
  57. -moz-osx-font-smoothing: auto;
  58. text-rendering: optimizeLegibility;
  59. font-family: "JetBrains Mono", monospace !important;
  60. }
  61. /*布局*/
  62. .md-content {
  63. max-width: 49.5rem;
  64. }
  65. .md-grid {
  66. max-width: 80rem;
  67. }
  68. /*表格*/
  69. .md-typeset__table {
  70. display: block;
  71. padding: 0 .8rem;
  72. margin: 1em 0;
  73. }
  74. table tr:nth-child(2n), thead {
  75. background-color: #fafafa;
  76. }
  77. .md-typeset table:not([class]) {
  78. border-collapse: collapse;
  79. border-spacing: 0px;
  80. width: 100%;
  81. break-inside: auto;
  82. text-align: left;
  83. display: table;
  84. box-shadow:none;
  85. font-size: var(--drake-font-size);
  86. }
  87. .md-typeset table:not([class]) th {
  88. border: 1px solid #dfe2e5;
  89. background-color: #f2f2f2;
  90. padding: 6px 13px;
  91. font-weight: bold;
  92. color: var(--md-typeset-color);
  93. }
  94. .md-typeset table:not([class]) td {
  95. border: 1px solid #dfe2e5;
  96. }
  97. /*隐藏搜索框, 因为不支持中文搜索*/
  98. .md-search__form {
  99. visibility: hidden;
  100. }
  101. /*引用*/
  102. .md-typeset :is(.admonition,details) {
  103. font-size: 12px;
  104. }
  105. [dir=ltr] .md-typeset blockquote {
  106. border-left:none;
  107. }
  108. .md-typeset blockquote {
  109. color: inherit;
  110. padding: 10px 16px;
  111. background-color: #fdefee;
  112. position: relative;
  113. border-left: none;
  114. margin: 2em 0;
  115. }
  116. .md-typeset blockquote p {
  117. margin: 0 0 !important;
  118. }
  119. .md-typeset blockquote:before {
  120. display: block;
  121. position: absolute;
  122. content: '';
  123. width: 4px;
  124. left: 0;
  125. top: 0;
  126. height: 100%;
  127. background-color:var(--drake-accent);
  128. border-radius: 4px;
  129. }
  130. /*字间距*/
  131. .md-typeset {
  132. line-height: 1.8;
  133. font-size: var(--drake-font-size);
  134. }
  135. .md-typeset pre {
  136. line-height: 1.6;
  137. }
  138. /*标签*/
  139. .md-typeset .tabbed-set>label {
  140. border-bottom: 2px solid transparent;
  141. color: var(--md-typeset-color);
  142. line-height: 1.3;
  143. font-size: var(--drake-font-size);
  144. margin-bottom: .8em;
  145. font-weight:normal;
  146. }
  147. .md-typeset .tabbed-set>input:checked+label {
  148. font-weight:500;
  149. line-height: 1.3;
  150. margin-bottom: .8em;
  151. }
  152. /*侧边导航*/
  153. .md-nav__item .md-nav__link--active {
  154. color: var(--drake-highlight);
  155. font-weight:500;
  156. }
  157. .md-nav__title[for="__drawer"] {
  158. display: none;
  159. }
  160. div .md-source__fact {
  161. display: none;
  162. }
  163. .md-source__icon+.md-source__repository {
  164. margin-left: -1em;
  165. padding-left: 0;
  166. font-weight: 500;
  167. }
  168. .md-nav__link {
  169. font-size: var(--drake-font-size);
  170. line-height: 1.6;
  171. }
  172. /*代码块*/
  173. .md-typeset code {
  174. font-size: inherit;
  175. border-radius: 2px !important;
  176. border: none !important;
  177. }
  178. .md-typeset pre>code {
  179. padding: 0.8em 0.8em;
  180. }
  181. code span::selection {
  182. background: #214283;
  183. }
  184. .highlight code::selection {
  185. background: #214283;
  186. }
  187. /*代码片段*/
  188. p code, article > code, li > code, td > code, th > code, a > code {
  189. background-color: transparent !important;
  190. color: var(--drake-highlight) !important;
  191. padding: 0 2px !important;
  192. }
  193. img {
  194. border-radius: 2px;
  195. margin: 4px 0;
  196. }
  197. /*链接*/
  198. .md-content a {
  199. color: var(--drake-highlight) !important;
  200. text-decoration: underline;
  201. margin: 0 2px;
  202. }
  203. /*编辑按钮*/
  204. .md-typeset .md-content__button {
  205. color: var(--md-default-fg-color--lighter) !important;
  206. }
  207. .md-icon svg {
  208. width: 14px;
  209. }
  210. /*标题*/
  211. h1, h2, h3, h4, h5, h6, .md-header-nav__title {
  212. font-weight: bold !important;
  213. color: #273849;
  214. }
  215. .md-typeset h1 {
  216. text-align: center;
  217. font-size: 1.45em;
  218. color:#273849;
  219. }
  220. .md-typeset h2 {
  221. display: inline-block;
  222. font-size: 1.45em;
  223. }
  224. h2:after {
  225. display: block;
  226. content: '';
  227. height: 2px;
  228. margin-top: 4px;
  229. background-color:#273849;
  230. border-radius: 2px;
  231. margin-right: 1.1em;
  232. }
  233. /*清单*/
  234. .md-typeset [type=checkbox]:checked+.task-list-indicator:before {
  235. background-color: #43A047;
  236. }
  237. .md-typeset .task-list-indicator:before {
  238. background-color: #c7c7c7;
  239. }
  240. .md-typeset .task-list-control {
  241. margin-right: 8px;
  242. }
  243. /*复制图标*/
  244. .md-clipboard:after {
  245. background-color: #4d4d4d;
  246. }
  247. /*头部*/
  248. .md-ellipsis {
  249. font-weight: bold;
  250. }
  251. /*折叠块*/
  252. /*标题展开状态*/
  253. .md-typeset .admonition-title, .md-typeset summary {
  254. border-left: none;
  255. margin: 0;
  256. }
  257. /*标题背景*/
  258. .md-typeset .abstract>.admonition-title, .md-typeset .abstract>summary, .md-typeset .summary>.admonition-title, .md-typeset .summary>summary, .md-typeset .tldr>.admonition-title, .md-typeset .tldr>summary {
  259. background-color: #f2f2f2;
  260. border: 1px solid #dfe2e5;
  261. font-weight: bold;
  262. }
  263. /*内容展开状态*/
  264. .md-typeset .admonition, .md-typeset details {
  265. border-left: none;
  266. box-shadow: none;
  267. padding: 0;
  268. font-size: var(--drake-font-size);
  269. }
  270. /*标题栏左侧图标*/
  271. .md-typeset .abstract>.admonition-title:before, .md-typeset .abstract>summary:before, .md-typeset .summary>.admonition-title:before, .md-typeset .summary>summary:before, .md-typeset .tldr>.admonition-title:before, .md-typeset .tldr>summary:before {
  272. background-color: var(--md-admonition-fg-color);
  273. top: .5rem;
  274. }
  275. /*箭头图标*/
  276. .md-typeset summary:after {
  277. top: .5rem;
  278. }