Oldmanwang (talk | contribs) mNo edit summary |
Oldmanwang (talk | contribs) mNo edit summary |
||
Line 20: | Line 20: | ||
padding-bottom:0.2em; | padding-bottom:0.2em; | ||
width:770px; | width:770px; | ||
align-items:center; | |||
margin:auto; | margin:auto; | ||
} | } | ||
Line 253: | Line 253: | ||
grid-template-areas: | grid-template-areas: | ||
"moveno id id frames" | "moveno id id frames" | ||
"whiff whiff | "whiff whiff whiff string" | ||
"notes notes notes notes" | "notes notes notes notes" | ||
"tab tab tab tab"; | "tab tab tab tab"; | ||
Line 281: | Line 281: | ||
margin-top:-0.1em; | margin-top:-0.1em; | ||
font-size:0.85em; | font-size:0.85em; | ||
padding-right: | padding-right:1em; | ||
border-bottom:1px solid #777; | |||
} | } | ||
.movedata-whiff { | .movedata-whiff { | ||
Line 300: | Line 301: | ||
margin-top:0; | margin-top:0; | ||
padding-bottom:0.25em; | padding-bottom:0.25em; | ||
} | |||
.movedata-tab { | .movedata-tab { | ||
writing-mode:initial; | writing-mode:initial; | ||
border-left:0; | border-left:0; | ||
border-top:1px solid #777; | border-top:1px solid #777; | ||
margin-top:0; | |||
} | } | ||
} | } |
Revision as of 23:25, 4 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 1.4fr 0.725fr 0.25fr;
grid-template-rows: 80px auto;
line-height: 1.2;
align-items: start;
border-width:4px;
border-radius:10px;
border-style: solid;
border-color: #777;
margin-top:0.65em;
column-gap: 0.7em;
padding-top:0.4em;
padding-bottom:0.2em;
width:770px;
align-items:center;
margin:auto;
}
/* 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;
flex-direction:column;
font-size: 0.95em;
font-weight:bold;
color: black;
text-align: center;
background-color: #777;
align-self: stretch;
writing-mode: vertical-rl;
justify-self:left;
margin-top:-0.22em;
margin-right:-0.2em;
}
.movedata-id {
display: flex;
flex-direction: column;
text-align: start;
align-self: stretch;
margin-left:0.5em;
padding-top:0.1em;
}
.movedata-threat {
display:flex;
flex-direction:column;
padding-bottom:0.3em;
margin-top:0em;
}
.movedata-name {
font-size: 0.8em;
flex: 1;
margin-bottom:0em;
}
.movedata-target-ctn,
.movedata-damage-ctn {
font-size: 0.95em;
flex:1;
padding-top:0.4em;
}
.movedata-input-ctn {
font-size: 1.85em;
text-indent: 0.5em;
padding-bottom:0em;
}
.movedata-frames,
.movedata-whiff,
.movedata-string,
.movedata-notes {
font-size:0.95em;
}
.movedata-damageLead,
.movedata-targetLead,
.movedata-startupRoot,
.movedata-inputLead {
opacity: .3;
}
.movedata-divider {
opacity: .5;
}
.movedata-string {
display: flex;
flex-direction: column;
text-align: start;
align-self: stretch;
padding-top:0em;
}
.movedata-frames {
display: flex;
flex-direction: column;
padding-left: 0.2em;
text-align: end;
align-self: stretch;
padding-left: 0.7em;
margin-top:-0.4em;
}
/* Empty space if parameter undefined */
.movedata-moveno,
.movedata-combo,
.movedata-jail,
.movedata-leeway,
.movedata-delay,
.movedata-startup-ctn,
.movedata-block,
.movedata-hit,
.movedata-ch,
.movedata-range,
.movedata-recv,
.movedata-crush,
.movedata-threat,
.movedata-screw,
.movedata-wall,
.movedata-floor,
.movedata-tracking {
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:0.7em;
}
.movedata-special {
display: flex;
flex-direction: column;
text-align: end;
align-self: stretch;
padding-right:0.7em;
}
.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;
}
.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: 0px;
grid-column: 1;
grid-row: 1 / -1;
align-self: stretch;
border-right: 1px dotted #777;
margin-top:-0.5em;
padding-bottom:0.75em;
}
.movedata-whiff:after {
content: " ";
display: block;
height: 100%;
width: 0px;
grid-column: 3;
grid-row: 1 / -1;
align-self: stretch;
border-right: 1px dotted #777;
margin-top:-0.5em;
padding-bottom:0.75em;
}
.movedata-frames,
.movedata-whiff,
.movedata-string {
padding-bottom:0.2em;
}
/* tab column for notes toggle */
.movedata-tab {
display: flex;
align-items:center;
flex-direction:column;
text-align:center;
writing-mode:vertical-rl;
align-self:stretch;
border-left:1px solid #777;
padding-left:0.3em;
margin-top:-0.5em;
}
.movedata-notes {
display:flex;
flex-direction: column;
border-top:1px solid #777;
text-align:end;
}
/* for display toggle
.movedata-notes { display: none }
*/
/* changing grid layout depending on screen width allowed */
@media (max-width: 870px) {
.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 0.8fr;
grid-template-rows: 80px 80px auto auto;
width:auto;
margin-top:0.65em;
}
.movedata-id {
border-bottom:1px solid #777;
margin-left:-1.1em;
padding-left:1.75em;
text-overflow: ellipsis;
}
.movedata-name {
font-size:0.75em;
margin-bottom:-0.5em;
}
.movedata-input-ctn {
text-indent:0;
font-size:1.55em;
}
.movedata-threat {
font-size:0.85em;
}
.movedata-frames {
margin-top:-0.1em;
font-size:0.85em;
padding-right:1em;
border-bottom:1px solid #777;
}
.movedata-whiff {
margin-top:0;
font-size:0.85em;
padding-top:0.1em;
}
.movedata-string {
font-size:0.8em;
line-height:1.45;
padding-top:0.2em;
}
.movedata-whiff:before {
margin-top:0;
padding-bottom:0.25em;
}
.movedata-whiff:after {
margin-top:0;
padding-bottom:0.25em;
}
.movedata-tab {
writing-mode:initial;
border-left:0;
border-top:1px solid #777;
margin-top:0;
}
}