mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
Rebuild the Context panel around the selected item and the view
Clicking anything a layer can identify opens one card in Context: a hero tile (route globe and 3D model for a flight, the camera for CCTV, headline figures otherwise), its facts, actions with Cockpit or the orbital view as the primary one, and a standard set of nearby blocks (weather and local time, flights, vessels, hazards, alerts) within one radius the user sets. Aircraft show altitude as a graph. Things that move are followed when picked, and a card closes when its layer is turned off. With nothing selected the panel describes the view: the layers that are on with a breakdown of what each holds, the camera's height, what is in view, then time, weather and local news. From far out it shows worldwide counts per layer. A search field in the header narrows whatever the panel shows. Prototype. Context reads weather and hazard feeds while its panel is closed, the two 3D previews on a flight card repaint continuously, Follow can show pressed after tracking has ended elsewhere, and most new strings are fixed English. Same-named sites are told apart by position, not by a stable id.
This commit is contained in:
1 parent
f7f18c2823
commit
cc83763452
21 files changed
+6595
-1
No files matched your search
@@ -0,0 +1,185 @@
|
||||
/* ── Context expanded ───────────────────────────────────────────────────
|
||||
Expanded, Context becomes a full-height column over the right edge of the
|
||||
screen. The globe and HUD stay where they are, under it. */
|
||||
:root {
|
||||
--context-dock-width: clamp(360px, 30vw, 460px);
|
||||
}
|
||||
|
||||
/* The column: edge to edge, top to bottom, no rail beside it. */
|
||||
body.context-docked #right-context-rail {
|
||||
z-index: 170;
|
||||
top: 0 !important;
|
||||
right: 0 !important;
|
||||
bottom: 0 !important;
|
||||
width: var(--context-dock-width) !important;
|
||||
max-height: none !important;
|
||||
height: 100vh !important;
|
||||
}
|
||||
|
||||
body.context-docked #right-context-rail > .gev-panel-rail {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body.context-docked #right-context-rail > :not(#global-context-panel):not(.gev-panel-rail) {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
body.context-docked #right-context-rail > #global-context-panel {
|
||||
flex: 1 1 auto !important;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
max-height: none !important;
|
||||
}
|
||||
|
||||
body.context-docked #global-context-panel .global-context-panel-inner {
|
||||
height: 100%;
|
||||
padding: 22px 24px 16px;
|
||||
background: rgba(10, 11, 16, 0.94);
|
||||
border: 0;
|
||||
border-left: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: 0;
|
||||
box-shadow: -18px 0 40px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
|
||||
body.context-docked #global-context-panel .panel-glow {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* The expand button sits beside the collapse button in the header. */
|
||||
.context-dock-btn {
|
||||
display: grid;
|
||||
flex: none;
|
||||
place-items: center;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
margin-inline-end: 6px;
|
||||
padding: 0;
|
||||
color: var(--text-secondary);
|
||||
background: transparent;
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: var(--btn-radius);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.context-dock-btn .material-symbols-outlined {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.context-dock-btn:hover,
|
||||
.context-dock-btn:focus-visible,
|
||||
.context-dock-btn[aria-pressed='true'] {
|
||||
color: var(--accent);
|
||||
border-color: var(--accent-dim);
|
||||
background: var(--accent-dim);
|
||||
}
|
||||
|
||||
/* Phones keep their sheets; the dock is a desktop layout. */
|
||||
body.mobile-shell .context-dock-btn {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Context's own search field, under the header: narrows what the panel shows.
|
||||
Sized and framed like the tab bar beneath it. */
|
||||
.context-search {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
flex: none;
|
||||
box-sizing: border-box;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-height: 34px;
|
||||
margin: 0 0 0.5rem;
|
||||
padding: 0 6px 0 10px;
|
||||
color: rgba(199, 214, 222, 0.65);
|
||||
background: rgba(16, 22, 28, 0.94);
|
||||
border: 1px solid rgba(54, 220, 255, 0.35);
|
||||
border-radius: 10px;
|
||||
backdrop-filter: blur(8px);
|
||||
}
|
||||
|
||||
.context-search:focus-within {
|
||||
color: #7af0ff;
|
||||
border-color: rgba(54, 220, 255, 0.7);
|
||||
box-shadow: 0 0 0 3px rgba(54, 220, 255, 0.1);
|
||||
}
|
||||
|
||||
.context-search .material-symbols-outlined {
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
.context-search__input::placeholder {
|
||||
color: rgba(199, 214, 222, 0.45);
|
||||
}
|
||||
|
||||
.context-search__input {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
color: var(--text-primary, #e8eaed);
|
||||
font: inherit;
|
||||
font-size: 0.74rem;
|
||||
line-height: 32px;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.context-search__input::-webkit-search-cancel-button {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.context-search__clear {
|
||||
display: grid;
|
||||
flex: none;
|
||||
place-items: center;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
padding: 0;
|
||||
color: rgba(199, 214, 222, 0.65);
|
||||
background: transparent;
|
||||
border: 0;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.context-search__clear:hover,
|
||||
.context-search__clear:focus-visible {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.entity-card__no-match {
|
||||
margin: 0 0 0.7rem;
|
||||
color: rgba(199, 214, 222, 0.6);
|
||||
font-size: 0.66rem;
|
||||
}
|
||||
|
||||
.context-search__input:focus,
|
||||
.context-search__input:focus-visible {
|
||||
outline: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* While a search is typed, what cannot match steps aside so the matches lead:
|
||||
the weather, the view's own figures, the route and altitude graph, and the
|
||||
layer switches. The radius stays: it sets how far the search looks. */
|
||||
.context-searching :is(
|
||||
.spot-conditions__weather,
|
||||
.spot-conditions__loading,
|
||||
.spot-conditions__source,
|
||||
.view-context__facts,
|
||||
.view-context__live,
|
||||
.view-context__total,
|
||||
.view-context__actions,
|
||||
.view-context__towns:has(.view-context__chip--layer),
|
||||
.altitude-graph,
|
||||
.entity-card__route,
|
||||
.entity-card__route-stats,
|
||||
.entity-card__route-places,
|
||||
.entity-card__route-note,
|
||||
.entity-card__links
|
||||
) {
|
||||
display: none;
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
/* ── Context layer tabs ─────────────────────────────────────────────────
|
||||
Settings for the layers that are on, as tabs beside the card. */
|
||||
.context-tabs {
|
||||
display: flex;
|
||||
flex: none;
|
||||
min-height: 34px;
|
||||
box-sizing: border-box;
|
||||
gap: 4px;
|
||||
margin: 0 0 0.7rem;
|
||||
padding: 3px;
|
||||
overflow-x: auto;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border: 1px solid rgba(255, 255, 255, 0.07);
|
||||
border-radius: 10px;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.context-tabs::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.context-tabs__tab {
|
||||
display: inline-flex;
|
||||
flex: none;
|
||||
min-height: 26px;
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
max-width: 9.5rem;
|
||||
padding: 0.3rem 0.55rem;
|
||||
color: rgba(199, 214, 222, 0.65);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.56rem;
|
||||
letter-spacing: 0.08rem;
|
||||
text-transform: uppercase;
|
||||
background: none;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 7px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.context-tabs__tab .material-symbols-outlined {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.context-tabs__label {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.context-tabs__tab:hover {
|
||||
color: #fff;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.context-tabs__tab.active {
|
||||
color: #7af0ff;
|
||||
background: rgba(54, 220, 255, 0.12);
|
||||
border-color: rgba(54, 220, 255, 0.35);
|
||||
}
|
||||
|
||||
.context-tab-pane[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Controls moved in from Visual show their rows openly here. */
|
||||
.context-tab-pane .pp-toggle-group {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Two even tabs: Inspector and Properties. */
|
||||
.context-tabs__tab {
|
||||
flex: 1 1 0;
|
||||
justify-content: center;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.context-props[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.context-props__section + .context-props__section {
|
||||
margin-top: 0.9rem;
|
||||
}
|
||||
|
||||
.context-props__heading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
margin: 0 0 0.45rem;
|
||||
color: rgba(199, 214, 222, 0.55);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.56rem;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.14rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.context-props__heading .material-symbols-outlined {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.context-props__layers {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.25rem 0.75rem;
|
||||
margin: -0.15rem 0 0.5rem;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.context-props__layers li {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.35rem;
|
||||
color: rgba(214, 228, 236, 0.8);
|
||||
font-size: 0.66rem;
|
||||
}
|
||||
|
||||
.context-props__layers i {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 6px currentColor;
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,332 @@
|
||||
/* ── Conditions around a spot (entity card, In view) ────────────────────── */
|
||||
.spot-conditions {
|
||||
display: grid;
|
||||
gap: 0.6rem;
|
||||
margin: 0.5rem 0 0.75rem;
|
||||
}
|
||||
|
||||
.spot-conditions__weather {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
align-items: center;
|
||||
gap: 0.3rem 0.65rem;
|
||||
padding: 0.6rem 0.7rem;
|
||||
background: linear-gradient(135deg, rgba(54, 220, 255, 0.09), rgba(255, 255, 255, 0.025));
|
||||
border: 1px solid rgba(54, 220, 255, 0.16);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.spot-conditions__weather-icon {
|
||||
color: #36dcff;
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.spot-conditions__weather-now {
|
||||
display: grid;
|
||||
gap: 0.1rem;
|
||||
}
|
||||
|
||||
.spot-conditions__weather-now strong {
|
||||
color: rgba(240, 247, 250, 0.98);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 1.35rem;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.spot-conditions__weather-now span {
|
||||
color: rgba(199, 214, 222, 0.72);
|
||||
font-size: 0.68rem;
|
||||
}
|
||||
|
||||
.spot-conditions__weather-facts {
|
||||
display: grid;
|
||||
grid-column: 1 / -1;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 0.3rem;
|
||||
margin: 0.25rem 0 0;
|
||||
}
|
||||
|
||||
.spot-conditions__weather-facts div {
|
||||
display: grid;
|
||||
gap: 0.1rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.spot-conditions__weather-facts dt {
|
||||
color: rgba(199, 214, 222, 0.5);
|
||||
font-size: 0.52rem;
|
||||
letter-spacing: 0.06rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.spot-conditions__weather-facts dd {
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
color: rgba(236, 244, 248, 0.92);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.66rem;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.spot-conditions__loading,
|
||||
.spot-conditions__none {
|
||||
margin: 0;
|
||||
color: rgba(199, 214, 222, 0.55);
|
||||
font-size: 0.66rem;
|
||||
}
|
||||
|
||||
.spot-conditions__block h4 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
margin: 0 0 0.25rem;
|
||||
color: rgba(199, 214, 222, 0.6);
|
||||
font-size: 0.58rem;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.06rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.spot-conditions__block h4 .material-symbols-outlined {
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.spot-conditions__count {
|
||||
margin-inline-start: auto;
|
||||
color: rgba(199, 214, 222, 0.6);
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
.spot-conditions__count--hot {
|
||||
color: #ffb547;
|
||||
}
|
||||
|
||||
.spot-conditions__query {
|
||||
overflow: hidden;
|
||||
margin-inline-start: auto;
|
||||
max-width: 50%;
|
||||
color: rgba(199, 214, 222, 0.45);
|
||||
text-overflow: ellipsis;
|
||||
text-transform: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.spot-conditions__block ul {
|
||||
display: grid;
|
||||
gap: 0.2rem;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.spot-conditions__block button,
|
||||
.spot-conditions__block a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
width: 100%;
|
||||
padding: 0.4rem 0.5rem;
|
||||
color: inherit;
|
||||
text-align: start;
|
||||
text-decoration: none;
|
||||
background: rgba(255, 255, 255, 0.035);
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
border-left: 2px solid var(--hazard-tone, rgba(54, 220, 255, 0.5));
|
||||
border-radius: 7px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.spot-conditions__block button:hover,
|
||||
.spot-conditions__block a:hover,
|
||||
.spot-conditions__block button:focus-visible,
|
||||
.spot-conditions__block a:focus-visible {
|
||||
background: rgba(54, 220, 255, 0.08);
|
||||
border-color: rgba(54, 220, 255, 0.25);
|
||||
border-left-color: var(--hazard-tone, #36dcff);
|
||||
}
|
||||
|
||||
.spot-conditions__block button > .material-symbols-outlined {
|
||||
color: var(--hazard-tone, #36dcff);
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
|
||||
.spot-conditions__hazard--quake { --hazard-tone: #ffd166; }
|
||||
.spot-conditions__hazard--storm { --hazard-tone: #c792ff; }
|
||||
.spot-conditions__hazard--wildfire,
|
||||
.spot-conditions__hazard--hotspots { --hazard-tone: #ff7a45; }
|
||||
.spot-conditions__hazard--alert { --hazard-tone: #ff5c6c; }
|
||||
|
||||
.spot-conditions__row-main {
|
||||
display: grid;
|
||||
flex: 1 1 auto;
|
||||
gap: 0.08rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.spot-conditions__row-title {
|
||||
overflow: hidden;
|
||||
color: rgba(236, 244, 248, 0.94);
|
||||
font-size: 0.7rem;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.spot-conditions__row-title--wrap {
|
||||
display: -webkit-box;
|
||||
white-space: normal;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
}
|
||||
|
||||
.spot-conditions__row-detail {
|
||||
overflow: hidden;
|
||||
color: rgba(199, 214, 222, 0.55);
|
||||
font-size: 0.6rem;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.spot-conditions__row-layer {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
margin-top: 2px;
|
||||
color: rgba(199, 214, 222, 0.5);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.55rem;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.spot-conditions__row-dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border: 1px solid rgba(199, 214, 222, 0.55);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.spot-conditions__row-layer.is-on {
|
||||
color: rgba(0, 212, 255, 0.85);
|
||||
}
|
||||
|
||||
.spot-conditions__row-layer.is-on .spot-conditions__row-dot {
|
||||
background: #00d4ff;
|
||||
border-color: #00d4ff;
|
||||
box-shadow: 0 0 5px rgba(0, 212, 255, 0.7);
|
||||
}
|
||||
|
||||
.spot-conditions__row-meta {
|
||||
flex: none;
|
||||
color: rgba(199, 214, 222, 0.7);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.6rem;
|
||||
}
|
||||
|
||||
.spot-conditions__source {
|
||||
margin: 0;
|
||||
color: rgba(199, 214, 222, 0.4);
|
||||
font-size: 0.55rem;
|
||||
}
|
||||
|
||||
/* The hazard tone as an L along the left edge and the bottom-left corner,
|
||||
in place of a solid left edge. */
|
||||
.spot-conditions__block button,
|
||||
.spot-conditions__block a {
|
||||
position: relative;
|
||||
border-radius: 0;
|
||||
border-left-width: 1px;
|
||||
border-left-color: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
.spot-conditions__block button::before,
|
||||
.spot-conditions__block a::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: -1px auto -1px -1px;
|
||||
width: 9px;
|
||||
border-radius: 0;
|
||||
pointer-events: none;
|
||||
--tone: var(--hazard-tone, rgba(54, 220, 255, 0.6));
|
||||
background:
|
||||
linear-gradient(var(--tone), var(--tone)) left bottom / 9px 1.5px no-repeat,
|
||||
linear-gradient(var(--tone), var(--tone)) left bottom / 1.5px 100% no-repeat;
|
||||
}
|
||||
|
||||
.spot-conditions__block button:hover,
|
||||
.spot-conditions__block a:hover,
|
||||
.spot-conditions__block button:focus-visible,
|
||||
.spot-conditions__block a:focus-visible {
|
||||
border-left-color: rgba(54, 220, 255, 0.25);
|
||||
}
|
||||
|
||||
/* A grey rule under each list: hazards, alerts, news. */
|
||||
.spot-conditions__block {
|
||||
padding-bottom: 0.65rem;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
/* Local time beside the weather on a selected item's card. */
|
||||
.spot-conditions__weather--timed {
|
||||
grid-template-columns: auto 1fr auto;
|
||||
}
|
||||
|
||||
.spot-conditions__weather-wait {
|
||||
grid-column: 1 / 3;
|
||||
}
|
||||
|
||||
.spot-conditions__time {
|
||||
display: grid;
|
||||
gap: 0.1rem;
|
||||
justify-items: end;
|
||||
grid-column: 3;
|
||||
}
|
||||
|
||||
.spot-conditions__time strong {
|
||||
color: rgba(240, 247, 250, 0.98);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 1.05rem;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.spot-conditions__time span {
|
||||
color: rgba(199, 214, 222, 0.6);
|
||||
font-size: 0.56rem;
|
||||
letter-spacing: 0.05rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* The one distance every nearby block looks out to. */
|
||||
.spot-conditions__radius {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr auto;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
padding: 0.4rem 0.6rem;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border: 1px solid rgba(255, 255, 255, 0.07);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.spot-conditions__radius-label {
|
||||
color: rgba(199, 214, 222, 0.6);
|
||||
font-size: 0.58rem;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.06rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.spot-conditions__radius-slider {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.spot-conditions__radius-value {
|
||||
min-width: 4.2rem;
|
||||
color: #36dcff;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.7rem;
|
||||
text-align: end;
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
/* ── Sundial (Context, nothing selected) ──────────────────────────────── */
|
||||
.sun-dial {
|
||||
margin: 0.5rem 0 0.6rem;
|
||||
padding: 0.35rem 0.3rem 0.45rem;
|
||||
background:
|
||||
radial-gradient(90% 70% at 50% 45%, rgba(54, 220, 255, 0.06), transparent 70%),
|
||||
rgba(255, 255, 255, 0.025);
|
||||
border: 1px solid rgba(255, 255, 255, 0.07);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.sun-dial svg {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.sun-dial__hours line {
|
||||
stroke: rgba(54, 220, 255, 0.38);
|
||||
stroke-width: 0.5;
|
||||
}
|
||||
|
||||
.sun-dial__hours line.major {
|
||||
stroke: rgba(122, 240, 255, 0.7);
|
||||
stroke-width: 0.8;
|
||||
}
|
||||
|
||||
.sun-dial__ticks line {
|
||||
stroke: rgba(54, 220, 255, 0.3);
|
||||
stroke-width: 0.4;
|
||||
}
|
||||
|
||||
.sun-dial__ticks line.major {
|
||||
stroke: rgba(122, 240, 255, 0.65);
|
||||
stroke-width: 0.7;
|
||||
}
|
||||
|
||||
.sun-dial__hours text,
|
||||
.sun-dial__pole {
|
||||
fill: rgba(196, 244, 255, 0.85);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 7px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.04em;
|
||||
text-anchor: middle;
|
||||
}
|
||||
|
||||
.sun-dial__pole {
|
||||
fill: #ff6b5e;
|
||||
font-size: 8px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.sun-dial figcaption {
|
||||
margin-top: 0.2rem;
|
||||
color: rgba(199, 214, 222, 0.62);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.58rem;
|
||||
letter-spacing: 0.05rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Night: the plate under starlight. */
|
||||
.sun-dial--night svg {
|
||||
filter: saturate(0.4) brightness(0.6);
|
||||
}
|
||||
|
||||
/* Small compass beside the dial, in the same cyan instrument style. */
|
||||
.sun-dial__compass-ring {
|
||||
fill: rgba(5, 14, 20, 0.85);
|
||||
stroke: rgba(54, 220, 255, 0.5);
|
||||
stroke-width: 0.8;
|
||||
}
|
||||
|
||||
.sun-dial__compass-inner {
|
||||
fill: none;
|
||||
stroke: rgba(54, 220, 255, 0.18);
|
||||
stroke-width: 0.5;
|
||||
stroke-dasharray: 1.5 2;
|
||||
}
|
||||
|
||||
.sun-dial__compass-tick {
|
||||
stroke: rgba(122, 240, 255, 0.7);
|
||||
stroke-width: 0.8;
|
||||
}
|
||||
|
||||
.sun-dial__compass-north {
|
||||
fill: #ff6b5e;
|
||||
}
|
||||
|
||||
.sun-dial__compass-south {
|
||||
fill: rgba(196, 244, 255, 0.55);
|
||||
}
|
||||
|
||||
.sun-dial__compass-sun {
|
||||
fill: #ffd166;
|
||||
filter: drop-shadow(0 0 2px rgba(255, 209, 102, 0.9));
|
||||
}
|
||||
|
||||
.sun-dial__compass-label {
|
||||
fill: rgba(196, 244, 255, 0.75);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 6.5px;
|
||||
text-anchor: middle;
|
||||
}
|
||||
|
||||
.sun-dial__compass-label.north {
|
||||
fill: #ff6b5e;
|
||||
font-weight: 700;
|
||||
}
|
||||
Reference in new issue
Block a user