Skip to content
Snippets Groups Projects
Commit 7b08ad74 authored by Ron Lucke's avatar Ron Lucke Committed by Elmar Ludwig
Browse files

fixes #967

Closes #967

Merge request studip/studip!841
parent d70618de
No related branches found
No related tags found
No related merge requests found
......@@ -203,6 +203,9 @@ r i b b o n
$consum_ribbon_width: calc(100% - 58px);
#course-courseware-index,
#contents-courseware-courseware {
&.consume {
overflow: hidden;
}
#layout_container {
overflow-x: hidden;
position: relative;
......
......@@ -106,9 +106,9 @@ export default {
},
handleScroll() {
if (window.outerWidth > 767) {
this.stickyRibbon = window.scrollY > 130;
this.stickyRibbon = window.scrollY > 130 && !this.consumeMode;
} else {
this.stickyRibbon = window.scrollY > 75;
this.stickyRibbon = window.scrollY > 75 && !this.consumeMode;
}
},
},
......@@ -132,6 +132,11 @@ export default {
},
consumeMode(newState) {
this.$refs.consumeModeSwitch.focus();
if (newState) {
document.body.classList.add('consume');
} else {
document.body.classList.remove('consume');
}
}
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment