mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-06-09 10:24:03 +00:00
theme: fix mobile layout for width=48rem #676
clumsy solution as long as we still support IE11, otherwise we could have used media query range syntax
This commit is contained in:
parent
3c39bffe70
commit
d2cfca4b2e
6 changed files with 19 additions and 19 deletions
static/js
|
@ -1636,9 +1636,9 @@ ready( function(){
|
|||
moveTopbarButtons();
|
||||
adjustEmptyTopbarContents();
|
||||
}
|
||||
var mqs = window.matchMedia( 'only screen and (max-width: 48rem)' );
|
||||
var mqs = window.matchMedia( 'only screen and (max-width: 47.999rem)' );
|
||||
mqs.addEventListener( 'change', onWidthChange.bind( null, setWidthS ) );
|
||||
var mqm = window.matchMedia( 'only screen and (min-width: 48rem) and (max-width: 60rem)' );
|
||||
var mqm = window.matchMedia( 'only screen and (min-width: 48rem) and (max-width: 59.999rem)' );
|
||||
mqm.addEventListener( 'change', onWidthChange.bind( null, setWidthM ) );
|
||||
var mql = window.matchMedia( 'only screen and (min-width: 60rem)' );
|
||||
mql.addEventListener( 'change', onWidthChange.bind( null, setWidthL ) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue