mapguesser/public/static/css/mapguesser.css

252 lines
3.7 KiB
CSS
Raw Normal View History

* {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
vertical-align: baseline;
}
html, body {
height: 100%;
margin: 0;
padding: 0;
}
p, button {
font-family: 'Roboto', sans-serif;
}
p {
font-weight: 300;
font-size: 12px;
}
.bold {
font-weight: 500;
}
button {
cursor: pointer;
font-size: 16px;
font-weight: 500;
color: #ffffff;
background-color: #5e77aa;
padding: 0 15px;
height: 35px;
border: none;
border-radius: 3px;
}
button:enabled:hover, button:enabled:focus {
background-color: #29457f;
outline: none;
}
button:disabled {
cursor: no-drop;
color: #dddddd;
opacity: 0.7;
}
button.block {
padding: 0;
width: 100%;
}
button.gray {
background-color: #808080;
}
button.gray:hover, button.gray:focus {
background-color: #555555;
}
div.buttonContainer {
height: 35px;
}
div.buttonContainer.top {
margin-bottom: 10px;
}
div.buttonContainer.bottom {
margin-top: 10px;
}
#loading {
position: absolute;
width: 40px;
height: 40px;
top: 50%;
left: 50%;
margin-top: -20px;
margin-left: -20px;
z-index: 3;
}
#panorama {
height: 100%;
width: 100%;
z-index: 1;
}
#guess {
position: absolute;
bottom: 30px;
right: 20px;
z-index: 2;
}
#guessMap {
width: 100%;
border-radius: 3px;
}
#result {
position: absolute;
opacity: 0.95;
z-index: 2;
visibility: hidden;
background-color: #ffffff;
border-radius: 3px;
}
#resultMap {
height: 70%;
width: 100%;
2020-05-21 12:18:17 +02:00
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}
#resultInfo {
height: 30%;
width: 100%;
2020-05-20 01:07:01 +02:00
padding: 10px 20px;
text-align: center;
box-sizing: border-box;
}
2020-05-20 01:07:01 +02:00
#resultInfo > div {
height: 25%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
#resultInfo p {
font-size: 24px;
}
2020-05-20 01:07:01 +02:00
#scoreBarBase {
height: 24px;
2020-05-20 01:07:01 +02:00
margin: 0 auto;
background-color: #eeeeee;
border-radius: 3px;
2020-05-20 01:07:01 +02:00
}
#scoreBar {
height: 100%;
width: 0;
border-radius: 3px;
2020-05-20 01:07:01 +02:00
transition-property: width;
transition-duration: 2.0s;
2020-05-20 01:07:01 +02:00
}
@media screen and (max-width: 599px) {
button {
padding: 0;
width: 100%;
}
#showGuessButtonContainer {
position: absolute;
left: 20px;
bottom: 30px;
right: 20px;
z-index: 2;
}
#guess {
left: 20px;
top: 20px;
opacity: 0.95;
visibility: hidden;
}
#guessMap {
height: calc(100% - 90px);
}
#result {
top: 20px;
left: 20px;
right: 20px;
bottom: 30px;
}
#scoreBarBase {
width: 100%;
}
}
@media screen and (min-width: 600px) {
#showGuessButtonContainer {
visibility: hidden;
}
#guess {
width: 500px;
height: 375px;
opacity: 0.95;
}
#guess.adapt {
top: initial;
width: 250px;
height: 200px;
opacity: 0.5;
transition-property: width, height, opacity;
transition-duration: 0.1s;
transition-delay: 0.8s;
}
#guess.adapt:hover {
width: 500px;
height: 375px;
opacity: 0.95;
transition-delay: 0s;
}
#closeGuessButtonContainer {
display: none;
}
#guessMap {
height: calc(100% - 45px);
}
#result {
top: 50px;
left: 50px;
right: 50px;
bottom: 50px;
}
#scoreBarBase {
width: 60%;
}
@media screen and (max-height: 424px) {
#guess {
top: 20px;
height: initial;
}
#guess.adapt:hover {
top: 20px;
height: initial;
}
}
}