mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 13:30:03 +08:00
include: a11y: remove first heading for screen reader if hideFirstHeading #1028
This commit is contained in:
parent
a9cc5c74d6
commit
cf1fb446dd
@ -1646,15 +1646,6 @@ html[dir='rtl'] .expand[open] > .box-label > i.expander-icon {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.include.hide-first-heading h1:first-of-type,
|
|
||||||
.include.hide-first-heading h2:first-of-type,
|
|
||||||
.include.hide-first-heading h3:first-of-type,
|
|
||||||
.include.hide-first-heading h4:first-of-type,
|
|
||||||
.include.hide-first-heading h5:first-of-type,
|
|
||||||
.include.hide-first-heading h6:first-of-type {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.include.hide-first-heading h1 ~ h2:first-of-type,
|
.include.hide-first-heading h1 ~ h2:first-of-type,
|
||||||
.include.hide-first-heading h1 ~ h3:first-of-type,
|
.include.hide-first-heading h1 ~ h3:first-of-type,
|
||||||
.include.hide-first-heading h2 ~ h3:first-of-type,
|
.include.hide-first-heading h2 ~ h3:first-of-type,
|
||||||
@ -2021,6 +2012,12 @@ span.math:has(> mjx-container[display]) {
|
|||||||
top: -9999px;
|
top: -9999px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.include.hide-first-heading h1:first-of-type,
|
||||||
|
.include.hide-first-heading h2:first-of-type,
|
||||||
|
.include.hide-first-heading h3:first-of-type,
|
||||||
|
.include.hide-first-heading h4:first-of-type,
|
||||||
|
.include.hide-first-heading h5:first-of-type,
|
||||||
|
.include.hide-first-heading h6:first-of-type,
|
||||||
.a11y-only {
|
.a11y-only {
|
||||||
/* idea taken from https://www.filamentgroup.com/lab/a11y-form-labels.html */
|
/* idea taken from https://www.filamentgroup.com/lab/a11y-form-labels.html */
|
||||||
clip-path: polygon(0 0, 1px 0, 1px 1px, 0 1px);
|
clip-path: polygon(0 0, 1px 0, 1px 1px, 0 1px);
|
||||||
|
@ -1 +1 @@
|
|||||||
7.3.2+59414a1b792e2ad40d66ac9c49c9dd8dd0becb39
|
7.3.2+a9cc5c74d60c6f4467a9e710ce73eca13235eb12
|
Loading…
x
Reference in New Issue
Block a user