mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
Hide ToC on print
This commit is contained in:
parent
58717f2d47
commit
cbd0b6d1fb
2 changed files with 4 additions and 1 deletions
|
@ -7,6 +7,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hide screen-only content */
|
/* Hide screen-only content */
|
||||||
|
/* Table of Contents is useless in print layouts without page numbers,
|
||||||
|
* which I haven't implemented yet */
|
||||||
|
#toc,
|
||||||
[href="#h1"], /* Skip link */
|
[href="#h1"], /* Skip link */
|
||||||
[role="doc-backlink"], /* can't navigate back on print. */
|
[role="doc-backlink"], /* can't navigate back on print. */
|
||||||
aside:not([role="note"]),
|
aside:not([role="note"]),
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<details>
|
<details id="toc">
|
||||||
<summary>Toggle table of contents</summary>
|
<summary>Toggle table of contents</summary>
|
||||||
<h2>Table of Contents</h2>{{.Page.TableOfContents}}
|
<h2>Table of Contents</h2>{{.Page.TableOfContents}}
|
||||||
</details>
|
</details>
|
||||||
|
|
Loading…
Reference in a new issue