git ssb

0+

Grey the earthling / gkn.me.uk



Commit 79af93866bf1186fe0a4ef8fb51c85d4eafc6628

Simplify link selectors and increase their consistency

In practice we don't need to declare :link and :visited separately.

Hover styles for images in links now apply
when the link is hovered, not just the image.
Grey Nicholson committed on 5/11/2022, 11:28:14 PM
Parent: 10610af823778d691f4bb1a37154d5976c0c2ae9

Files changed

static/style/tarazed.csschanged
static/style/tarazed.cssView
@@ -185,36 +185,29 @@
185185 max-width: 49%;
186186 margin-left: 2%;
187187 }
188188
189-:link,
190-:visited {
189 +a {
191190 text-decoration: none;
192191 color: var(--primary-color);
193192 }
194193
195-:link,
196-:visited,
197-nav :link strong,
198-nav :visited strong {
194 +a,
195 +nav a strong {
199196 text-decoration: underline;
200197 text-decoration-thickness: max(1px, 0.0625rem);
201198 }
202199
203-:link:hover,
204-:visited:hover,
205-nav :link:hover strong,
206-nav :visited:hover strong {
200 +a:hover,
201 +nav a:hover strong {
207202 text-decoration-thickness: max(2px, 0.125rem);
208203 }
209204
210-:link:focus,
211-:visited:focus {
205 +a:focus {
212206 outline: max(2px, 0.125rem) solid;
213207 }
214208
215-:link:active,
216-:visited:active {
209 +a:active {
217210 color: var(--foreground-color);
218211 }
219212
220213 address {
@@ -320,10 +313,10 @@
320313 a object {
321314 outline: max(1px, 0.0625rem) solid;
322315 outline-offset: max(2px, 0.125rem);
323316 }
324-a img:hover,
325-a object:hover {
317 +a:hover img,
318 +a:hover object {
326319 outline: max(2px, 0.125rem) solid;
327320 }
328321
329322 nav {
@@ -374,16 +367,12 @@
374367 nav.menu li a {
375368 display: inline;
376369 outline-offset: 0;
377370 }
378-nav > :link,
379-nav > :link:hover,
380-nav > :visited,
381-nav > :visited:hover,
382-nav:not(.menu) :link,
383-nav:not(.menu) :link:hover,
384-nav:not(.menu) :visited,
385-nav:not(.menu) :visited:hover {
371 +nav > a,
372 +nav > a:hover,
373 +nav:not(.menu) a,
374 +nav:not(.menu) a:hover {
386375 text-decoration: none;
387376 }
388377
389378 ol,

Built with git-ssb-web