Skip to content

Commit

Permalink
Fix layout issues on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostrzyciel committed Nov 28, 2023
1 parent 5dd6d5e commit adafa40
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tasks/doc_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ def main():
# Remove the erroneous download link
html = re.sub(r'<dt>Ontology RDF.*?</dd>', '', html, flags=re.DOTALL)

# Remove H1
html = re.sub(r'<h1.*?</h1>', '', html, flags=re.DOTALL)

# Save
with open(output_file, 'w') as f:
f.write(html)
Expand Down
27 changes: 26 additions & 1 deletion tasks/res/pylode.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,35 @@ ul.hlist li {

.entity {
border: 1px solid var(--md-typeset-kbd-border-color);
margin: 5px 0 5px 0;
margin: 5px 0;
padding: 5px;
}

@media screen and (max-width: 600px) {
.entity {
margin: 5px -10px;
}

.entity > h3 {
margin-bottom: 1em;
}

.entity table th, .entity table td {
padding: 0.5em 0.35em !important;
min-width: unset !important;
width: unset !important;
}

.entity table a {
word-break: break-word !important;
}

ul.hlist {
margin-left: -10px !important;
margin-right: -10px;
}
}

.entity th {
width: 150px;
vertical-align: top;
Expand Down

0 comments on commit adafa40

Please sign in to comment.