Skip to content

Commit

Permalink
fix map buttons positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
rand256 committed Jun 25, 2019
1 parent 6c3af93 commit 7134f57
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion client/forbidden-markers-configuration-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<canvas id="forbidden-markers-configuration-map"></canvas>
</div>

<div class="map-page-buttons">
<div class="map-page-buttons map-page-bottom">
<ons-fab ripple id="forbidden-markers-configuration-add-wall">
<ons-icon icon="fa-ellipsis-v"></ons-icon>
</ons-fab>
Expand Down
17 changes: 10 additions & 7 deletions client/map.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<canvas id="map-canvas"></canvas>
</div>

<div class="map-page-buttons map-page-reload-button">
<div class="map-page-buttons map-page-top">
<ons-fab ripple id="map_reload_button">
<ons-icon icon="fa-refresh"></ons-icon>
</ons-fab>
</div>

<div class="map-page-buttons">
<div class="map-page-buttons map-page-bottom">
<ons-fab ripple id="promote_zone" style="display: none;">
<ons-icon icon="fa-angle-double-up"></ons-icon>
</ons-fab>
Expand Down Expand Up @@ -166,20 +166,23 @@
background-image: linear-gradient(var(--map-background-1), var(--map-background-2));
}

.map-page-reload-button.map-page-buttons {
top: 1.5em;
}

.map-page-buttons {
position: absolute;
right: 1.5em;
bottom: 1.5em;
display: grid;
grid-template-columns: auto;
grid-template-rows: auto;
grid-gap: 0.5em;
}

.map-page-top {
top: 1.5em;
}

.map-page-bottom {
bottom: 1.5em;
}

.map-page-buttons > ons-fab {
background-color: #ffffff;
color: #31313a;
Expand Down
2 changes: 1 addition & 1 deletion client/spot-configuration-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<canvas id="spot-configuration-map"></canvas>
</div>

<div class="map-page-buttons">
<div class="map-page-buttons map-page-bottom">
<ons-fab ripple id="spot-configuration-save">
<ons-icon icon="fa-save"></ons-icon>
</ons-fab>
Expand Down
2 changes: 1 addition & 1 deletion client/zones-configuration-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<canvas id="zone-configuration-map"></canvas>
</div>

<div class="map-page-buttons">
<div class="map-page-buttons map-page-bottom">
<ons-fab ripple id="promote_configuration_zone" style="display: none;">
<ons-icon icon="fa-angle-double-up"></ons-icon>
</ons-fab>
Expand Down

0 comments on commit 7134f57

Please sign in to comment.