mirror of
https://github.com/jcreek/what-games-should-I-stream.git
synced 2026-07-13 02:43:46 +00:00
91 lines
1.6 KiB
CSS
91 lines
1.6 KiB
CSS
/* ----------- Spinner ----------- */
|
|
.spinner {
|
|
margin: 100px auto 0;
|
|
width: 70px;
|
|
text-align: center;
|
|
}
|
|
|
|
.spinner > div {
|
|
width: 18px;
|
|
height: 18px;
|
|
background-color: #6441a5; /* Twitch colour */
|
|
|
|
border-radius: 100%;
|
|
display: inline-block;
|
|
-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
|
|
animation: sk-bouncedelay 1.4s infinite ease-in-out both;
|
|
}
|
|
|
|
.spinner .bounce1 {
|
|
-webkit-animation-delay: -0.32s;
|
|
animation-delay: -0.32s;
|
|
}
|
|
|
|
.spinner .bounce2 {
|
|
-webkit-animation-delay: -0.16s;
|
|
animation-delay: -0.16s;
|
|
}
|
|
|
|
@-webkit-keyframes sk-bouncedelay {
|
|
0%, 80%, 100% { -webkit-transform: scale(0) }
|
|
40% { -webkit-transform: scale(1.0) }
|
|
}
|
|
|
|
@keyframes sk-bouncedelay {
|
|
0%, 80%, 100% {
|
|
-webkit-transform: scale(0);
|
|
transform: scale(0);
|
|
} 40% {
|
|
-webkit-transform: scale(1.0);
|
|
transform: scale(1.0);
|
|
}
|
|
}
|
|
|
|
/* ----------- App ----------- */
|
|
|
|
#root {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.appContainer {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.card {
|
|
margin: 1rem;
|
|
|
|
/* Add shadows to create the "card" effect */
|
|
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
|
|
transition: 0.3s;
|
|
|
|
border-radius: 5px; /* 5px rounded corners */
|
|
}
|
|
|
|
/* On mouse-over, add a deeper shadow */
|
|
.card:hover {
|
|
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
|
|
}
|
|
|
|
/* Add some padding inside the card container */
|
|
.container {
|
|
padding: 2px 16px;
|
|
}
|
|
|
|
/* Add rounded corners to the top left and the top right corner of the image */
|
|
img {
|
|
border-radius: 5px 5px 0 0;
|
|
}
|
|
|
|
@media screen and (min-width: 600px) {
|
|
.card {
|
|
flex: 1 1 calc(50% - 2rem);
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 900px) {
|
|
.card {
|
|
flex: 1 1 calc(33% - 2rem);
|
|
}
|
|
} |