RogerDodger (talk | contribs) No edit summary |
RogerDodger (talk | contribs) No edit summary |
||
Line 68: | Line 68: | ||
height: 1px; | height: 1px; | ||
background-color: currentColor; | background-color: currentColor; | ||
margin-bottom: | margin-bottom: 1.2em; | ||
} | } | ||
Revision as of 16:30, 16 November 2021
.punishers {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1em;
margin-top: 0.5em;
}
.punishers-label {
text-align: center;
font-weight: bold;
margin-bottom: 0.2em;
}
.punishers-grid {
display: grid;
grid-template-columns: auto 1fr;
align-items: center;
gap: 0 0.2em;
}
.punishers-startup {
grid-column: 1;
}
.punishers-bars,
.punishers-scale {
grid-column: 2;
}
.punishers-bars {
position: relative;
height: 2em;
}
.punishers-bar {
position: absolute;
color: transparent;
display: flex;
justify-content: center;
align-items: center;
user-select: none;
height: 100%;
}
.punishers-median {
position: absolute;
top: 50%;
}
.punishers-median:after {
content: "";
display: block;
height: 0.8em;
width: 2px;
background-color: currentColor;
position: absolute;
right: -1px;
top: -0.4em;
}
.punishers-bar:hover {
z-index: 2;
color: inherit;
}
.punishers-scale {
position: relative;
height: 1px;
background-color: currentColor;
margin-bottom: 1.2em;
}
.punishers-scale:after {
content: 'Damage';
display: block;
text-align: center;
position: relative;
top: 1rem;
font-size: 0.8em;
}
.punishers-scalepip {
position: absolute;
font-size: 0.7em;
}
.punishers-piplabel {
position: absolute;
color: transparent;
right: 0;
top: 0.4rem;
transform: translateX(50%);
}
.punishers-scalepip.minor .punishers-piplabel,
.punishers-scalepip.major .punishers-piplabel {
color: inherit;
}
.punishers-scalepip.minor:after,
.punishers-scalepip.major:after {
height: 8px;
}
.punishers-scalepip:after {
content: '';
position: absolute;
right: -1px;
width: 1px;
height: 4px;
background-color: currentColor;
}