Skip to content

Commit a5f4183

Browse files
chore: upstream some theme elements and update Verso (#156)
This should fix horizontal scrolling on mobile phones. Closes #138 and most of #155.
1 parent 7405bdf commit a5f4183

File tree

3 files changed

+5
-54
lines changed

3 files changed

+5
-54
lines changed

.vale/scripts/rewrite_html.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ def process_html_file(filepath, output_filepath):
3434
for element in soup.find_all(class_="namedocs"):
3535
element.decompose()
3636

37+
# Delete the index
38+
for element in soup.find_all(class_="theIndex"):
39+
element.decompose()
40+
3741
# Delete grammar specifications
3842
for element in soup.find_all(class_="grammar"):
3943
element.decompose()

lake-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"type": "git",
2626
"subDir": null,
2727
"scope": "",
28-
"rev": "6b15732648542ff28017eea75da3dddceea1fe91",
28+
"rev": "a0dfe90b994567dd8113cab24baa1da27709d444",
2929
"name": "verso",
3030
"manifestFile": "lake-manifest.json",
3131
"inputRev": "main",

static/theme.css

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -4,55 +4,10 @@
44
--verso-code-font-family: Source Code Pro, monospace;
55
}
66

7-
html {
8-
font-size: 16px;
9-
}
10-
117
p {
128
font-feature-settings: "calt" off;
139
}
1410

15-
header h1 {
16-
font-weight: 700;
17-
margin: 10px;
18-
}
19-
20-
h1 {
21-
font-size: 3.0em;
22-
line-height: 1.5;
23-
margin-bottom: 1.5rem;
24-
}
25-
26-
h2 {
27-
font-size: 1.8rem;
28-
line-height: 1.5;
29-
margin-bottom: 1rem;
30-
}
31-
32-
h3 {
33-
font-size: 1.4rem;
34-
line-height: 1.5;
35-
margin-bottom: 0.2rem;
36-
}
37-
38-
h4 {
39-
font-size: 1.2rem;
40-
line-height: 1.25;
41-
margin-bottom: 0.2rem;
42-
}
43-
44-
h5 {
45-
font-size: 1rem;
46-
line-height: 1.25;
47-
margin-bottom: 0.2rem;
48-
}
49-
50-
h6 {
51-
font-size: 1rem;
52-
line-height: 1.15;
53-
margin-bottom: 0rem;
54-
}
55-
5611
.hl.lean.block {
5712
margin-top: 1em;
5813
margin-bottom: 1em;
@@ -122,11 +77,3 @@ figcaption {
12277
z-index: 9; /* Just below the ToC */
12378
}
12479
}
125-
126-
#print {
127-
display: none;
128-
}
129-
130-
#top-menu {
131-
132-
}

0 commit comments

Comments
 (0)