MAPG-73 show header with link on the gaming screen

move round info to the new header
This commit is contained in:
Bence Pőcze 2020-05-30 17:39:27 +02:00
parent c773240512
commit 8afcde393f
2 changed files with 44 additions and 22 deletions

View File

@ -22,10 +22,17 @@ h1, h2 {
h1 {
font-size: 32px;
line-height: inherit;
}
h2 {
h1>a:link, h1>a:visited {
color: inherit;
}
h1>a:hover, h1>a:focus {
text-decoration: none;
}
h2, div.header.small h1 {
font-size: 24px;
}
@ -77,7 +84,7 @@ a:link, a:visited {
text-decoration: none;
}
a:hover {
a:hover, a:focus {
text-decoration: underline;
}
@ -129,6 +136,16 @@ div.header {
color: white;
}
div.header > div.grid {
display: grid;
grid-template-columns: auto auto;
}
div.header.small {
height: 40px;
line-height: 40px;
}
div.main {
padding: 6px 12px;
}
@ -194,17 +211,8 @@ div.mapItem>div.inner>div.info>p:nth-child(2) {
}
#roundInfo {
position: absolute;
top: 5px;
left: 5px;
height: 28px;
line-height: 28px;
padding: 0 8px;
background-color: #eeeeee;
border: solid 1px #555555;
border-radius: 3px;
opacity: 0.95;
z-index: 2;
line-height: inherit;
text-align: right;
}
#roundInfo p {
@ -214,7 +222,7 @@ div.mapItem>div.inner>div.info>p:nth-child(2) {
#panorama {
width: 100%;
height: 100%;
height: calc(100% - 40px);
z-index: 1;
}
@ -323,6 +331,9 @@ div.mapItem>div.inner>div.info>p:nth-child(2) {
}
@media screen and (max-width: 599px) {
div.header.small h1 span {
display: none;
}
button {
padding: 0;
width: 100%;
@ -336,7 +347,7 @@ div.mapItem>div.inner>div.info>p:nth-child(2) {
}
#guess {
left: 20px;
top: 40px;
top: 50px;
opacity: 0.95;
visibility: hidden;
}
@ -381,7 +392,7 @@ div.mapItem>div.inner>div.info>p:nth-child(2) {
#guess.result {
width: initial;
height: initial;
top: 40px;
top: 50px;
left: 50px;
right: 50px;
bottom: 50px;
@ -391,11 +402,11 @@ div.mapItem>div.inner>div.info>p:nth-child(2) {
}
@media screen and (max-height: 424px) {
#guess {
top: 40px;
top: 50px;
height: initial;
}
#guess.adapt:hover {
top: 40px;
top: 50px;
height: initial;
}
#guess.result {

View File

@ -8,12 +8,23 @@
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;500&family=Roboto+Mono:wght@300;500&display=swap" rel="stylesheet">
</head>
<body>
<div class="header small">
<div class="grid">
<h1>
<a href="maps" title="Back to playable maps">
<!-- Copyright (c) 2019 The Bootstrap Authors. License can be found in 'USED_SOFTWARE' in section 'Bootstrap Icons'. -->
<svg class="inline" width="1em" height="1em" viewBox="0 0 16 16" fill="#28a745" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M15.817.613A.5.5 0 0 1 16 1v13a.5.5 0 0 1-.402.49l-5 1a.502.502 0 0 1-.196 0L5.5 14.51l-4.902.98A.5.5 0 0 1 0 15V2a.5.5 0 0 1 .402-.49l5-1a.5.5 0 0 1 .196 0l4.902.98 4.902-.98a.5.5 0 0 1 .415.103zM10 2.41l-4-.8v11.98l4 .8V2.41zm1 11.98l4-.8V1.61l-4 .8v11.98zm-6-.8V1.61l-4 .8v11.98l4-.8z" />
</svg>
<span>MapGuesser</span>
</a>
</h1>
<p id="roundInfo">Round: <span id="currentRound" class="mono bold"></span> | Score: <span id="currentScoreSum" class="mono bold"></span></p>
</div>
</div>
<div id="loading">
<img src="static/img/loading.svg">
</div>
<div id="roundInfo">
<p>Round: <span id="currentRound" class="mono bold"></span> | Score: <span id="currentScoreSum" class="mono bold"></span></p>
</div>
<div id="panorama"></div>
<div id="showGuessButtonContainer">
<button id="showGuessButton" class="fullWidth">Show guess map</button>