Skip to content

Commit

Permalink
html: hide TOC when viewed on mobile (#313)
Browse files Browse the repository at this point in the history
Co-authored-by: Marc Lichtman <[email protected]>
  • Loading branch information
777arc and Marc Lichtman committed May 21, 2024
1 parent f4d56eb commit 8371175
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ def gen_fields(doc, d):
body {
padding-left: 20em;
}
@media (max-width:800px){
#TOC {display:none; width: 0em;}
body {padding-left: 0em;}
}
code {
color: #000;
font-family: monospace;
Expand Down

0 comments on commit 8371175

Please sign in to comment.