Skip to content

Commit

Permalink
print: increase font-size from 15px to 17px, to improve readabi…
Browse files Browse the repository at this point in the history
…lity. (#40)
  • Loading branch information
eddyb authored Jun 18, 2023
2 parents 5a27d6d + 8561fde commit a45db1c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] - ReleaseDate

### Changed 🛠
- [PR#40](https://github.com/EmbarkStudios/spirt/pull/40) increased the pretty-printed
HTML `font-size` from `15px` to `17px`, to improve readability
- [PR#39](https://github.com/EmbarkStudios/spirt/pull/39) shortened pretty-printed names
like `type2`/`func3`/etc. to `T2`/`F3`/etc. (with e.g. `type T2 = ...` style definitions)
- [PR#38](https://github.com/EmbarkStudios/spirt/pull/38) split off `print::Node::Root`,
Expand Down
2 changes: 1 addition & 1 deletion src/print/multiversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ impl Versions<pretty::FragmentPostLayout> {
}
SCOPE>tbody>tr>th {
/* HACK(eddyb) these are relative to `pretty`'s own HTML styles. */
font-size: 17px;
font-size: 19px;
font-weight: 700;
font-style: italic;
Expand Down
2 changes: 1 addition & 1 deletion src/print/pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ impl<'a> FromInternalIterator<TextOp<'a>> for HtmlSnippet {
margin: 1ch;
/* HACK(eddyb) avoid unnecessarily small or thin text. */
font-size: 15px;
font-size: 17px;
font-weight: 500;
}
SCOPE a {
Expand Down

0 comments on commit a45db1c

Please sign in to comment.