summary refs log tree commit diff
path: root/docs/website_files/table-of-contents.css
diff options
context:
space:
mode:
authorAzrenbeth <77782548+Azrenbeth@users.noreply.github.com>2021-08-27 15:19:17 +0100
committerGitHub <noreply@github.com>2021-08-27 14:19:17 +0000
commit54aa7047ebf0d2605e31bdd4933effc4eb63813b (patch)
treeb4c558247f4c5b6a69fa83f9059be739ba721497 /docs/website_files/table-of-contents.css
parentClarifications to reverse_proxy.md (#10708) (diff)
downloadsynapse-54aa7047ebf0d2605e31bdd4933effc4eb63813b.tar.xz
Removed page summaries from the top of installation and contributing doc pages (#10711)
- Removed page summaries from CONTRIBUTING and installation pages as 
this information was already in the table of contents on the right hand side
- Fixed some broken links in CONTRIBUTING
- Added margin-right tag for when table of contents is being shown
(otherwise the text in the page sometimes overlaps with it)
Diffstat (limited to 'docs/website_files/table-of-contents.css')
-rw-r--r--docs/website_files/table-of-contents.css7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/website_files/table-of-contents.css b/docs/website_files/table-of-contents.css
index d16bb3b988..1b6f44b66a 100644
--- a/docs/website_files/table-of-contents.css
+++ b/docs/website_files/table-of-contents.css
@@ -1,3 +1,7 @@
+:root {
+    --pagetoc-width: 250px;
+}
+
 @media only screen and (max-width:1439px) {
     .sidetoc {
         display: none;
@@ -8,6 +12,7 @@
     main {
         position: relative;
         margin-left: 100px !important;
+        margin-right: var(--pagetoc-width) !important;
     }
     .sidetoc {
         margin-left: auto;
@@ -18,7 +23,7 @@
     }
     .pagetoc {
         position: fixed;
-        width: 250px;
+        width: var(--pagetoc-width);
         overflow: auto;
         right: 20px;
         height: calc(100% - var(--menu-bar-height));