extra.css 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  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 blockquote {
  119. color: inherit;
  120. padding: 10px 16px;
  121. background-color: #fdefee;
  122. position: relative;
  123. border-left: none;
  124. margin: 2em 0;
  125. }
  126. .md-typeset blockquote p {
  127. margin: 0 0 !important;
  128. }
  129. .md-typeset blockquote:before {
  130. display: block;
  131. position: absolute;
  132. content: '';
  133. width: 4px;
  134. left: 0;
  135. top: 0;
  136. height: 100%;
  137. background-color:var(--drake-accent);
  138. border-radius: 4px;
  139. }
  140. /*字间距*/
  141. .md-typeset {
  142. line-height: 1.8;
  143. font-size: var(--drake-font-size);
  144. }
  145. .md-typeset pre {
  146. line-height: 1.6;
  147. }
  148. /*标签*/
  149. .md-typeset .tabbed-set>label {
  150. border-bottom: 2px solid transparent;
  151. color: var(--md-typeset-color);
  152. line-height: 1.3;
  153. font-size: var(--drake-font-size);
  154. margin-bottom: .8em;
  155. font-weight:normal;
  156. }
  157. .md-typeset .tabbed-set>input:checked+label {
  158. font-weight:500;
  159. line-height: 1.3;
  160. margin-bottom: .8em;
  161. }
  162. /*侧边导航*/
  163. .md-nav__item .md-nav__link--active {
  164. color: var(--drake-highlight);
  165. font-weight:500;
  166. }
  167. .md-nav__title[for="__drawer"] {
  168. display: none;
  169. }
  170. div .md-source__fact {
  171. display: none;
  172. }
  173. .md-source__icon+.md-source__repository {
  174. margin-left: -1em;
  175. padding-left: 0;
  176. font-weight: 500;
  177. }
  178. .md-nav__link {
  179. font-size: var(--drake-font-size);
  180. line-height: 1.6;
  181. }
  182. /*代码块*/
  183. .md-typeset code {
  184. font-size: inherit;
  185. border-radius: 2px !important;
  186. border: none !important;
  187. }
  188. .md-typeset pre>code {
  189. padding: 0.8em 0.8em;
  190. }
  191. code span::selection {
  192. background: #214283;
  193. }
  194. .highlight code::selection {
  195. background: #214283;
  196. }
  197. /*代码片段*/
  198. p code, article > code, li > code, td > code, th > code, a > code {
  199. background-color: transparent !important;
  200. color: var(--drake-highlight) !important;
  201. padding: 0 2px !important;
  202. }
  203. img {
  204. border-radius: 2px;
  205. margin: 4px 0;
  206. }
  207. /*链接*/
  208. .md-content a {
  209. color: var(--drake-highlight) !important;
  210. text-decoration: underline;
  211. margin: 0 2px;
  212. }
  213. /*编辑按钮*/
  214. .md-typeset .md-content__button {
  215. color: var(--md-default-fg-color--lighter) !important;
  216. }
  217. .md-icon svg {
  218. width: 14px;
  219. }
  220. /*标题*/
  221. h1, h2, h3, h4, h5, h6, .md-header-nav__title {
  222. font-weight: bold !important;
  223. color: #273849;
  224. }
  225. .md-typeset h1 {
  226. text-align: center;
  227. font-size: 1.45em;
  228. color:#273849;
  229. }
  230. .md-typeset h2 {
  231. display: inline-block;
  232. font-size: 1.45em;
  233. }
  234. h2:after {
  235. display: block;
  236. content: '';
  237. height: 2px;
  238. margin-top: 4px;
  239. background-color:#273849;
  240. border-radius: 2px;
  241. margin-right: 1.1em;
  242. }
  243. /*清单*/
  244. .md-typeset [type=checkbox]:checked+.task-list-indicator:before {
  245. background-color: #43A047;
  246. }
  247. .md-typeset .task-list-indicator:before {
  248. background-color: #c7c7c7;
  249. }
  250. .md-typeset .task-list-control {
  251. margin-right: 8px;
  252. }
  253. /*复制图标*/
  254. .md-clipboard:after {
  255. background-color: #4d4d4d;
  256. }
  257. /*头部*/
  258. .md-ellipsis {
  259. font-weight: bold;
  260. }
  261. /*折叠块*/
  262. /*标题展开状态*/
  263. .md-typeset .admonition-title, .md-typeset summary {
  264. border-left: none;
  265. margin: 0;
  266. }
  267. /*标题背景*/
  268. .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 {
  269. background-color: #f2f2f2;
  270. border: 1px solid #dfe2e5;
  271. font-weight: bold;
  272. }
  273. /*内容展开状态*/
  274. .md-typeset .admonition, .md-typeset details {
  275. border-left: none;
  276. box-shadow: none;
  277. padding: 0;
  278. font-size: var(--drake-font-size);
  279. }
  280. /*标题栏左侧图标*/
  281. .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 {
  282. background-color: var(--md-admonition-fg-color);
  283. top: .5rem;
  284. }
  285. /*箭头图标*/
  286. .md-typeset summary:after {
  287. top: .5rem;
  288. }