summaryrefslogtreecommitdiff
path: root/ext/css/display.css
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-02-21 11:34:55 -0500
committerGitHub <noreply@github.com>2021-02-21 11:34:55 -0500
commit75d0d333d86d2450db811a89b503bae22a3b49b6 (patch)
tree5a7efea83d1505612f05fecb7d533eedd9bcd1c0 /ext/css/display.css
parent1e4545107df139a3a87b18256438a7635aa84ff6 (diff)
Improve some values based on the font-size (#1430)
Diffstat (limited to 'ext/css/display.css')
-rw-r--r--ext/css/display.css8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/css/display.css b/ext/css/display.css
index b4a7983e..e9339ccc 100644
--- a/ext/css/display.css
+++ b/ext/css/display.css
@@ -63,10 +63,10 @@
--expression-space-size: 0.5em;
- --tag-font-size-no-units: calc(11 / 14);
- --tag-font-size: calc(1em * var(--tag-font-size-no-units));
+ --tag-font-size-no-units: 11;
+ --tag-font-size: calc(1em * var(--tag-font-size-no-units) / var(--font-size-no-units));
--tag-border-size-no-units: 0;
- --tag-border-size: calc(1em * (var(--tag-border-size-no-units) / (var(--font-size-no-units) * var(--tag-font-size-no-units))));
+ --tag-border-size: calc(1em * (var(--tag-border-size-no-units) / var(--tag-font-size-no-units)));
--tag-border-style: none;
--tag-font-weight: bold;
@@ -256,7 +256,7 @@ h3 {
padding: 0;
}
h5 {
- font-size: calc(12em / 14);
+ font-size: calc(12em / var(--font-size-no-units));
margin: 0;
padding: 0;
font-weight: normal;