mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Local reads the area at the view centre (`/outline?at=`) and asks the feed
for its reports (`at`): the area is outlined faintly on the globe and named
at the top of the section ("News from Kazakhstan"; within 500 km at sea).
A disputed area is named as itself. A read that a newer look replaced, or
one left behind by a switch to Conflicts, is dropped, and a server without
the area route is asked once.
A section read from a key the server lacks says which key it needs
(503 `no_key`), that the key was refused (`key_rejected`) or that its
daily allowance is spent (`key_quota`); the other section keeps reading.
Liveuamap and World News API join the key registry.
Cards name the service a report came through ("via GDELT Project"), and
Liveuamap and Natural Earth are credited once their data shows. Economy is
a category of its own. Disputed-area labels are smaller and show the name
only; outlines keep up to 300 parts.
435 lines
9.3 KiB
CSS
435 lines
9.3 KiB
CSS
/* News rail panel (#news-panel): the last 24 hours as a doom-scroll of event
|
|
cards drawn with GEV's own tokens. Colour is
|
|
severity only (the layer sets --news-color per card); never a side. The
|
|
rail owns placement and height; only the body scrolls. */
|
|
.news-panel-inner {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
min-height: 0;
|
|
max-height: 100%;
|
|
box-sizing: border-box;
|
|
padding: 14px;
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: var(--panel-radius);
|
|
background: var(--glass-bg);
|
|
backdrop-filter: blur(24px) saturate(1.4);
|
|
-webkit-backdrop-filter: blur(24px) saturate(1.4);
|
|
box-shadow:
|
|
0 8px 32px rgba(0, 0, 0, 0.5),
|
|
0 0 0 1px rgba(255, 255, 255, 0.03) inset,
|
|
0 1px 0 rgba(255, 255, 255, 0.06) inset;
|
|
}
|
|
#news-panel .panel-glow {
|
|
position: absolute;
|
|
inset: -18px;
|
|
background: radial-gradient(
|
|
ellipse at center,
|
|
rgba(0, 212, 255, 0.16) 0%,
|
|
transparent 65%
|
|
);
|
|
filter: blur(16px);
|
|
opacity: 0.25;
|
|
pointer-events: none;
|
|
}
|
|
#news-panel .panel-header {
|
|
flex: 0 0 auto;
|
|
}
|
|
#news-panel-count {
|
|
color: var(--text-secondary);
|
|
font: 9px var(--font-mono);
|
|
}
|
|
#news-panel-body {
|
|
min-height: 0;
|
|
max-height: calc(var(--right-stack-max-height, 50svh) - 64px);
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
}
|
|
#news-panel.collapsed #news-panel-body,
|
|
#news-panel[hidden] {
|
|
display: none !important;
|
|
}
|
|
#right-context-rail > #news-panel {
|
|
position: relative;
|
|
inset: auto;
|
|
flex: 0 0 auto;
|
|
width: 100%;
|
|
max-height: 100%;
|
|
pointer-events: auto;
|
|
}
|
|
#right-context-rail > #news-panel:not(.collapsed) {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-shrink: 1;
|
|
min-height: 0;
|
|
}
|
|
#right-context-rail.layout-focus > #news-panel:not(.collapsed) {
|
|
flex: 0 1 var(--right-panel-allocated-height);
|
|
height: var(--right-panel-allocated-height);
|
|
min-height: 0;
|
|
max-height: var(--right-panel-allocated-height);
|
|
}
|
|
#right-context-rail.layout-focus
|
|
> #news-panel:not(.collapsed)
|
|
.news-panel-inner {
|
|
height: 100%;
|
|
}
|
|
#right-context-rail[data-rail-measuring]
|
|
> #news-panel:not(.collapsed)
|
|
> .news-panel-inner {
|
|
height: auto !important;
|
|
}
|
|
#right-context-rail #news-panel.collapsed {
|
|
width: var(--right-display-collapsed-width);
|
|
margin-inline-start: auto;
|
|
}
|
|
#right-context-rail #news-panel.collapsed .news-panel-inner {
|
|
height: 50px;
|
|
min-height: 50px;
|
|
padding-bottom: 10px;
|
|
}
|
|
@media (max-width: 720px) {
|
|
#right-context-rail #news-panel.collapsed {
|
|
width: 100%;
|
|
}
|
|
}
|
|
:root[data-ui-theme='cyber'] .news-panel-inner {
|
|
border-radius: 0;
|
|
clip-path: var(--cyber-panel-frame);
|
|
box-shadow: var(--cyber-panel-shadow);
|
|
}
|
|
|
|
.news-readout {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
min-width: 0;
|
|
color: var(--text-primary);
|
|
font: 11px/1.4 var(--font-sans);
|
|
}
|
|
.news-readout__window,
|
|
.news-readout__head {
|
|
margin: 0;
|
|
color: var(--text-secondary);
|
|
font: 600 9px var(--font-mono);
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
}
|
|
/* What Local reads, in the primary colour so it reads before the list. */
|
|
.news-readout__area {
|
|
color: var(--text-primary);
|
|
}
|
|
.news-readout__sections,
|
|
.news-readout__chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
}
|
|
/* One select per row: at the rail's width two side by side cut off
|
|
"Significant and above" (and longer translations). */
|
|
.news-readout__filters {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr);
|
|
gap: 6px;
|
|
}
|
|
.news-filter {
|
|
min-width: 0;
|
|
}
|
|
/* The window choice sits where the window label does, as narrow as its text. */
|
|
.news-readout__window-choice {
|
|
align-self: flex-start;
|
|
font-family: var(--font-mono);
|
|
}
|
|
.news-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
color: var(--text-secondary);
|
|
font-size: 10px;
|
|
cursor: pointer;
|
|
}
|
|
.news-toggle input {
|
|
accent-color: var(--accent);
|
|
}
|
|
.news-readout__section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
.news-readout__list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
.news-readout__list.is-stale {
|
|
opacity: 0.5;
|
|
}
|
|
.news-readout__status,
|
|
.news-readout__empty {
|
|
color: var(--text-dim);
|
|
font: 10px var(--font-mono);
|
|
}
|
|
/* A missing key's next step, under what it holds back. */
|
|
.news-readout__empty .ui-empty__hint {
|
|
display: block;
|
|
margin-top: 2px;
|
|
}
|
|
.news-readout__footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
|
|
.news-card {
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: 6px;
|
|
background: rgba(255, 255, 255, 0.02);
|
|
}
|
|
.news-card:hover,
|
|
.news-card.is-open {
|
|
border-color: var(--glass-border-hover);
|
|
background: rgba(0, 212, 255, 0.06);
|
|
}
|
|
.news-card.is-open {
|
|
border-color: rgba(0, 212, 255, 0.45);
|
|
}
|
|
.news-card.is-unmapped .news-card__title {
|
|
color: var(--text-secondary);
|
|
}
|
|
.news-card__main {
|
|
display: grid;
|
|
grid-template-columns: 96px 1fr;
|
|
column-gap: 8px;
|
|
row-gap: 3px;
|
|
width: 100%;
|
|
padding: 6px;
|
|
border: 0;
|
|
background: transparent;
|
|
color: inherit;
|
|
font: inherit;
|
|
text-align: start;
|
|
cursor: pointer;
|
|
}
|
|
.news-card__main > :not(.news-card__thumb) {
|
|
grid-column: 1 / -1;
|
|
}
|
|
.news-card__thumb ~ * {
|
|
grid-column: 2 !important;
|
|
}
|
|
.news-card__thumb {
|
|
position: relative;
|
|
grid-row: 1 / span 5;
|
|
width: 96px;
|
|
height: 64px;
|
|
overflow: hidden;
|
|
border-radius: 4px;
|
|
background: var(--bg-dark);
|
|
}
|
|
.news-card__thumb img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
/* A clip waits behind its picture; the open card plays it. */
|
|
.news-card__play {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
color: var(--text-primary);
|
|
font-size: 14px;
|
|
text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
|
|
pointer-events: none;
|
|
}
|
|
.news-card__clip {
|
|
display: block;
|
|
width: 100%;
|
|
max-height: 220px;
|
|
margin-bottom: 6px;
|
|
border-radius: 4px;
|
|
background: #000;
|
|
}
|
|
.news-card__credit {
|
|
position: absolute;
|
|
inset-inline-end: 0;
|
|
bottom: 0;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
padding: 0 4px;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
color: var(--text-primary);
|
|
font-size: 8px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.news-card__title {
|
|
display: -webkit-box;
|
|
overflow: hidden;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 3;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
line-height: 1.3;
|
|
}
|
|
.news-card__note,
|
|
.news-card__sides {
|
|
color: var(--text-secondary);
|
|
font-size: 10px;
|
|
}
|
|
.news-card__meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
min-width: 0;
|
|
color: var(--text-secondary);
|
|
font: 10px var(--font-mono);
|
|
}
|
|
/* The globe's marker in small: a dark disc, rim and icon in the severity
|
|
colour (sprites.js). */
|
|
.news-card__marker {
|
|
flex: none;
|
|
display: inline-grid;
|
|
place-items: center;
|
|
box-sizing: border-box;
|
|
width: 14px;
|
|
height: 14px;
|
|
border: 1.5px solid var(--news-color);
|
|
border-radius: 50%;
|
|
background: var(--bg-dark);
|
|
}
|
|
.news-card__marker svg {
|
|
width: 8px;
|
|
height: 8px;
|
|
fill: none;
|
|
stroke: var(--news-color);
|
|
stroke-width: 1.8;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
.news-card__marker.solid svg {
|
|
fill: var(--news-color);
|
|
stroke: none;
|
|
}
|
|
/* The service a report came through: credited, and kept quiet. */
|
|
.news-card__via {
|
|
color: var(--text-dim);
|
|
font: 9px var(--font-mono);
|
|
}
|
|
.news-card__severity {
|
|
flex: none;
|
|
color: var(--news-color);
|
|
font-weight: 600;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
.news-card__chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
}
|
|
/* GEV's read-only badge (status-badge.css), neutral unless attested. */
|
|
.news-chip {
|
|
padding: 2px 7px;
|
|
border: 1px solid var(--glass-border-hover);
|
|
border-radius: 999px;
|
|
color: var(--text-secondary);
|
|
font: 8px var(--font-mono);
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
.news-chip--official,
|
|
.news-chip--confirmed {
|
|
border-color: rgba(0, 212, 255, 0.32);
|
|
background: rgba(0, 212, 255, 0.09);
|
|
color: #9defff;
|
|
}
|
|
.news-chip--claimed {
|
|
border-style: dashed;
|
|
}
|
|
.news-card__open {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
padding: 0 8px 8px;
|
|
}
|
|
.news-card__original,
|
|
.news-card__snippet {
|
|
margin: 0;
|
|
color: var(--text-primary);
|
|
font-size: 11px;
|
|
}
|
|
.news-card__original {
|
|
color: var(--text-secondary);
|
|
}
|
|
.news-card__others {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
font-size: 10px;
|
|
}
|
|
.news-card__others a,
|
|
.news-card__link {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.news-card__others a:hover,
|
|
.news-card__link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
.news-card__side {
|
|
margin-inline-end: 6px;
|
|
color: var(--text-secondary);
|
|
}
|
|
.news-card__actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
font: 10px var(--font-mono);
|
|
}
|
|
.news-legend {
|
|
color: var(--text-secondary);
|
|
font-size: 10px;
|
|
}
|
|
.news-legend summary {
|
|
cursor: pointer;
|
|
}
|
|
.news-legend p {
|
|
margin: 4px 0;
|
|
}
|
|
.news-legend__severity {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px 10px;
|
|
margin: 4px 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
.news-legend__severity li::before {
|
|
content: '';
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
margin-inline-end: 4px;
|
|
border-radius: 50%;
|
|
background: var(--news-color);
|
|
}
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.news-card,
|
|
.news-readout__list {
|
|
transition:
|
|
background var(--transition-fast),
|
|
border-color var(--transition-fast),
|
|
opacity var(--transition-fast);
|
|
}
|
|
}
|