From 355c3055cb7cbed4f1b24380ea7e187a0c4c4d59 Mon Sep 17 00:00:00 2001 From: moanos Date: Sun, 21 Jul 2024 23:37:27 +0200 Subject: [PATCH] feat: Add tooltip to vollebenen --- src/assets/css/style.css | 25 ++++++++++++++++++++++++- src/index.html | 4 ++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/src/assets/css/style.css b/src/assets/css/style.css index a5c5970..46c351b 100644 --- a/src/assets/css/style.css +++ b/src/assets/css/style.css @@ -56,7 +56,7 @@ a { label { font-weight: bold; - word-break: break-word;; + word-break: break-word; } .slidecontainer { @@ -204,3 +204,26 @@ input.measurement { font-weight: bold; width: 20%; } + + +.tooltip { + position: relative; + display: inline-block; +} + +.tooltip .tooltiptext { + visibility: hidden; + width: 200px; + background-color: var(--primary-dark-one); + color: #ffffff; + text-align: center; + padding: 10px; + border-radius: 5px; + + position: absolute; + z-index: 1; +} + +.tooltip:hover .tooltiptext { + visibility: visible; +} \ No newline at end of file diff --git a/src/index.html b/src/index.html index e87a6b1..6818a9f 100644 --- a/src/index.html +++ b/src/index.html @@ -83,6 +83,10 @@
+
+ + Als Vollebenen zählen alle Ebenen die größer als 0.5m² sind, inklusive des Käfigbodens. +