1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-27 14:12:09 +00:00

Switch back to using a <hr>

The thematic break is appropriate here and having it announced by screen
readers actually helps.
This commit is contained in:
Rohan Kumar 2022-04-17 22:59:49 -07:00
parent 8bc7176e6d
commit b5ebca64cd
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
3 changed files with 2 additions and 8 deletions

View file

@ -180,14 +180,6 @@ section[role="doc-endnotes"] {
content-visibility: auto;
}
/* same as above */
article header {
border-bottom: 1px solid;
/* padding ensures the border can't be mistaken for an underline */
padding-bottom: 1em;
}
/* Some browser focus indicators are inaccessible; override them with
* something more visible. See WCAG 2.x SC 2.4.12. I also tried to
* match browser behavior; mainstream browsers use :focus-visible

View file

@ -18,6 +18,7 @@
<small>
<span itemprop="wordCount">{{ .WordCount }}</span> words, a <span itemprop="timeRequired" content="PT{{ .ReadingTime }}M">{{ .ReadingTime }} minute</span> read
</small>
<hr>
</header>
<section class="e-content entry-content" itemprop="articleBody">
{{ partial "processed-content" . -}}

View file

@ -18,6 +18,7 @@
<small>
<span itemprop="wordCount">{{ .WordCount }}</span> words, a <span itemprop="timeRequired" content="PT{{ .ReadingTime }}M">{{ .ReadingTime }} minute</span> read
</small>
<hr>
</header>
<div class="e-content entry-content" itemprop="articleBody">
{{ partial "processed-content" . -}}