Template:MoveData/style3.css: Difference between revisions

Template page
(Created page with "→‎* base movedata style * * name above input, in damage row: .movedata { display: grid; grid-template-areas: "id threat frames notes"; grid-template-columns: 22%...")
 
mNo edit summary
 
(748 intermediate revisions by the same user not shown)
Line 1: Line 1:
/*
/* alternate movedata style */
* base movedata style
*
* name above input, in damage row
*/


/* setting main container */
.movedata {
.movedata {
  display: grid;
    display: grid;
  grid-template-areas: "id threat frames notes";
    grid-template-areas: "moveno id frames whiff string tab" "notes notes notes notes notes notes";
  grid-template-columns: 22% 10% 36% 1fr;
    grid-template-columns: 0.125fr 2.75fr 0.9fr 2fr 0.725fr 0.25fr;
  line-height: initial;
    grid-template-rows: 70px auto;
  align-items: center;
    line-height: 1.2;
  border-width: 0 0 1px 0;
    align-items: start;
  border-style: solid;
    border: 4px solid #950606;
  border-color: #777;
    border-radius: 10px;
  padding: 0.2em 0;
    margin: 0.65em auto 0 auto;
  gap: 0 0.2em;
    column-gap: 0.7em;
    padding-top: 0.15em;
    padding-bottom: 0.2em;
    width: 770px;
    font-size:0.85em;
}
}


.movedata p {
/* setting grid areas for grid-template-areas */
  margin: 0;
.movedata-moveno {
    grid-area: moveno;
}
}
 
.movedata-id {
.movedata {
    grid-area: id;
  margin-top: 0.8em;
}
  text-align: center;
.movedata-string {
    grid-area: string;
}
.movedata-frames {
    grid-area: frames;
}
.movedata-whiff {
    grid-area: whiff;
}
.movedata-notes {
    grid-area: notes;
}
.movedata-tab {
    grid-area: tab;
}
/* for: whiff */
.movedata-tracking {
    grid-area: tracking;
}
.movedata-tracks.left {
    grid-area: left;
}
.movedata-tracks.right {
    grid-area: right;
}
.movedata-distant {
    grid-area: distant;
}
.movedata-special {
    grid-area: special;
}
}


/* link rel="mw-deduplicated-inline-style" is inserted above the transclude */
.movedata-moveno {
.movedata + .movedata,
    display:flex;
.movedata + link + .movedata {
    font-size: 0.85em;
  margin-top: 0;
    font-weight: bold;
    justify-content:center;
    margin-top: -0.45em;
    margin-left:-0.1em;
    padding:.3em .3em .35em .1em;
    width:1.8em;
    height:1em;
    background:#950606;
    border-radius:0.5em 0 0.5em 0;
    color:#ffffff;
}
}
.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 {
.movedata-id {
  display: flex;
    display: flex;
  flex-direction: column;
    flex-direction: column;
  padding-left: 0.2em;
    text-align: start;
  text-align: start;
    align-self: stretch;
    padding-top: 0.1em;
    margin-left:-0.25em;
}
.movedata-threat {
    display: flex;
    flex-direction: column;
    padding-bottom: 0.4em;
    margin-top: 0;
    text-indent:-1.5em
}
}
.movedata-name {
.movedata-name {
  font-size: 0.75em;
    font-size: 0.8em;
    font-style:italic;
    flex: 1;
    margin-top:-0.2em;
}
.movedata-target-ctn,
.movedata-damage-ctn {
    font-size: 0.95em;
    flex: 1;
    padding-top: 0.4em;
}
}
.movedata-input-ctn {
.movedata-input-ctn {
  font-size: 1.7em;
    font-size: 1.5em;
  display: flex;
    text-indent: -1.05em;
  flex-flow: row nowrap;
}
}
 
.movedata-damageLead,
.movedata-input-ctn:after {
.movedata-targetLead,
  content: "";
.movedata-startupRoot,
  align-self: center;
.movedata-inputLead {
  flex-basis: 0px;
    opacity: 0.3;
  flex-grow: 1;
}
  margin-left: 0.2em;
.movedata-divider {
  border-top: 1px solid #777;
    opacity: 0.5;
}
}
 
