fix z-index on top menu and publication title; add missing bootstrap.js file

This commit is contained in:
bkfox 2016-12-31 17:23:21 +01:00
parent 3ec7137dce
commit 15c59024b4
3 changed files with 17 additions and 0 deletions

View File

@ -85,6 +85,7 @@ ul {
body > .top {
position: fixed;
z-index: 10000000;
top: 0;
left: 0;
width: calc(100% - 0.8em);

View File

@ -109,6 +109,7 @@ main.detail {
main.detail > header h1.title {
position: relative;
z-index: 1000;
padding: 0.4em;
margin: 0em;
margin-bottom: -2em;

View File

@ -0,0 +1,15 @@
scroll_margin = 0
window.addEventListener('scroll', function(e) {
if(window.scrollX > scroll_margin)
document.body.setAttribute('scrollX', 1)
else
document.body.removeAttribute('scrollX')
if(window.scrollY > scroll_margin)
document.body.setAttribute('scrollY', 1)
else
document.body.removeAttribute('scrollY')
});