Ativa o menu
Toggle preferences menu
Alternar menu pessoal
Não autenticado(a)
Your IP address will be publicly visible if you make any edits.

Predefinição:CardCriaturas/styles.css: mudanças entre as edições

De Runas & Campeões
mSem resumo de edição
mSem resumo de edição
 
(29 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 8: Linha 8:


/* default */
/* default */
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* body */
body {
  min-height: 100vh;
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background: hsl(220, 10%, 12%);
  font-family: "Lato", "Segoe Ui", -apple-system, BlinkMacSystemFont, sans-serif;
}


/* .flip-card-container */
/* .flip-card-container */
Linha 34: Linha 13:
   width: 310px;
   width: 310px;
   height: 500px;
   height: 500px;
   margin: 40px;
   margin: 20px;


   /*perspective: 1000px;*/
   /*perspective: 1000px;*/
Linha 53: Linha 32:
   transform: rotateY(180deg);
   transform: rotateY(180deg);
}
}
/*.flip-card-container:focus-within{
 
  transform: rotateY(180deg);
}*/
/* .card-... */
/* .card-... */
.card-front{
.card-front{
Linha 76: Linha 53:
.card-back {
.card-back {
   width: 100%;
   width: 100%;
   height: auto;
   height: 100%;
   border-radius: 24px;
   border-radius: 24px;


Linha 115: Linha 92:
   left: 0;
   left: 0;
   object-fit: cover;
   object-fit: cover;
    
   display:flex;
  justify-content: center;
   width: 100%;
   width: 100%;
   height: 100%;
   height: 100%;
Linha 126: Linha 104:
   border-radius: 24px;
   border-radius: 24px;
   object-position: center;
   object-position: center;
}
.card-back img {
filter: blur(8px);
}
}


/* figcaption */
/* figcaption */
figcaption {
.caption {
   display: block;
   display: block;


Linha 144: Linha 126:
   position: absolute;
   position: absolute;
   top: 0;
   top: 0;
   right: 12px;
   left: 0px;


   color: hsl(0, 0%, 90%);
   color: hsl(0, 0%, 90%);
Linha 153: Linha 135:
.img-bg {
.img-bg {
   background: hsla(150, 25%, 10%, .5);
   background: hsla(150, 25%, 10%, .5);
}
.card-front .img-bg {
  clip-path: polygon(0 20%, 100% 40%, 100% 100%, 0 100%);
}
.card-front .img-bg::before {
  content: "";
  position: absolute;
  top: 34%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(18deg);
  width: 100%;
  height: 6px;
  border: 1px solid hsl(150, 50%, 50%);
  border-left-color: transparent;
  border-right-color: transparent;
  transition: .1s;
}
.card-back .img-bg {
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 60%);
}
}


/* hover state */
/* hover state */
.flip-card-container:hover .card-front .img-bg::before {
.flip-card-container:hover .card-back .img-bg::before {
   width: 6px;
   width: 6px;
   border-left-color: hsl(150, 50%, 50%);
   border-left-color: hsl(150, 50%, 50%);
Linha 189: Linha 146:
/* ul */
/* ul */
ul {
ul {
   padding-top: 50%;
   padding-top: 5%;
   margin: 0 auto;
   margin: 0 auto;
   width: 70%;
   width: 100%;
   height: 100%;
   height: 100%;
   list-style: none;
   list-style: none;
   color: hsl(0, 0%, 90%);
   color: hsl(0, 0%, 90%);
  overflow-y: scroll;
  overflow-X: hidden;


   display: flex;
   display: flex;
   justify-content: center;
   justify-content: flex-start;
   align-items: center;
   align-items: center;
   flex-direction: column;
   flex-direction: column;
  background: hsla(150,25%,10%,.8);
}
}


Linha 213: Linha 172:


   position: relative;
   position: relative;
}
li:nth-child(2n) {
  color: hsl(0, 0%, 80%);
}
}


Linha 233: Linha 188:
}
}


/* button */
/* fronttext */
.fronttext {
.fronttext {
   font-family: inherit;
   font-family: inherit;
   font-weight: bold;
   font-weight: bold;
   color: hsl(0, 0%, 90%);
   color: #308E89;


   letter-spacing: 2px;
   letter-spacing: 2px;


   padding: 9px 20px;
   padding: 9px 20px;
   border: 1px solid hsl(0, 0%, 50%);
   border: 1px solid #308E89;
   border-radius: 1000px;
   border-radius: 1000px;
   background: transparent;
   background: rgba(255, 255, 255, 0.9);
  transition: .3s;
 
  cursor: pointer;
}
}


/* .design-container */
/* .design-container */
.design-container {
.design-container {
  /*--tr: 90;*/
  /*--op: .5;*/


   width: 100%;
   width: 100%;
   height: 100%;
   height: 100%;
   background: transparent;
   background: transparent;
   position: absolute;
   position: absolute;
   top: 0;
   top: 0;
   left: 0;
   left: 0;
  pointer-events: none;
}
}


Linha 273: Linha 220:
   position: absolute;
   position: absolute;


   opacity: var(--op);
   opacity: .5;
   transition: .3s;
   transition: .3s;
}
}
Linha 288: Linha 235:
.design--2 {
.design--2 {
   top: 0;
   top: 0;
   /*transform: translateY(calc((var(--tr) - (var(--tr) * 2)) * 1%))*/
   transform: translateY(calc((90 - (90 * 2)) * 1%))
}
}


Linha 301: Linha 248:
.design--3, .design--4 {
.design--3, .design--4 {
   bottom: 0;
   bottom: 0;
   /*transform: translateY(calc((var(--tr) + (var(--tr) - var(--tr))) * 1%))*/
   transform: translateY(calc((90 + (90 - 90)) * 1%))
}
}


