#20 Traglast Farben anpassung & Tooltip
This commit was merged in pull request #33.
This commit is contained in:
1 parent
3448ce5a4c
commit
e8caa591c4
3 files changed
+35
-14
No files matched your search
@@ -7,6 +7,7 @@
|
||||
"Fertigkeit": "Fertigkeit",
|
||||
"Stufe": "Stufe",
|
||||
"Schicksalsmünzen": "Schicksalsmünzen",
|
||||
"Traglast": "Traglast",
|
||||
"Grad": {
|
||||
"grad": "Grad",
|
||||
"frei": "frei",
|
||||
|
||||
+30
-14
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -226,6 +226,9 @@
|
||||
</div>
|
||||
</ul>
|
||||
<div class="sticky-progress-container">
|
||||
<div class="tooltip-wrapper">
|
||||
<span class="tooltiptext">{{localize "Midgard6.Traglast"}}: {{gewicht.gewicht}} / {{gewicht.traglast}}</span>
|
||||
|
||||
<div class="progress-background">
|
||||
<progress
|
||||
class="progress-bar"
|
||||
@@ -234,4 +237,5 @@
|
||||
></progress>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
Reference in new issue
Block a user