git ssb

0+

Grey the earthling / gkn.me.uk



Commit 10610af823778d691f4bb1a37154d5976c0c2ae9

Pre-calculate fractional rem sizes

It's easy enough to work backwards to these fractions.
Grey Nicholson committed on 5/11/2022, 10:08:51 PM
Parent: d005ba78d21d97453f6120eac2c49aadbf312a2b

Files changed

static/style/tarazed.csschanged
static/style/tarazed.cssView
@@ -169,10 +169,10 @@
169169 }
170170 .entry main footer section .tags li {
171171 display: inline-block;
172172 margin: 0;
173- margin-left: calc(12rem / 16);
174- margin-right: calc(12rem / 16);
173 + margin-left: 0.75rem;
174 + margin-right: 0.75rem;
175175 }
176176
177177 /* Elements */
178178
@@ -196,21 +196,21 @@
196196 :visited,
197197 nav :link strong,
198198 nav :visited strong {
199199 text-decoration: underline;
200- text-decoration-thickness: max(1px, calc(1rem / 16));
200 + text-decoration-thickness: max(1px, 0.0625rem);
201201 }
202202
203203 :link:hover,
204204 :visited:hover,
205205 nav :link:hover strong,
206206 nav :visited:hover strong {
207- text-decoration-thickness: max(2px, calc(2rem / 16));
207 + text-decoration-thickness: max(2px, 0.125rem);
208208 }
209209
210210 :link:focus,
211211 :visited:focus {
212- outline: max(2px, calc(2rem / 16)) solid;
212 + outline: max(2px, 0.125rem) solid;
213213 }
214214
215215 :link:active,
216216 :visited:active {
@@ -233,10 +233,10 @@
233233 margin-bottom: 1.5rem;
234234 max-width: min(30rem, 67.5vw);
235235 margin-left: auto;
236236 margin-right: auto;
237- border-left: max(2px, calc(2rem / 16)) solid var(--foreground-color);
238- padding-left: calc(1rem - max(2px, calc(2rem / 16)));
237 + border-left: max(2px, 0.125rem) solid var(--foreground-color);
238 + padding-left: calc(1rem - max(2px, 0.125rem));
239239 }
240240
241241 figure {
242242 margin-top: 1.5rem;
@@ -293,10 +293,10 @@
293293 margin: 0;
294294 border: 0;
295295 padding: 0;
296296 height: 1.5rem;
297- padding-top: calc(11rem / 16);
298- padding-bottom: calc(11rem / 16);
297 + padding-top: 0.6875rem;
298 + padding-bottom: 0.6875rem;
299299 background-clip: content-box;
300300 background-color: var(--primary-color);
301301 margin-left: auto;
302302 margin-right: auto;
@@ -317,14 +317,14 @@
317317 margin-right: auto;
318318 }
319319 a img,
320320 a object {
321- outline: max(1px, calc(1rem / 16)) solid;
322- outline-offset: max(2px, calc(2rem / 16));
321 + outline: max(1px, 0.0625rem) solid;
322 + outline-offset: max(2px, 0.125rem);
323323 }
324324 a img:hover,
325325 a object:hover {
326- outline: max(2px, calc(2rem / 16)) solid;
326 + outline: max(2px, 0.125rem) solid;
327327 }
328328
329329 nav {
330330 margin-top: 1.5rem;
@@ -365,9 +365,9 @@
365365 nav a,
366366 nav a > *,
367367 nav a > * > * {
368368 display: block;
369- outline-offset: max(2px, calc(2rem / 16));
369 + outline-offset: max(2px, 0.125rem);
370370 }
371371 nav a * {
372372 width: max-content;
373373 }

Built with git-ssb-web