mirror of
https://github.com/netbymatt/weatherstar-basemaps.git
synced 2026-11-28 10:18:06 -08:00
316 lines
7.3 KiB
CSS
316 lines
7.3 KiB
CSS
:root {
|
|
--bg: #14171a;
|
|
--pane: #1c2126;
|
|
--pane-2: #242b32;
|
|
--line: #333c45;
|
|
--text: #dfe4e8;
|
|
--dim: #8d99a5;
|
|
--accent: #4aa3ff;
|
|
--green: #38c172;
|
|
--red: #e3342f;
|
|
--amber: #f0a132;
|
|
--blue: #2f6fd0;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
/* several elements below set an explicit display, which would otherwise beat
|
|
the user agent's [hidden] rule and leave them on screen when hidden */
|
|
[hidden] { display: none !important; }
|
|
|
|
html, body {
|
|
height: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
body {
|
|
display: flex;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font: 13px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ---------- viewport ---------- */
|
|
|
|
#viewport {
|
|
position: relative;
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
background: #0e1114;
|
|
}
|
|
|
|
#canvas {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
cursor: grab;
|
|
}
|
|
|
|
#canvas.panning { cursor: grabbing; }
|
|
#canvas.placing { cursor: crosshair; }
|
|
|
|
#hud {
|
|
position: absolute;
|
|
left: 10px;
|
|
bottom: 10px;
|
|
display: flex;
|
|
gap: 8px;
|
|
padding: 5px 9px;
|
|
border-radius: 5px;
|
|
background: rgba(12, 15, 18, 0.82);
|
|
color: var(--dim);
|
|
font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
pointer-events: none;
|
|
}
|
|
|
|
#hud span + span { border-left: 1px solid var(--line); padding-left: 8px; }
|
|
|
|
#toast {
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: 22px;
|
|
transform: translateX(-50%);
|
|
padding: 7px 14px;
|
|
border-radius: 5px;
|
|
background: rgba(12, 15, 18, 0.92);
|
|
border: 1px solid var(--line);
|
|
font-size: 12px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
#loading {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
background: var(--bg);
|
|
color: var(--dim);
|
|
}
|
|
|
|
#loading.error { color: #ff8f8a; white-space: pre-wrap; text-align: center; padding: 24px; }
|
|
|
|
/* ---------- pane ---------- */
|
|
|
|
#pane {
|
|
width: 340px;
|
|
flex: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--pane);
|
|
border-left: 1px solid var(--line);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
#pane header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 14px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
#pane h1 { margin: 0; font-size: 14px; font-weight: 600; }
|
|
|
|
#help-toggle {
|
|
width: 24px;
|
|
height: 24px;
|
|
padding: 0;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
#pane section {
|
|
padding: 12px 14px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
#pane h2 {
|
|
margin: 0 0 9px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: var(--dim);
|
|
}
|
|
|
|
.empty { color: var(--dim); font-size: 12px; }
|
|
|
|
/* ---------- controls ---------- */
|
|
|
|
button {
|
|
padding: 6px 10px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 5px;
|
|
background: var(--pane-2);
|
|
color: var(--text);
|
|
font: inherit;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
button:hover { background: #2e373f; }
|
|
button:disabled { opacity: 0.45; cursor: default; }
|
|
button.primary { background: var(--accent); border-color: var(--accent); color: #08121d; font-weight: 600; }
|
|
button.primary:hover { background: #6cb5ff; }
|
|
button.danger:hover { background: #4a2320; border-color: #7d3430; }
|
|
button.subtle { background: none; color: var(--dim); }
|
|
button.subtle:hover { color: var(--text); background: var(--pane-2); }
|
|
|
|
button kbd {
|
|
margin-left: 5px;
|
|
color: inherit;
|
|
opacity: 0.6;
|
|
font: inherit;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.segmented { display: flex; }
|
|
.segmented button { flex: 1; border-radius: 0; }
|
|
.segmented button:first-child { border-radius: 5px 0 0 5px; }
|
|
.segmented button:last-child { border-radius: 0 5px 5px 0; border-left: none; }
|
|
.segmented button.active { background: var(--accent); border-color: var(--accent); color: #08121d; font-weight: 600; }
|
|
|
|
.slider { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
|
|
.slider span { color: var(--dim); font-size: 11px; }
|
|
.slider input { flex: 1; }
|
|
|
|
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
|
|
|
|
.badge {
|
|
padding: 2px 7px;
|
|
border-radius: 20px;
|
|
background: var(--pane-2);
|
|
border: 1px solid var(--line);
|
|
font-size: 10px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.badge-nws { background: rgba(47, 111, 208, 0.22); border-color: var(--blue); color: #9dc4ff; }
|
|
.badge-edited { background: rgba(56, 193, 114, 0.18); border-color: var(--green); color: #8fe3b4; }
|
|
|
|
.field { display: block; margin-bottom: 9px; }
|
|
.field span { display: block; margin-bottom: 3px; color: var(--dim); font-size: 11px; }
|
|
.field-row { display: flex; gap: 8px; }
|
|
.field-row .field { flex: 1; min-width: 0; }
|
|
|
|
input[type="text"], input[type="number"] {
|
|
width: 100%;
|
|
padding: 5px 7px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 4px;
|
|
background: #12161a;
|
|
color: var(--text);
|
|
font: inherit;
|
|
font-size: 12px;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
}
|
|
|
|
input:focus { outline: none; border-color: var(--accent); }
|
|
|
|
.readonly-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
padding: 3px 0;
|
|
color: var(--dim);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.readonly-row code { color: var(--text); font-size: 11px; }
|
|
|
|
.buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
|
|
.buttons button { flex: 1; white-space: nowrap; }
|
|
|
|
.check { display: block; margin-bottom: 6px; font-size: 12px; cursor: pointer; }
|
|
.check input { margin-right: 7px; }
|
|
.check kbd { color: var(--dim); font-size: 10px; }
|
|
|
|
#stats { margin: 0; }
|
|
#stats div { display: flex; justify-content: space-between; padding: 2px 0; }
|
|
#stats dt { color: var(--dim); font-size: 11px; }
|
|
#stats dd { margin: 0; font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
|
|
|
|
.note { margin: 9px 0 0; color: var(--amber); font-size: 11px; line-height: 1.4; }
|
|
.subtle-note { color: var(--dim); }
|
|
.subtle-note kbd { color: var(--accent); font-size: 10px; }
|
|
|
|
#pane footer {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
padding: 12px 14px;
|
|
margin-top: auto;
|
|
}
|
|
|
|
/* ---------- help ---------- */
|
|
|
|
#help {
|
|
position: fixed;
|
|
inset: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
background: rgba(8, 10, 12, 0.72);
|
|
}
|
|
|
|
.help-card {
|
|
width: min(420px, 90vw);
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
padding: 18px 20px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: var(--pane);
|
|
}
|
|
|
|
.help-card h2 { margin: 0 0 12px; font-size: 14px; }
|
|
|
|
.help-card h3 {
|
|
margin: 14px 0 6px;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.07em;
|
|
color: var(--dim);
|
|
}
|
|
|
|
.help-card h3:first-of-type { margin-top: 0; }
|
|
.help-card dl { margin: 0 0 4px; }
|
|
.help-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
|
|
.help-card dt { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
|
|
.help-card dd { margin: 0; color: var(--dim); font-size: 12px; text-align: right; }
|
|
|
|
/* ---------- fill mode ---------- */
|
|
|
|
select {
|
|
width: 100%;
|
|
padding: 5px 7px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 4px;
|
|
background: #12161a;
|
|
color: var(--text);
|
|
font: inherit;
|
|
font-size: 12px;
|
|
}
|
|
|
|
select:focus { outline: none; border-color: var(--accent); }
|
|
|
|
.checks {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px 12px;
|
|
padding: 5px 7px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 4px;
|
|
background: #12161a;
|
|
}
|
|
|
|
.checks label { font-size: 12px; cursor: pointer; }
|
|
.checks input { margin-right: 5px; }
|
|
|
|
#fill-stats { margin: 12px 0 0; }
|
|
#fill-stats div { display: flex; justify-content: space-between; }
|
|
#fill-stats dt { color: var(--dim); font-size: 11px; }
|
|
#fill-stats dd { margin: 0; font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
|