mobmash.click/html/styles/main.css
2024-08-04 00:03:52 +02:00

196 lines
No EOL
2.8 KiB
CSS

* {
font-family: 'Minecraft', sans-serif;
box-sizing: border-box;
}
body {
padding: 0;
margin: 0;
}
nav {
background-color: black;
height: 50px;
width: 100%;
border-bottom: 1px solid black;
margin: 0;
display: block;
}
nav ul {
list-style-type: none;
display: block;
margin: 0;
padding: 0;
position: absolute;
top: 13px;
}
nav li {
font-size: 20px;
display: inline-block;
}
nav .left {
left: 20px;
}
nav .left li {
padding-right: 30px;
}
nav .right {
right: 20px;
}
nav .right li {
padding-left: 30px;
}
nav a {
text-decoration: none;
color: white;
box-shadow: inset 0 0 0 0 white;
transition: color .3s ease-in-out, box-shadow .3s ease-in-out;
padding-left: 10px;
padding-right: 10px;
}
nav a:active {
color: white;
}
nav a:visited {
color: white;
}
nav a:hover, nav .active a {
box-shadow: inset 130px 0 0 0 white;
color: black;
}
h1 {
text-align: center;
font-size: 40px;
margin: 60px;
}
.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: 30px;
position: absolute;
top: 60%;
width: 100%;
text-align: center;
transform: translate(0%, -50%);
opacity: 1;
transition: opacity 0.2s;
}
.middle .spinner img {
width: 7vw;
}
.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: 33vw;
height: 35vw;
position: relative;
}
.mob h2 {
position: absolute;
width: 100%;
text-align: center;
}
.mob input.fallback {
display: block;
margin: auto;
}
.mob img {
object-fit: contain;
width: 28vw;
height: 28vw;
margin-top: 5.5vw;
margin-left: 2.5vw;
}
.results-list img {
height: 100px;
}
.results-list .trend-container {
width: 400px;
height: 100px;
}
.results-list {
border-collapse: collapse;
margin-left: auto;
margin-right: auto;
}
.results-list th {
font-size: 20px;
}
.results-list td {
border: none;
}
.results-list tbody tr:nth-child(even) {
background-color: rgb(230, 230, 230);
}
.results-list tbody tr:nth-child(odd) {
background-color: white;
}