Template:CharSelect/style.css: Difference between revisions

Template page
No edit summary
No edit summary
Line 7: Line 7:
.char-select > div {
.char-select > div {
   margin-bottom: 1.7em;
   margin-bottom: 1.7em;
   width: 85px;
   width: 86px;
   position: relative;
   position: relative;
}
}
Line 27: Line 27:
.char-select-img a {
.char-select-img a {
   margin: 0 auto;
   margin: 0 auto;
   height: 90px;
   height: 129px;
   width: 60px;
   width: 86px;
   display: block;
   display: block;
}
}
Line 34: Line 34:
.char-select-img img {
.char-select-img img {
/** in MediaWiki:Common.css
/** in MediaWiki:Common.css
  * background-image: url('/w/skins/Tekken/character-select-spritesheet-v2-420w.webp');
  * background-image: url('/w/skins/Tekken/character-select-spritesheet-v2-602w.webp');
  */
  */
   background-repeat: no-repeat;
   background-repeat: no-repeat;
Line 40: Line 40:
}
}
.char-select-img.armor-king img {
.char-select-img.armor-king img {
   background-position: -0px -0px;
   background-position: -0px -0px !important;
}
}
.char-select-img.anna img {
.char-select-img.anna img {
   background-position: -60px -0px;
   background-position: -86px -0px !important;
}
}
.char-select-img.shaheen img {
.char-select-img.shaheen img {
   background-position: -120px -0px;
   background-position: -172px -0px !important;
}
}
.char-select-img.alisa img {
.char-select-img.alisa img {
   background-position: -180px -0px;
   background-position: -258px -0px !important;
}
}
.char-select-img.asuka img {
.char-select-img.asuka img {
   background-position: -240px -0px;
   background-position: -344px -0px !important;
}
}
.char-select-img.bob img {
.char-select-img.bob img {
   background-position: -300px -0px;
   background-position: -430px -0px !important;
}
}
.char-select-img.bryan img {
.char-select-img.bryan img {
   background-position: -360px -0px;
   background-position: -516px -0px !important;
}
}
.char-select-img.gigas img {
.char-select-img.gigas img {
   background-position: -0px -90px;
   background-position: -0px -129px !important;
}
}
.char-select-img.lucky-chloe img {
.char-select-img.lucky-chloe img {
   background-position: -60px -90px;
   background-position: -86px -129px !important;
}
}
.char-select-img.dragonuv img {
.char-select-img.dragonuv img {
   background-position: -120px -90px;
   background-position: -172px -129px !important;
}
}
.char-select-img.devil-jin img {
.char-select-img.devil-jin img {
   background-position: -180px -90px;
   background-position: -258px -129px !important;
}
}
.char-select-img.eddy img {
.char-select-img.eddy img {
   background-position: -240px -90px;
   background-position: -344px -129px !important;
}
}
.char-select-img.eliza img {
.char-select-img.eliza img {
   background-position: -300px -90px;
   background-position: -430px -129px !important;
}
}
.char-select-img.feng img {
.char-select-img.feng img {
   background-position: -360px -90px;
   background-position: -516px -129px !important;
}
}
.char-select-img.master-raven img {
.char-select-img.master-raven img {
   background-position: -0px -180px;
   background-position: -0px -258px !important;
}
}
.char-select-img.ganryu img {
.char-select-img.ganryu img {
   background-position: -60px -180px;
   background-position: -86px -258px !important;
}
}
.char-select-img.heihachi img {
.char-select-img.heihachi img {
   background-position: -120px -180px;
   background-position: -172px -258px !important;
}
}
.char-select-img.hwoarang img {
.char-select-img.hwoarang img {
   background-position: -180px -180px;
   background-position: -258px -258px !important;
}
}
.char-select-img.claudio img {
.char-select-img.claudio img {
   background-position: -240px -180px;
   background-position: -344px -258px !important;
}
}
.char-select-img.jack-7 img {
.char-select-img.jack-7 img {
   background-position: -300px -180px;
   background-position: -430px -258px !important;
}
}
.char-select-img.jin img {
.char-select-img.jin img {
   background-position: -360px -180px;
   background-position: -516px -258px !important;
}
}
.char-select-img.julia img {
.char-select-img.julia img {
   background-position: -0px -270px;
   background-position: -0px -387px !important;
}
}
.char-select-img.kazuya img {
.char-select-img.kazuya img {
   background-position: -60px -270px;
   background-position: -86px -387px !important;
}
}
.char-select-img.king img {
.char-select-img.king img {
   background-position: -120px -270px;
   background-position: -172px -387px !important;
}
}
.char-select-img.kunimitsu img {
.char-select-img.kunimitsu img {
   background-position: -180px -270px;
   background-position: -258px -387px !important;
}
}
.char-select-img.kuma img {
.char-select-img.kuma img {
   background-position: -240px -270px;
   background-position: -344px -387px !important;
}
}
.char-select-img.kazumi img {
.char-select-img.kazumi img {
   background-position: -300px -270px;
   background-position: -430px -387px !important;
}
}
.char-select-img.lars img {
.char-select-img.lars img {
   background-position: -360px -270px;
   background-position: -516px -387px !important;
}
}
.char-select-img.law img {
.char-select-img.law img {
   background-position: -0px -360px;
   background-position: -0px -516px !important;
}
}
.char-select-img.lee img {
.char-select-img.lee img {
   background-position: -60px -360px;
   background-position: -86px -516px !important;
}
}
.char-select-img.lei img {
.char-select-img.lei img {
   background-position: -120px -360px;
   background-position: -172px -516px !important;
}
}
.char-select-img.leo img {
.char-select-img.leo img {
   background-position: -180px -360px;
   background-position: -258px -516px !important;
}
}
.char-select-img.lili img {
.char-select-img.lili img {
   background-position: -240px -360px;
   background-position: -344px -516px !important;
}
}
.char-select-img.katarina img {
.char-select-img.katarina img {
   background-position: -300px -360px;
   background-position: -430px -516px !important;
}
}
.char-select-img.marduk img {
.char-select-img.marduk img {
   background-position: -360px -360px;
   background-position: -516px -516px !important;
}
}
.char-select-img.miguel img {
.char-select-img.miguel img {
   background-position: -0px -450px;
   background-position: -0px -645px !important;
}
}
.char-select-img.akuma img {
.char-select-img.akuma img {
   background-position: -60px -450px;
   background-position: -86px -645px !important;
}
}
.char-select-img.geese img {
.char-select-img.geese img {
   background-position: -120px -450px;
   background-position: -172px -645px !important;
}
}
.char-select-img.noctis img {
.char-select-img.noctis img {
   background-position: -180px -450px;
   background-position: -258px -645px !important;
}
}
.char-select-img.josie img {
.char-select-img.josie img {
   background-position: -240px -450px;
   background-position: -344px -645px !important;
}
}
.char-select-img.nina img {
.char-select-img.nina img {
   background-position: -300px -450px;
   background-position: -430px -645px !important;
}
}
.char-select-img.negan img {
.char-select-img.negan img {
   background-position: -360px -450px;
   background-position: -516px -645px !important;
}
}
.char-select-img.leroy img {
.char-select-img.leroy img {
   background-position: -0px -540px;
   background-position: -0px -774px !important;
}
}
.char-select-img.fahkumram img {
.char-select-img.fahkumram img {
   background-position: -60px -540px;
   background-position: -86px -774px !important;
}
}
.char-select-img.paul img {
.char-select-img.paul img {
   background-position: -120px -540px;
   background-position: -172px -774px !important;
}
}
.char-select-img.steve img {
.char-select-img.steve img {
   background-position: -180px -540px;
   background-position: -258px -774px !important;
}
}
.char-select-img.xiaoyu img {
.char-select-img.xiaoyu img {
   background-position: -240px -540px;
   background-position: -344px -774px !important;
}
}
.char-select-img.yoshimitsu img {
.char-select-img.yoshimitsu img {
   background-position: -300px -540px;
   background-position: -430px -774px !important;
}
}
.char-select-img.zafina img {
.char-select-img.zafina img {
   background-position: -360px -540px;
   background-position: -516px -774px !important;
}
}

