Template:MoveData/style2.css: Difference between revisions

Template page
(copy from style.css)
 
No edit summary
Line 45: Line 45:
.movedata-crush { grid-area: crush; }
.movedata-crush { grid-area: crush; }
.movedata-recv { grid-area: recv; }
.movedata-recv { grid-area: recv; }
.movedata-tracksLeft { grid-area: left; }
.movedata-tracksRight { grid-area: right; }


.movedata-id {
.movedata-id {
Line 82: Line 85:
   grid-auto-columns: 1fr;
   grid-auto-columns: 1fr;
   grid-template-areas:
   grid-template-areas:
     "block hit ch"
    "left left left right right right"
     "startup crush recv";
     "block block hit hit ch ch"
     "startup startup crush crush recv recv";
}
}


Line 92: Line 96:
   width: 100%;
   width: 100%;
   grid-column: 1 / -1;
   grid-column: 1 / -1;
   grid-row: 1;
   grid-row: 2;
   align-self: end;
   align-self: end;
   border-bottom: 1px dotted #777;
   border-bottom: 1px dotted #777;
}
.movedata-tracksLeft,
.movedata-tracksRight {
  font-size: 0.7em;
}
.movedata-tracks-bar {
  height: 3px;
  background-color: #777;
}
.movedata-tracksLeft {
  display: grid;
  grid-template-columns: 1fr 1.5em;
  align-items: center;
}
.movedata-tracksLeft .movedata-tracks-bar {
  justify-self: end;
}
.movedata-tracks-score {
  padding: 0 0.4em;
}
.movedata-tracksLeft .movedata-tracks-score {
  justify-self: start;
}
.movedata-tracksRight .movedata-tracks-score {
  justify-self: end;
}
.movedata-tracksRight {
  display: grid;
  grid-template-columns: 1.5em 1fr;
  align-items: center;
}
}



Revision as of 17:33, 12 January 2021

/*
 * 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-tracksLeft { grid-area: left; }
.movedata-tracksRight { 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-tracksLeft,
.movedata-tracksRight {
  font-size: 0.7em;
}

.movedata-tracks-bar {
  height: 3px;
  background-color: #777;
}

.movedata-tracksLeft {
  display: grid;
  grid-template-columns: 1fr 1.5em;
  align-items: center;
}

.movedata-tracksLeft .movedata-tracks-bar {
  justify-self: end;
}

.movedata-tracks-score {
  padding: 0 0.4em;
}

.movedata-tracksLeft .movedata-tracks-score {
  justify-self: start;
}

.movedata-tracksRight .movedata-tracks-score {
  justify-self: end;
}

.movedata-tracksRight {
  display: grid;
  grid-template-columns: 1.5em 1fr;
  align-items: center;
}

.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;
  }
}