diff options
author | anoadragon453 <anoadragon453@users.noreply.github.com> | 2024-04-11 11:18:01 +0000 |
---|---|---|
committer | anoadragon453 <anoadragon453@users.noreply.github.com> | 2024-04-11 11:18:01 +0000 |
commit | 0eeae24f32e28998c39163e5d58032a6727d5937 (patch) | |
tree | 2f1c06baf944bc26f4fe88ed199af83c737ceaa6 /v1.105/website_files/table-of-contents.css | |
parent | deploy: 31122b71bcf29b4a034be4fc14770f4b8a45b2c5 (diff) | |
download | synapse-0eeae24f32e28998c39163e5d58032a6727d5937.tar.xz |
deploy: db4e321219bfa1bcc7ef656e55499c0da7a3c848
Diffstat (limited to 'v1.105/website_files/table-of-contents.css')
-rw-r--r-- | v1.105/website_files/table-of-contents.css | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/v1.105/website_files/table-of-contents.css b/v1.105/website_files/table-of-contents.css new file mode 100644 index 0000000000..1b6f44b66a --- /dev/null +++ b/v1.105/website_files/table-of-contents.css @@ -0,0 +1,47 @@ +:root { + --pagetoc-width: 250px; +} + +@media only screen and (max-width:1439px) { + .sidetoc { + display: none; + } +} + +@media only screen and (min-width:1440px) { + main { + position: relative; + margin-left: 100px !important; + margin-right: var(--pagetoc-width) !important; + } + .sidetoc { + margin-left: auto; + margin-right: auto; + left: calc(100% + (var(--content-max-width))/4 - 140px); + position: absolute; + text-align: right; + } + .pagetoc { + position: fixed; + width: var(--pagetoc-width); + overflow: auto; + right: 20px; + height: calc(100% - var(--menu-bar-height)); + } + .pagetoc a { + color: var(--fg) !important; + display: block; + padding: 5px 15px 5px 10px; + text-align: left; + text-decoration: none; + } + .pagetoc a:hover, + .pagetoc a.active { + background: var(--sidebar-bg) !important; + color: var(--sidebar-fg) !important; + } + .pagetoc .active { + background: var(--sidebar-bg); + color: var(--sidebar-fg); + } +} |