extra.css 7.4 KB

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