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

From Archon Arcana - The KeyForge Wiki
No edit summary
No edit summary
Line 192: Line 192:
   .artistCards {
   .artistCards {
     width: 100%;
     width: 100%;
     flex:1;
     height:30px;
     display: block;
     display: block;
     overflow: hidden;
     overflow: hidden;
     border-radius:10px;
     border-radius:10px;
    position:relative;
     margin-bottom:5px;
     margin-bottom:5px;
   }
   }
Line 208: Line 209:
    
    
     .artistCards .cardFull {
     .artistCards .cardFull {
     display:none;
     width: 0px;
    height: 0px;
    margin: 0px;
    opacity: 0;
   }
   }
    
    
Line 221: Line 225:
    
    
     .artistCards .artistName {
     .artistCards .artistName {
     width:50%;
     width:100%;
    min-width:190px;
    max-width:200px;
    margin-left:auto;
    margin-right:auto;
     text-align: center;
     text-align: center;
     opacity:1;
     opacity:1;
Line 233: Line 233:
     padding-bottom: 6px;
     padding-bottom: 6px;
     box-sizing: border-box;
     box-sizing: border-box;
    position:absolute;
    top:0px;
    left:0px;
   }
   }
 
}
}

Revision as of 20:50, 13 May 2020

.artGallery a:link,
.artGallery a:hover,
.artGallery a:visited {
  color: white;
  text-decoration: none;
}

@media screen and (min-width:451px) {
  .artGallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left:auto;
    margin-right:auto;
  }

  .artistCards {
    background-color: #c0c0c0;
    width: 100%;
    height: 200px;
    max-width: 200px;
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 5%;
    transition: all .3s ease-in-out;
    margin-bottom: 1%;
    margin-left: 0.5%;
    margin-right: 0.5%;
    box-shadow: 3px 3px 0px #505050;
    border-top: 1px solid #505050;
    border-left: 1px solid #505050;
  }

  .artistCards .cardFull {
    max-width: 200px;
    width: 100%;
    height: 100%;
    transform: scale(1.5);
    object-fit: cover;
    object-position: -9px 6px;
    margin: 0px;
    opacity: .6;
    transition: all .3s ease-in-out;
  }

  .artistCards .cardArtifact {
    max-width: 200px;
    width: 100%;
    height: 100%;
    transform: scale(1.5);
    object-fit: cover;
    object-position: -5px -20px;
    margin: 0px;
    opacity: .6;
    transition: all .3s ease-in-out;
  }

  .artistCards .cardUpgrade {
    max-width: 200px;
    width: 100%;
    height: 100%;
    transform: scale(1.5);
    object-fit: cover;
    object-position: 0px -100px;
    margin: 0px;
    opacity: .6;
    transition: all .3s ease-in-out;

  }


  .artistCards .artistName {
    width: 100%;
    text-align: center;
    background-color: #303030;
    color: white;
    font-size: 1.3em;
    position: absolute;
    bottom:0px;
    left: 0px;
    padding-top: 11px;
    padding-bottom: 8px;
    box-sizing: border-box;
  }

  .artistCards:hover {
    box-shadow: 3px 3px 0px #505050, 3px 3px 8px #505050;
  }

  .artistCards:hover img {
    opacity: .9;
  }

}


/* average sized phones */
@media screen and (min-width:441px) and (max-width:450px) {
  .artGallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left:auto;
    margin-right:auto;
  }

  .artistCards {
    background-color: #c0c0c0;
    width: 100%;
    height: 150px;
    max-width: 150px;
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 2px 2px 0px #505050;
    border-top: 1px solid #505050;
    border-left: 1px solid #505050;
  }

  .artistCards .cardFull {
    max-width: 200px;
    width: 100%;
    height: 100%;
    transform: scale(1);
    object-fit: cover;
    object-position: -60px -50px;
    margin: 0px;
    opacity:1;
  }

  .artistCards .cardArtifact {
    max-width: 200px;
    width: 100%;
    height: 100%;
    transform: scale(1);
    object-fit: cover;
    object-position: -60px -70px;
    margin: 0px;
    opacity: 1;
  }

  .artistCards .cardUpgrade {
    max-width: 200px;
    width: 100%;
    height: 100%;
    transform: scale(1);
    object-fit: cover;
    object-position: center -190px;
    margin: 0px;
    opacity: 1;
  }


  .artistCards .artistName {
    width: 100%;
    text-align: center;
    background-color: #303030;
    color: white;
    font-size: 1em;
    position: absolute;
    bottom:0px;
    left: 0px;
    padding-top: 5px;
    padding-bottom: 5px;
    box-sizing: border-box;
  }

}



/* very small phones */
@media screen and (max-width:440px) {
  .artGallery {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .artistCards {
    width: 100%;
    height:30px;
    display: block;
    overflow: hidden;
    border-radius:10px;
    position:relative;
    margin-bottom:5px;
  }
  
  div.artistCards:nth-child(even) {
    background-color:#505050;
  }
  
  div.artistCards:nth-child(odd) {
    background-color:#303030;
  }
  
    .artistCards .cardFull {
    width: 0px;
    height: 0px;
    margin: 0px;
    opacity: 0;
  }
  
      .artistCards .cardArtifact {
    display:none;
  }
  
        .artistCards .cardUpgrade {
    display:none;
  }

  
    .artistCards .artistName {
    width:100%;
    text-align: center;
    opacity:1;
    color: white;
    font-size: 1.1em;
    padding-top: 6px;
    padding-bottom: 6px;
    box-sizing: border-box;
    position:absolute;
    top:0px;
    left:0px;
  }
}