diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2021-05-26 02:13:48 +0100 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2021-05-27 15:25:52 +0100 |
commit | 22aa21071cf3da8a7f3a907a9b7c11d567169799 (patch) | |
tree | f3769549c0b82ff23fb4d4ad1803f821108e66f4 | |
parent | Add a table of contents plugin (diff) | |
download | synapse-22aa21071cf3da8a7f3a907a9b7c11d567169799.tar.xz |
Remove chapter navigation buttons on desktop
As they interfere with the table of contents, and aren't really needed on desktop UI. Buttons are still kept for mobile.
-rw-r--r-- | book.toml | 2 | ||||
-rw-r--r-- | docs/website_files/remove-nav-buttons.css | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/book.toml b/book.toml index 7255bf8372..b21b647526 100644 --- a/book.toml +++ b/book.toml @@ -27,6 +27,6 @@ site-url = "/synapse/" # Additional HTML, JS, CSS that's injected into each page of the book. # More information is available in docs/website_files/README.md -additional-css = ["docs/website_files/table-of-contents.css"] +additional-css = ["docs/website_files/table-of-contents.css", "docs/website_files/remove-nav-buttons.css"] additional-js = ["docs/website_files/table-of-contents.js"] theme = "docs/website_files/theme" \ No newline at end of file diff --git a/docs/website_files/remove-nav-buttons.css b/docs/website_files/remove-nav-buttons.css new file mode 100644 index 0000000000..4b280794ea --- /dev/null +++ b/docs/website_files/remove-nav-buttons.css @@ -0,0 +1,8 @@ +/* Remove the prev, next chapter buttons as they interfere with the + * table of contents. + * Note that the table of contents only appears on desktop, thus we + * only remove the desktop (wide) chapter buttons. + */ +.nav-wide-wrapper { + display: none +} \ No newline at end of file |