Render local APRS symbol sprites with table and overlay details while preserving markers and open popups during refresh. Open the map around the local station with a 30 km radius and fit the densest station group without distant outliers. Add localization, attribution and regression coverage.
48 lines
10 KiB
CSS
48 lines
10 KiB
CSS
.aprs-view-tabs{display:flex;gap:6px;margin:0 0 23px;border-bottom:1px solid #2c3e53}.aprs-view-tabs button{padding:12px 24px;background:transparent;color:#8da7bf;border:0;border-bottom:2px solid transparent;cursor:pointer;font-weight:600;font-size:13px}.aprs-view-tabs button[aria-selected=true]{color:#c4e8dc;border-bottom-color:#8bd2b8;background:#91cdb30a}.aprs-activity-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:15px}.aprs-activity-toolbar input,.aprs-activity-toolbar select{padding:9px 12px;background:#121f2e;color:#c3d4e6;border:1px solid #30465c;border-radius:7px;font-size:11px}.aprs-activity-toolbar input{flex:1;min-width:160px}.aprs-activity-toolbar .secondary{font-size:11px}.aprs-activity-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:18px}.aprs-activity-kpis article{padding:14px 18px;border:1px solid #2d4258;border-radius:9px;background:linear-gradient(135deg,#17283a,#111d2b)}.aprs-activity-kpis span{display:block;color:#8ca6be;font-size:10px}.aprs-activity-kpis strong{display:block;font:26px Consolas,monospace;color:#d6e7f5;margin-top:7px}.aprs-map-layout{display:grid;grid-template-columns:minmax(0,2.5fr) minmax(230px,1fr);gap:16px;margin-bottom:20px}.aprs-map-card header,.aprs-stations-card header,.aprs-traffic-card>header{padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #2b4055}.aprs-map-card h2,.aprs-stations-card h2,.aprs-traffic-card h2{font-size:14px;margin:0;color:#d8e6f3}.aprs-map-card header span,.aprs-traffic-card header>span{font-size:10px;color:#8ba6bd}.aprs-map-card header span{display:block;margin-top:5px}.aprs-map-card .secondary{font-size:10px}.aprs-map-card{overflow:hidden}#aprs-station-map{height:390px;z-index:0;background:#111d2b}.aprs-map-card footer{display:flex;gap:14px;flex-wrap:wrap;padding:11px 18px;color:#8ba4bc;font-size:9px}.aprs-map-card footer>span:last-child{margin-left:auto}.aprs-legend:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px;background:#6fd4b1}.aprs-legend.internet:before{background:#81b9f4}.aprs-legend.own:before{background:#efcf89}.aprs-stations-card{display:flex;flex-direction:column;min-width:0;max-height:492px}.aprs-stations-card>div{overflow:auto;flex:1;min-height:0}.aprs-received-station{display:block;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid #2c3f53;padding:14px 17px;cursor:pointer;color:#cadae9}.aprs-received-station:hover,.aprs-received-station.selected{background:#29435644}.aprs-received-station>span{display:flex;justify-content:space-between;align-items:center}.aprs-received-station b{font:13px Consolas,monospace}.aprs-received-station small{display:block;font-size:9px;color:#819ab1;margin-top:5px}.aprs-received-station p{font-size:10px;line-height:1.5;color:#9eb4c7;margin:7px 0 0;overflow:hidden;max-height:3em}.aprs-source-dot{height:6px;width:6px;background:#6fd4b1;border-radius:50%}.aprs-source-dot.internet{background:#81b9f4}.aprs-traffic-scroll{max-height:380px;overflow:auto}.aprs-traffic-table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:740px}.aprs-traffic-table th{position:sticky;top:0;background:#142337;z-index:1;text-align:left;font-size:10px;color:#8ca7c0;padding:12px 15px}.aprs-traffic-table td{padding:12px 15px;border-top:1px solid #2a3d50;vertical-align:top;font-size:11px;color:#b4c9dc}.aprs-traffic-table th:nth-child(1){width:150px}.aprs-traffic-table th:nth-child(2){width:80px}.aprs-traffic-table th:nth-child(3){width:100px}.aprs-traffic-table th:nth-child(4){width:155px}.aprs-traffic-table td small{display:block;font-size:10px;color:#7f9bb2;margin-top:4px}.aprs-traffic-table tr[data-aprs-event]{cursor:pointer}.aprs-traffic-table tr[data-aprs-event]:hover{background:#233e5244}.aprs-packet-direction{font:11px Consolas,monospace;padding:3px 7px;border-radius:4px;background:#26384b}.aprs-packet-direction.rx{color:#9edcbe}.aprs-packet-direction.tx{color:#9ac9f3}.aprs-packet-type{display:block;color:#789bb6;font-size:9px;margin-bottom:5px}.aprs-packet-preview{display:block;font:10px/1.5 Consolas,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aprs-packet-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;color:#c4dfed;font:11px/1.7 Consolas,monospace}.aprs-traffic-card>footer,.aprs-activity-status{padding:12px 18px;font-size:10px;line-height:1.6;color:#819cb3}.aprs-map-popup{display:grid;gap:5px;min-width:160px;max-width:280px;color:#c6dce9}.aprs-map-popup b{font:17px Consolas,monospace;color:#d5ecf6}.aprs-map-popup span,.aprs-map-popup small{font-size:10px;color:#9bb9cd}.aprs-map-popup p{margin:5px 0;overflow-wrap:anywhere;font-size:11px;line-height:1.5}.aprs-map-card .leaflet-popup-content-wrapper,.aprs-map-card .leaflet-popup-tip{background:#162738;box-shadow:0 6px 24px #0006}.aprs-map-card .leaflet-control-zoom a{background:#172a3b;color:#d8e9f5;border-color:#3e5369}.aprs-map-card .leaflet-control-attribution{background:#172737dd;color:#a8bccf}.aprs-map-card .leaflet-control-attribution a{color:#a8d2e7}.aprs-map-card .leaflet-tooltip{background:#142535;border:1px solid #506a7f;color:#c8dce9;font:11px Consolas,monospace}.aprs-map-card .leaflet-tile-pane{filter:saturate(.5) brightness(.8)}@media(max-width:1050px){.aprs-map-layout{grid-template-columns:1fr}.aprs-stations-card{max-height:220px}.aprs-stations-card>div{display:grid;grid-template-columns:1fr 1fr}.aprs-activity-kpis{gap:7px}.aprs-activity-kpis article{padding:12px}}@media(max-width:650px){.aprs-activity-kpis{grid-template-columns:repeat(2,1fr)}.aprs-stations-card>div{grid-template-columns:1fr}#aprs-station-map{height:330px}.aprs-activity-toolbar{gap:7px}.aprs-map-card footer>span:last-child{margin-left:0}.aprs-activity-kpis article:last-child{grid-column:1/-1}.aprs-view-tabs button{flex:1;padding:12px}}
|
|
|
|
.aprs-view-tabs{margin-bottom:20px}
|
|
.aprs-map-layout{grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:stretch}
|
|
#aprs-station-map{height:clamp(340px,calc(100dvh - 415px),500px)}
|
|
.aprs-stations-card{height:calc(clamp(340px,calc(100dvh - 415px),500px) + 112px);max-height:none}
|
|
.aprs-map-card header,.aprs-stations-card header,.aprs-traffic-card>header{padding:16px 18px;min-height:64px}
|
|
.aprs-map-card h2,.aprs-stations-card h2,.aprs-traffic-card h2{font-size:15px}
|
|
.aprs-map-card header span,.aprs-traffic-card header>span{font-size:12px}
|
|
.aprs-map-card footer{padding:12px 18px;font-size:11px}
|
|
.aprs-map-card footer>span:last-child{margin-left:0}
|
|
.aprs-received-station b{font-size:15px}
|
|
.aprs-received-station small,.aprs-received-station p{font-size:12px;line-height:1.5}
|
|
.aprs-traffic-table th,.aprs-packet-preview,.aprs-packet-type{font-size:11px}
|
|
.aprs-traffic-table td{font-size:12px}
|
|
.aprs-traffic-table th:nth-child(1){width:160px}
|
|
.aprs-traffic-card>footer,.aprs-activity-status{font-size:11px;padding:12px 18px}
|
|
.aprs-activity-status{padding-left:0}
|
|
.aprs-map-popup span,.aprs-map-popup small{font-size:12px}
|
|
.aprs-map-popup p{font-size:13px}
|
|
.aprs-map-card .leaflet-container{font-family:'Segoe UI',sans-serif}
|
|
@media(max-width:1050px){.aprs-map-layout{grid-template-columns:1fr}.aprs-stations-card{height:250px}.aprs-stations-card>div{display:block}.aprs-received-station{padding:12px 16px}}
|
|
@media(max-width:650px){#aprs-station-map{height:330px}.aprs-activity-toolbar input{order:1;flex-basis:100%}.aprs-map-card header{flex-wrap:wrap}.aprs-map-card footer{gap:12px}.aprs-stations-card{height:230px}}
|
|
|
|
.aprs-traffic-card>footer summary{cursor:pointer;width:fit-content;color:#a9bfd6;font-size:12px}.aprs-traffic-card>footer p{margin-top:8px;line-height:1.65}
|
|
.aprs-map-card .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) saturate(.4) brightness(.9) contrast(.85)}
|
|
|
|
/* APRS icons use local high-resolution sprites; transport remains a separate rim. */
|
|
.aprs-station-icon{display:grid;place-items:center;background:#edf1ed;border:2px solid #6fd4b1;border-radius:8px;box-shadow:0 2px 7px #0008}
|
|
.aprs-station-icon.internet{border-color:#81b9f4}
|
|
.aprs-symbol-image{position:relative;display:inline-block;width:24px;height:24px;flex:0 0 24px;background-size:384px 144px;background-repeat:no-repeat;vertical-align:middle}
|
|
.aprs-symbol-image.aprs-symbol-primary{background-image:url('/vendor/aprs-symbols/primary.png')}
|
|
.aprs-symbol-image.aprs-symbol-alternate{background-image:url('/vendor/aprs-symbols/alternate.png')}
|
|
.aprs-symbol-overlay{position:absolute;inset:0;display:grid;place-items:center;font:900 15px/1 Arial,sans-serif;color:#111;text-shadow:1px 0 #fff,-1px 0 #fff,0 1px #fff,0 -1px #fff}
|
|
.aprs-symbol-unknown{display:inline-grid;place-items:center;width:24px;height:24px;color:#647373;font:700 17px/1 sans-serif}
|
|
.aprs-list-symbol{display:inline-grid;place-items:center;background:#edf1ed;border-radius:5px;flex:0 0 28px;height:28px;margin-right:7px}
|
|
.aprs-symbol-detail{font-size:11px;color:var(--muted,#99aaa5);line-height:1.5}
|
|
.aprs-symbol-detail code{color:inherit;font-size:11px}
|
|
|
|
.aprs-received-station>span{justify-content:flex-start;gap:7px}.aprs-received-station>span>b{flex:1}.aprs-list-symbol{margin-right:0}.aprs-station-icon.own{border-color:#efcf89;box-shadow:0 0 0 3px #efcf8930,0 2px 7px #0008}
|
|
|
|
.aprs-symbol-col-0{background-position-x:0px}.aprs-symbol-col-1{background-position-x:-24px}.aprs-symbol-col-2{background-position-x:-48px}.aprs-symbol-col-3{background-position-x:-72px}.aprs-symbol-col-4{background-position-x:-96px}.aprs-symbol-col-5{background-position-x:-120px}.aprs-symbol-col-6{background-position-x:-144px}.aprs-symbol-col-7{background-position-x:-168px}.aprs-symbol-col-8{background-position-x:-192px}.aprs-symbol-col-9{background-position-x:-216px}.aprs-symbol-col-10{background-position-x:-240px}.aprs-symbol-col-11{background-position-x:-264px}.aprs-symbol-col-12{background-position-x:-288px}.aprs-symbol-col-13{background-position-x:-312px}.aprs-symbol-col-14{background-position-x:-336px}.aprs-symbol-col-15{background-position-x:-360px}
|
|
.aprs-symbol-row-0{background-position-y:0px}.aprs-symbol-row-1{background-position-y:-24px}.aprs-symbol-row-2{background-position-y:-48px}.aprs-symbol-row-3{background-position-y:-72px}.aprs-symbol-row-4{background-position-y:-96px}.aprs-symbol-row-5{background-position-y:-120px}
|
|
|
|
.aprs-map-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.aprs-map-actions .secondary{white-space:nowrap}@media(max-width:650px){.aprs-map-actions{width:100%;justify-content:flex-start}.aprs-map-actions .secondary{flex:1}}
|
|
|
|
.aprs-map-actions .secondary[aria-pressed=true]{border-color:#88c7b1;background:#8acbb018;color:#c8ebdf}
|