kanaguessr/index.css

170 lines
2.2 KiB
CSS
Raw Normal View History

2021-01-22 00:25:31 +01:00
body {
display: inline;
background-color: #1c1f22;
color: white;
2021-01-27 02:37:57 +01:00
font-family: Arial, sans-serif;
2023-03-04 22:49:24 +01:00
text-align: center;
}
p {
margin-bottom: 0;
}
#question {
2023-03-04 22:49:24 +01:00
margin-left: 5px;
margin-right: 5px;
}
#question * {
2023-03-06 13:32:56 +01:00
background-color: black;
border: 1px solid;
2023-03-04 22:49:24 +01:00
margin-left: auto;
margin-right: auto;
2023-03-06 13:32:56 +01:00
height: 2em;
line-height: 2em;
}
#character {
2023-03-06 13:32:56 +01:00
margin-bottom: 0.2em;
font-size: 100px;
2021-01-27 02:37:57 +01:00
width: 2em;
2023-03-06 13:32:56 +01:00
}
2021-01-27 02:37:57 +01:00
#equivalent {
font-size: 20px;
width: 10em;
}
2023-03-06 13:32:56 +01:00
#answer {
margin-left: 5px;
margin-right: 5px;
}
#answer > * {
margin-left: auto;
margin-right: auto;
}
2023-03-04 22:49:24 +01:00
#user_answer {
display: inline-flex;
}
#user_answer * {
2021-01-27 02:37:57 +01:00
background-color: black;
2023-03-06 13:32:56 +01:00
color: white;
2021-01-27 02:37:57 +01:00
border: 1px solid;
2023-03-06 13:32:56 +01:00
font-size: 30px;
line-height: 75px;
2021-03-03 18:18:22 +01:00
margin-top: 1em;
2021-01-27 02:37:57 +01:00
margin-bottom: 0px;
padding: 0px 5px;
min-width: 50px;
2023-03-05 21:56:19 +01:00
height: 80px;
text-align: center;
2021-01-27 16:13:40 +01:00
}
#positive {
color: green;
}
#negative {
color: red;
}
input::placeholder {
color: grey !important;
}
2021-03-03 18:18:22 +01:00
#answer_field {
2023-03-05 21:56:19 +01:00
width: 250px;
}
2023-03-06 13:32:56 +01:00
#submit_answer button {
border-width: 2px;
font-weight: bold;
margin-top: 15px;
margin-left: 5px;
margin-right: 5px;
min-width: 100px;
}
#correct_answer {
background-color: black;
border: 1px solid;
font-size: 20px;
line-height: 2em;
width: 300px;
height: 2em;
margin-top: 15px;
}
#game {
margin-top: 25px;
}
2023-03-05 21:56:19 +01:00
#settings {
margin-top: 10px;
}
#settings > * {
2023-03-06 13:32:56 +01:00
background-color: #171717;
2023-03-05 21:56:19 +01:00
border: 1px solid white;
border-radius: 25px;
2023-03-06 13:32:56 +01:00
margin-top: 10px;
2023-03-05 21:56:19 +01:00
}
2023-03-06 13:32:56 +01:00
#settings label, #misc label {
2023-03-05 21:56:19 +01:00
font-weight: bold;
}
2023-03-06 13:32:56 +01:00
.h label {
background-color: #b57642;
2023-03-06 13:32:56 +01:00
}
.k label {
background-color: steelblue;
2023-03-06 13:32:56 +01:00
}
.r label {
background-color: blueviolet;
2021-01-27 16:13:40 +01:00
}
#misc {
background-color: black;
2023-03-06 13:32:56 +01:00
border: 1px solid;
2023-03-05 21:56:19 +01:00
width: fit-content;
padding: 5px;
margin-top: 15px;
margin-bottom: 0px;
2023-03-05 21:56:19 +01:00
margin-left: auto;
margin-right: auto;
2021-01-27 16:13:40 +01:00
}
2023-03-07 23:59:19 +01:00
@media screen and (max-width: 450px) {
#user_answer * {
width: 12vw;
}
#answer_field {
width: 50vw;
}
#correct_answer {
font-size: 5vw;
height: auto;
width: 70vw;
}
}
@media screen and (max-height: 650px) {
#user_answer * {
height: 8vh;
line-height: 7.5vh;
min-height: auto;
font-size: 5vh;
}
#character {
font-size: 12vh;
}
#equivalent, #correct_answer {
font-size: 4vh;
}
}