mapguesser/public/static/css/mapguesser.css

255 lines
3.9 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: not-allowed;
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;
}
#guess.result > #closeGuessButtonContainer, #guess.result > #guessButtonContainer {
display: none;
}
2020-05-22 23:23:54 +02:00
#map {
width: 100%;
border-radius: 3px;
}
2020-05-22 23:23:54 +02:00
#guess.result > #map {
height: 70%;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
#resultInfo {
height: 30%;
width: 100%;
2020-05-20 01:07:01 +02:00
padding: 10px 20px;
text-align: center;
box-sizing: border-box;
background-color: #ffffff;
display: none;
}
#guess.result > #resultInfo {
display: block;
}
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
#distanceInfo > p:nth-child(2), #scoreInfo > p:nth-child(2) {
display: none;
}
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
}
#showSummaryButton, #startNewGameButton {
display: none;
}
@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;
}
2020-05-22 23:23:54 +02:00
#map {
height: calc(100% - 90px);
}
#scoreBarBase {
width: 100%;
}
}
@media screen and (min-width: 600px) {
#showGuessButtonContainer {
display: none;
}
#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;
}
2020-05-22 23:23:54 +02:00
#map {
height: calc(100% - 45px);
}
#guess.result {
width: initial;
height: initial;
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;
}
}
}