fixed regression at front page if *not* small screen..
This commit is contained in:
parent
fd32482866
commit
66c4a84f10
|
@ -19,8 +19,13 @@ window.addEventListener('scroll', function(e) {
|
|||
|
||||
window.addEventListener('DOMContentLoaded', (e) => {
|
||||
if (document.querySelector('.syllabusgrid')) {
|
||||
if (document.querySelector('body').clientWidth > 1024) {
|
||||
document.querySelector('.syllabusgrid').classList.remove('syllabusgrid')
|
||||
} else {
|
||||
toggle('syllabus/');
|
||||
}
|
||||
}
|
||||
|
||||
let par = document.querySelector("#TableOfContents > ol:first-child > li:first-child");
|
||||
let s = document.createElement("span");
|
||||
s.appendChild(par.cloneNode(true))
|
||||
|
@ -28,6 +33,7 @@ window.addEventListener('DOMContentLoaded', (e) => {
|
|||
document.querySelector("#TableOfContents > ol:first-child").insertBefore(s, document.querySelector("#TableOfContents > ol:first-child").firstChild)
|
||||
})
|
||||
|
||||
|
||||
var toggle = function(ts) {
|
||||
let rightcolumn = document.querySelector('.rightcolumn');
|
||||
let grid = document.querySelector('.grid');
|
||||
|
@ -37,7 +43,6 @@ var toggle = function(ts) {
|
|||
grid.classList.add('mobilegrid')
|
||||
}
|
||||
|
||||
|
||||
if (rightcolumn.classList.contains('shown')) {
|
||||
rightcolumn.classList.remove('shown');
|
||||
rightcolumn.style.display = "none";
|
||||
|
|
|
@ -435,6 +435,10 @@ body {
|
|||
display: none
|
||||
}
|
||||
|
||||
li {
|
||||
list-style-type: "› ";
|
||||
}
|
||||
|
||||
.sup {
|
||||
display: inline-flex;
|
||||
flex-wrap: nowrap;
|
||||
|
@ -689,6 +693,7 @@ h2.nocount:before, h3.nocount:before, h4.nocount:before, h5.nocount:before, h6.n
|
|||
.content {
|
||||
padding: 0px;
|
||||
margin: 0 auto;
|
||||
margin-top: 4rem;
|
||||
}
|
||||
|
||||
.hpar {
|
||||
|
|
Loading…
Reference in New Issue