mobmash.click/html/styles/main.css
2024-08-03 20:24:09 +02:00

109 lines
1.6 KiB
CSS

* {
font-family: 'Minecraft', sans-serif;
}
body {
padding: 0;
margin: 0;
}
nav {
background-color: red;
height: 50px;
width: 100%;
border-bottom: 1px solid black;
margin: 0;
}
h1 {
text-align: center;
}
.choice {
position: relative;
}
.selection {
display: flex;
flex-direction: row;
justify-content: center;
margin-left: auto;
margin-right: auto;
max-width: 90vw;
}
.separator {
flex-grow: 1;
position: relative;
}
.middle {
width: 100%;
position: absolute;
top: 0;
height: 100%;
user-select: none;
z-index: -100;
}
.middle .or, .middle .spinner {
color: white;
font-size: 5vw;
position: absolute;
top: 50%;
width: 100%;
text-align: center;
transform: translate(0%, -50%);
opacity: 1;
transition: opacity 0.2s;
}
.loading .or {
opacity: 0;
}
.loading .spinner img {
animation-name: spinner;
animation-duration: 1s;
animation-delay: 0.2s;
animation-iteration-count: 1;
animation-timing-function: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}
@keyframes spinner {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.mob {
width: 40vw;
height: 42vw;
position: relative;
}
.mob h2 {
position: absolute;
width: 100%;
text-align: center;
}
.mob input.fallback {
display: block;
margin: auto;
}
.mob img {
object-fit: contain;
width: 35vw;
height: 35vw;
margin-top: 5.5vw;
margin-left: 2.5vw;
}
.results-list img, .results-list canvas {
height: 100px;
}