Commit bc56c0d5 authored by Erin van der Veen's avatar Erin van der Veen Committed by Camil Staps

Fix scrolling in documentation and source view; Resolves #151

parent 04361a53
body.framelike {
margin: 0;
overflow: hidden;
height: 100vh;
}
body.framelike #logo {
margin-bottom: 1em;
max-width: 100%;
}
......@@ -15,11 +14,11 @@ pre {
}
table {
border-spacing: 0;
border-spacing: 0;
}
td, th {
padding-right: 1em;
padding-right: 1em;
}
.banner {
......@@ -95,24 +94,28 @@ td, th {
#sidebar {
float: left;
overflow: auto;
padding: 10px 1em;
overflow: scroll;
width: 15em;
padding: 0 1em;
height: 100%;
}
#sidebar h3 {
margin-top: .2em;
}
#sidebar a, #sidebar h3 {
padding-left: .5em;
}
#viewer {
margin-left: 16em;
overflow: auto;
height: 100%;
overflow: scroll;
}
#viewer #loading {
font-style: italic;
margin-top: 8em;
padding-top: 8em;
text-align: center;
}
......@@ -121,13 +124,19 @@ td, th {
overflow: auto;
}
body.framelike {
overflow: auto;
}
#sidebar {
height: auto;
width: 100%;
float: none;
overflow: initial;
width: calc(100% - 2em);
}
#viewer {
height: auto;
clear: both;
margin-left: 0;
overflow: initial;
......
......@@ -116,12 +116,4 @@ window.onload = function() {
browser.triggerChange();
};
icl.onchange();
var sidebar = document.getElementById('sidebar');
var viewer = document.getElementById('viewer');
if (window.innerWidth > 800) {
var height = window.innerHeight;
sidebar.style.height = (height - 20) + 'px';
viewer.style.height = height + 'px';
}
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment