extra.css 5.6 KB

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