Oldmanwang (talk | contribs) mNo edit summary |
Oldmanwang (talk | contribs) mNo edit summary |
||
Line 6: | Line 6: | ||
grid-template-areas: "moveno id frames whiff string tab" "notes notes notes notes notes notes"; | 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-columns: 0.125fr 2.75fr 0.9fr 2fr 0.725fr 0.25fr; | ||
grid-template-rows: | grid-template-rows: 70px auto; | ||
line-height: 1.2; | line-height: 1.2; | ||
align-items: start; | align-items: start; | ||
border | border: 4px solid #950606; | ||
border-radius: 10px; | border-radius: 10px; | ||
margin: 0.65em auto 0 auto; | margin: 0.65em auto 0 auto; | ||
column-gap: 0.7em; | column-gap: 0.7em; | ||
padding-top: 0. | padding-top: 0.15em; | ||
padding-bottom: 0.2em; | padding-bottom: 0.2em; | ||
width: 770px; | width: 770px; | ||
font-size:0.85em; | |||
} | } | ||
Line 64: | Line 63: | ||
font-weight: bold; | font-weight: bold; | ||
justify-content:center; | justify-content:center; | ||
margin-top: -0. | margin-top: -0.45em; | ||
margin-left:-0.1em; | margin-left:-0.1em; | ||
padding: | padding:.3em .3em .35em .1em; | ||
width:1.8em; | width:1.8em; | ||
height:1em; | height:1em; | ||
background:#950606; | background:#950606; | ||
border-radius:0.5em 0 0.5em 0; | border-radius:0.5em 0 0.5em 0; | ||
color:# | color:#ffffff; | ||
} | } | ||
.movedata-id { | .movedata-id { | ||
Line 93: | Line 92: | ||
flex: 1; | flex: 1; | ||
margin-top:-0.2em; | margin-top:-0.2em; | ||
} | } | ||
.movedata-target-ctn, | .movedata-target-ctn, | ||
Line 104: | Line 102: | ||
font-size: 1.5em; | font-size: 1.5em; | ||
text-indent: -1.051em; | text-indent: -1.051em; | ||
} | } | ||
.movedata-damageLead, | .movedata-damageLead, | ||
Line 115: | Line 107: | ||
.movedata-startupRoot, | .movedata-startupRoot, | ||
.movedata-inputLead { | .movedata-inputLead { | ||
opacity: | opacity: .3; | ||
} | } | ||
.movedata-divider { | .movedata-divider { | ||
opacity: | opacity: .5; | ||
} | } | ||
.movedata-string { | .movedata-string { | ||
Line 130: | Line 122: | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
padding-left: | padding-left: .2em; | ||
text-align: end; | text-align: end; | ||
align-self: stretch; | align-self: stretch; | ||
padding-left: | padding-left: .7em; | ||
margin-top: - | margin-top: -.4em; | ||
} | } | ||
/* Empty space if parameter undefined */ | /* Empty space if parameter undefined */ | ||
Line 153: | Line 145: | ||
.movedata-floor, | .movedata-floor, | ||
.movedata-tracking, | .movedata-tracking, | ||
.movedata-notes { | .movedata-notes, | ||
.movedata-moveno { | |||
flex: 1; | flex: 1; | ||
} | } | ||
Line 163: | Line 156: | ||
text-align: start; | text-align: start; | ||
align-self: stretch; | align-self: stretch; | ||
padding-left: | padding-left: .7em; | ||
padding-top:.3em; | |||
} | } | ||
.movedata-special { | .movedata-special { | ||
Line 171: | Line 165: | ||
align-self: stretch; | align-self: stretch; | ||
padding-right: 0.7em; | padding-right: 0.7em; | ||
padding-top:0.3em; | |||
} | } | ||
.movedata-whiff { | .movedata-whiff { | ||
Line 183: | Line 178: | ||
grid-template-areas: "left right"; | grid-template-areas: "left right"; | ||
align-self: stretch; | align-self: stretch; | ||
padding: 0 0; | |||
margin:0 0; | |||
} | } | ||
/* sets tracking bars and labels */ | /* sets tracking bars and labels */ | ||
Line 231: | Line 228: | ||
align-self: stretch; | align-self: stretch; | ||
border-right: 1px dotted #777; | border-right: 1px dotted #777; | ||
margin-top: - | margin-top: -.1em; | ||
padding-bottom: | padding-bottom: .3em; | ||
} | } | ||
.movedata-whiff:after { | .movedata-whiff:after { | ||
Line 243: | Line 240: | ||
align-self: stretch; | align-self: stretch; | ||
border-right: 1px dotted #777; | border-right: 1px dotted #777; | ||
margin-top: - | margin-top: -.1em; | ||
padding-bottom: | padding-bottom: .3em; | ||
} | } | ||
.movedata-frames, | .movedata-frames, | ||
.movedata-whiff, | .movedata-whiff, | ||
.movedata-string { | .movedata-string { | ||
padding-bottom: | padding-bottom: .2em; | ||
} | } | ||
/* tab column for notes toggle */ | /* tab column for notes toggle */ | ||
Line 260: | Line 257: | ||
align-self: stretch; | align-self: stretch; | ||
border-left: 1px solid #777; | border-left: 1px solid #777; | ||
margin-top: - | margin-top: -.15em; | ||
padding-bottom: | padding-bottom: .65em; | ||
} | } | ||
.movedata-notes { | .movedata-notes { | ||
font-size: | font-size:.85em; | ||
display:flex; | display:flex; | ||
justify-self: end; | justify-self: end; | ||
text-align: end; | text-align: end; | ||
border-top: 1px solid #777; | border-top: 1px solid #777; | ||
padding-right: | padding-right:.5em; | ||
} | } | ||
.movedata-notes:empty { | .movedata-notes:empty { | ||
Line 284: | Line 281: | ||
grid-template-areas: "moveno id id frames" "whiff whiff whiff string" "notes notes notes notes" "tab tab tab tab"; | 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-columns: 2% 1.3fr 1.45fr 1fr; | ||
grid-template-rows: | grid-template-rows: 70px 70px auto auto; | ||
width: auto; | width: auto; | ||
margin: | margin: .65em auto 0 auto; | ||
font-size:.85em; | |||
} | } | ||
.movedata-id { | .movedata-id { | ||
Line 295: | Line 293: | ||
} | } | ||
.movedata-name { | .movedata-name { | ||
font-size: | font-size: .75em; | ||
} | } | ||
.movedata-input-ctn { | .movedata-input-ctn { | ||
text-indent:-1.2em; | text-indent:-1.2em; | ||
font-size: 1.2em; | font-size: 1.2em; | ||
margin-top:- | margin-top:-.6em; | ||
} | } | ||
.movedata-threat { | .movedata-threat { | ||
text-indent:-1.65em; | text-indent:-1.65em; | ||
margin-bottom:- | margin-bottom:-.5em; | ||
margin-top: | margin-top:.2em; | ||
} | } | ||
.movedata-frames { | .movedata-frames { | ||
margin-top: - | margin-top: -.1em; | ||
padding-right: .8em; | |||
padding-right: | margin-top:-.3em; | ||
margin-top:- | |||
border-bottom: 1px solid #777; | border-bottom: 1px solid #777; | ||
margin-left: - | margin-left: -1.5em; | ||
} | } | ||
.movedata-whiff { | .movedata-whiff { | ||
margin-top: 0; | margin-top: 0; | ||
} | } | ||
.movedata-string { | .movedata-string { | ||
line-height: 1.3; | |||
line-height: 1. | |||
} | } | ||
.movedata-whiff:before { | .movedata-whiff:before { | ||
Line 330: | Line 322: | ||
} | } | ||
.movedata-whiff:after { | .movedata-whiff:after { | ||
margin-top:- | margin-top:-.1em; | ||
padding-bottom: | padding-bottom: .3em; | ||
} | } | ||
.movedata-notes { | .movedata-notes { | ||
padding-left:0; | padding-left:0; | ||
} | } | ||
.movedata-tab { | .movedata-tab { |
Revision as of 05:22, 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.051em;
}
.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: 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-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,
.movedata-notes,
.movedata-moveno {
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;
padding: 0 0;
margin:0 0;
}
/* 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: 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;
font-size:.85em;
}
.movedata-id {
border-bottom: 1px solid #777;
margin-left: -1.1em;
padding-left: 2em;
text-overflow: ellipsis;
}
.movedata-name {
font-size: .75em;
}
.movedata-input-ctn {
text-indent:-1.2em;
font-size: 1.2em;
margin-top:-.6em;
}
.movedata-threat {
text-indent:-1.65em;
margin-bottom:-.5em;
margin-top:.2em;
}
.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:-.1em;
padding-bottom: .3em;
}
.movedata-notes {
padding-left:0;
}
.movedata-tab {
writing-mode: initial;
border-left: 0;
border-top: 1px solid #777;
margin-top: 0;
}
}