From 4c8b68fce86e12d19236dcfe4ad3c1063427119e Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 5 Nov 2025 23:07:30 +0100 Subject: [PATCH] In clickbench.html there is a feature that is missing in index.html - "horizon" charts - the bars are displayed in different colors for different scale, on the same bar. Port this feature from clickbench.html to index.html. --- index.html | 43 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 39 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 1fa0d91..e9141f0 100644 --- a/index.html +++ b/index.html @@ -27,6 +27,12 @@ --summary-every-other-row-color: #F8F8F8; --highlight-color: #EEE; + + --bar-color1: oklch(calc(0.9 - 0.6) 0.1 calc(90 - 60)); + --bar-color2: oklch(calc(0.9 - 0.4) 0.1 calc(90 - 40)); + --bar-color3: oklch(calc(0.9 - 0.1) 0.1 calc(90 - 20)); + --bar-color4: oklch(0.9 0.1 90); + --bar-color: #FFCB80; --fake-bar-color: #CCC; @@ -54,6 +60,12 @@ --summary-every-other-row-color: #042e41; --highlight-color: #064663; + + --bar-color1: oklch(calc(0.4 + 0.6) 0.1 calc(250 - 180)); + --bar-color2: oklch(calc(0.4 + 0.4) 0.1 calc(250 - 120)); + --bar-color3: oklch(calc(0.4 + 0.2) 0.1 calc(250 - 60)); + --bar-color4: oklch(0.4 0.1 250); + --bar-color: #088; --fake-bar-color: #666; @@ -155,8 +167,7 @@ .summary-bar { height: 1rem; - background: var(--bar-color); - border-radius: 0 0.2rem 0.2rem 0; + width: 100%; } .summary-bar-fake { @@ -287,6 +298,12 @@ transform: translate(1px, 1px); filter: brightness(125%); } + + #scale_hint { + font-weight: normal; + font-size: 80%; + filter: contrast(10%); + }