|
| 1 | +@font-face { |
| 2 | + font-family: 'Liberation Mono'; |
| 3 | + src: url('/fonts/liberation-mono/LiberationMono.woff2') format('woff2'), url('/fonts/liberation-mono/LiberationMono.woff') format('woff'); |
| 4 | + font-weight: 400; |
| 5 | + font-style: normal; |
| 6 | + font-display: swap |
| 7 | +} |
| 8 | +@font-face { |
| 9 | + font-family: 'Liberation Mono'; |
| 10 | + src: url('/fonts/liberation-mono/LiberationMono-Italic.woff2') format('woff2'), url('/fonts/liberation-mono/LiberationMono-Italic.woff') format('woff'); |
| 11 | + font-weight: 400; |
| 12 | + font-style: italic; |
| 13 | + font-display: swap |
| 14 | +} |
| 15 | +@font-face { |
| 16 | + font-family: 'Liberation Mono'; |
| 17 | + src: url('/fonts/liberation-mono/LiberationMono-Bold.woff2') format('woff2'), url('/fonts/liberation-mono/LiberationMono-Bold.woff') format('woff'); |
| 18 | + font-weight: 700; |
| 19 | + font-style: normal; |
| 20 | + font-display: swap |
| 21 | +} |
| 22 | +@font-face { |
| 23 | + font-family: 'Liberation Mono'; |
| 24 | + src: url('/fonts/liberation-mono/LiberationMono-BoldItalic.woff2') format('woff2'), url('/fonts/liberation-mono/LiberationMono-BoldItalic.woff') format('woff'); |
| 25 | + font-weight: 700; |
| 26 | + font-style: italic; |
| 27 | + font-display: swap |
| 28 | +} |
| 29 | + |
| 30 | +* { |
| 31 | + margin: 0; |
| 32 | + padding: 0; |
| 33 | + box-sizing: border-box; |
| 34 | + font-smooth: never; |
| 35 | + font-kerning: normal; |
| 36 | + font-feature-settings: kern; |
| 37 | + text-rendering: optimizeLegibility; |
| 38 | + -webkit-font-smoothing: antialiased; |
| 39 | + -moz-osx-font-smoothing: grayscale; |
| 40 | + scroll-behavior: smooth; |
| 41 | +} |
| 42 | + |
| 43 | +:root { |
| 44 | + font-size: 110%; |
| 45 | + letter-spacing: -0.5px; |
| 46 | + line-height: 1.3; |
| 47 | + font-family: "Liberation Mono", monospace; |
| 48 | + tab-size: 2; |
| 49 | +} |
| 50 | + |
| 51 | +body { |
| 52 | + color: #000; |
| 53 | + background: #FFF; |
| 54 | + margin: 1rem auto 3rem auto; |
| 55 | + padding: 0 0.75rem; |
| 56 | + max-width: 600px; |
| 57 | +} |
| 58 | + |
| 59 | +body, p, pre, code { |
| 60 | + font-size: 1rem; |
| 61 | +} |
| 62 | +h1, h2, h3, h4, h5, h6 { |
| 63 | + text-transform: capitalize; |
| 64 | + font-weight: 400; |
| 65 | + letter-spacing: 0.5px; |
| 66 | + margin-top: 1.75rem; |
| 67 | +} |
| 68 | +p { |
| 69 | + margin-top: 1.5rem; |
| 70 | +} |
| 71 | +h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p { |
| 72 | + margin-top: 0.5rem; |
| 73 | +} |
| 74 | + |
| 75 | +ul, ol { |
| 76 | + margin-top: 1rem; |
| 77 | +} |
| 78 | +ul { |
| 79 | + padding-left: 1.25rem; |
| 80 | +} |
| 81 | +ol { |
| 82 | + padding-left: 1.75rem; |
| 83 | +} |
| 84 | +ul > li:not(:first-of-type), ol > li:not(:first-of-type) { |
| 85 | + margin-top: 0.25rem; |
| 86 | +} |
| 87 | +ul { |
| 88 | + list-style: none; |
| 89 | +} |
| 90 | +ul li:before { |
| 91 | + content: "- "; |
| 92 | + margin-left: -2ch; |
| 93 | + width: 2ch; |
| 94 | + display: inline-block; |
| 95 | +} |
| 96 | + |
| 97 | +a, a:visited { |
| 98 | + color: #000; |
| 99 | + text-decoration-color: #000 !important; |
| 100 | + line-height: 1.5 !important; |
| 101 | + text-decoration: underline; |
| 102 | + text-underline-offset: 0.17rem; |
| 103 | +} |
| 104 | +a:hover { |
| 105 | + text-decoration: none; |
| 106 | +} |
| 107 | + |
| 108 | +hr { |
| 109 | + border-top: 1px solid #000; |
| 110 | +} |
| 111 | + |
| 112 | +img { |
| 113 | + display: block; |
| 114 | + margin: 0 auto; |
| 115 | + max-width: 100%; |
| 116 | + height: auto; |
| 117 | +} |
| 118 | + |
| 119 | +pre { |
| 120 | + overflow: auto; |
| 121 | + scrollbar-width: thin; |
| 122 | + white-space: pre; |
| 123 | + margin-top: 1rem; |
| 124 | + margin-left: 0.5rem; |
| 125 | +} |
| 126 | +pre code, pre { |
| 127 | + background: none !important; |
| 128 | +} |
| 129 | +pre code { |
| 130 | + padding: 0 !important; |
| 131 | +} |
| 132 | +code:not(pre code) { |
| 133 | + color: #000 !important; |
| 134 | + font-weight: bold; |
| 135 | +} |
| 136 | + |
| 137 | +body > nav > a:not(:first-of-type) { |
| 138 | + margin-left: 1ch; |
| 139 | +} |
| 140 | + |
| 141 | +body > header > div > time { |
| 142 | + display: inline; |
| 143 | + font-size: 0.9rem; |
| 144 | + opacity: 0.75; |
| 145 | +} |
| 146 | +body > header > div > time.modified_on { |
| 147 | + font-style: italic; |
| 148 | + margin-left: 0.5rem; |
| 149 | +} |
| 150 | +body > header > div > time:empty { |
| 151 | + display: none; |
| 152 | +} |
| 153 | +body > header > div > time.modified_on:before { |
| 154 | + content: "(Edited: " |
| 155 | +} |
| 156 | +body > header > div > time.modified_on:after { |
| 157 | + content: ")"; |
| 158 | +} |
0 commit comments