mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-21 17:15:38 +03:00
54aa7047eb
- 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)
47 lines
1.1 KiB
CSS
47 lines
1.1 KiB
CSS
: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);
|
|
}
|
|
}
|