Oldmanwang (talk | contribs) No edit summary |
Oldmanwang (talk | contribs) No edit summary |
||
Line 58: | Line 58: | ||
} | } | ||
.movedata-threat { | .movedata-threat { | ||
display:flex; | display:flex; | ||
flex-direction:column; | flex-direction:column; | ||
padding-bottom:0.5em; | padding-bottom:0.5em; | ||
margin-top:-0.5em; | |||
} | } | ||
Revision as of 05:16, 2 February 2021
/* alternate movedata style */
/* setting main container */
.movedata {
display: grid;
grid-template-areas:
"moveno id special frames whiff tab"
"notes notes notes notes notes notes";
grid-template-columns: 0.125fr 2.75fr 0.9fr 0.9fr 1.2fr 0.125fr;
grid-template-rows: 100px auto;
line-height: normal;
align-items: start;
border-width:1px;
border-style: solid;
border-color: #777;
margin-top:0.7em;
column-gap: 0.7em;
padding-top:0.4em;
}
/* setting grid areas for grid-template-areas */
.movedata-moveno { grid-area: moveno; }
.movedata-id { grid-area: id; }
.movedata-special { grid-area: special; }
.movedata-frames { grid-area: frames; }
.movedata-whiff { grid-area: whiff; }
.movedata-notes { grid-area: notes; }
/* for: whiff */
.movedata-tracks.left { grid-area: left; }
.movedata-tracks.right { grid-area: right; }
.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-moveno:empty {
background-color: initial;
}
.movedata-id {
display: flex;
flex-direction: column;
text-align: start;
align-self: stretch;
margin-left:0.5em;
}
.movedata-threat {
display:flex;
flex-direction:column;
padding-bottom:0.5em;
margin-top:-0.5em;
}
.movedata-name {
font-size: 0.8em;
flex: 1;
}
.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:0.2em;
}
.movedata-screw,
.movedata-spike,
.movedata-wallbound,
.movedata-stagebreak,
.movedata-startup-ctn,
.movedata-block,
.movedata-hit,
.movedata-ch,
.movedata-range,
.movedata-recv,
.movedata-crush {
font-size:0.95em;
}
.movedata-damageLead,
.movedata-targetLead,
.movedata-startupRoot,
.movedata-inputLead {
opacity: .3;
}
.movedata-divider {
opacity: .5;
}
.movedata-special {
display: flex;
flex-direction: column;
text-align: end;
align-self: stretch;
margin-top:-0.3em;
padding-top: 0.3em;
}
.movedata-frames {
display: flex;
flex-direction: column;
padding-left: 0.2em;
text-align: start;
align-self: stretch;
text-align: start;
border-left: 1px dotted #777;
border-right: 1px dotted #777;
margin-top:-0.3em;
padding-left: 0.5em;
}
.movedata-moveno,
.movedata-screw,
.movedata-spike,
.movedata-wallbound,
.movedata-stagebreak,
.movedata-startup-ctn,
.movedata-block,
.movedata-hit,
.movedata-ch,
.movedata-range,
.movedata-recv,
.movedata-crush,
.movedata-threat {
flex: 1;
}
/* setting whiff column to contain two-column grid and single-column flexbox */
.movedata-tracking {
flex: 1;
}
.movedata-distant {
flex: 3;
}
.movedata-whiff {
display:flex;
flex-direction:column;
align-self: stretch;
border-right: 1px dotted #777;
margin-top:-0.3em;
padding-top:0.4em;
}
.movedata-tracking {
display: grid;
grid-auto-columns: 1fr;
grid-template-areas:
"left right";
align-self: stretch;
}
.movedata-distant {
display: flex;
flex-direction: column;
text-align: start;
align-self: stretch;
}
/* sets tracking bars and labels */
.movedata-tracks {
font-size: 1em;
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; }
/* tab column for notes toggle */
.movedata-tab {
display: flex;
align-items:center;
flex-direction:column;
}
.movedata-tab-text {
display:flex;
writing-mode:vertical-rl;
}
.movedata-notes {
display:flex;
flex-direction: column;
border-top:1px solid #777;
padding-right:0.3em;
text-align:end;
}
/* for display toggle
.movedata-notes { display: none }
*/
/* changing grid layout depending on screen width allowed */
@media (max-width: 890px) {
.movedata {
display:grid;
grid-template-areas:
"moveno id id id id"
"special special frames whiff tab"
"notes notes notes notes notes";
grid-template-columns: 2% 1fr 1fr 1fr 0.25fr;
grid-template-rows: 100px 100px auto;
}
.movedata-special,
.movedata-frames,
.movedata-whiff {
margin-top:0em;
}
.movedata-id {
border-bottom:1px solid #777;
margin-left:0.5em;
text-overflow: ellipsis;
}
}