From 8561fde5f356bbe1bec065e848d72ac1a6ea8da3 Mon Sep 17 00:00:00 2001 From: Eduard-Mihai Burtescu Date: Sun, 18 Jun 2023 06:07:33 +0300 Subject: [PATCH] print: increase `font-size` from `15px` to `17px`, to improve readability. --- CHANGELOG.md | 2 ++ src/print/multiversion.rs | 2 +- src/print/pretty.rs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a148675..bbae2f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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`, diff --git a/src/print/multiversion.rs b/src/print/multiversion.rs index a0e6b44..d49c537 100644 --- a/src/print/multiversion.rs +++ b/src/print/multiversion.rs @@ -114,7 +114,7 @@ impl Versions { } 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; diff --git a/src/print/pretty.rs b/src/print/pretty.rs index b40cc02..a63f14d 100644 --- a/src/print/pretty.rs +++ b/src/print/pretty.rs @@ -310,7 +310,7 @@ impl<'a> FromInternalIterator> for HtmlSnippet { margin: 1ch; /* HACK(eddyb) avoid unnecessarily small or thin text. */ - font-size: 15px; + font-size: 17px; font-weight: 500; } SCOPE a {