|
7 | 7 | 3. Widget title date pill (`.hndle::after`) |
8 | 8 | 4. Timeline (year headers, vertical line, post rows) |
9 | 9 | 5. Post row (icon circle, title, excerpt, meta row) |
10 | | - 6. Empty state |
11 | | - 7. Adaptive rules (reduced motion, small viewports) |
| 10 | + 6. Window control |
| 11 | + 7. Empty state |
| 12 | + 8. Adaptive rules (reduced motion, small viewports) |
12 | 13 | ============================================================================= */ |
13 | 14 |
|
14 | 15 | /* ----------------------------------------------------------------------------- |
|
50 | 51 | 2. Postbox chrome |
51 | 52 | ----------------------------------------------------------------------------- */ |
52 | 53 | #dashboard_on_this_day { |
| 54 | + /* To honour the postbox border-radius. */ |
| 55 | + overflow: hidden; |
| 56 | + |
53 | 57 | & .inside { |
54 | 58 | margin: 0; |
55 | 59 | padding: 0; |
56 | 60 | max-height: 560px; |
57 | | - overflow: auto; |
| 61 | + display: flex; |
| 62 | + flex-direction: column; |
| 63 | + overflow: hidden; |
58 | 64 | } |
59 | 65 |
|
60 | 66 | & .hndle { |
|
63 | 69 | } |
64 | 70 |
|
65 | 71 | .on-this-day-widget { |
| 72 | + display: flex; |
| 73 | + flex-direction: column; |
| 74 | + flex: 1 1 auto; |
| 75 | + min-height: 0; |
66 | 76 | font-size: 13px; |
67 | 77 | color: var(--otd-ink); |
68 | 78 | line-height: 1.5; |
69 | 79 | } |
70 | 80 |
|
| 81 | +/* Scrollable content area — keeps the timeline / empty state contained |
| 82 | + so the window control below pins to the bottom of the postbox body. */ |
| 83 | +.on-this-day-scroll { |
| 84 | + flex: 1 1 auto; |
| 85 | + min-height: 0; |
| 86 | + overflow: auto; |
| 87 | +} |
| 88 | + |
71 | 89 | /* ----------------------------------------------------------------------------- |
72 | 90 | 3. Widget title date pill |
73 | 91 |
|
|
282 | 300 | } |
283 | 301 |
|
284 | 302 | /* ----------------------------------------------------------------------------- |
285 | | - 6. Empty state |
| 303 | + 6. Window control |
| 304 | + ----------------------------------------------------------------------------- */ |
| 305 | +.on-this-day-window-form { |
| 306 | + flex: 0 0 auto; |
| 307 | + padding: 12px 20px 14px; |
| 308 | + border-top: 1px solid var(--otd-line); |
| 309 | + background: #fff; |
| 310 | +} |
| 311 | + |
| 312 | +.on-this-day-window-control { |
| 313 | + display: grid; |
| 314 | + grid-template-columns: auto minmax(120px, 1fr) auto; |
| 315 | + align-items: center; |
| 316 | + gap: 8px; |
| 317 | +} |
| 318 | + |
| 319 | +.on-this-day-window-control input[type="range"] { |
| 320 | + width: 100%; |
| 321 | + margin: 0; |
| 322 | + accent-color: var(--otd-accent); |
| 323 | +} |
| 324 | + |
| 325 | +.on-this-day-window-scale { |
| 326 | + color: var(--otd-subtle); |
| 327 | + font-size: 11px; |
| 328 | + line-height: 1.4; |
| 329 | + white-space: nowrap; |
| 330 | +} |
| 331 | + |
| 332 | +/* ----------------------------------------------------------------------------- |
| 333 | + 7. Empty state |
286 | 334 | ----------------------------------------------------------------------------- */ |
287 | 335 | .on-this-day-empty { |
288 | 336 | text-align: center; |
|
321 | 369 | } |
322 | 370 |
|
323 | 371 | /* ----------------------------------------------------------------------------- |
324 | | - 7. Adaptive rules |
| 372 | + 8. Adaptive rules |
325 | 373 | ----------------------------------------------------------------------------- */ |
326 | 374 | @media (prefers-reduced-motion: reduce) { |
327 | 375 | .on-this-day-post-title a, |
|
0 commit comments