git ssb

0+

Grey the earthling / gkn.me.uk



Commit 09b114cdd1d3e593fdde24cfc682313f348b84a5

Simplify line widths

It's not essential that the thinner and thicker lines are distinct at small font sizes,
because the distinction is only essential for hover,
so the pointer's position should be clear enough.
Grey Nicholson committed on 5/11/2022, 11:34:53 PM
Parent: 79af93866bf1186fe0a4ef8fb51c85d4eafc6628

Files changed

static/style/tarazed.csschanged
static/style/tarazed.cssView
@@ -188,23 +188,24 @@
188188
189189 a {
190190 text-decoration: none;
191191 color: var(--primary-color);
192 + outline-offset: 0.0625rem;
192193 }
193194
194195 a,
195196 nav a strong {
196197 text-decoration: underline;
197- text-decoration-thickness: max(1px, 0.0625rem);
198 + text-decoration-thickness: 0.0625rem;
198199 }
199200
200201 a:hover,
201202 nav a:hover strong {
202- text-decoration-thickness: max(2px, 0.125rem);
203 + text-decoration-thickness: 0.125rem;
203204 }
204205
205206 a:focus {
206- outline: max(2px, 0.125rem) solid;
207 + outline: 0.125rem solid;
207208 }
208209
209210 a:active {
210211 color: var(--foreground-color);
@@ -226,10 +227,10 @@
226227 margin-bottom: 1.5rem;
227228 max-width: min(30rem, 67.5vw);
228229 margin-left: auto;
229230 margin-right: auto;
230- border-left: max(2px, 0.125rem) solid var(--foreground-color);
231- padding-left: calc(1rem - max(2px, 0.125rem));
231 + border-left: 0.125rem solid var(--foreground-color);
232 + padding-left: 0.875rem;
232233 }
233234
234235 figure {
235236 margin-top: 1.5rem;
@@ -310,14 +311,14 @@
310311 margin-right: auto;
311312 }
312313 a img,
313314 a object {
314- outline: max(1px, 0.0625rem) solid;
315- outline-offset: max(2px, 0.125rem);
315 + outline: 0.0625rem solid;
316 + outline-offset: 0.125rem;
316317 }
317318 a:hover img,
318319 a:hover object {
319- outline: max(2px, 0.125rem) solid;
320 + outline-width: 0.125rem;
320321 }
321322
322323 nav {
323324 margin-top: 1.5rem;
@@ -358,16 +359,14 @@
358359 nav a,
359360 nav a > *,
360361 nav a > * > * {
361362 display: block;
362- outline-offset: max(2px, 0.125rem);
363363 }
364364 nav a * {
365365 width: max-content;
366366 }
367367 nav.menu li a {
368368 display: inline;
369- outline-offset: 0;
370369 }
371370 nav > a,
372371 nav > a:hover,
373372 nav:not(.menu) a,

Built with git-ssb-web