Revision as of 14:29, 7 December 2020

.char-select {
   display: flex;
   flex-flow: row wrap;
   justify-content: center;
}

.char-select > div {
  margin-bottom: 1.7em;
  width: 86px;
  position: relative;
}

.char-select-text {
  white-space: nowrap;
  line-height: initial;
  /**
   * Not using text-align to center here because we want the long
   * text ("Master Raven") to overflow a bit, and text-align doesn't
   * center this
   **/
  text-align: left;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.char-select-img a {
   margin: 0 auto;
   height: 129px;
   width: 86px;
   display: block;
}

.char-select-img img {
/** in MediaWiki:Common.css
 * background-image: url('/w/skins/Tekken/character-select-spritesheet-v2-602w.webp');
 */
   background-repeat: no-repeat;
   background-position: 200%;
}
.char-select-img.armor-king img {
   background-position: -0px -0px !important;
}
.char-select-img.anna img {
   background-position: -86px -0px !important;
}
.char-select-img.shaheen img {
   background-position: -172px -0px !important;
}
.char-select-img.alisa img {
   background-position: -258px -0px !important;
}
.char-select-img.asuka img {
   background-position: -344px -0px !important;
}
.char-select-img.bob img {
   background-position: -430px -0px !important;
}
.char-select-img.bryan img {
   background-position: -516px -0px !important;
}
.char-select-img.gigas img {
   background-position: -0px -129px !important;
}
.char-select-img.lucky-chloe img {
   background-position: -86px -129px !important;
}
.char-select-img.dragonuv img {
   background-position: -172px -129px !important;
}
.char-select-img.devil-jin img {
   background-position: -258px -129px !important;
}
.char-select-img.eddy img {
   background-position: -344px -129px !important;
}
.char-select-img.eliza img {
   background-position: -430px -129px !important;
}
.char-select-img.feng img {
   background-position: -516px -129px !important;
}
.char-select-img.master-raven img {
   background-position: -0px -258px !important;
}
.char-select-img.ganryu img {
   background-position: -86px -258px !important;
}
.char-select-img.heihachi img {
   background-position: -172px -258px !important;
}
.char-select-img.hwoarang img {
   background-position: -258px -258px !important;
}
.char-select-img.claudio img {
   background-position: -344px -258px !important;
}
.char-select-img.jack-7 img {
   background-position: -430px -258px !important;
}
.char-select-img.jin img {
   background-position: -516px -258px !important;
}
.char-select-img.julia img {
   background-position: -0px -387px !important;
}
.char-select-img.kazuya img {
   background-position: -86px -387px !important;
}
.char-select-img.king img {
   background-position: -172px -387px !important;
}
.char-select-img.kunimitsu img {
   background-position: -258px -387px !important;
}
.char-select-img.kuma img {
   background-position: -344px -387px !important;
}
.char-select-img.kazumi img {
   background-position: -430px -387px !important;
}
.char-select-img.lars img {
   background-position: -516px -387px !important;
}
.char-select-img.law img {
   background-position: -0px -516px !important;
}
.char-select-img.lee img {
   background-position: -86px -516px !important;
}
.char-select-img.lei img {
   background-position: -172px -516px !important;
}
.char-select-img.leo img {
   background-position: -258px -516px !important;
}
.char-select-img.lili img {
   background-position: -344px -516px !important;
}
.char-select-img.katarina img {
   background-position: -430px -516px !important;
}
.char-select-img.marduk img {
   background-position: -516px -516px !important;
}
.char-select-img.miguel img {
   background-position: -0px -645px !important;
}
.char-select-img.akuma img {
   background-position: -86px -645px !important;
}
.char-select-img.geese img {
   background-position: -172px -645px !important;
}
.char-select-img.noctis img {
   background-position: -258px -645px !important;
}
.char-select-img.josie img {
   background-position: -344px -645px !important;
}
.char-select-img.nina img {
   background-position: -430px -645px !important;
}
.char-select-img.negan img {
   background-position: -516px -645px !important;
}
.char-select-img.leroy img {
   background-position: -0px -774px !important;
}
.char-select-img.fahkumram img {
   background-position: -86px -774px !important;
}
.char-select-img.paul img {
   background-position: -172px -774px !important;
}
.char-select-img.steve img {
   background-position: -258px -774px !important;
}
.char-select-img.xiaoyu img {
   background-position: -344px -774px !important;
}
.char-select-img.yoshimitsu img {
   background-position: -430px -774px !important;
}
.char-select-img.zafina img {
   background-position: -516px -774px !important;
}