Skip to content
Snippets Groups Projects
Commit e142c540 authored by Ron Lucke's avatar Ron Lucke
Browse files

fixes #967

Closes #967

Merge request studip/studip!841
parent 45ddcf37
No related branches found
No related tags found
No related merge requests found
...@@ -203,6 +203,9 @@ r i b b o n ...@@ -203,6 +203,9 @@ r i b b o n
$consum_ribbon_width: calc(100% - 58px); $consum_ribbon_width: calc(100% - 58px);
#course-courseware-index, #course-courseware-index,
#contents-courseware-courseware { #contents-courseware-courseware {
&.consume {
overflow: hidden;
}
#layout_container { #layout_container {
overflow-x: hidden; overflow-x: hidden;
position: relative; position: relative;
......
...@@ -106,9 +106,9 @@ export default { ...@@ -106,9 +106,9 @@ export default {
}, },
handleScroll() { handleScroll() {
if (window.outerWidth > 767) { if (window.outerWidth > 767) {
this.stickyRibbon = window.scrollY > 130; this.stickyRibbon = window.scrollY > 130 && !this.consumeMode;
} else { } else {
this.stickyRibbon = window.scrollY > 75; this.stickyRibbon = window.scrollY > 75 && !this.consumeMode;
} }
}, },
}, },
...@@ -132,6 +132,11 @@ export default { ...@@ -132,6 +132,11 @@ export default {
}, },
consumeMode(newState) { consumeMode(newState) {
this.$refs.consumeModeSwitch.focus(); 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