|
4 | 4 | * work well for content-centric websites. |
5 | 5 | */ |
6 | 6 |
|
| 7 | +/* EDS Iconfont */ |
| 8 | +@font-face { |
| 9 | + font-family: 'EDS Iconfont'; |
| 10 | + src: url('/fonts/eds-iconfont.woff2') format('woff2'); |
| 11 | + font-weight: normal; |
| 12 | + font-style: normal; |
| 13 | + font-display: swap; |
| 14 | +} |
| 15 | + |
| 16 | +/* Inter Family */ |
| 17 | +@font-face { |
| 18 | + font-family: 'Inter'; |
| 19 | + src: url('/fonts/inter-regular.woff2') format('woff2'); |
| 20 | + font-weight: 400; |
| 21 | + font-style: normal; |
| 22 | + font-display: swap; |
| 23 | +} |
| 24 | + |
| 25 | +@font-face { |
| 26 | + font-family: 'Inter'; |
| 27 | + src: url('/fonts/inter-medium.woff2') format('woff2'); |
| 28 | + font-weight: 500; |
| 29 | + font-style: normal; |
| 30 | + font-display: swap; |
| 31 | +} |
| 32 | + |
| 33 | +@font-face { |
| 34 | + font-family: 'Inter'; |
| 35 | + src: url('/fonts/inter-bold.woff2') format('woff2'); |
| 36 | + font-weight: 700; |
| 37 | + font-style: normal; |
| 38 | + font-display: swap; |
| 39 | +} |
| 40 | + |
| 41 | +@font-face { |
| 42 | + font-family: 'Inter Tight'; |
| 43 | + src: url('/fonts/inter-tight.woff2') format('woff2'); |
| 44 | + font-weight: normal; |
| 45 | + font-style: normal; |
| 46 | + font-display: swap; |
| 47 | +} |
| 48 | + |
| 49 | +/* Recursive Mono */ |
| 50 | +@font-face { |
| 51 | + font-family: 'Recursive Mono'; |
| 52 | + src: url('/fonts/recursive-mono-regular.woff2') format('woff2'); |
| 53 | + font-weight: 400; |
| 54 | + font-style: normal; |
| 55 | + font-display: swap; |
| 56 | +} |
| 57 | + |
7 | 58 | /* You can override the default Infima variables here. */ |
8 | 59 | :root { |
9 | 60 | --ifm-color-primary: #2e8555; |
|
13 | 64 | --ifm-color-primary-light: #33925d; |
14 | 65 | --ifm-color-primary-lighter: #359962; |
15 | 66 | --ifm-color-primary-lightest: #3cad6e; |
16 | | - --ifm-code-font-size: 95%; |
17 | | - --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); |
| 67 | + --ifm-code-font-size: 0.875em; |
| 68 | + --docusaurus-highlighted-code-line-bg: rgba(255, 255, 255, 0.08); |
| 69 | + --ifm-font-family-monospace: 'Recursive Mono', monospace; |
| 70 | + --ifm-pre-padding: 1rem; |
| 71 | + --ifm-code-border-radius: 16px; |
| 72 | + --ifm-background-color: #101014; |
18 | 73 | } |
19 | 74 |
|
20 | 75 | /* For readability concerns, you should choose a lighter palette in dark mode. */ |
|
26 | 81 | --ifm-color-primary-light: #29d5b0; |
27 | 82 | --ifm-color-primary-lighter: #32d8b4; |
28 | 83 | --ifm-color-primary-lightest: #4fddbf; |
29 | | - --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); |
| 84 | + --docusaurus-highlighted-code-line-bg: rgba(255, 255, 255, 0.12); |
| 85 | + --ifm-background-color: #101014; |
| 86 | +} |
| 87 | + |
| 88 | +/* Page background */ |
| 89 | +body { |
| 90 | + background-color: #101014; |
| 91 | + font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; |
| 92 | + margin: 0; |
| 93 | + font-size: 1rem; |
| 94 | + font-weight: 400; |
| 95 | + line-height: 1.65; |
| 96 | + color: #ffffff; |
| 97 | + -webkit-text-size-adjust: 100%; |
| 98 | + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); |
| 99 | + -webkit-font-smoothing: antialiased; |
| 100 | + -moz-osx-font-smoothing: grayscale; |
| 101 | +} |
| 102 | + |
| 103 | +/* Code block specific styles */ |
| 104 | +pre { |
| 105 | + display: block; |
| 106 | + margin-top: 0; |
| 107 | + margin-bottom: 1rem; |
| 108 | + overflow: auto; |
| 109 | + font-size: 0.875em; |
| 110 | + color: #abb2bf; |
| 111 | + background: #282c34; |
| 112 | + padding: 1rem; |
| 113 | + border-radius: 16px; |
| 114 | + font-family: 'Recursive Mono', monospace; |
| 115 | +} |
| 116 | + |
| 117 | +pre, code, kbd, samp { |
| 118 | + font-family: 'Recursive Mono', monospace; |
| 119 | + font-size: 1em; |
| 120 | +} |
| 121 | + |
| 122 | +code { |
| 123 | + font-size: .875em; |
| 124 | + word-wrap: break-word; |
| 125 | +} |
| 126 | + |
| 127 | +/* Inline code */ |
| 128 | +:not(pre) > code { |
| 129 | + background-color: rgba(40, 44, 52, 0.8); |
| 130 | + color: #abb2bf; |
| 131 | + border: 0.5px solid rgba(255, 255, 255, 0.08); |
| 132 | + padding: 0.1rem 0.3rem; |
| 133 | + border-radius: 4px; |
| 134 | +} |
| 135 | + |
| 136 | +/* Responsive adjustments */ |
| 137 | +@media screen and (max-width: 768px) { |
| 138 | + :root { |
| 139 | + --ifm-code-border-radius: 12px; |
| 140 | + --ifm-pre-padding: 0.75rem; |
| 141 | + } |
| 142 | + |
| 143 | + pre { |
| 144 | + border-radius: 12px; |
| 145 | + padding: 0.75rem; |
| 146 | + font-size: 0.8125em; |
| 147 | + } |
| 148 | +} |
| 149 | + |
| 150 | +@media screen and (max-width: 480px) { |
| 151 | + pre { |
| 152 | + border-radius: 8px; |
| 153 | + padding: 0.5rem; |
| 154 | + font-size: 0.75em; |
| 155 | + } |
| 156 | +} |
| 157 | + |
| 158 | +mark, .mark, :not(.prism-code) > code:not(.prism-code) { |
| 159 | + border-radius: 6px; |
| 160 | +} |
| 161 | + |
| 162 | +mark, :not(.prism-code) > code:not(.prism-code), .mark { |
| 163 | + border: .0625rem solid #404044; |
| 164 | + background: #202024; |
| 165 | + padding: .125rem .4375rem; |
| 166 | + color: #fff; |
30 | 167 | } |
0 commit comments