Welcome to IOPWiki, Commander.
We are searching for new editors to keep track of Girls' Frontline 2 content, as well as veteran players to complete the data of Girls' Frontline and Project Neural Cloud characters.
You can contribute without an account. Learn how to contribute and join our Discord server.

MediaWiki:Gadget-chibiAnimation.css: Difference between revisions

Welcome to IOP Wiki. This website is maintained by the Girls' Frontline community and is free to edit by anyone.
Jump to navigation Jump to search
Made the dorm switching buttons smaller
Different Chibi Dorm Switcher Design
Line 29: Line 29:


.chibiDormSwitcher {
.chibiDormSwitcher {
  background-color: none;
  height: 45px;
  width: 70px;
   position: absolute;
   position: absolute;
   z-index: 500;
   left: -8px;
  bottom: -3px;
  overflow: visible;
  opacity: 0.5;
  -moz-transition: all .2s ease-in;
  -o-transition: all .2s ease-in;
  -webkit-transition: all .2s ease-in;
  transition: all .2s ease-in;
  text-shadow:none;
}
}


.chibiDormSwitcher button {
.chibiDormSwitcher:hover {
     padding: 3px 6px;
    opacity:1
     margin: 2px 2px;
}
     border-radius: 10px;
       
     border: none;
.chibiDormSwitcher .slideButton {
     text-shadow:none;
  display:flex;
    font-family: arial;
  -webkit-box-align: center; -moz-box-align: center; /* OLD… */
    font-weight: bold;
  -ms-flex-align: center; /* You know the drill now… */
  -webkit-align-items: center;
  align-items: center;   
  width: 36px;
  height: 12px;
  background: #777;
  border: 2px solid #666;
  position: absolute;
  border-radius: 50px;
  top: 22px;
  left: 12px;
  -moz-transition: all .2s ease-in;
  -o-transition: all .2s ease-in;
  -webkit-transition: all .2s ease-in;
  transition: all .2s ease-in;
}
 
.chibiDormSwitcher input[type=checkbox] {
    visibility: hidden;
}
.chibiDormSwitcher input[type=checkbox]:checked ~ div>label {
      left: 22px;
    }
.chibiDormSwitcher input[type=checkbox]:checked ~ .slideButton {
      background: #ff6225;
      border: 2px solid #ff4215;
    }
.chibiDormSwitcher input[type=checkbox]:checked ~ div>.texton {
      display: inline-block;
      position: absolute;
    }
.chibiDormSwitcher input[type=checkbox]:checked ~ div>.textoff {
      display: none;
}
 
.chibiDormSwitcher .slideButton label {
     display: block;
    width: 16px;
    height: 16px;
    position: absolute;
    top: -3px;
    left: -3px;
     cursor: pointer;
    background: #fcfff4;
     border-radius: 50px;
     border: 1px solid lightgray;
     transition: all 0.4s ease;
}
 
.chibiDormSwitcher .texton, .chibiDormSwitcher .textoff {
  color: white;
  pointer-events: none;
  display: none;
  font-size: 10px;
  font-weight: 500;
}
.chibiDormSwitcher .title {
    background-color: #833b0f;
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    height: 14px;
    display: block;
    color: white;
     font-size: 0.7em;
     font-size: 0.7em;
     opacity:0.5;
     text-align: center;
    background-color: #4E443C;
    color:#F0b000;
 
    -moz-transition: all .2s ease-in;
    -o-transition: all .2s ease-in;
    -webkit-transition: all .2s ease-in;
    transition: all .2s ease-in;
    opacity:0.5;
}
}


/* Change background color of buttons on hover */
.chibiDormSwitcher .slideButton .textoff {
.chibiDormSwitcher button:hover {
  display: block;
    opacity:1;
  position: absolute;
  letter-spacing: 0px;
  left: 16px;
}
}


