forked from rc/aircox
fix z-index on top menu and publication title; add missing bootstrap.js file
This commit is contained in:
parent
3ec7137dce
commit
15c59024b4
|
@ -85,6 +85,7 @@ ul {
|
|||
|
||||
body > .top {
|
||||
position: fixed;
|
||||
z-index: 10000000;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: calc(100% - 0.8em);
|
||||
|
|
|
@ -109,6 +109,7 @@ main.detail {
|
|||
|
||||
main.detail > header h1.title {
|
||||
position: relative;
|
||||
z-index: 1000;
|
||||
padding: 0.4em;
|
||||
margin: 0em;
|
||||
margin-bottom: -2em;
|
||||
|
|
15
aircox_cms/static/aircox_cms/js/bootstrap.js
vendored
Normal file
15
aircox_cms/static/aircox_cms/js/bootstrap.js
vendored
Normal 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')
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user