diff options
author | anoadragon453 <anoadragon453@users.noreply.github.com> | 2021-06-03 16:21:02 +0000 |
---|---|---|
committer | anoadragon453 <anoadragon453@users.noreply.github.com> | 2021-06-03 16:21:02 +0000 |
commit | 5b98526363a34c5c94d4ede0e8c44d262c085b78 (patch) | |
tree | c8e846299a0c82d24bd920a27fdfd147fa8a3a6c /develop/docs/website_files/table-of-contents.css | |
parent | Set up gh-pages branch (diff) | |
download | synapse-5b98526363a34c5c94d4ede0e8c44d262c085b78.tar.xz |
deploy: fd9856e4a98fb3fa9c139317b0a3b79f22aff1c7
Diffstat (limited to 'develop/docs/website_files/table-of-contents.css')
-rw-r--r-- | develop/docs/website_files/table-of-contents.css | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/develop/docs/website_files/table-of-contents.css b/develop/docs/website_files/table-of-contents.css new file mode 100644 index 0000000000..d16bb3b988 --- /dev/null +++ b/develop/docs/website_files/table-of-contents.css @@ -0,0 +1,42 @@ +@media only screen and (max-width:1439px) { + .sidetoc { + display: none; + } +} + +@media only screen and (min-width:1440px) { + main { + position: relative; + margin-left: 100px !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: 250px; + 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); + } +} |