extra.css 6.8 KB

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