RogerDodger (talk | contribs) No edit summary |
RogerDodger (talk | contribs) No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
. | .punishment { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax( | grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); | ||
gap: 1em; | gap: 1em; | ||
margin-top: 0.5em; | margin-top: 0.5em; | ||
} | } | ||
. | .punishment-label { | ||
text-align: center; | text-align: center; | ||
font-weight: bold; | font-weight: bold; | ||
Line 12: | Line 12: | ||
} | } | ||
. | .punishment-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: auto 1fr; | grid-template-columns: auto 1fr; | ||
Line 19: | Line 19: | ||
} | } | ||
. | .punishment-startup { | ||
grid-column: 1; | grid-column: 1; | ||
} | } | ||
. | .punishment-bars, | ||
. | .punishment-scale { | ||
grid-column: 2; | grid-column: 2; | ||
} | } | ||
. | .punishment-bars { | ||
position: relative; | position: relative; | ||
height: 2em; | height: 2em; | ||
} | } | ||
. | .punishment-bar { | ||
position: absolute; | position: absolute; | ||
color: transparent; | color: transparent; | ||
Line 43: | Line 43: | ||
} | } | ||
. | .punishment-median { | ||
position: absolute; | position: absolute; | ||
top: 50%; | top: 50%; | ||
} | } | ||
. | .punishment-median:after { | ||
content: ""; | content: ""; | ||
display: block; | display: block; | ||
Line 59: | Line 59: | ||
} | } | ||
. | .punishment-bar:hover { | ||
z-index: 2; | z-index: 2; | ||
color: inherit; | color: inherit; | ||
} | } | ||
. | .punishment-scale { | ||
position: relative; | position: relative; | ||
height: 1px; | height: 1px; | ||
background-color: currentColor; | background-color: currentColor; | ||
margin-bottom: | margin-bottom: 1.2em; | ||
} | } | ||
. | .punishment-scale:after { | ||
content: 'Damage'; | content: 'Damage'; | ||
display: block; | display: block; | ||
Line 80: | Line 80: | ||
} | } | ||
. | .punishment-scalepip { | ||
position: absolute; | position: absolute; | ||
font-size: 0.7em; | font-size: 0.7em; | ||
} | } | ||
. | .punishment-piplabel { | ||
position: absolute; | position: absolute; | ||
color: transparent; | color: transparent; | ||
Line 93: | Line 93: | ||
} | } | ||
. | .punishment-scalepip.minor .punishment-piplabel, | ||
. | .punishment-scalepip.major .punishment-piplabel { | ||
color: inherit; | color: inherit; | ||
} | } | ||
. | .punishment-scalepip.minor:after, | ||
. | .punishment-scalepip.major:after { | ||
height: 8px; | height: 8px; | ||
} | } | ||
. | .punishment-scalepip:after { | ||
content: ''; | content: ''; | ||
position: absolute; | position: absolute; |
Latest revision as of 01:30, 22 February 2022
.punishment {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1em;
margin-top: 0.5em;
}
.punishment-label {
text-align: center;
font-weight: bold;
margin-bottom: 0.2em;
}
.punishment-grid {
display: grid;
grid-template-columns: auto 1fr;
align-items: center;
gap: 0 0.2em;
}
.punishment-startup {
grid-column: 1;
}
.punishment-bars,
.punishment-scale {
grid-column: 2;
}
.punishment-bars {
position: relative;
height: 2em;
}
.punishment-bar {
position: absolute;
color: transparent;
display: flex;
justify-content: center;
align-items: center;
user-select: none;
height: 100%;
}
.punishment-median {
position: absolute;
top: 50%;
}
.punishment-median:after {
content: "";
display: block;
height: 0.8em;
width: 2px;
background-color: currentColor;
position: absolute;
right: -1px;
top: -0.4em;
}
.punishment-bar:hover {
z-index: 2;
color: inherit;
}
.punishment-scale {
position: relative;
height: 1px;
background-color: currentColor;
margin-bottom: 1.2em;
}
.punishment-scale:after {
content: 'Damage';
display: block;
text-align: center;
position: relative;
top: 1rem;
font-size: 0.8em;
}
.punishment-scalepip {
position: absolute;
font-size: 0.7em;
}
.punishment-piplabel {
position: absolute;
color: transparent;
right: 0;
top: 0.4rem;
transform: translateX(50%);
}
.punishment-scalepip.minor .punishment-piplabel,
.punishment-scalepip.major .punishment-piplabel {
color: inherit;
}
.punishment-scalepip.minor:after,
.punishment-scalepip.major:after {
height: 8px;
}
.punishment-scalepip:after {
content: '';
position: absolute;
right: -1px;
width: 1px;
height: 4px;
background-color: currentColor;
}