extra.css 7.7 KB

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