.movedata-string {
.movedata-threat {
    display: flex;
  display: grid;
    flex-direction: column;
  gap: 0.2em 0;
    text-align: start;
  grid-auto-flow: row;
    align-self: stretch;
    padding-top: 0;
}
}
.movedata-frames {
.movedata-frames {
  display: grid;
    display: flex;
  grid-auto-columns: 1fr;
    flex-direction: column;
  grid-template-areas:
    padding-left: .2em;
     "left left left right right right"
    text-align: end;
     "block block hit hit ch ch"
    align-self: stretch;
    "startup startup startup crush crush recv recv";
     padding-left: .7em;
     margin-top: -.4em;
}
}
/* Empty space if parameter undefined */
.movedata-moveno,
.movedata-startup-ctn,
.movedata-block,
.movedata-hit,
.movedata-ch,
.movedata-tracking,
.movedata-range,
.movedata-recv,
.movedata-crush,
.movedata-screw,
.movedata-wall,
.movedata-floor,
.movedata-combo,
.movedata-jail,
.movedata-leeway,
.movedata-delay,
.movedata-notes {
    flex: 1;
}
/* setting whiff column to contain two-column grid and single-column flexbox */


.movedata-frames:before {
.movedata-distant {
  content: " ";
    display: flex;
  display: block;
    flex-direction: column;
  height: 0px;
    text-align: start;
  width: 100%;
    align-self: stretch;
  grid-column: 1 / -1;
    padding-left: .7em;
  grid-row: 2;
    padding-top:.3em;
  align-self: end;
}
  border-bottom: 1px dotted #777;
.movedata-special {
    display: flex;
    flex-direction: column;
    text-align: end;
    align-self: stretch;
    padding-right: 0.7em;
    padding-top:0.3em;
}
.movedata-whiff {
    display: grid;
    grid-template-areas: "tracking tracking" "distant special";
    grid-template-columns: 1fr 1fr;
    align-self: stretch;
}
.movedata-tracking {
    display: grid;
    grid-auto-columns: 1fr;
    grid-template-areas: "left right";
    align-self: stretch;
}
}
 
