1
0

extra.css 6.8 KB

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