1
0

extra.css 8.0 KB

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