mirror of
https://github.com/moodle/moodle.git
synced 2025-03-19 15:10:05 +01:00
Merge branch 'MDL-72361-master' of git://github.com/bmbrands/moodle
This commit is contained in:
commit
aa241e8047
2
theme/boost/amd/build/drawers.min.js
vendored
2
theme/boost/amd/build/drawers.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -63,17 +63,6 @@ const isSmall = () => {
|
||||
return browserWidth < sizes.medium;
|
||||
};
|
||||
|
||||
/**
|
||||
* Check if the user uses a medium size browser.
|
||||
*
|
||||
* @returns {boolean} true if the body is smaller than sizes.medium max size.
|
||||
* @private
|
||||
*/
|
||||
const isMedium = () => {
|
||||
const browserWidth = getCurrentWidth();
|
||||
return (browserWidth >= sizes.medium) && (browserWidth < sizes.large);
|
||||
};
|
||||
|
||||
/**
|
||||
* Check if the user uses a large size browser.
|
||||
*
|
||||
@ -340,7 +329,7 @@ export default class Drawers {
|
||||
getBackdrop().then(backdrop => {
|
||||
backdrop.hide();
|
||||
|
||||
if (isMedium()) {
|
||||
if (isSmall()) {
|
||||
const pageWrapper = document.getElementById('page-wrapper');
|
||||
pageWrapper.style.overflow = 'auto';
|
||||
}
|
||||
|
@ -35,8 +35,8 @@
|
||||
|
||||
#page.drawers {
|
||||
margin-top: calc(#{$navbar-height} + 2rem);
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
.main-inner {
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
|
@ -19455,8 +19455,8 @@ span[data-flexitour="container"][x-placement="right"], span[data-flexitour="cont
|
||||
|
||||
#page.drawers {
|
||||
margin-top: calc(50px + 2rem);
|
||||
padding-left: 10px;
|
||||
padding-right: 10px; }
|
||||
padding-left: 15px;
|
||||
padding-right: 15px; }
|
||||
#page.drawers .main-inner {
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
|
@ -19645,8 +19645,8 @@ span[data-flexitour="container"][x-placement="right"], span[data-flexitour="cont
|
||||
|
||||
#page.drawers {
|
||||
margin-top: calc(50px + 2rem);
|
||||
padding-left: 10px;
|
||||
padding-right: 10px; }
|
||||
padding-left: 15px;
|
||||
padding-right: 15px; }
|
||||
#page.drawers .main-inner {
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
|
Loading…
x
Reference in New Issue
Block a user