[style](trx-frontend-http): match APRS tab clear button to CW reference
Remove custom #aprs-clear-btn CSS overrides and SVG icon; reduce to a plain <button>Clear</button> so it inherits the same global button style as the CW clear button. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -325,10 +325,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="subtab-aprs" class="sub-tab-panel" style="display:none;">
|
<div id="subtab-aprs" class="sub-tab-panel" style="display:none;">
|
||||||
<div class="aprs-controls">
|
<div class="aprs-controls">
|
||||||
<button id="aprs-clear-btn" type="button" aria-label="Clear APRS packets">
|
<button id="aprs-clear-btn" type="button">Clear</button>
|
||||||
<svg class="aprs-clear-icon" viewBox="0 0 16 16" aria-hidden="true"><path d="M6.5 1.5h3l0.5 1H13a0.75 0.75 0 0 1 0 1.5h-0.56l-0.63 8.06A2 2 0 0 1 9.82 14H6.18a2 2 0 0 1-1.99-1.94L3.56 4H3A0.75 0.75 0 0 1 3 2.5h2.99l0.51-1Zm-1.43 2.5 0.61 7.95a0.5 0.5 0 0 0 0.5 0.45h3.64a0.5 0.5 0 0 0 0.5-0.45L10.93 4H5.07ZM7 5.75c0.41 0 0.75 0.34 0.75 0.75v3a0.75 0.75 0 0 1-1.5 0v-3c0-0.41 0.34-0.75 0.75-0.75Zm2 0c0.41 0 0.75 0.34 0.75 0.75v3a0.75 0.75 0 0 1-1.5 0v-3c0-0.41 0.34-0.75 0.75-0.75Z"></path></svg>
|
|
||||||
<span>Clear</span>
|
|
||||||
</button>
|
|
||||||
<input id="aprs-filter" class="ft8-filter" type="text" placeholder="Filter (e.g. SP2, beacon)" />
|
<input id="aprs-filter" class="ft8-filter" type="text" placeholder="Filter (e.g. SP2, beacon)" />
|
||||||
<small id="aprs-status" style="color:var(--text-muted);">Waiting for server decode</small>
|
<small id="aprs-status" style="color:var(--text-muted);">Waiting for server decode</small>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1064,43 +1064,6 @@ small { color: var(--text-muted); }
|
|||||||
.sub-tab:hover:not(.active) { color: var(--text); }
|
.sub-tab:hover:not(.active) { color: var(--text); }
|
||||||
#aprs-map { min-height: 150px; border-radius: 6px; }
|
#aprs-map { min-height: 150px; border-radius: 6px; }
|
||||||
.aprs-controls { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.75rem; }
|
.aprs-controls { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.75rem; }
|
||||||
#aprs-clear-btn {
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 0.4rem;
|
|
||||||
padding: 0.45rem 0.72rem;
|
|
||||||
border-radius: 999px;
|
|
||||||
border: 1px solid color-mix(in srgb, var(--accent-red) 26%, var(--border-light));
|
|
||||||
background:
|
|
||||||
linear-gradient(180deg,
|
|
||||||
color-mix(in srgb, var(--accent-red) 12%, var(--btn-bg)),
|
|
||||||
color-mix(in srgb, var(--btn-bg) 92%, transparent));
|
|
||||||
color: color-mix(in srgb, var(--text) 84%, var(--accent-red));
|
|
||||||
font-size: 0.82rem;
|
|
||||||
font-weight: 700;
|
|
||||||
letter-spacing: 0.01em;
|
|
||||||
box-shadow:
|
|
||||||
inset 0 1px 0 color-mix(in srgb, #ffffff 8%, transparent),
|
|
||||||
0 4px 12px color-mix(in srgb, #000000 10%, transparent);
|
|
||||||
}
|
|
||||||
#aprs-clear-btn:hover:not(:disabled) {
|
|
||||||
text-decoration: none;
|
|
||||||
border-color: color-mix(in srgb, var(--accent-red) 44%, var(--border-light));
|
|
||||||
background:
|
|
||||||
linear-gradient(180deg,
|
|
||||||
color-mix(in srgb, var(--accent-red) 18%, var(--btn-bg)),
|
|
||||||
color-mix(in srgb, var(--btn-bg) 94%, transparent));
|
|
||||||
color: color-mix(in srgb, var(--text-heading) 82%, var(--accent-red));
|
|
||||||
}
|
|
||||||
#aprs-clear-btn:active:not(:disabled) {
|
|
||||||
transform: translateY(1px);
|
|
||||||
}
|
|
||||||
.aprs-clear-icon {
|
|
||||||
width: 0.95rem;
|
|
||||||
height: 0.95rem;
|
|
||||||
flex-shrink: 0;
|
|
||||||
fill: currentColor;
|
|
||||||
}
|
|
||||||
#aprs-packets { max-height: 360px; overflow-y: auto; border: 1px solid var(--border-light); border-radius: 6px; background: var(--input-bg); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
#aprs-packets { max-height: 360px; overflow-y: auto; border: 1px solid var(--border-light); border-radius: 6px; background: var(--input-bg); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
|
||||||
.aprs-packet { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 0.82rem; padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--border); line-height: 1.4; }
|
.aprs-packet { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 0.82rem; padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--border); line-height: 1.4; }
|
||||||
.aprs-packet:last-child { border-bottom: none; }
|
.aprs-packet:last-child { border-bottom: none; }
|
||||||
|
|||||||
Reference in New Issue
Block a user