move menu btton to bottom and hide whwn expanxed
This commit is contained in:
2
app.js
2
app.js
@@ -1972,11 +1972,13 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
function toggleSidebar() {
|
function toggleSidebar() {
|
||||||
toolbar.classList.toggle('open');
|
toolbar.classList.toggle('open');
|
||||||
overlay.classList.toggle('show');
|
overlay.classList.toggle('show');
|
||||||
|
sidebarToggle.classList.toggle('hidden');
|
||||||
}
|
}
|
||||||
|
|
||||||
function closeSidebar() {
|
function closeSidebar() {
|
||||||
toolbar.classList.remove('open');
|
toolbar.classList.remove('open');
|
||||||
overlay.classList.remove('show');
|
overlay.classList.remove('show');
|
||||||
|
sidebarToggle.classList.remove('hidden');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Toggle sidebar when button is clicked
|
// Toggle sidebar when button is clicked
|
||||||
|
|||||||
15
styles.css
15
styles.css
@@ -178,7 +178,7 @@ body {
|
|||||||
.sidebar-toggle {
|
.sidebar-toggle {
|
||||||
display: none;
|
display: none;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 15px;
|
bottom: 15px;
|
||||||
left: 15px;
|
left: 15px;
|
||||||
z-index: 2000;
|
z-index: 2000;
|
||||||
background: #2c3e50;
|
background: #2c3e50;
|
||||||
@@ -214,17 +214,18 @@ body {
|
|||||||
.toolbar.open {
|
.toolbar.open {
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.map-container {
|
.map-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Adjust sum display position on mobile to avoid toggle button */
|
/* Hide toggle button when sidebar is open */
|
||||||
.sum-display {
|
.sidebar-toggle.hidden {
|
||||||
top: 70px;
|
display: none !important;
|
||||||
left: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Sum display is fine at top on mobile now that toggle is at bottom */
|
||||||
|
|
||||||
/* Overlay when sidebar is open */
|
/* Overlay when sidebar is open */
|
||||||
.sidebar-overlay {
|
.sidebar-overlay {
|
||||||
display: none;
|
display: none;
|
||||||
|
|||||||
Reference in New Issue
Block a user