From 8decca7353a0a730226842aa33c9018ac5e6e44c Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Thu, 23 Mar 2023 11:02:28 +0100 Subject: Use unitless numbers for line-height values Using type values for line-height can give unexpected inheritance behaviors. If using values, the inherited line-height on children is calculated using the font-size of the parent. What we want is for the line-height of children to be calculated using it's own font-size. By instead using a unitless number, we get the behavior we want. Note that this bug has no effects right now since no children to any of the related elements have different font-sizes. --- app/styles/base.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/styles/base.css b/app/styles/base.css index 06e736a..f83ad4b 100644 --- a/app/styles/base.css +++ b/app/styles/base.css @@ -661,7 +661,7 @@ html { justify-content: center; align-content: center; - line-height: 25px; + line-height: 1.6; word-wrap: break-word; color: #fff; @@ -887,7 +887,7 @@ html { .noVNC_logo { color:yellow; font-family: 'Orbitron', 'OrbitronTTF', sans-serif; - line-height:90%; + line-height: 0.9; text-shadow: 0.1em 0.1em 0 black; } .noVNC_logo span{ -- cgit v1.2.1