extra.css 7.9 KB

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