Template:LHCharge: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div style="display: flex;"> | <div style="display: flex;"> | ||
<div style="position: relative; flex: 1 1; height: 1.5em; background-color: white; border: .2em solid black; text-align: center; overflow: hidden;"> | <div style="position: relative; flex: 1 1; height: 1.5em; background-color: white; border: .2em solid black; text-align: center; overflow: hidden;"> | ||
<div style="position: absolute; top: 0; left: 0; width: {{{charge|0}}}%; height: 1.5em; background-color: gold | <div style="position: absolute; top: 0; left: 0; width: {{{charge|0}}}%; height: 1.5em; background-color: gold;"></div> | ||
<div style="position: absolute; top: 0; left: 0; width: 100%;">{{#switch: {{{charge|0}}} | <div style="position: absolute; top: 0; left: 0; width: 100%;">{{#switch: {{{charge|0}}} | ||
| 1 | | 1 |