DMRmap/static/style.css

248 lines
3.8 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
height: 100%;
overflow: hidden;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#map {
width: 100%;
height: 100%;
}
#controls {
position: absolute;
top: 10px;
right: 10px;
z-index: 1000;
background: white;
border-radius: 8px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
padding: 10px 14px;
width: 260px;
}
.controls-row {
display: flex;
align-items: center;
gap: 8px;
}
.band-label {
display: flex;
align-items: center;
gap: 5px;
cursor: pointer;
font-size: 14px;
font-weight: 600;
min-height: 36px;
user-select: none;
}
.band-2m {
color: #1976D2;
}
.band-70cm {
color: #F57C00;
}
#controls input[type="checkbox"] {
width: 18px;
height: 18px;
cursor: pointer;
}
.count {
margin-left: auto;
font-size: 12px;
color: #888;
white-space: nowrap;
}
.route-row {
margin-top: 6px;
}
.autocomplete-wrap {
position: relative;
}
.autocomplete-list {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
z-index: 1001;
background: white;
border: 1px solid #ccc;
border-top: none;
border-radius: 0 0 5px 5px;
list-style: none;
max-height: 180px;
overflow-y: auto;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.autocomplete-list.open {
display: block;
}
.autocomplete-list li {
padding: 7px 10px;
font-size: 12px;
cursor: pointer;
border-bottom: 1px solid #f0f0f0;
line-height: 1.3;
}
.autocomplete-list li:last-child {
border-bottom: none;
}
.autocomplete-list li:hover,
.autocomplete-list li.active {
background: #f5f5f5;
}
.autocomplete-list li .ac-main {
color: #333;
}
.autocomplete-list li .ac-sub {
color: #999;
font-size: 11px;
}
.route-row input[type="text"] {
width: 100%;
padding: 7px 10px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 13px;
outline: none;
}
.route-row input[type="text"]:focus {
border-color: #4CAF50;
}
.route-row button {
flex: 1;
padding: 7px 0;
border: none;
border-radius: 5px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
min-height: 36px;
}
#route-btn {
background: #4CAF50;
color: white;
}
#route-btn:hover {
background: #43A047;
}
#route-btn:disabled {
background: #A5D6A7;
cursor: default;
}
#clear-btn {
background: #eee;
color: #333;
}
#clear-btn:hover {
background: #ddd;
}
.coords-row {
margin-top: 6px;
font-size: 11px;
color: #666;
font-family: "SF Mono", "Menlo", "Monaco", "Consolas", monospace;
line-height: 1.5;
min-height: 1.5em;
}
.coords-row .maidenhead {
color: #999;
}
.attribution {
margin-top: 8px;
padding-top: 8px;
border-top: 1px solid #eee;
font-size: 10px;
color: #999;
line-height: 1.4;
}
.attribution a {
color: #888;
}
/* Popups */
.rptr-popup h3 {
margin: 0 0 6px 0;
font-size: 15px;
color: #222;
}
.rptr-popup table {
width: 100%;
border-collapse: collapse;
font-size: 12px;
}
.rptr-popup td {
padding: 2px 6px;
border-bottom: 1px solid #eee;
vertical-align: top;
}
.rptr-popup td:first-child {
font-weight: 600;
color: #666;
white-space: nowrap;
width: 80px;
}
.rptr-popup .band-tag {
display: inline-block;
padding: 1px 6px;
border-radius: 3px;
font-size: 11px;
font-weight: 600;
color: white;
}
.rptr-popup .band-2m {
background: #2196F3;
}
.rptr-popup .band-70cm {
background: #FF9800;
}
@media (max-width: 768px) {
#controls {
top: 10px;
right: 10px;
left: 10px;
width: auto;
padding: 8px 10px;
}
}