Fix error message position, center horizontally (#56, #114)

This commit is contained in:
Norbert Renner 2018-04-05 11:37:15 +02:00
parent ed07a6c3c3
commit e0a786ba60
2 changed files with 10 additions and 7 deletions

View file

@ -104,12 +104,15 @@ footer {
cursor: crosshair;
}
#map {
/* center error message horizontally */
display: flex;
justify-content: center;
}
#message {
position: absolute;
left: 446px; /* 400 + 10 + 26 + 10 */
top: 0px;
margin-top: 10px;
margin: 10px 46px; /* 10 + 26 + 10 */
z-index: 3000;
font-size: 1rem;
}
#profile_buttons {

View file

@ -177,7 +177,9 @@
</div>
<div class="leaflet-sidebar-flex-row flexgrow">
<div id="map" class="leaflet-sidebar-map"></div>
<div id="map" class="leaflet-sidebar-map">
<div id="message"></div>
</div>
<div id="sidebar" class="leaflet-sidebar collapsed">
@ -218,8 +220,6 @@
</div>
</div>
</div>
<div id="message"></div>
</div>
<div class="collapse" id="elevation-chart"></div>