diff options
author | Samuel Mannehed <samuel@cendio.se> | 2023-03-23 11:02:28 +0100 |
---|---|---|
committer | Samuel Mannehed <samuel@cendio.se> | 2023-03-23 11:06:03 +0100 |
commit | 8decca7353a0a730226842aa33c9018ac5e6e44c (patch) | |
tree | 8930a2933658ad80f1f3081aba1419c6ef2f278f | |
parent | 4558104196834963cea5748e4bed1750fbc4f6e2 (diff) | |
download | novnc-8decca7353a0a730226842aa33c9018ac5e6e44c.tar.gz |
Use unitless numbers for line-height values
Using <length> type values for line-height can give unexpected
inheritance behaviors. If using <length> 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.
-rw-r--r-- | app/styles/base.css | 4 |
1 files 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{ |