modified: style.css
This commit is contained in:
@ -130,17 +130,6 @@ img.logo {
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
/* Info popup — sits below logo in col 1 */
|
||||
.popup {
|
||||
grid-column: 1 / -1;
|
||||
grid-row: 2;
|
||||
display: block;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
align-self: start;
|
||||
}
|
||||
|
||||
/* Current conditions — spans right two cols, rows 1–2 */
|
||||
.current {
|
||||
grid-column: 1 / -1;
|
||||
@ -225,6 +214,19 @@ img.logo {
|
||||
}
|
||||
|
||||
/* ─── Popup widget ──────────────────────────────────────────── */
|
||||
.popup {
|
||||
grid-column: 1 / -1;
|
||||
grid-row: 2;
|
||||
display: block;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
align-self: start;
|
||||
margin-bottom: 1dvh;
|
||||
z-index: 9999;
|
||||
isolation: isolate;
|
||||
}
|
||||
|
||||
.popup h5 {
|
||||
border: 1px solid var(--accent);
|
||||
border-radius: var(--r-lg);
|
||||
@ -246,32 +248,61 @@ img.logo {
|
||||
.popup .popuptext {
|
||||
background-color: var(--bg);
|
||||
position: absolute;
|
||||
z-index: 512;
|
||||
visibility: hidden;
|
||||
color: var(--text);
|
||||
text-align: left;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
border: 1px solid var(--accent);
|
||||
border-radius: var(--r-sm);
|
||||
z-index: 9999;
|
||||
visibility: hidden;
|
||||
min-width: 300px;
|
||||
max-height: 80vh;
|
||||
overflow-y: auto;
|
||||
display: block;
|
||||
min-width: 420px;
|
||||
text-align: left;
|
||||
border: 1px solid var(--accent);
|
||||
border-radius: var(--r-sm);
|
||||
color: var(--text);
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
|
||||
.popup .show {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.popup .popuptext p { font-size: 1rem; }
|
||||
.popup .popuptext .emo { margin-top: 1rem; text-align: center; }
|
||||
.popup .popuptext .display: inline; emo a { display: inline; padding: 0 12px; font-size: 3rem; text-decoration: none; }
|
||||
.popup .popuptext .text { padding-left: 20px; }
|
||||
.popup .popuptext .text p { margin: 20px 0; }
|
||||
.popup .popuptext .sources { padding-bottom: 10px; padding-left: 20px; }
|
||||
.popup .popuptext .sources p { padding-top: 4px; }
|
||||
.popup .popuptext .sources a { display: inline-block; padding-bottom: 4px; color: var(--accent); font-size: 1rem; }
|
||||
/* emojis — single row, centered */
|
||||
.popup .popuptext .emo {
|
||||
text-align: center;
|
||||
padding: 12px 0;
|
||||
}
|
||||
.popup .popuptext .emo a {
|
||||
display: inline;
|
||||
padding: 0 12px;
|
||||
font-size: 3rem;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* text lines */
|
||||
.popup .popuptext .text {
|
||||
padding: 0 20px;
|
||||
}
|
||||
.popup .popuptext .text p {
|
||||
padding: 8px 0;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
/* sources */
|
||||
.popup .popuptext .sources {
|
||||
padding: 4px 20px;
|
||||
}
|
||||
.popup .popuptext .sources p {
|
||||
font-size: 1rem;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
.popup .popuptext .sources a {
|
||||
display: inline-block;
|
||||
color: var(--accent);
|
||||
font-size: 1rem;
|
||||
padding-right: 8px;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
/* ─── Video panel ───────────────────────────────────────────── */
|
||||
.video {
|
||||
@ -389,8 +420,6 @@ img.logo {
|
||||
.cat p { padding-left: 14px; }
|
||||
.data { font-size: 1.5rem; margin-top: 2px; padding: 0.5vh 1vw; }
|
||||
.datapoint { margin-top: 14px; padding: 0.5vh; font-size: 0.75rem; }
|
||||
|
||||
.popup h5 { font-size: 1rem; }
|
||||
}
|
||||
|
||||
|
||||
@ -418,12 +447,8 @@ img.logo {
|
||||
.data { font-size: 1rem; margin-top: 0; padding: 2px 0; }
|
||||
.datapoint { margin-top: 10px; padding: 4px 0 0 8px; font-size: 0.75rem; }
|
||||
|
||||
.popup h5 { padding: 0 6px; font-size: 0.75rem; }
|
||||
|
||||
.popup .popuptext { font-size: 0.75rem; width: 180px; }
|
||||
.popup .popuptext .emo a { display: inline; font-size: 3rem; }
|
||||
.popup .popuptext .text { padding-left: 10px; }
|
||||
.popup .popuptext .text p { margin: 12px 0; }
|
||||
.popup .popuptext .sources { padding-bottom: 10px; padding-left: 10px; }
|
||||
.popup .popuptext .sources a { display: inline-block; padding-bottom: 4px; font-size: 0.75px; }
|
||||
.popup .popuptext {
|
||||
min-width: 280px;
|
||||
max-width: 90vw;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user