rgl/quicksilver/style.css

91 lines
1.7 KiB
CSS

.wrapper {
/* Text margin */
margin: auto;
width: 60%;
padding: 10px;
perspective: 1000px;
}
.text-align-center {
text-align: center;
}
button {
color: white;
background-color: blue;
border-radius: 5px;
border: 1px solid black;
padding: 10px;
box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.75);
-webkit-box-shadow: 1px 3px 5px 0px rgba(0,0,0,0.75);
-moz-box-shadow: 1px 3px 5px 0px rgba(0,0,0,0.75);
}
button:active {
background-color: #00008B;
}
button + button {
margin-left: 10px;
}
input {
width: 100%;
margin: 5px;
border-radius: 5px;
border: 1px solid black;
padding: 5px
}
.card {
height: 100%;
width: 100%;
margin: 5px;
border: 1px black solid;
border-radius: 5px;
box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.75);
-webkit-box-shadow: 1px 3px 5px 0px rgba(0,0,0,0.75);
-moz-box-shadow: 1px 3px 5px 0px rgba(0,0,0,0.75);
transform: scale(1);
transform-style: preserve-3d;
transition: transform .5s;
background-color: blue;
word-break: break-all;
}
.card-container {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.card:active {
transform: scale(0.97);
transition: transform .2s;
}
.card.flip {
transform: rotateY(180deg);
background-color: white;
}
.back-face, .front-face {
padding: 20px;
backface-visibility: hidden;
-moz-backface-visibility: hidden;
-webkit-backface-visibility: hidden;
display: flex;
align-items: center;
justify-content: center;
}
.card .flip .front-face {
transform: rotateY(180deg);
}
.back-face {
transform: rotateY(180deg);
}