74 lines
1011 B
CSS
74 lines
1011 B
CSS
|
|
.flip-container {
|
|
perspective: 1000px;
|
|
display: inline-block;
|
|
width: 100%;
|
|
height: 100%;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.flipper {
|
|
transition: transform 0.6s;
|
|
transform-style: preserve-3d;
|
|
width: 100%;
|
|
height: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.flipped {
|
|
transform: rotateY(180deg);
|
|
}
|
|
|
|
.front, .back {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
backface-visibility: hidden;
|
|
}
|
|
|
|
.back {
|
|
transform: rotateY(180deg);
|
|
}
|
|
|
|
.badge {
|
|
width: 90px;
|
|
height: 30px;
|
|
color: white;
|
|
padding: 4px 8px;
|
|
border-radius: 30px;
|
|
}
|
|
|
|
.statText {
|
|
position: relative;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.dozing {
|
|
background-color: #fcdc5e;
|
|
}
|
|
|
|
.snoozing {
|
|
background-color: #4ce8ed;
|
|
}
|
|
|
|
.slumbering {
|
|
background-color: #4588fb;
|
|
}
|
|
|
|
.berries {
|
|
background-color: #24d86b;
|
|
}
|
|
|
|
.ingredients {
|
|
background-color: #fdbe4d;
|
|
}
|
|
|
|
.skills {
|
|
background-color: #47a0fc;
|
|
}
|