From f1ba1815f7d27046ddf70c69a7da20183a8adb86 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Fri, 26 Feb 2021 18:37:21 -0700 Subject: [PATCH] Replace the player's stat labels with icons --- index.html | 34 +++++++++++++++++++++++++++------- style.css | 14 ++++++++------ 2 files changed, 35 insertions(+), 13 deletions(-) diff --git a/index.html b/index.html index 75765db..12fbd86 100644 --- a/index.html +++ b/index.html @@ -142,16 +142,16 @@
@@ -180,15 +180,35 @@
-

Hearts

+

+ + + +

-

Time

+

+ + + + + + + + + +

-

Bonus

+

+ + + + + +

diff --git a/style.css b/style.css index 18d95ad..f4f0b11 100644 --- a/style.css +++ b/style.css @@ -1306,14 +1306,16 @@ dl.score-chart .-star { font-size: calc(var(--tile-height) * var(--scale) / 3); display: flex; align-items: center; + gap: 0.5em; } .chips h3, .time h3, .bonus h3 { - flex: 1; + flex: 0; + order: 2; font-size: 1.5em; line-height: 1; - color: hsl(225, 20%, 90%); + color: hsl(225, 20%, 80%); } .chips output, .time output, @@ -1424,10 +1426,10 @@ dl.score-chart .-star { /* Rearrange the grid to be vertical */ grid: "level level" - "chips inventory" calc((var(--tile-height) * var(--scale) * 2 - 1em) / 3) - "time inventory" calc((var(--tile-height) * var(--scale) * 2 - 1em) / 3) - "bonus inventory" calc((var(--tile-height) * var(--scale) * 2 - 1em) / 3) - / 1fr min-content + "inventory chips" calc((var(--tile-height) * var(--scale) * 2 - 1em) / 3) + "inventory time" calc((var(--tile-height) * var(--scale) * 2 - 1em) / 3) + "inventory bonus" calc((var(--tile-height) * var(--scale) * 2 - 1em) / 3) + / min-content 1fr ; } #player .inventory {