/* sets tracking bars and labels */
.movedata-tracks {
.movedata-tracks {
  font-size: 0.7em;
    overflow: hidden;
  overflow: hidden;
}
}
.movedata-tracks-bar {
.movedata-tracks-bar {
  height: 2px;
    height: 4px;
}
}
.movedata-tracks-score,
.movedata-tracks-score,
.movedata-tracks-label {
.movedata-tracks-label {
  padding: 0 0.2em;
    padding: 0 0.2em;
}
}
.movedata-tracks-label {
.movedata-tracks-label {
  grid-column: 1 / -1;
    grid-column: 1 / -1;
}
}
.movedata-tracks.left {
.movedata-tracks.left {
  display: grid;
    display: grid;
  grid-template-columns: 1fr 1.5em;
    grid-template-columns: 1fr 1.5em;
  align-items: center;
    align-items: center;
  justify-items: end;
    justify-items: end;
    text-align: start;
}
}
.movedata-tracks.right {
.movedata-tracks.right {
  display: grid;
    display: grid;
  grid-template-columns: 1.5em 1fr;
    grid-template-columns: 1.5em 1fr;
  align-items: center;
    align-items: center;
  justify-items: start;
    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 {
.movedata-tracks.left .movedata-tracks-score { justify-self: start; }
    justify-self: end;
.movedata-tracks.left .movedata-tracks-label { text-align: end; }
}
.movedata-tracks.right .movedata-tracks-score { justify-self: end; }
.movedata-tracks.right .movedata-tracks-label {
.movedata-tracks.right .movedata-tracks-label { text-align: start; }
    text-align: start;
 
}
.movedata-hit,
.movedata-whiff:before {
.movedata-block,
    content: " ";
.movedata-ch {
    display: block;
  align-self: end;
    height: 100%;
  margin-bottom: 0.25em;
    width: 0;
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: stretch;
    border-right: 1px dotted #777;
    margin-top: -.1em;
    padding-bottom: .3em;
}
}
 
.movedata-whiff:after {
.movedata-startup,
    content: " ";
.movedata-crush,
    display: block;
.movedata-recv {
    height: 100%;
  align-self: start;
    width: 0;
  margin-top: 0.2em;
    grid-column: 3;
    grid-row: 1 / -1;
    align-self: stretch;
    border-right: 1px dotted #777;
    margin-top: -.1em;
    padding-bottom: .3em;
}
}
 
.movedata-frames,
.movedata-startupRoot {
.movedata-whiff,
  display: none;
.movedata-string {
    padding-bottom: .2em;
}
}
 
/* tab column for notes toggle */
.movedata-damageLead,
.movedata-tab {
.movedata-targetLead,
    display: flex;
.movedata-inputLead {
    justify-self:stretch;
  opacity: .3;
    flex-direction: column;
    text-align: center;
    writing-mode: vertical-rl;
    align-self: stretch;
    border-left: 1px solid #777;
    margin-top: -.15em;
    padding-bottom: .65em;
}
}
.movedata-notes {
.movedata-notes {
  align-self: stretch;
    font-size:.85em;
  text-align: start;
    display:flex;
  border-left: 1px solid #777;
    justify-self: end;
  padding: 0 0.2em;
    text-align: end;
    border-top: 1px solid #777;
    padding-right:.5em;
}
}
 
.movedata-notes:empty {
.movedata-input-ctn,
    border-top:0;
.movedata-notes li {
  margin-left: 0.5em;
  text-indent: -0.5em;
}
}
/* for display toggle
.movedata-notes { display: none }
*/


/*
/* changing grid layout depending on screen width allowed */
* running out of space around here
@media (max-width: 900px) {
* the "Damage" label overflows at ~660px
    .movedata {
* so move to more vertical layout
        display: grid;
*/
        grid-template-areas: "moveno id id frames" "whiff whiff whiff string" "notes notes notes notes" "tab tab tab tab";
@media (max-width: 680px) {
        grid-template-columns: 2% 1.3fr 1.45fr 1fr;
  .movedata {
        grid-template-rows: 70px 70px auto auto;
    grid-template-areas:
        width: auto;
      "id id"
        margin: .65em auto 0 auto;
      "threat frames"
    }
      "notes notes";
     .movedata-id {
    grid-template-columns: 1fr 3fr;
        border-bottom: 1px solid #777;
     border: none;
        margin-left: -1.1em;
  }
        padding-left: 2em;
 
        text-overflow: ellipsis;
  .movedata-id {
    }
    flex-direction: column-reverse;
    .movedata-frames {
  }
        margin-top: -.1em;
 
        padding-right: .8em;
  .movedata-input-ctn {
        margin-top:-.3em;
  margin-left: 0.6em;
        border-bottom: 1px solid #777;
  }
        margin-left: -1.5em;
 
    }
  .movedata-name {
    .movedata-whiff {
    margin-bottom: 0.2em;
        margin-top: 0;
  }
    }
 
    .movedata-string {
  .movedata-notes {
        line-height: 1.3;
     text-align: end;
    }
    border: none;
    .movedata-whiff:before {
  }
        border:0;
    }
    .movedata-whiff:after {
        margin-top:0;
        padding-bottom:0.1em;
    }
    .movedata-notes {
        padding-left:0;
     }
    .movedata-tab {
        writing-mode: initial;
        border-left: 0;
        border-top: 1px solid #777;
        margin-top: 0;
    }
}
}

Latest revision as of 07:49, 9 February 2021

/* alternate movedata style */

/* setting main container */
.movedata {
    display: grid;
    grid-template-areas: "moveno id frames whiff string tab" "notes notes notes notes notes notes";
    grid-template-columns: 0.125fr 2.75fr 0.9fr 2fr 0.725fr 0.25fr;
    grid-template-rows: 70px auto;
    line-height: 1.2;
    align-items: start;
    border: 4px solid #950606;
    border-radius: 10px;
    margin: 0.65em auto 0 auto;
    column-gap: 0.7em;
    padding-top: 0.15em;
    padding-bottom: 0.2em;
    width: 770px;
    font-size:0.85em;
}

/* setting grid areas for grid-template-areas */
.movedata-moveno {
    grid-area: moveno;
}
.movedata-id {
    grid-area: id;
}
.movedata-string {
    grid-area: string;
}
.movedata-frames {
    grid-area: frames;
}
.movedata-whiff {
    grid-area: whiff;
}
.movedata-notes {
    grid-area: notes;
}
.movedata-tab {
    grid-area: tab;
}
/* for: whiff */
.movedata-tracking {
    grid-area: tracking;
}
.movedata-tracks.left {
    grid-area: left;
}
.movedata-tracks.right {
    grid-area: right;
}
.movedata-distant {
    grid-area: distant;
}
.movedata-special {
    grid-area: special;
}

.movedata-moveno {
    display:flex;
    font-size: 0.85em;
    font-weight: bold;
    justify-content:center;
    margin-top: -0.45em;
    margin-left:-0.1em;
    padding:.3em .3em .35em .1em;
    width:1.8em;
    height:1em;
    background:#950606;
    border-radius:0.5em 0 0.5em 0;
    color:#ffffff;
}
.movedata-id {
    display: flex;
    flex-direction: column;
    text-align: start;
    align-self: stretch;
    padding-top: 0.1em;
    margin-left:-0.25em;
}
.movedata-threat {
    display: flex;
    flex-direction: column;
    padding-bottom: 0.4em;
    margin-top: 0;
    text-indent:-1.5em
}
.movedata-name {
    font-size: 0.8em;
    font-style:italic;
    flex: 1;
    margin-top:-0.2em;
}
.movedata-target-ctn,
.movedata-damage-ctn {
    font-size: 0.95em;
    flex: 1;
    padding-top: 0.4em;
}
.movedata-input-ctn {
    font-size: 1.5em;
    text-indent: -1.05em;
}
.movedata-damageLead,
.movedata-targetLead,
.movedata-startupRoot,
.movedata-inputLead {
    opacity: 0.3;
}
.movedata-divider {
    opacity: 0.5;
}
.movedata-string {
    display: flex;
    flex-direction: column;
    text-align: start;
    align-self: stretch;
    padding-top: 0;
}
.movedata-frames {
    display: flex;
    flex-direction: column;
    padding-left: .2em;
    text-align: end;
    align-self: stretch;
    padding-left: .7em;
    margin-top: -.4em;
}
/* Empty space if parameter undefined */
.movedata-moveno,
.movedata-startup-ctn,
.movedata-block,
.movedata-hit,
.movedata-ch,
.movedata-tracking,
.movedata-range,
.movedata-recv,
.movedata-crush,
.movedata-screw,
.movedata-wall,
.movedata-floor,
.movedata-combo,
.movedata-jail,
.movedata-leeway,
.movedata-delay,
.movedata-notes {
    flex: 1;
}
/* setting whiff column to contain two-column grid and single-column flexbox */

.movedata-distant {
    display: flex;
    flex-direction: column;
    text-align: start;
    align-self: stretch;
    padding-left: .7em;
    padding-top:.3em;
}
.movedata-special {
    display: flex;
    flex-direction: column;
    text-align: end;
    align-self: stretch;
    padding-right: 0.7em;
    padding-top:0.3em;
}
.movedata-whiff {
    display: grid;
    grid-template-areas: "tracking tracking" "distant special";
    grid-template-columns: 1fr 1fr;
    align-self: stretch;
}
.movedata-tracking {
    display: grid;
    grid-auto-columns: 1fr;
    grid-template-areas: "left right";
    align-self: stretch;
}
/* sets tracking bars and labels */
.movedata-tracks {
    overflow: hidden;
}
.movedata-tracks-bar {
    height: 4px;
}
.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;
    text-align: start;
}
.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-whiff:before {
    content: " ";
    display: block;
    height: 100%;
    width: 0;
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: stretch;
    border-right: 1px dotted #777;
    margin-top: -.1em;
    padding-bottom: .3em;
}
.movedata-whiff:after {
    content: " ";
    display: block;
    height: 100%;
    width: 0;
    grid-column: 3;
    grid-row: 1 / -1;
    align-self: stretch;
    border-right: 1px dotted #777;
    margin-top: -.1em;
    padding-bottom: .3em;
}
.movedata-frames,
.movedata-whiff,
.movedata-string {
    padding-bottom: .2em;
}
/* tab column for notes toggle */
.movedata-tab {
    display: flex;
    justify-self:stretch;
    flex-direction: column;
    text-align: center;
    writing-mode: vertical-rl;
    align-self: stretch;
    border-left: 1px solid #777;
    margin-top: -.15em;
    padding-bottom: .65em;
}
.movedata-notes {
    font-size:.85em;
    display:flex;
    justify-self: end;
    text-align: end;
    border-top: 1px solid #777;
    padding-right:.5em;
}
.movedata-notes:empty {
    border-top:0;
}
/* for display toggle
.movedata-notes { display: none }
*/

/* changing grid layout depending on screen width allowed */
@media (max-width: 900px) {
    .movedata {
        display: grid;
        grid-template-areas: "moveno id id frames" "whiff whiff whiff string" "notes notes notes notes" "tab tab tab tab";
        grid-template-columns: 2% 1.3fr 1.45fr 1fr;
        grid-template-rows: 70px 70px auto auto;
        width: auto;
        margin: .65em auto 0 auto;
    }
    .movedata-id {
        border-bottom: 1px solid #777;
        margin-left: -1.1em;
        padding-left: 2em;
        text-overflow: ellipsis;
    }
    .movedata-frames {
        margin-top: -.1em;
        padding-right: .8em;
        margin-top:-.3em;
        border-bottom: 1px solid #777;
        margin-left: -1.5em;
    }
    .movedata-whiff {
        margin-top: 0;
    }
    .movedata-string {
        line-height: 1.3;
    }
    .movedata-whiff:before {
        border:0;
    }
    .movedata-whiff:after {
        margin-top:0;
        padding-bottom:0.1em;
    }
    .movedata-notes {
        padding-left:0;
    }
    .movedata-tab {
        writing-mode: initial;
        border-left: 0;
        border-top: 1px solid #777;
        margin-top: 0;
    }
}