fixed regression at front page if *not* small screen..

This commit is contained in:
Marcell Mars 2020-08-27 01:45:01 +02:00
parent fd32482866
commit 66c4a84f10
2 changed files with 12 additions and 2 deletions

View File

@ -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";

View File

@ -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 {