136 lines
3.6 KiB
CSS
136 lines
3.6 KiB
CSS
html, body {
|
|
height: 100vh; width: 100vw; margin: 0; padding: 0;
|
|
display: flex; font-family: Arial, sans-serif; overflow: hidden;
|
|
}
|
|
|
|
#sidebar {
|
|
width: 280px; background-color: #f8f9fa; padding: 20px;
|
|
box-shadow: 2px 0 5px rgba(0,0,0,0.2); z-index: 1000; overflow-y: auto;
|
|
}
|
|
|
|
#sidebar h3 { margin-top: 0; border-bottom: 2px solid #ddd; padding-bottom: 10px; }
|
|
|
|
/* Styling Ikon Mode */
|
|
.mode-selector { margin-bottom: 20px; }
|
|
.mode-buttons {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
.mode-btn {
|
|
flex: 0 0 auto; /* tidak melebar penuh */
|
|
width: 110px;
|
|
padding: 10px 8px;
|
|
text-align: center;
|
|
}
|
|
.mode-btn i { font-size: 24px; margin-bottom: 8px; display: block; }
|
|
.mode-btn:hover { background: #e9ecef; }
|
|
|
|
/* Warna saat tombol mode aktif */
|
|
.mode-btn.active[data-mode="point"] { border-color: #e74c3c; color: #e74c3c; background: #fadbd8; }
|
|
.mode-btn.active[data-mode="polyline"] { border-color: #3498db; color: #3498db; background: #d6eaf8; }
|
|
.mode-btn.active[data-mode="polygon"] { border-color: #2ecc71; color: #2ecc71; background: #d5f5e3; }
|
|
.mode-btn.active[data-mode="prasejahtera"] { border-color: #c0392b; color: #ffffff; background: #e74c3c; }
|
|
.mode-btn.active[data-mode="ibadah"] { border-color: #6c3483; color: #ffffff; background: #8e44ad; }
|
|
/* Styling tombol edit aktif */
|
|
.mode-btn.active[data-mode="edit_jalan"] { background-color: #f1c40f !important; color: white !important; }
|
|
.mode-btn.active[data-mode="edit_kavling"] { background-color: #27ae60 !important; color: white !important; }
|
|
|
|
/* Styling Input & Action Buttons */
|
|
.action-buttons {
|
|
display: none; background: #fff; padding: 15px;
|
|
border-radius: 8px; border: 1px solid #ddd; margin-top: 10px; margin-bottom: 20px;
|
|
}
|
|
|
|
.action-buttons input, .action-buttons select {
|
|
width: 100%; margin-bottom: 15px; padding: 8px; box-sizing: border-box;
|
|
border: 1px solid #ccc; border-radius: 4px;
|
|
}
|
|
|
|
.action-buttons button {
|
|
width: 100%; padding: 10px; margin-bottom: 8px; cursor: pointer;
|
|
border-radius: 5px; font-weight: bold;
|
|
}
|
|
|
|
.btn-success { background-color: #2ecc71; color: white; border: none; }
|
|
.btn-danger { background-color: #e74c3c; color: white; border: none; }
|
|
|
|
#map-container { flex: 1; position: relative; }
|
|
#map { position: absolute; top: 0; bottom: 0; left: 0; right: 0; }
|
|
|
|
.user-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 12px;
|
|
background: #f0f4f8;
|
|
border-radius: 8px;
|
|
margin-bottom: 12px;
|
|
gap: 4px;
|
|
}
|
|
|
|
.user-info i {
|
|
font-size: 28px;
|
|
color: #1B2A4A;
|
|
}
|
|
|
|
.user-info span {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
color: #1B2A4A;
|
|
}
|
|
|
|
.user-info small {
|
|
font-size: 11px;
|
|
background: #1B2A4A;
|
|
color: white;
|
|
padding: 2px 8px;
|
|
border-radius: 20px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.viewer-info {
|
|
font-size: 13px;
|
|
color: #888;
|
|
text-align: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.btn-login, .btn-logout, .menu-link {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 10px;
|
|
text-align: center;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
margin-bottom: 8px;
|
|
cursor: pointer;
|
|
border: none;
|
|
}
|
|
|
|
.btn-login {
|
|
background: #1B2A4A;
|
|
color: white;
|
|
}
|
|
|
|
.btn-logout {
|
|
background: #fdecea;
|
|
color: #c0392b;
|
|
}
|
|
|
|
.menu-link,
|
|
.btn-logout,
|
|
.btn-login {
|
|
width: auto; /* tidak full width lagi */
|
|
display: block;
|
|
margin: 0 auto 8px auto;
|
|
padding: 10px 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
.btn-login:hover { background: #253d6e; }
|
|
.btn-logout:hover { background: #f5b7b1; }
|
|
.menu-link:hover { background: #dce4f0; } |