extra.css 7.7 KB

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