summaryrefslogtreecommitdiff
path: root/ext/css/popup-preview.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/popup-preview.css
parent1e4545107df139a3a87b18256438a7635aa84ff6 (diff)
Improve some values based on the font-size (#1430)
Diffstat (limited to 'ext/css/popup-preview.css')
-rw-r--r--ext/css/popup-preview.css9
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/css/popup-preview.css b/ext/css/popup-preview.css
index 2faccc3f..6e9251c8 100644
--- a/ext/css/popup-preview.css
+++ b/ext/css/popup-preview.css
@@ -16,6 +16,12 @@
*/
:root {
+ --font-size-no-units: 14;
+ --font-size: calc(1px * var(--font-size-no-units));
+
+ --line-height-no-units: 20;
+ --line-height: calc(var(--line-height-no-units) / var(--font-size-no-units));
+
--animation-duration: 0s;
}
:root[data-loaded=true] {
@@ -40,7 +46,8 @@ body {
width: 100%;
height: 100%;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
- font-size: 14px;
+ font-size: var(--font-size);
+ line-height: var(--line-height);
}
.content {