|
7 | 7 | <meta name="color-scheme" content="dark light" />
|
8 | 8 | %sveltekit.head%
|
9 | 9 |
|
10 |
| - <style> |
11 |
| - html { |
12 |
| - --bg-1: hsl(0, 0%, 100%); |
13 |
| - --bg-2: hsl(206, 20%, 90%); |
14 |
| - --bg-3: hsl(206, 20%, 80%); |
15 |
| - --fg-1: hsl(0, 0%, 13%); |
16 |
| - --fg-2: hsl(0, 0%, 20%); |
17 |
| - --fg-2: hsl(0, 0%, 30%); |
18 |
| - --link: hsl(208, 77%, 47%); |
19 |
| - --link-hover: hsl(208, 77%, 55%); |
20 |
| - --link-active: hsl(208, 77%, 40%); |
21 |
| - |
22 |
| - &.dark { |
23 |
| - --bg-1: hsl(0, 0%, 18%); |
24 |
| - --bg-2: hsl(0, 0%, 30%); |
25 |
| - --bg-3: hsl(0, 0%, 40%); |
26 |
| - --fg-1: hsl(0, 0%, 90%); |
27 |
| - --fg-2: hsl(0, 0%, 70%); |
28 |
| - --fg-3: hsl(0, 0%, 60%); |
29 |
| - --link: hsl(206, 96%, 72%); |
30 |
| - --link-hover: hsl(206, 96%, 78%); |
31 |
| - --link-active: hsl(206, 96%, 64%); |
32 |
| - } |
33 |
| - } |
34 |
| - |
35 |
| - body { |
36 |
| - --border-radius: 4px; |
37 |
| - --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, |
38 |
| - 'Open Sans', 'Helvetica Neue', sans-serif; |
39 |
| - --font-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, |
40 |
| - 'DejaVu Sans Mono', monospace; |
41 |
| - background: var(--bg-1); |
42 |
| - color: var(--fg-1); |
43 |
| - font-family: var(--font); |
44 |
| - line-height: 1.5; |
45 |
| - margin: 1rem; |
46 |
| - height: calc(100vh - 2rem); |
47 |
| - } |
48 |
| - |
49 |
| - h1, |
50 |
| - h2, |
51 |
| - h3, |
52 |
| - h4, |
53 |
| - h5, |
54 |
| - h6 { |
55 |
| - font-weight: normal; |
56 |
| - font-variant-numeric: tabular-nums; |
57 |
| - line-height: 1.1; |
58 |
| - } |
59 |
| - |
60 |
| - :is(h1, h2, h3, h4, h5, h6, p) { |
61 |
| - margin: 1rem 0.1rem; |
62 |
| - } |
63 |
| - |
64 |
| - label { |
65 |
| - margin: 0.5rem 0.1rem; |
66 |
| - } |
67 |
| - |
68 |
| - :is(h1, h2, h3, h4, h5, h6, p, label):first-child { |
69 |
| - margin-top: 0; |
70 |
| - } |
71 |
| - |
72 |
| - :is(h1, h2, h3, h4, h5, h6, p, label):last-child { |
73 |
| - margin-bottom: 0; |
74 |
| - } |
75 |
| - |
76 |
| - a { |
77 |
| - color: var(--link); |
78 |
| - } |
79 |
| - |
80 |
| - a:hover { |
81 |
| - color: var(--link-hover); |
82 |
| - } |
83 |
| - |
84 |
| - a:active { |
85 |
| - color: var(--link-active); |
86 |
| - } |
87 |
| - |
88 |
| - label { |
89 |
| - display: flex; |
90 |
| - gap: 0.5rem; |
91 |
| - align-items: center; |
92 |
| - } |
93 |
| - |
94 |
| - label input { |
95 |
| - margin: 0; |
96 |
| - } |
97 |
| - |
98 |
| - button, |
99 |
| - input, |
100 |
| - select { |
101 |
| - font-family: inherit; |
102 |
| - font-size: inherit; |
103 |
| - } |
104 |
| - |
105 |
| - button { |
106 |
| - background: var(--link); |
107 |
| - color: var(--bg-1); |
108 |
| - padding: 0.5rem 1rem; |
109 |
| - border: none; |
110 |
| - border-radius: var(--border-radius); |
111 |
| - } |
112 |
| - |
113 |
| - button:hover { |
114 |
| - background: var(--link-hover); |
115 |
| - } |
116 |
| - |
117 |
| - button:active { |
118 |
| - background: var(--link-active); |
119 |
| - } |
120 |
| - |
121 |
| - :is(button, button:hover, button:active):disabled { |
122 |
| - background: var(--link); |
123 |
| - filter: grayscale(1); |
124 |
| - opacity: 0.4; |
125 |
| - } |
126 |
| - |
127 |
| - input, |
128 |
| - textarea, |
129 |
| - select { |
130 |
| - padding: 0.5rem; |
131 |
| - border: 1px solid var(--bg-2); |
132 |
| - border-radius: var(--border-radius); |
133 |
| - box-sizing: border-box; |
134 |
| - } |
135 |
| - |
136 |
| - input, |
137 |
| - textarea { |
138 |
| - background: var(--bg-1); |
139 |
| - color: inherit; |
140 |
| - } |
141 |
| - |
142 |
| - select:not([multiple]) { |
143 |
| - background: var(--bg-2); |
144 |
| - } |
145 |
| - |
146 |
| - textarea { |
147 |
| - font-family: var(--font-mono); |
148 |
| - font-size: 0.9rem; |
149 |
| - } |
150 |
| - |
151 |
| - form { |
152 |
| - display: flex; |
153 |
| - flex-direction: column; |
154 |
| - gap: 1rem; |
155 |
| - align-items: baseline; |
156 |
| - } |
157 |
| - |
158 |
| - ul:has(li):has(form) { |
159 |
| - list-style: none; |
160 |
| - padding: 0; |
161 |
| - } |
162 |
| - |
163 |
| - li form { |
164 |
| - flex-direction: row; |
165 |
| - gap: 0.5rem; |
166 |
| - margin: 0.5rem 0; |
167 |
| - } |
168 |
| - |
169 |
| - nav { |
170 |
| - position: relative; |
171 |
| - display: flex; |
172 |
| - gap: 1em; |
173 |
| - padding: 1em; |
174 |
| - background: var(--bg-2); |
175 |
| - z-index: 2; |
176 |
| - margin: 0 0 1em 0; |
177 |
| - border-radius: var(--border-radius); |
178 |
| - } |
179 |
| - |
180 |
| - nav a { |
181 |
| - text-decoration: none; |
182 |
| - } |
183 |
| - |
184 |
| - nav a[aria-current='true'] { |
185 |
| - border-bottom: 2px solid; |
186 |
| - } |
187 |
| - |
188 |
| - ul:has(form) { |
189 |
| - list-style: none; |
190 |
| - padding: 0; |
191 |
| - } |
192 |
| - |
193 |
| - progress { |
194 |
| - margin: 0.5rem 0; |
195 |
| - } |
196 |
| - |
197 |
| - progress:first-child { |
198 |
| - margin-top: 0; |
199 |
| - } |
200 |
| - |
201 |
| - progress:lsat-child { |
202 |
| - margin-bottom: 0; |
203 |
| - } |
204 |
| - |
205 |
| - .error { |
206 |
| - color: red; |
207 |
| - } |
208 |
| - |
209 |
| - code { |
210 |
| - background: var(--bg-2); |
211 |
| - font-family: var(--font-mono); |
212 |
| - font-size: 0.9em; |
213 |
| - padding: 0.15rem 0.3rem; |
214 |
| - border-radius: var(--border-radius); |
215 |
| - } |
216 |
| - |
217 |
| - ul.todos { |
218 |
| - padding: 0; |
219 |
| - } |
220 |
| - |
221 |
| - ul.todos li:not(:has(> form)), |
222 |
| - ul.todos li form { |
223 |
| - position: relative; |
224 |
| - display: flex; |
225 |
| - align-items: center; |
226 |
| - padding: 0.5em 0.5em 0.5em 1em; |
227 |
| - margin: 0 0 0.5em 0; |
228 |
| - gap: 0.5em; |
229 |
| - border-radius: 5px; |
230 |
| - user-select: none; |
231 |
| - background: var(--bg-1); |
232 |
| - filter: drop-shadow(2px 3px 6px rgba(0, 0, 0, 0.1)); |
233 |
| - transition: |
234 |
| - filter 0.2s, |
235 |
| - opacity 0.2s; |
236 |
| - } |
237 |
| - |
238 |
| - ul.todos .done { |
239 |
| - filter: none; |
240 |
| - opacity: 0.4; |
241 |
| - } |
242 |
| - |
243 |
| - ul.todos button { |
244 |
| - border: none; |
245 |
| - background-color: transparent; |
246 |
| - background-repeat: no-repeat; |
247 |
| - background-position: 50% 50%; |
248 |
| - background-size: 1rem 1rem; |
249 |
| - cursor: pointer; |
250 |
| - width: 3em; |
251 |
| - height: 3em; |
252 |
| - margin: -0.5em -0.5em -0.5em 0; |
253 |
| - aspect-ratio: 1; |
254 |
| - opacity: 0.5; |
255 |
| - transition: opacity 0.2s; |
256 |
| - } |
257 |
| - |
258 |
| - ul.todos button:hover { |
259 |
| - opacity: 1; |
260 |
| - } |
261 |
| - </style> |
| 10 | + <!-- duplication with svelte.dev/static/shared.css needed, else styles aren't applied during local dev --> |
| 11 | + <link rel="stylesheet" href="/shared.css" /> |
262 | 12 | </head>
|
263 | 13 | <body>
|
264 | 14 | <div style="display: contents">%sveltekit.body%</div>
|
|
0 commit comments