Linha 312: Linha 259:
}
}


.design--5, .design--6, .design--7, .design--8 {
.design--5,  
.design--6,  
.design--7,  
.design--8 {
   width: 100%;
   width: 100%;
   height: 1px;
   height: 1px;
Linha 320: Linha 270:
.design--6 {
.design--6 {
   left: 0;
   left: 0;
   /*transform: translateX(calc((var(--tr) - (var(--tr) * 2)) * 1%));*/
   transform: translateX(calc((90 - (90 * 2)) * 1%));
}
}


Linha 334: Linha 284:
.design--8 {
.design--8 {
   right: 0;
   right: 0;
   /*transform: translateX(calc((var(--tr) + (var(--tr) - var(--tr))) * 1%))*/
   transform: translateX(calc((90 + (90 - 90)) * 1%))
}
}


Linha 343: Linha 293:
.design--8 {
.design--8 {
   top: 56%;
   top: 56%;
}
/* states */
.abs-site-link {
  position: fixed;
  bottom: 20px;
  left: 20px;
  color: hsla(0, 0%, 100%, .6);
  font-size: 16px;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}
}

Edição atual tal como às 18h45min de 2 de dezembro de 2024

/* 
    ================================
        Best Viewed In Full Page
    ================================
*/

/* Hover over a card to flip, can tab too. */

/* default */

/* .flip-card-container */
.flip-card-container {
  width: 310px;
  height: 500px;
  margin: 20px;

  /*perspective: 1000px;*/
}

/* .flip-card */
.flip-card {
  width: inherit;
  height: inherit;

  position: relative;
  transform-style: preserve-3d;
  transition: .6s .1s;
}

/* hover and focus-within states */
.flip-card-container:hover .flip-card {
  transform: rotateY(180deg);
}

/* .card-... */
.card-front{
  width: 100%;
  height: 100%;
  border-radius: 24px;

  background: hsl(150, 25%, 10%);
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;

  backface-visibility: hidden;

  display: flex;
  justify-content: center;
  align-items: center;
}
.card-back {
  width: 100%;
  height: 100%;
  border-radius: 24px;

  background: hsl(150, 25%, 10%);
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;

  backface-visibility: hidden;

  display: flex;
  justify-content: center;
  align-items: center;
}
/* .card-front */
.card-front {
  transform: rotateY(0deg);
  z-index: 2;
}

/* .card-back */
.card-back {
  transform: rotateY(180deg);
  z-index: 1;
}

/* figure */
.figure {
  z-index: -1;
}

/* figure, .img-bg */
.figure,
.img-bg {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  display:flex;
  justify-content: center;
  width: 100%;
  height: 100%;

}

/* img */
img {
  height: 100%;
  border-radius: 24px;
  object-position: center;
}

.card-back img {
	filter: blur(8px);
}

/* figcaption */
.caption {
  display: block;

  width: auto;
  margin-top: 12%;
  padding: 8px 22px;

  font-weight: bold;
  line-height: 1.6;
  letter-spacing: 2px;
  word-spacing: 6px;
  text-align: right;

  position: absolute;
  top: 0;
  left: 0px;

  color: hsl(0, 0%, 90%);
  background: hsla(150, 25%, 10%, .5);
}

/* .img-bg */
.img-bg {
  background: hsla(150, 25%, 10%, .5);
}

/* hover state */
.flip-card-container:hover .card-back .img-bg::before {
  width: 6px;
  border-left-color: hsl(150, 50%, 50%);
  border-right-color: hsl(150, 50%, 50%);
}

/* ul */
ul {
  padding-top: 5%;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  list-style: none;
  color: hsl(0, 0%, 90%);
  overflow-y: scroll;
  overflow-X: hidden;

  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  background: hsla(150,25%,10%,.8);
}

/* li */
li {
  width: 100%;
  margin-top: 12px;
  padding-bottom: 12px;

  font-size: 14px;
  text-align: center;

  position: relative;
}

li:not(:last-child)::after {
  content: "";

  position: absolute;
  bottom: 0;
  left: 0;

  width: 100%;
  height: 1px;

  background: currentColor;
  opacity: .2;
}

/* fronttext */
.fronttext {
  font-family: inherit;
  font-weight: bold;
  color: #308E89;

  letter-spacing: 2px;

  padding: 9px 20px;
  border: 1px solid #308E89;
  border-radius: 1000px;
  background: rgba(255, 255, 255, 0.9);
}

/* .design-container */
.design-container {

  width: 100%;
  height: 100%;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
}

/* .design */
.design {
  display: block;

  background: hsl(0, 0%, 50%);
  position: absolute;

  opacity: .5;
  transition: .3s;
}

.design--1,
.design--2,
.design--3,
.design--4 {
  width: 1px;
  height: 100%;
}

.design--1,
.design--2 {
  top: 0;
  transform: translateY(calc((90 - (90 * 2)) * 1%))
}

.design--1 {
  left: 20%;
}

.design--2 {
  left: 80%;
}

.design--3, .design--4 {
  bottom: 0;
  transform: translateY(calc((90 + (90 - 90)) * 1%))
}

.design--3 {
  left: 24%;
}

.design--4 {
  left: 76%;
}

.design--5, 
.design--6, 
.design--7, 
.design--8 {
  width: 100%;
  height: 1px;
}

.design--5,
.design--6 {
  left: 0;
  transform: translateX(calc((90 - (90 * 2)) * 1%));
}

.design--5 {
  top: 41%;
}

.design--6 {
  top: 59%;
}

.design--7,
.design--8 {
  right: 0;
  transform: translateX(calc((90 + (90 - 90)) * 1%))
}

.design--7 {
  top: 44%;
}

.design--8 {
  top: 56%;
}