diff options
author | babolivier <babolivier@users.noreply.github.com> | 2021-10-12 09:56:14 +0000 |
---|---|---|
committer | babolivier <babolivier@users.noreply.github.com> | 2021-10-12 09:56:14 +0000 |
commit | 3e9f830a1f3368f5210862317e608a528735a38b (patch) | |
tree | a7249f0217264df9c009bba0f210a12a7e26d211 /v1.45/docs/website_files/table-of-contents.css | |
parent | deploy: 5e29d417fc5933e26ba85a40c298d46b09580330 (diff) | |
download | synapse-3e9f830a1f3368f5210862317e608a528735a38b.tar.xz |
deploy: 60af28c5dd803ac4ad1aa216574cac33b6daed6a
Diffstat (limited to 'v1.45/docs/website_files/table-of-contents.css')
-rw-r--r-- | v1.45/docs/website_files/table-of-contents.css | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/v1.45/docs/website_files/table-of-contents.css b/v1.45/docs/website_files/table-of-contents.css new file mode 100644 index 0000000000..1b6f44b66a --- /dev/null +++ b/v1.45/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); + } +} |