New columns and title popups
Click scroll
This commit is contained in:
fraxle
2026-05-15 00:04:58 +01:00
parent e0712300e5
commit 780bffaeeb
3 changed files with 292 additions and 51 deletions
+75 -1
View File
@@ -424,7 +424,81 @@
/* "Tight" header — for columns whose body content is narrower than
the default tracked-out header would suggest (Air, Pcpt). Reducing
the letter-spacing shrinks the heading's natural width so it stops
driving the column wider than the body needs. Right-aligned values
driving the column wider than the body needs. Right-aligned values */
.utci-table th.utci-tight-head {
letter-spacing: 0.04em;
}
/* ── CLICKABLE COLUMN HEADERS ───────────────────────────────────────────
.col-info-th makes every <th> show a pointer cursor and a subtle hover
tint to signal it can be clicked for a description popup. */
.utci-table th.col-info-th {
cursor: pointer;
transition: background 0.15s;
}
.utci-table th.col-info-th:hover {
background: #e8d8a8;
}
/* ── COLUMN DESCRIPTION POPUP ───────────────────────────────────────────
Fixed-position card that appears below a clicked column header.
JS sets left/top via inline style (centred on the clicked th). */
.col-info-popup {
position: fixed; /* set by JS — stays in viewport regardless of scroll */
z-index: 200;
width: 260px;
background: #fffcf2;
border: 1.5px solid #c9b08a;
border-radius: 6px;
box-shadow: 0 4px 16px rgba(74,52,32,0.18);
padding: 14px 16px 16px;
pointer-events: all;
}
/* Arrow points DOWN toward the column header */
.col-info-popup::after {
content: '';
position: absolute;
bottom: -7px;
left: var(--arrow-left, 50%);
width: 12px;
height: 12px;
background: #fffcf2;
border-right: 1.5px solid #c9b08a;
border-bottom: 1.5px solid #c9b08a;
transform: rotate(45deg);
}
.col-info-title {
display: block;
font-family: Manrope, sans-serif;
font-size: 12px;
font-weight: 700;
color: #4a3420;
margin-bottom: 6px;
text-transform: none;
letter-spacing: 0;
}
.col-info-desc {
font-family: Manrope, sans-serif;
font-size: 12px;
color: #6b4f2a;
line-height: 1.5;
margin: 0;
}
.col-info-close {
position: absolute;
top: 6px;
right: 8px;
background: none;
border: none;
font-size: 16px;
color: #a08060;
cursor: pointer;
line-height: 1;
padding: 0 2px;
}
.col-info-close:hover {
color: #4a3420;
}
then sit with balanced visual padding on either side. */
.utci-table th.utci-tight-head {
letter-spacing: 0.04em;