[feat](trx-frontend-http): refine main UI controls and map visuals
Co-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
--filter-bg: #1b2431;
|
||||
--filter-fg: #e5e7eb;
|
||||
--filter-border: #334155;
|
||||
--wavelength-fg: #8f9daf;
|
||||
--jog-wheel-size: 83.2px;
|
||||
}
|
||||
|
||||
[data-theme="light"] {
|
||||
@@ -51,11 +53,24 @@
|
||||
--filter-bg: #eef3fb;
|
||||
--filter-fg: #1f2937;
|
||||
--filter-border: #b8c5da;
|
||||
--wavelength-fg: #6b7280;
|
||||
}
|
||||
|
||||
body { font-family: sans-serif; margin: 0; min-height: 100vh; box-sizing: border-box; display: flex; align-items: flex-start; justify-content: center; padding-top: 2em; background: var(--bg); color: var(--text); }
|
||||
.card { border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.75rem; width: 60vw; box-shadow: 0 12px 40px rgba(0,0,0,0.35); background: var(--card-bg); }
|
||||
.label { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 6px; display: block; }
|
||||
#tab-main .label > span {
|
||||
display: inline-block;
|
||||
padding: 0.14rem 0.5rem;
|
||||
border-radius: 999px;
|
||||
border: 1px solid color-mix(in srgb, var(--border-light) 68%, transparent);
|
||||
background: color-mix(in srgb, var(--btn-bg) 58%, transparent);
|
||||
color: var(--text-muted);
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.04em;
|
||||
line-height: 1.2;
|
||||
}
|
||||
.status { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.1rem 1rem; }
|
||||
input.status-input, select.status-input { width: 100%; padding: 0.45rem 0.5rem; font-size: 1rem; border: 1px solid var(--border-light); border-radius: 6px; background: var(--input-bg); color: var(--text); }
|
||||
#mode { height: var(--control-height); }
|
||||
@@ -64,26 +79,55 @@ input.status-input, select.status-input { width: 100%; padding: 0.45rem 0.5rem;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto 1fr;
|
||||
gap: 1rem;
|
||||
align-items: stretch;
|
||||
align-items: start;
|
||||
}
|
||||
.controls-col {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
grid-template-rows: auto 1fr;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.controls-col.label-below-col {
|
||||
align-items: stretch;
|
||||
}
|
||||
.controls-col.label-below-col .label {
|
||||
order: 2;
|
||||
margin-top: 0.3rem;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.controls-col.label-below-col > :not(.label) {
|
||||
order: 1;
|
||||
}
|
||||
.controls-col.label-below-col .inline,
|
||||
.controls-col.label-below-col .btn-grid {
|
||||
align-self: stretch;
|
||||
width: 100%;
|
||||
margin-top: calc((var(--jog-wheel-size) - var(--control-height)) / 2);
|
||||
}
|
||||
.controls-col-center {
|
||||
justify-self: center;
|
||||
width: auto;
|
||||
align-items: center;
|
||||
}
|
||||
.controls-col-center::after {
|
||||
content: "";
|
||||
display: block;
|
||||
min-height: 1.2rem;
|
||||
margin-top: 0.3rem;
|
||||
}
|
||||
.controls-col-center { justify-self: center; width: auto; }
|
||||
.controls-row .label {
|
||||
margin-bottom: 6px;
|
||||
margin-top: 0;
|
||||
min-height: 1.2rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.controls-col .inline,
|
||||
.controls-col .jog-container,
|
||||
.controls-col .btn-grid {
|
||||
align-self: center;
|
||||
align-self: stretch;
|
||||
}
|
||||
.controls-col .jog-container { align-self: center; }
|
||||
.btn-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
@@ -97,8 +141,8 @@ input.status-input, select.status-input { width: 100%; padding: 0.45rem 0.5rem;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
.jog-wheel {
|
||||
width: 83.2px;
|
||||
height: 83.2px;
|
||||
width: var(--jog-wheel-size);
|
||||
height: var(--jog-wheel-size);
|
||||
border-radius: 50%;
|
||||
background: radial-gradient(circle at 40% 35%, var(--jog-hi), var(--jog-lo));
|
||||
border: 2px solid var(--border-light);
|
||||
@@ -191,8 +235,44 @@ button:disabled { opacity: 0.6; cursor: not-allowed; }
|
||||
.hint { color: var(--text-muted); font-size: 0.85rem; }
|
||||
.inline { display: flex; gap: 0.5rem; align-items: center; }
|
||||
.freq-inline #freq { flex: 1 1 auto; }
|
||||
.label-below-row {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.label-below-row > .label {
|
||||
order: 2;
|
||||
margin-top: 0.45rem;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.label-below-row > :not(.label) {
|
||||
order: 1;
|
||||
}
|
||||
.wavelength-display {
|
||||
min-width: 6.2rem;
|
||||
height: 3.35rem;
|
||||
padding: 0 0.7rem;
|
||||
border: 1px solid var(--border-light);
|
||||
border-radius: 6px;
|
||||
background: var(--input-bg);
|
||||
color: var(--wavelength-fg);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-family: 'DSEG14 Classic', monospace;
|
||||
font-weight: 600;
|
||||
font-size: 1.25rem;
|
||||
letter-spacing: 0.03em;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
small { color: var(--text-muted); }
|
||||
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; }
|
||||
.header {
|
||||
display: grid;
|
||||
grid-template-columns: 16em 1fr auto;
|
||||
align-items: center;
|
||||
column-gap: 1.5em;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
.header-text {
|
||||
width: 16em;
|
||||
min-width: 16em;
|
||||
@@ -200,11 +280,10 @@ small { color: var(--text-muted); }
|
||||
}
|
||||
.title { font-size: 1.4rem; font-weight: 700; display: inline-flex; align-items: center; gap: 0.35rem; }
|
||||
.header-signal-wrap {
|
||||
flex: 1 1 auto;
|
||||
width: auto;
|
||||
width: 100%;
|
||||
min-width: 160px;
|
||||
height: clamp(2.6rem, 8vh, 4.5rem);
|
||||
margin: 0 1.5em;
|
||||
margin: 0;
|
||||
border: 1px solid color-mix(in srgb, var(--border-light) 55%, transparent);
|
||||
border-radius: 8px;
|
||||
background: color-mix(in srgb, var(--input-bg) 72%, transparent);
|
||||
@@ -410,6 +489,8 @@ button:focus-visible, input:focus-visible, select:focus-visible {
|
||||
.header-right { align-items: flex-end; }
|
||||
.controls-row { grid-template-columns: 1fr auto; }
|
||||
.controls-col-power { grid-column: 1 / -1; }
|
||||
.controls-col.label-below-col .inline,
|
||||
.controls-col.label-below-col .btn-grid { margin-top: 0; }
|
||||
.ft8-controls { flex-wrap: wrap; }
|
||||
#ft8-decode-toggle-btn, #wspr-decode-toggle-btn { white-space: nowrap; }
|
||||
.jog-container { flex-wrap: wrap; }
|
||||
|
||||
Reference in New Issue
Block a user