From 35663c5fd467621b196e0d6e5ac6860f10b0a6fd Mon Sep 17 00:00:00 2001 From: CaCO3 Date: Sun, 11 Feb 2024 17:28:01 +0100 Subject: [PATCH] add tooltip css --- sd-card/html/edit_reference.html | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/sd-card/html/edit_reference.html b/sd-card/html/edit_reference.html index bb12366c..110c4a85 100644 --- a/sd-card/html/edit_reference.html +++ b/sd-card/html/edit_reference.html @@ -49,6 +49,39 @@ width: 660px; padding: 5px; } + + .tooltip { + position: relative; + display: inline-block; + } + + .tooltip .tooltiptext { + visibility: hidden; + width: 600px; + background-color: #fcfcfc; + + padding: 5px; + padding-bottom: 0; + + border: solid black 2px; + + /* Position the tooltip */ + position: absolute; + z-index: 1; + top: 100%; + left: 100%; + margin-left: -600px; + } + + .tooltip:hover .tooltiptext { + visibility: visible; + } + + .tooltip-content { + width: calc(100% - 2px); + height: calc(100% - 2px); + padding: 1px; + }