/* Create an active/current tablink class */
.chibiDormSwitcher .slideButton .texton {
.chibiDormSwitcher button.active {
  left: 2px;
    color:#4E443C;
    background-color: #F0b000;
    border-radius: 15px;
    border: none;
    text-shadow:none;
    z-index:5;
}
}


/* Create an active/current tablink class */
.chibiDormSwitcher img {
.chibiDormSwitcher button.enabled {
  position: absolute;
    border: thin solid #F0b000;
  height: auto;
  width: 40px;
  margin: -20px 0 0 12px;
}
}

Revision as of 22:49, 23 January 2018

.tdoll_chibi {
  display: flex;
  width: 240px;
  height: 180px;
  max-width: 240px;
  max-height: 180px;
  justify-content: center;
  align-items: center;
}

.tdoll_chibi .chibiAnimation {
  flex-shrink: 0;
  pointer-events: none;
}

.chibiAnimationClickArea {
  width: 240px;
  height: 180px;
  position: absolute;
}

.tdoll_chibi.loading {
    background-image: url('/images/8/88/gfloading.gif');
    background-repeat: no-repeat;
    background-attachment: local;
    background-position: bottom right;
    background-size: 50px;
}

.chibiDormSwitcher {
  background-color: none;
  height: 45px;
  width: 70px;
  position: absolute;
  left: -8px;
  bottom: -3px;
  overflow: visible;
  opacity: 0.5;
  -moz-transition: all .2s ease-in;
  -o-transition: all .2s ease-in;
  -webkit-transition: all .2s ease-in;
  transition: all .2s ease-in;
  text-shadow:none;
}

.chibiDormSwitcher:hover {
    opacity:1
}
        
.chibiDormSwitcher .slideButton {
  display:flex;
  -webkit-box-align: center; -moz-box-align: center; /* OLD… */
  -ms-flex-align: center; /* You know the drill now… */
  -webkit-align-items: center;
  align-items: center;    
  width: 36px;
  height: 12px;
  background: #777;
  border: 2px solid #666;
  position: absolute;
  border-radius: 50px;
  top: 22px;
  left: 12px;
  -moz-transition: all .2s ease-in;
  -o-transition: all .2s ease-in;
  -webkit-transition: all .2s ease-in;
  transition: all .2s ease-in;
}

.chibiDormSwitcher input[type=checkbox] {
    visibility: hidden;
}
.chibiDormSwitcher input[type=checkbox]:checked ~ div>label {
      left: 22px;
    }
.chibiDormSwitcher input[type=checkbox]:checked ~ .slideButton {
      background: #ff6225;
      border: 2px solid #ff4215;
    }
.chibiDormSwitcher input[type=checkbox]:checked ~ div>.texton {
      display: inline-block;
      position: absolute;
    }
.chibiDormSwitcher input[type=checkbox]:checked ~ div>.textoff {
      display: none;
}

.chibiDormSwitcher .slideButton label {
    display: block;
    width: 16px;
    height: 16px;
    position: absolute;
    top: -3px;
    left: -3px;
    cursor: pointer;
    background: #fcfff4;
    border-radius: 50px;
    border: 1px solid lightgray;
    transition: all 0.4s ease;
}

.chibiDormSwitcher .texton, .chibiDormSwitcher .textoff {
  color: white;
  pointer-events: none;
  display: none;
  font-size: 10px;
  font-weight: 500;
}
.chibiDormSwitcher .title {
    background-color: #833b0f;
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    height: 14px;
    display: block;
    color: white;
    font-size: 0.7em;
    text-align: center;
}

.chibiDormSwitcher .slideButton .textoff {
   display: block;
   position: absolute;
   letter-spacing: 0px;
   left: 16px;
}

.chibiDormSwitcher .slideButton .texton {
   left: 2px;
}

.chibiDormSwitcher img {
  position: absolute;
  height: auto;
  width: 40px;
  margin: -20px 0 0 12px;
}