Template:MoveDataFragment/style.css

Template page
/*
 * 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-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:
    "block hit ch"
    "startup crush recv";
}

.movedata-frames:before {
  content: " ";
  display: block;
  height: 0px;
  width: 100%;
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: end;
  border-bottom: 1px dotted #777;
}

.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: 680px) {
  .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;
  }
}