From e8caa591c4813634bdc723aa3deb48569c379629 Mon Sep 17 00:00:00 2001 From: Byroks Date: Wed, 28 Oct 2026 11:22:11 +0100 Subject: [PATCH] #20 Traglast Farben anpassung & Tooltip --- lang/de.json | 1 + src/styles/items-page.scss | 44 ++++++++++++++++++++++++++------------ templates/actor/items.hbs | 4 ++++ 3 files changed, 35 insertions(+), 14 deletions(-) diff --git a/lang/de.json b/lang/de.json index 69035e9..51ec088 100644 --- a/lang/de.json +++ b/lang/de.json @@ -7,6 +7,7 @@ "Fertigkeit": "Fertigkeit", "Stufe": "Stufe", "Schicksalsmünzen": "Schicksalsmünzen", + "Traglast": "Traglast", "Grad": { "grad": "Grad", "frei": "frei", diff --git a/src/styles/items-page.scss b/src/styles/items-page.scss index 6053313..09055e5 100644 --- a/src/styles/items-page.scss +++ b/src/styles/items-page.scss @@ -18,37 +18,53 @@ display: flex; justify-content: center; align-items: center; - z-index: 9999; /* Bleibt immer im Vordergrund */ + z-index: 100; + } + + .tooltip-wrapper { + position: relative; + width: 90%; + cursor: pointer; } - /* Der graue Hintergrund des Balkens */ .progress-background { - width: 90%; /* Breite des Balkens auf dem Bildschirm */ - max-width: 800px; /* Maximale Breite auf großen Bildschirmen */ + width: 100%; background-color: #e0e0e0; - overflow: hidden; /* Schneidet den inneren Balken sauber ab */ + overflow: hidden; transform: skewX(-30deg); } - /* Der eigentliche, animierte Ladebalken */ .progress-bar { height: 20px; - background-color: var(--M6-background-brown); /* Grün */ - text-align: center; - line-height: 20px; - color: white; - font-size: 12px; - font-weight: bold; + background-color: #808080; width: 100%; + color: var(--M6-background-brown); } + progress::-moz-progress-bar { background: var(--M6-background-brown); } progress::-webkit-progress-value { background: var(--M6-background-brown); } - progress { - color: var(--M6-background-brown); + + .tooltiptext { + visibility: hidden; + background-color: black; + color: #fff; + text-align: center; + border-radius: 6px; + padding: 5px 0; + position: absolute; + width: 130px; + bottom: 120%; + left: 50%; + margin-left: -65px; + z-index: 200; + } + + .tooltip-wrapper:hover .tooltiptext { + visibility: visible; } } } diff --git a/templates/actor/items.hbs b/templates/actor/items.hbs index cd9cd19..3f8fb69 100644 --- a/templates/actor/items.hbs +++ b/templates/actor/items.hbs @@ -226,6 +226,9 @@
+
+ {{localize "Midgard6.Traglast"}}: {{gewicht.gewicht}} / {{gewicht.traglast}} +
+
\ No newline at end of file -- 2.54.0