From eb920cce5742f885fa9b16ba0e46bef95907db21 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Fri, 8 Jul 2022 14:08:02 +0200 Subject: [PATCH] Using tooltips for queries --- benchmark/index.html | 56 ++++++++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 26 deletions(-) diff --git a/benchmark/index.html b/benchmark/index.html index 6a94a63418a..b2e6cfbfed9 100644 --- a/benchmark/index.html +++ b/benchmark/index.html @@ -27,8 +27,6 @@ --summary-every-other-row-color: #F8F8F8; --highlight-color: #EEE; --bar-color: #FFCB80; - --legend-color: #FED; - --legend-border-color: #FFCB80; --tooltip-text-color: white; --tooltip-background-color: black; @@ -55,8 +53,6 @@ --summary-every-other-row-color: #042e41; --highlight-color: #064663; --bar-color: #088; - --legend-color: #064663; - --legend-border-color: #064663; --tooltip-text-color: white; --tooltip-background-color: #444; @@ -202,15 +198,6 @@ position: relative; } - #legend { - font-family: monospace; - min-height: 4rem; - padding: 0.5rem; - margin-bottom: 1rem; - background: var(--legend-color); - border: 1px solid var(--legend-border-color); - } - #nothing-selected { display: none; font-size: 32pt; @@ -226,7 +213,6 @@ .tooltip { position: absolute; bottom: calc(100% + 0.5rem); - left: calc(50% - 0.25rem); visibility: hidden; background-color: var(--tooltip-background-color); color: var(--tooltip-text-color); @@ -234,12 +220,22 @@ padding: 0.5rem 0.75rem; border-radius: 0.5rem; z-index: 1; - width: 20rem; - margin-left: -10rem; text-align: left; white-space: normal; } + .tooltip-result { + left: calc(50% - 0.25rem); + width: 20rem; + margin-left: -10rem; + } + + .tooltip-query { + left: 0; + width: 40rem; + margin-left: -3rem; + } + .note:hover .tooltip { visibility: visible; } @@ -248,13 +244,21 @@ content: " "; position: absolute; top: 100%; - left: 50%; - margin-left: -1rem; border-width: 0.5rem; border-style: solid; border-color: var(--tooltip-background-color) transparent transparent transparent; } + .tooltip-result::after { + left: 50%; + margin-left: -1rem; + } + + .tooltip-query::after { + left: 3rem; + margin-left: 0.5rem; + } + .nowrap { text-wrap: none; } @@ -451,8 +455,6 @@ const additional_data_size_points = [ -
-