Spaces:
Sleeping
Sleeping
| /* app.css */ | |
| @tailwind base; | |
| @tailwind components; | |
| @tailwind utilities; | |
| /* Card flip styles based on this CodePen example: https: //codepen.io/ananyaneogi/pen/Ezmyeb */ | |
| .flip-card { | |
| background-color: transparent; | |
| width: 144px; | |
| height: 144px; | |
| perspective: 1000px; | |
| cursor: pointer; | |
| } | |
| .flip-card-inner { | |
| position: relative; | |
| width: 100%; | |
| height: 100%; | |
| text-align: center; | |
| transition: transform 0.4s; | |
| transform-style: preserve-3d; | |
| backface-visibility: hidden; | |
| -moz-backface-visibility: hidden; | |
| } | |
| .flip-card:focus { | |
| outline: 0; | |
| } | |
| /*.flip-card:hover .flip-card-inner { | |
| transform: rotateY(180deg); | |
| }*/ | |
| .flip-rotate-y-180 { | |
| transform: rotateY(180deg); | |
| } | |
| .flip-cleared { | |
| opacity: 0.6; | |
| } | |
| .flip-card-front, | |
| .flip-card-back { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; | |
| } | |
| .flip-card-front, | |
| .flip-card-back, | |
| .flip-card-back img { | |
| border-radius: 20px; | |
| } | |
| .flip-card-front { | |
| background: #3cdd8c; | |
| color: white; | |
| z-index: 2; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| } | |
| .flip-card-back { | |
| background: linear-gradient(to right, #4364f7, #6fb1fc); | |
| color: white; | |
| transform: rotateY(180deg); | |
| z-index: 1; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| } |