Template:MoveData/style3.css: Difference between revisions

Template page
No edit summary
No edit summary
Line 68: Line 68:
font-size: 0.8em;
font-size: 0.8em;
flex: 1;
flex: 1;
margin-bottom:-0.2em;
}
}
.movedata-target-ctn,
.movedata-target-ctn,
Line 79: Line 80:
text-indent: 0.5em;
text-indent: 0.5em;
padding-bottom:0.5em;
padding-bottom:0.5em;
padding-top:-0.2em;
}
}
.movedata-screw,
.movedata-screw,

Revision as of 08:25, 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: 110px 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.3em;
	margin-top:-0.4em;
}

.movedata-name {
	font-size: 0.8em;
	flex: 1;
	margin-bottom:-0.2em;
}
.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.5em;
}
.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;
  padding-top:0.1em;
}

.movedata-frames {
  display: flex;
  flex-direction: column;
  padding-left: 0.2em;
  text-align: start;
  align-self: stretch;
  border-left: 1px dotted #777;
  border-right: 1px dotted #777;
  padding-left: 0.7em;
  line-height:1.6;
  margin-top:-0.4em;
}

.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;
	padding-top:0.3em;
}
.movedata-distant {
	flex: 3;
	padding-top:0.2em;
}
.movedata-whiff {
	display:flex;
	flex-direction:column;
	align-self: stretch;
	border-right: 1px dotted #777;
	margin-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;
  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 1.1fr 0.15fr;
		grid-template-rows: 110px 110px auto;
	}
	.movedata-id {
		border-bottom:1px solid #777;
		margin-left:-1.1em;
		padding-left:1.75em;
		text-overflow: ellipsis;
	}
	.movedata-special { 
		padding-top:0.4em;
	}
	.movedata-special,
	.movedata-frames,
	.movedata-whiff {
		margin-top:0em;
	}
}