|
2 | 2 | <html lang="en"> |
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8" /> |
5 | | - <link rel="icon" href="%sveltekit.assets%/favicon.png" /> |
| 5 | + <link rel="icon" sizes="any" href="%sveltekit.assets%/favicon.svg" /> |
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
7 | 7 | <title>Redirect</title> |
8 | 8 | <meta |
|
11 | 11 | /> |
12 | 12 | <meta name="theme-color" content="#000000" /> |
13 | 13 | <style> |
| 14 | + @import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap'); |
| 15 | + |
14 | 16 | @layer reset { |
15 | 17 | /* FROM https://www.joshwcomeau.com/css/custom-css-reset/ */ |
16 | 18 | /* 1. Use a more-intuitive box-sizing model */ |
|
82 | 84 | isolation: isolate; |
83 | 85 | } |
84 | 86 | } |
| 87 | + @layer global { |
| 88 | + :root { |
| 89 | + --font-family: 'Ubuntu', sans-serif; |
| 90 | + --font-family-mono: 'Ubuntu Mono', monospace; |
| 91 | + |
| 92 | + --color-logo: #ffd43b; |
| 93 | + --color-text: white; |
| 94 | + --color-background: #0e0e0e; |
| 95 | + --color-text-subtle: rgb(169, 169, 169); |
| 96 | + --color-text-danger: rgb(255, 44, 101); |
| 97 | + --color-link: rgb(57 156 199); |
| 98 | + --color-link-hover: rgb(83 207 207); |
| 99 | + --color-link-underline: var(--color-link); |
| 100 | + --content-max-width: 960px; |
| 101 | + --header-max-width: var(--content-max-width); |
| 102 | + } |
| 103 | + body { |
| 104 | + background-color: var(--color-background); |
| 105 | + color: var(--color-text); |
| 106 | + font-family: var(--font-family); |
| 107 | + margin: auto; |
| 108 | + padding-inline: 1em; |
| 109 | + max-width: var(--content-max-width); |
| 110 | + overflow-wrap: break-word; |
| 111 | + min-height: 100vh; |
| 112 | + } |
| 113 | + |
| 114 | + p { |
| 115 | + font-size: 1.1rem; |
| 116 | + } |
| 117 | + } |
| 118 | + |
| 119 | + @layer basic { |
| 120 | + /* Some sensible defaults for easy overriding in specific components */ |
| 121 | + h1, |
| 122 | + h2, |
| 123 | + h3, |
| 124 | + h4, |
| 125 | + h5, |
| 126 | + h6 { |
| 127 | + font-weight: bold; |
| 128 | + } |
| 129 | + |
| 130 | + a { |
| 131 | + color: var(--color-link); |
| 132 | + text-decoration: none; |
| 133 | + } |
| 134 | + |
| 135 | + a:hover, |
| 136 | + a:focus { |
| 137 | + color: var(--color-link-hover); |
| 138 | + } |
| 139 | + |
| 140 | + a, |
| 141 | + a:hover, |
| 142 | + a:focus { |
| 143 | + text-decoration: underline; |
| 144 | + cursor: pointer; |
| 145 | + text-decoration-color: var(--color-link-underline); |
| 146 | + text-decoration-thickness: 0.1rem; |
| 147 | + text-underline-offset: 0.25rem; |
| 148 | + } |
| 149 | + |
| 150 | + a:hover { |
| 151 | + text-decoration-thickness: 0.2rem; |
| 152 | + } |
| 153 | + |
| 154 | + pre, |
| 155 | + code { |
| 156 | + font-family: var(--font-family-mono); |
| 157 | + } |
| 158 | + |
| 159 | + [role='button'] { |
| 160 | + cursor: pointer; |
| 161 | + user-select: none; |
| 162 | + } |
| 163 | + |
| 164 | + /* Add some default margin between common semantic flow items */ |
| 165 | + :where(p, img, h1, h2, h3, h4, h5, h6, ul, ol, header, table, nav, section) |
| 166 | + + :where(p, img, h1, h2, h3, h4, h5, h6, ul, ol, table, nav, section) { |
| 167 | + margin-top: 0.5em; |
| 168 | + } |
| 169 | + } |
| 170 | + |
| 171 | + /* UTILITY CLASSES */ |
| 172 | + .reset:where(ul, ol, menu) { |
| 173 | + list-style: none; |
| 174 | + padding: 0; |
| 175 | + margin: 0; |
| 176 | + } |
| 177 | + |
| 178 | + .reset:where(a) { |
| 179 | + text-decoration: none; |
| 180 | + } |
| 181 | + |
| 182 | + :where(button) { |
| 183 | + font-size: 1em; |
| 184 | + font-style: bold; |
| 185 | + color: var(--color, inherit); |
| 186 | + text-align: center; |
| 187 | + border-style: solid; |
| 188 | + border-radius: 0.5em; |
| 189 | + border-color: currentColor; |
| 190 | + border-width: 0; |
| 191 | + margin: 0; |
| 192 | + padding: 0; |
| 193 | + background: none; |
| 194 | + user-select: none; |
| 195 | + cursor: pointer; |
| 196 | + } |
| 197 | + |
| 198 | + :where(button):hover { |
| 199 | + color: var(--color-highlight, var(--color-text-highlight, var(--color-link-hover))); |
| 200 | + } |
| 201 | + |
| 202 | + .select-none { |
| 203 | + user-select: none; |
| 204 | + } |
| 205 | + |
| 206 | + .select-all { |
| 207 | + user-select: all; |
| 208 | + } |
| 209 | + |
| 210 | + .select-this { |
| 211 | + user-select: contain; |
| 212 | + } |
| 213 | + |
| 214 | + .monospace { |
| 215 | + font-family: var(--font-family-mono); |
| 216 | + } |
| 217 | + |
| 218 | + .sr-only:not(:focus):not(:active) { |
| 219 | + clip: rect(0 0 0 0); |
| 220 | + clip-path: inset(50%); |
| 221 | + height: 1px; |
| 222 | + overflow: hidden; |
| 223 | + position: absolute; |
| 224 | + white-space: nowrap; |
| 225 | + width: 1px; |
| 226 | + } |
| 227 | + |
| 228 | + .scroller { |
| 229 | + overflow-y: auto; |
| 230 | + --scrollbar-width: 0.4em; |
| 231 | + --scrollbar-radius: calc(var(--scrollbar-width) * 0.5); |
| 232 | + } |
| 233 | + |
| 234 | + /* Scrolling */ |
| 235 | + .scroller::-webkit-scrollbar { |
| 236 | + width: var(--scrollbar-width); |
| 237 | + height: var(--scrollbar-width); |
| 238 | + } |
| 239 | + |
| 240 | + .scroller::-webkit-scrollbar-thumb { |
| 241 | + /* foreground color */ |
| 242 | + background: var(--color-text-subtle); |
| 243 | + border-radius: var(--scrollbar-radius); |
| 244 | + } |
| 245 | + |
| 246 | + .scroller::-webkit-scrollbar-track { |
| 247 | + /* background color */ |
| 248 | + background: var(--color-background); |
| 249 | + border-radius: var(--scrollbar-radius); |
| 250 | + } |
| 251 | + |
| 252 | + .warning { |
| 253 | + color: var(--color-text-danger); |
| 254 | + } |
85 | 255 | </style> |
86 | 256 | %sveltekit.head% |
87 | 257 | </head> |
88 | | - <body data-sveltekit-preload-data="hover"> |
| 258 | + <body data-sveltekit-preload-data="hover" class="scroller"> |
89 | 259 | <div style="display: contents">%sveltekit.body%</div> |
90 | 260 | </body> |
91 | 261 | </html> |
0 commit comments