Skip to content

Commit

Permalink
chore: upstream some theme elements and update Verso (#156)
Browse files Browse the repository at this point in the history
This should fix horizontal scrolling on mobile phones.

Closes #138 and most of #155.
  • Loading branch information
david-christiansen authored Nov 19, 2024
1 parent 7405bdf commit a5f4183
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 54 deletions.
4 changes: 4 additions & 0 deletions .vale/scripts/rewrite_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ def process_html_file(filepath, output_filepath):
for element in soup.find_all(class_="namedocs"):
element.decompose()

# Delete the index
for element in soup.find_all(class_="theIndex"):
element.decompose()

# Delete grammar specifications
for element in soup.find_all(class_="grammar"):
element.decompose()
Expand Down
2 changes: 1 addition & 1 deletion lake-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"type": "git",
"subDir": null,
"scope": "",
"rev": "6b15732648542ff28017eea75da3dddceea1fe91",
"rev": "a0dfe90b994567dd8113cab24baa1da27709d444",
"name": "verso",
"manifestFile": "lake-manifest.json",
"inputRev": "main",
Expand Down
53 changes: 0 additions & 53 deletions static/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,55 +4,10 @@
--verso-code-font-family: Source Code Pro, monospace;
}

html {
font-size: 16px;
}

p {
font-feature-settings: "calt" off;
}

header h1 {
font-weight: 700;
margin: 10px;
}

h1 {
font-size: 3.0em;
line-height: 1.5;
margin-bottom: 1.5rem;
}

h2 {
font-size: 1.8rem;
line-height: 1.5;
margin-bottom: 1rem;
}

h3 {
font-size: 1.4rem;
line-height: 1.5;
margin-bottom: 0.2rem;
}

h4 {
font-size: 1.2rem;
line-height: 1.25;
margin-bottom: 0.2rem;
}

h5 {
font-size: 1rem;
line-height: 1.25;
margin-bottom: 0.2rem;
}

h6 {
font-size: 1rem;
line-height: 1.15;
margin-bottom: 0rem;
}

.hl.lean.block {
margin-top: 1em;
margin-bottom: 1em;
Expand Down Expand Up @@ -122,11 +77,3 @@ figcaption {
z-index: 9; /* Just below the ToC */
}
}

#print {
display: none;
}

#top-menu {

}

0 comments on commit a5f4183

Please sign in to comment.