1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-02 20:15:26 +02:00

responsive doc TOC

This commit is contained in:
Harvey Kandola 2017-12-14 13:25:05 +00:00
parent b339df5125
commit 3329942d8a
11 changed files with 140 additions and 132 deletions

View file

@ -32,10 +32,10 @@
@import "section/wysiwyg.scss";
// Bootstrap override that removes gutter space on smaller screens
@media (max-width: 1200px) {
.container {
width: 100%;
max-width: none;
}
}
// @media (max-width: 1200px) {
// .container {
// width: 100%;
// max-width: none;
// }
// }

View file

@ -1,7 +1,5 @@
.view-document {
> .document-heading {
margin-top: 3rem;
.doc-title {
margin: 50px 0 10px;
font-size: 2rem;
@ -16,7 +14,7 @@
}
> .document-heading-edit {
margin-top: 5.5rem;
margin-top: 3.5rem;
margin-bottom: 3rem;
}

View file

@ -1,11 +1,14 @@
.document-toc {
@include border-radius(3px);
margin: 30px 0 30px 0;
@include ease-in();
margin: 0;
padding: 0 20px 20px 20px;
background-color: $color-off-white;
border: 1px solid $color-border;
overflow: scroll;
box-sizing: border-box; // ensures width/height properties (and min/max properties) includes content, padding and border
z-index: 777;
> .header {
@include sticky();
flex-direction: column;
@ -36,7 +39,6 @@
}
}
> .index-list {
padding: 0;
list-style: none;
@ -77,12 +79,20 @@
}
.document-toc-desktop {
margin: 30px 0 30px 0;
display: inline-block;
position: fixed;
top: 100px;
right: 30px;
z-index: 777;
-webkit-transform: translate(0px, 0px);
transform: translate(0px, 0px);
}
.document-toc-small {
display: block;
display: inline-block;
position: relative !important;
margin: 0;
width: 100% !important;
height: 500px;
transform: none !important;
}