#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",
|
"Fertigkeit": "Fertigkeit",
|
||||||
"Stufe": "Stufe",
|
"Stufe": "Stufe",
|
||||||
"Schicksalsmünzen": "Schicksalsmünzen",
|
"Schicksalsmünzen": "Schicksalsmünzen",
|
||||||
|
"Traglast": "Traglast",
|
||||||
"Grad": {
|
"Grad": {
|
||||||
"grad": "Grad",
|
"grad": "Grad",
|
||||||
"frei": "frei",
|
"frei": "frei",
|
||||||
|
|||||||
+30
-14
@@ -18,37 +18,53 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: 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 {
|
.progress-background {
|
||||||
width: 90%; /* Breite des Balkens auf dem Bildschirm */
|
width: 100%;
|
||||||
max-width: 800px; /* Maximale Breite auf großen Bildschirmen */
|
|
||||||
background-color: #e0e0e0;
|
background-color: #e0e0e0;
|
||||||
overflow: hidden; /* Schneidet den inneren Balken sauber ab */
|
overflow: hidden;
|
||||||
transform: skewX(-30deg);
|
transform: skewX(-30deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Der eigentliche, animierte Ladebalken */
|
|
||||||
.progress-bar {
|
.progress-bar {
|
||||||
height: 20px;
|
height: 20px;
|
||||||
background-color: var(--M6-background-brown); /* Grün */
|
background-color: #808080;
|
||||||
text-align: center;
|
|
||||||
line-height: 20px;
|
|
||||||
color: white;
|
|
||||||
font-size: 12px;
|
|
||||||
font-weight: bold;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
color: var(--M6-background-brown);
|
||||||
}
|
}
|
||||||
|
|
||||||
progress::-moz-progress-bar {
|
progress::-moz-progress-bar {
|
||||||
background: var(--M6-background-brown);
|
background: var(--M6-background-brown);
|
||||||
}
|
}
|
||||||
progress::-webkit-progress-value {
|
progress::-webkit-progress-value {
|
||||||
background: var(--M6-background-brown);
|
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>
|
</div>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="sticky-progress-container">
|
<div class="sticky-progress-container">
|
||||||
|
<div class="tooltip-wrapper">
|
||||||
|
<span class="tooltiptext">{{localize "Midgard6.Traglast"}}: {{gewicht.gewicht}} / {{gewicht.traglast}}</span>
|
||||||
|
|
||||||
<div class="progress-background">
|
<div class="progress-background">
|
||||||
<progress
|
<progress
|
||||||
class="progress-bar"
|
class="progress-bar"
|
||||||
@@ -234,4 +237,5 @@
|
|||||||
></progress>
|
></progress>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
Reference in new issue
Block a user