MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
(Created page with "→‎CSS placed here will be applied to all skins: .movedata { display: grid; grid-template-columns: repeat(5, 14%) 1fr; grid-template-rows: 1fr 1fr; border-width: 1p...")
 
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
.movedata {
.movedata {
   display: grid;
   display: grid;
   grid-template-columns: repeat(5, 14%) 1fr;
   grid-template-columns: 16% 12% repeat(3, 15%) 1fr;
   grid-template-rows: 1fr 1fr;
   grid-template-rows: 1fr 1fr;
   border-width: 1px 0 1px 0;
   border-width: 1px 0 1px 0;
Line 10: Line 9:
   align-items: center;
   align-items: center;
   padding: 0.2em 0;
   padding: 0.2em 0;
   grid-gap: 0 0.3em;
   grid-gap: 0 0.2em;
   grid-template-areas:
   grid-template-areas:
     "input damage block  hit  ch  notes"
     "input damage block  hit  ch  notes"
Line 34: Line 33:


.movedata-input-ctn { grid-area: input; }
.movedata-input-ctn { grid-area: input; }
.movedata-startup-ctn { grid-area: startup; }
.movedata-startup-ctn { grid-area: startup;}
.movedata-damage-ctn { grid-area: damage; }
.movedata-damage-ctn { grid-area: damage; }
.movedata-target-ctn {  grid-area: target; }
.movedata-target-ctn {  grid-area: target; }
Line 47: Line 46:
.movedata-input-ctn {
.movedata-input-ctn {
   font-size: 1.7em;
   font-size: 1.7em;
   text-align: center;
  padding-left: 0.2em;
   text-align: start;
}
}


Line 79: Line 79:
   line-height: initial;
   line-height: initial;
   text-align: start;
   text-align: start;
}
.movedata-input-ctn  {
  display: flex;
  flex-flow: row nowrap;
}
.movedata-input-ctn,
.movedata-target-ctn,
.movedata-damage-ctn {
  word-break: break-word;
}
.movedata-input-ctn:after {
  content: "";
  align-self: center;
  flex-basis: 0px;
  flex-grow: 1;
  margin-left: 0.2em;
  border-top: 1px solid #888;
}
}

Revision as of 13:05, 21 November 2020

/* CSS placed here will be applied to all skins */
.movedata {
  display: grid;
  grid-template-columns: 16% 12% repeat(3, 15%) 1fr;
  grid-template-rows: 1fr 1fr;
  border-width: 1px 0 1px 0;
  border-color: grey;
  border-style: solid;
  align-items: center;
  padding: 0.2em 0;
  grid-gap: 0 0.2em;
  grid-template-areas:
    "input damage block   hit   ch   notes"
    "input target startup crush recv notes";
}

.movedata p {
  margin: 0;
}

.movedata {
  margin-top: 1em;
  text-align: center;
}

.movedata:hover {
  background-color: hsla(200, 50%, 96%, 1);
}

.movedata + .movedata {
  margin-top: -1px;
}

.movedata-input-ctn { grid-area: input; }
.movedata-startup-ctn { grid-area: startup;}
.movedata-damage-ctn { grid-area: damage; }
.movedata-target-ctn {  grid-area: target; }
.movedata-block { grid-area: block; }
.movedata-hit { grid-area: hit; }
.movedata-ch { grid-area: ch; }
.movedata-clean { grid-area: clean; }
.movedata-crush { grid-area: crush; }
.movedata-recv-ctn { grid-area: recv; }
.movedata-notes { grid-area: notes; }

.movedata-input-ctn {
  font-size: 1.7em;
  padding-left: 0.2em;
  text-align: start;
}

.movedata-damage-ctn { align-self: end; }
.movedata-target-ctn { align-self: start; }

.movedata-damageLead,
.movedata-targetLead,
.movedata-inputLead {
  opacity: .3;
}

.movedata-clean,
.movedata-recvLead,
.movedata-startupLead {
  display: none;
}

.movedata:before {
  content: " ";
  display: block;
  height: 0px;
  width: 100%;
  grid-column: 3 / span 3;
  grid-row: 1 / -1;
  border-bottom: 1px dotted grey;
}

.movedata-notes {
  align-self: start;
  line-height: initial;
  text-align: start;
}

.movedata-input-ctn  {
  display: flex;
  flex-flow: row nowrap;
}

.movedata-input-ctn,
.movedata-target-ctn,
.movedata-damage-ctn {
  word-break: break-word;
}

.movedata-input-ctn:after {
  content: "";
  align-self: center;
  flex-basis: 0px;
  flex-grow: 1;
  margin-left: 0.2em;
  border-top: 1px solid #888;
}