mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-24 01:42:10 +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 */
|
||||
/* Table of Contents is useless in print layouts without page numbers,
|
||||
* which I haven't implemented yet */
|
||||
#toc,
|
||||
[href="#h1"], /* Skip link */
|
||||
[role="doc-backlink"], /* can't navigate back on print. */
|
||||
aside:not([role="note"]),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<details>
|
||||
<details id="toc">
|
||||
<summary>Toggle table of contents</summary>
|
||||
<h2>Table of Contents</h2>{{.Page.TableOfContents}}
|
||||
</details>
|
||||
|
|
Loading…
Reference in a new issue