Skip to content

Commit

Permalink
Merge pull request #75 from openzim/fix_tables
Browse files Browse the repository at this point in the history
Quick-fix tables display
  • Loading branch information
benoit74 authored Jan 21, 2025
2 parents b86e54d + 96eb0c6 commit 711793c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add missing support for swahili (#66)
- Do not parse the whole markdown as YAML, but only the frontmatter (#64)
- Properly parse/present mathjax code (#57)
- Fix display of tables in challenge instructions (#75)

## [1.2.0] - 2025-01-16

Expand Down
23 changes: 23 additions & 0 deletions zimui/public/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,26 @@ a[href^="https://"]:after
.MathJax svg {
display: inline;
}

.markdown table {
display: inline-block;
overflow: auto;
}
.markdown table thead {
border-color: inherit;
background-color: lightblue;
display: table-header-group;
vertical-align: middle;
}
.markdown table th {
font-weight: 700;
}
.markdown table td,
.markdown table th {
border: 1px solid black;
padding: 6px 13px;
text-align: center;
}
.markdown table tbody tr:nth-of-type(odd) {
background-color: rgb(211, 211, 211, 0.3);
}

0 comments on commit 711793c

Please sign in to comment.