Files
cursebreaker-parser-rust/cursebreaker-map/static/style.css
2026-01-11 02:46:49 +00:00

189 lines
2.9 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
overflow: hidden;
background: #1a1a1a;
color: #e0e0e0;
}
#app {
display: flex;
height: 100vh;
width: 100vw;
}
/* Sidebar */
.sidebar {
width: 320px;
background: #2a2a2a;
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
z-index: 1000;
transition: margin-left 0.3s ease;
position: relative;
overflow-y: auto;
}
.sidebar.collapsed {
margin-left: -320px;
}
.toggle-btn {
position: absolute;
right: -40px;
top: 10px;
width: 40px;
height: 40px;
background: #2a2a2a;
border: none;
border-radius: 0 5px 5px 0;
color: #e0e0e0;
font-size: 20px;
cursor: pointer;
transition: background 0.2s;
z-index: 1001;
}
.toggle-btn:hover {
background: #3a3a3a;
}
.sidebar-content {
padding: 20px;
}
.sidebar h2 {
color: #8b5cf6;
margin-bottom: 5px;
font-size: 24px;
}
.subtitle {
color: #a0a0a0;
font-size: 14px;
margin-bottom: 20px;
}
.info-section {
border-bottom: 1px solid #3a3a3a;
padding-bottom: 20px;
margin-bottom: 20px;
}
.filters-section,
.map-info {
margin-bottom: 25px;
}
.filters-section h3,
.map-info h3 {
color: #8b5cf6;
margin-bottom: 10px;
font-size: 16px;
font-weight: 600;
}
.filter-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.filter-group label {
display: flex;
align-items: center;
cursor: pointer;
padding: 5px;
border-radius: 4px;
transition: background 0.2s;
}
.filter-group label:hover {
background: #3a3a3a;
}
.filter-group input[type="checkbox"] {
margin-right: 8px;
cursor: pointer;
}
.coming-soon {
color: #a0a0a0;
font-style: italic;
font-size: 13px;
margin-bottom: 15px;
}
#map-stats {
font-size: 14px;
color: #c0c0c0;
}
#map-stats p {
margin: 5px 0;
}
/* Map */
#map {
flex: 1;
height: 100vh;
background: #1a1a1a;
}
/* Leaflet overrides for dark theme */
.leaflet-container {
background: #1a1a1a;
}
.leaflet-control-zoom a {
background: #2a2a2a;
color: #e0e0e0;
border-color: #3a3a3a;
}
.leaflet-control-zoom a:hover {
background: #3a3a3a;
color: #fff;
}
.leaflet-bar {
border: 1px solid #3a3a3a;
}
/* Coordinates display */
.coordinates-display {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
background: rgba(42, 42, 42, 0.95);
color: #e0e0e0;
padding: 8px 16px;
border-radius: 6px;
font-size: 14px;
font-family: 'Courier New', monospace;
z-index: 1000;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
pointer-events: none;
}
#coord-text {
color: #8b5cf6;
font-weight: bold;
}
/* Responsive */
@media (max-width: 768px) {
.sidebar {
width: 280px;
}
.sidebar.collapsed {
margin-left: -280px;
}
}