extra.css 5.5 KB

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