summary refs log tree commit diff
path: root/v1.54/docs/website_files/table-of-contents.css
diff options
context:
space:
mode:
authorreivilibre <reivilibre@users.noreply.github.com>2022-03-02 10:45:52 +0000
committerreivilibre <reivilibre@users.noreply.github.com>2022-03-02 10:45:52 +0000
commit918eba173f50b8ecc4a608edbd17b2238e37a0fb (patch)
treea3edb4a07c0a0f361c24a70b388701a1884074b4 /v1.54/docs/website_files/table-of-contents.css
parentdeploy: 300ed0b8a6050b5187a2a524a82cf87baad3ca73 (diff)
downloadsynapse-918eba173f50b8ecc4a608edbd17b2238e37a0fb.tar.xz
deploy: 879e4a7bd7a90cda4c8ea908aede53d8e038ca7c
Diffstat (limited to 'v1.54/docs/website_files/table-of-contents.css')
-rw-r--r--v1.54/docs/website_files/table-of-contents.css47
1 files changed, 47 insertions, 0 deletions
diff --git a/v1.54/docs/website_files/table-of-contents.css b/v1.54/docs/website_files/table-of-contents.css
new file mode 100644

index 0000000000..1b6f44b66a --- /dev/null +++ b/v1.54/docs/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); + } +}