From 459c82ee0af5f0f4aa4b37d7f909643285805c65 Mon Sep 17 00:00:00 2001 From: Maciej Olko Date: Thu, 22 Oct 2026 10:23:05 +0200 Subject: [PATCH 1/2] Clarify the dashboard legend --- src/style.css | 23 ----------------------- templates/index.html.jinja | 29 ++++++++++++----------------- 2 files changed, 12 insertions(+), 40 deletions(-) diff --git a/src/style.css b/src/style.css index 59dacbfdd..413f279fa 100644 --- a/src/style.css +++ b/src/style.css @@ -312,8 +312,6 @@ td[data-label="warnings"], td[data-label="lint"] { } .legend dt { - justify-self: end; - font-weight: normal; line-height: 1.5; } @@ -322,32 +320,11 @@ td[data-label="warnings"], td[data-label="lint"] { line-height: 1.5; } -/* Mimicking the card progress bars. */ -.legend-bar { - --bs-badge-font-size: 0.875rem; - --bs-badge-font-weight: normal; - --bs-badge-padding-y: 0; - --bs-badge-padding-x: 0.5em; - min-width: 6.5rem; - line-height: 20px; - background-color: #4caf50; -} - -/* White on the lighter green would not be readable at this size. */ -.legend-bar-change { - --bs-badge-color: #15141A; - background: linear-gradient(to left, #94cf96 60%, #4caf50 60%); - text-align: right; -} - @media screen and (max-width: 575px) { .legend { grid-template-columns: 1fr; row-gap: 0.25rem; } - .legend dt { - justify-self: start; - } .legend dd { margin-bottom: 0.5rem; } diff --git a/templates/index.html.jinja b/templates/index.html.jinja index d9dce78d8..93c0ce9cf 100644 --- a/templates/index.html.jinja +++ b/templates/index.html.jinja @@ -64,30 +64,25 @@