Template:Artist Previews/styles.css: Difference between revisions

From Archon Arcana - The KeyForge Wiki
no edit summary
No edit summary
No edit summary
Line 14: Line 14:
}
}


.artGallery a:link,
@keyframes fade-five-1 {
.artGallery a:hover,
  0% {
.artGallery a:visited {
    opacity: 0;
   color: white;
  }
   text-decoration: none;
  4% {
    opacity: 1;
  }
  20% {
    opacity: 1;
  }
  24% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
 
@keyframes fade-five-2 {
  0% {
    opacity: 1;
  }
  4% {
    opacity: 1;
  }
  20% {
    opacity: 1;
  }
  24% {
    opacity: 0;
   }
  100% {
    opacity: 0;
   }
}
 
@keyframes fade-four-1 {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  33% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
 
@keyframes fade-four-2 {
  0% {
    opacity: 1;
  }
  8% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  33% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
 
@keyframes fade-three-1 {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  33% {
    opacity: 1;
  }
  44% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
 
@keyframes fade-three-2 {
  0% {
    opacity: 1;
  }
  10% {
    opacity: 1;
  }
  33% {
    opacity: 1;
  }
  44% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fade-two-1 {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
 
@keyframes fade-two-2 {
  0% {
    opacity: 1;
  }
  10% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
}


@media screen and (min-width:451px) {
 
 
@media screen and (min-width: 451px) {
   .artGallery {
   .artGallery {
     display: flex;
     display: flex;
Line 28: Line 166:
     margin-top: 20px;
     margin-top: 20px;
     margin-bottom: 20px;
     margin-bottom: 20px;
     margin-left:auto;
     margin-left: auto;
     margin-right:auto;
     margin-right: auto;
   }
   }


Line 41: Line 179:
     overflow: hidden;
     overflow: hidden;
     border-radius: 5%;
     border-radius: 5%;
     transition: all .3s ease-in-out;
     transition: all 0.3s ease-in-out;
     margin-bottom: 1%;
     margin-bottom: 1%;
     margin-left: 0.5%;
     margin-left: 0.5%;
     margin-right: 0.5%;
     margin-right: 0.5%;
     box-shadow: 3px 3px 0px #505050;
     box-shadow: 3px 3px 0px #202020;
     border-top: 1px solid #505050;
     border-top: 1px solid #202020;
     border-left: 1px solid #505050;
     border-left: 1px solid #202020;
    opacity:.8;
   }
   }
 
 
  .artistCards .cardFull {
    .artistCards .one .cardFull {
     max-width: 200px;
     max-width: 200px;
     width: 100%;
     width: 100%;
Line 58: Line 197:
     object-position: -9px 10px;
     object-position: -9px 10px;
     margin: 0px;
     margin: 0px;
     opacity: .6;
     opacity: 1;
     transition: all .3s ease-in-out;
     transition: all .3s ease-in-out;
   }
   }


   .artistCards .cardArtifact {
   .artistCards .one .cardArtifact {
     max-width: 200px;
     max-width: 200px;
     width: 100%;
     width: 100%;
Line 70: Line 209:
     object-position: -5px -15px;
     object-position: -5px -15px;
     margin: 0px;
     margin: 0px;
     opacity: .6;
     opacity: 1;
     transition: all .3s ease-in-out;
     transition: all .3s ease-in-out;
   }
   }


   .artistCards .cardUpgrade {
   .artistCards .one .cardUpgrade {
     max-width: 200px;
     max-width: 200px;
     width: 100%;
     width: 100%;
Line 82: Line 221:
     object-position: 0px -90px;
     object-position: 0px -90px;
     margin: 0px;
     margin: 0px;
     opacity: .6;
     opacity: 1;
     transition: all .3s ease-in-out;
     transition: all .3s ease-in-out;
  }
 
  .artistCards .four .cardFull,
  .artistCards .three .cardFull,
  .artistCards .two .cardFull,
  .artistCards .five .cardFull {
    max-width: 200px;
    width: 100%;
    height: 100%;
    transform: scale(1.5);
    object-fit: cover;
    object-position: -9px 10px;
    position: absolute;
    margin: 0px;
    opacity: 0;
    transition: all 0.3s ease-in-out;
  }


  .artistCards .four .cardArtifact,
  .artistCards .three .cardArtifact,
  .artistCards .two .cardArtifact,
  .artistCards .five .cardArtifact {
    max-width: 200px;
    width: 100%;
    height: 100%;
    transform: scale(1.5);
    object-fit: cover;
        position: absolute;
    object-position: -5px -15px;
    margin: 0px;
    opacity: 0;
    transition: all 0.3s ease-in-out;
   }
   }


  .artistCards .four .cardUpgrade,
  .artistCards .three .cardUpgrade,
  .artistCards .two .cardUpgrade,
  .artistCards .five .cardUpgrade {
    max-width: 200px;
    width: 100%;
    height: 100%;
    transform: scale(1.5);
    object-fit: cover;
    object-position: 0px -90px;
    margin: 0px;
        position: absolute;
    opacity: 0;
    transition: all 0.3s ease-in-out;
  }


   .artistCards .artistName {
   .artistCards .artistName {
     width: 100%;
     width: 100%;
     text-align: center;
     text-align: center;
     background-color: #303030;
     background-color: #101010;
     color: white;
     color: white;
     font-size: 1.3em;
     font-size: 1.3em;
     position: absolute;
     position: absolute;
     bottom:0px;
     bottom: 0px;
     left: 0px;
     left: 0px;
     padding-top: 11px;
     padding-top: 11px;
Line 104: Line 290:
   .artistCards:hover {
   .artistCards:hover {
     box-shadow: 3px 3px 0px #505050, 3px 3px 8px #505050;
     box-shadow: 3px 3px 0px #505050, 3px 3px 8px #505050;
    opacity:1;
  }
  /* code for sets of five images */
  .artistCards .five img:nth-of-type(1) {
    animation: fade-five-2 10s;
    animation-delay: 0s;
    animation-play-state: paused;
  }
  .artistCards .five img:nth-of-type(2) {
    animation: fade-five-1 10s infinite;
    animation-delay: 0.5s;
    animation-play-state: paused;
  }
  .artistCards .five img:nth-of-type(3) {
    animation: fade-five-1 10s infinite;
    animation-delay: 2.5s;
    animation-play-state: paused;
  }
  .artistCards .five img:nth-of-type(4) {
    animation: fade-five-1 10s infinite;
    animation-delay: 4.5s;
    animation-play-state: paused;
  }
  .artistCards .five img:nth-of-type(5) {
    animation: fade-five-1 10s infinite;
    animation-delay: 6.5s;
    animation-play-state: paused;
  }
  .artistCards .five img:nth-of-type(6) {
    animation: fade-five-1 10s infinite;
    animation-delay: 8.5s;
    animation-play-state: paused;
   }
   }


   .artistCards:hover img {
  /* code for sets of four images */
   .artistCards .four img:nth-of-type(1) {
    animation: fade-four-2 8s;
    animation-delay: 0s;
    animation-play-state: paused;
  }
  .artistCards .four img:nth-of-type(2) {
    animation: fade-four-1 8s infinite;
    animation-delay: 0.5s;
    animation-play-state: paused;
  }
  .artistCards .four img:nth-of-type(3) {
    animation: fade-four-1 8s infinite;
    animation-delay: 2.5s;
    animation-play-state: paused;
  }
  .artistCards .four img:nth-of-type(4) {
    animation: fade-four-1 8s infinite;
    animation-delay: 4.5s;
    animation-play-state: paused;
  }
  .artistCards .four img:nth-of-type(5) {
    animation: fade-four-1 8s infinite;
    animation-delay: 6.5s;
    animation-play-state: paused;
  }
 
    /* code for sets of three images */
  .artistCards .three img:nth-of-type(1) {
    animation: fade-three-2 6s;
    animation-delay: 0s;
    animation-play-state: paused;
    opacity: 1;
  }
  .artistCards .three img:nth-of-type(2) {
    animation: fade-three-1 6s infinite;
    animation-delay: 0.5s;
    animation-play-state: paused;
  }
  .artistCards .three img:nth-of-type(3) {
    animation: fade-three-1 6s infinite;
    animation-delay: 2.5s;
    animation-play-state: paused;
  }
  .artistCards .three img:nth-of-type(4) {
    animation: fade-three-1 6s infinite;
    animation-delay: 4.5s;
    animation-play-state: paused;
  }
 
      /* code for sets of two images */
  .artistCards .two img:nth-of-type(1) {
    animation: fade-two-2 4s;
    animation-delay: 0s;
    animation-play-state: paused;
     opacity: 1;
     opacity: 1;
  }
  .artistCards .two img:nth-of-type(2) {
    animation: fade-two-1 4s infinite;
    animation-delay: 0.5s;
    animation-play-state: paused;
  }
  .artistCards .two img:nth-of-type(3) {
    animation: fade-two-1 4s infinite;
    animation-delay: 2.5s;
    animation-play-state: paused;
  }
 
  /* code to trigger animation on hover */
    .artistCards:hover .five img,
  .artistCards:hover .four img, .artistCards:hover .three img, .artistCards:hover .two img {
    animation-play-state: running;
   }
   }


}
}


/* average sized phones */
/* average sized phones */
@media screen and (min-width:360px) and (max-width:450px) {
@media screen and (min-width: 360px) and (max-width: 450px) {
   .artGallery {
   .artGallery {
     display: flex;
     display: flex;
Line 121: Line 411:
     margin-top: 20px;
     margin-top: 20px;
     margin-bottom: 20px;
     margin-bottom: 20px;
     margin-left:auto;
     margin-left: auto;
     margin-right:auto;
     margin-right: auto;
   }
   }


Line 148: Line 438:
     object-position: -100px -60px;
     object-position: -100px -60px;
     margin: 0px;
     margin: 0px;
     opacity:1;
     opacity: 1;
   }
   }


Line 168: Line 458:
     opacity: 1;
     opacity: 1;
   }
   }


   .artistCards .artistName {
   .artistCards .artistName {
Line 178: Line 466:
     font-size: 1em;
     font-size: 1em;
     position: absolute;
     position: absolute;
     bottom:0px;
     bottom: 0px;
     left: 0px;
     left: 0px;
     padding-top: 5px;
     padding-top: 5px;
Line 184: Line 472:
     box-sizing: border-box;
     box-sizing: border-box;
   }
   }
}
}


/* very small phones */
/* very small phones */
@media screen and (max-width:359px) {
@media screen and (max-width: 359px) {
   .artGallery {
   .artGallery {
     display: flex;
     display: flex;
Line 230: Line 515:
     display: none;
     display: none;
   }
   }


   .artistCards .artistName {
   .artistCards .artistName {
Line 237: Line 521:
     opacity: 1;
     opacity: 1;
     color: black;
     color: black;
     padding-left:20px;
     padding-left: 20px;
     font-size: 1.1em;
     font-size: 1.1em;
     padding-top: 8px;
     padding-top: 8px;
Line 249: Line 533:
     color: black;
     color: black;
     text-decoration: none;
     text-decoration: none;
     border-bottom:1px dotted black;
     border-bottom: 1px dotted black;
   }
   }
}
.artGallery a:link,
.artGallery a:hover,
.artGallery a:visited {
  color: white;
  text-decoration: none;
}
}