/*
* base movedata style
*
* name above input, in damage row
*/
.movedata {
display: grid;
grid-template-areas: "id threat frames notes";
grid-template-columns: 22% 10% 36% 1fr;
line-height: initial;
align-items: center;
border-width: 0 0 1px 0;
border-style: solid;
border-color: #777;
padding: 0.2em 0;
gap: 0 0.2em;
}
.movedata p {
margin: 0;
}
.movedata {
margin-top: 0.8em;
text-align: center;
}
/* link rel="mw-deduplicated-inline-style" is inserted above the transclude */
.movedata + .movedata,
.movedata + link + .movedata {
margin-top: 0;
}
.movedata-id { grid-area: id; }
.movedata-frames { grid-area: frames; }
.movedata-threat { grid-area: threat; }
.movedata-notes { grid-area: notes; }
.movedata-block { grid-area: block; }
.movedata-hit { grid-area: hit; }
.movedata-ch { grid-area: ch; }
.movedata-startup,
.movedata-startupRoot { grid-area: startup; }
.movedata-crush { grid-area: crush; }
.movedata-recv { grid-area: recv; }
.movedata-tracks.left { grid-area: left; }
.movedata-tracks.right { grid-area: right; }
.movedata-id {
display: flex;
flex-direction: column;
padding-left: 0.2em;
text-align: start;
}
.movedata-name {
font-size: 0.75em;
}
.movedata-input-ctn {
font-size: 1.7em;
display: flex;
flex-flow: row nowrap;
}
.movedata-input-ctn:after {
content: "";
align-self: center;
flex-basis: 0px;
flex-grow: 1;
margin-left: 0.2em;
border-top: 1px solid #777;
}
.movedata-threat {
display: grid;
gap: 0.2em 0;
grid-auto-flow: row;
}
.movedata-frames {
display: grid;
grid-auto-columns: 1fr;
grid-template-areas:
"left left left right right right"
"block block hit hit ch ch"
"startup startup crush crush recv recv";
}
.movedata-frames:before {
content: " ";
display: block;
height: 0px;
width: 100%;
grid-column: 1 / -1;
grid-row: 2;
align-self: end;
border-bottom: 1px dotted #777;
}
.movedata-tracks {
font-size: 0.7em;
overflow: hidden;
}
.movedata-tracks-bar {
height: 2px;
}
.movedata-tracks-score,
.movedata-tracks-label {
padding: 0 0.2em;
}
.movedata-tracks-label {
grid-column: 1 / -1;
}
.movedata-tracks.left {
display: grid;
grid-template-columns: 1fr 1.5em;
align-items: center;
justify-items: end;
}
.movedata-tracks.right {
display: grid;
grid-template-columns: 1.5em 1fr;
align-items: center;
justify-items: start;
}
.movedata-tracks.left .movedata-tracks-score { justify-self: start; }
.movedata-tracks.left .movedata-tracks-label { text-align: end; }
.movedata-tracks.right .movedata-tracks-score { justify-self: end; }
.movedata-tracks.right .movedata-tracks-label { text-align: start; }
.movedata-hit,
.movedata-block,
.movedata-ch {
align-self: end;
margin-bottom: 0.25em;
}
.movedata-startup,
.movedata-crush,
.movedata-recv {
align-self: start;
margin-top: 0.2em;
}
.movedata-startupRoot {
display: none;
}
.movedata-damageLead,
.movedata-targetLead,
.movedata-inputLead {
opacity: .3;
}
.movedata-notes {
align-self: stretch;
text-align: start;
border-left: 1px solid #777;
padding: 0 0.2em;
}
.movedata-input-ctn,
.movedata-notes li {
margin-left: 0.5em;
text-indent: -0.5em;
}
/*
* running out of space around here
* the "Damage" label overflows at ~660px
* so move to more vertical layout
*/
@media (max-width: 620px) {
.movedata {
grid-template-areas:
"id id"
"threat frames"
"notes notes";
grid-template-columns: 1fr 3fr;
border: none;
}
.movedata-id {
flex-direction: column-reverse;
}
.movedata-input-ctn {
margin-left: 0.6em;
}
.movedata-name {
margin-bottom: 0.2em;
}
.movedata-notes {
text-align: end;
border: none;
}
}