Empty states are heading and text on the page, with no dashed box
Paul, about Docs' empty list: "Can we get rid of these dotted line views? I don't think they add anything." A dashed outline reads as a place to drop a file, and an empty state accepts nothing. This app serves its own copy of rastrillo's tokens.css. Its .rst-empty rule now matches Fiesta 1.5.0's: transparent background, no border, and the padding takes back the border's 1px so nothing moves. The words and markup are untouched. The pin does not move. This app is several rastrillo releases behind and moving it is its own piece of work, so the vendored-copy test is told the edit is deliberate (vendoredIsMine, or the pin dropped in Meet). The next `go tool rastrillo doctor --fix` writes the same rule and the exception can go.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+12
−3
internal/calendar/static/tokens.css+7 −3internal/calendartest/vendored_test.go+5 −0
CI passed — run details
CI log
=== vet === go vet ./... go vet -tags browser ./internal/calendartest/ === fmt === === test === go test ./... ok amadan.net/oficina/calendar/cmd/calendar (cached) ? amadan.net/oficina/calendar/cmd/calendar-contract [no test files] ok amadan.net/oficina/calendar/internal/calendar 25.127s ? amadan.net/oficina/calendar/internal/calendar/icons [no test files] ? amadan.net/oficina/calendar/internal/calendar/keymailtest [no test files] ? amadan.net/oficina/calendar/internal/calendar/seal [no test files] ? amadan.net/oficina/calendar/internal/calendar/teamstate [no test files] ok amadan.net/oficina/calendar/internal/calendartest 3.699s ok amadan.net/oficina/calendar/internal/guardstest 0.084s ? amadan.net/oficina/calendar/scripts/writeestilo [no test files] === migration-check === go tool rastrillo migration check rastrillo migration check: models and migrations agree
diff --git a/internal/calendar/static/tokens.css b/internal/calendar/static/tokens.css| index 6886854..2b45b8c 100644 |
| --- a/internal/calendar/static/tokens.css |
| +++ b/internal/calendar/static/tokens.css |
| @@ -814,11 +814,15 @@ body { |
| } |
| /* ── empty-state ──────────────────────────────────────────────────── */ |
| +/* No box: the heading and text sit on the page. A dashed outline reads |
| + as a drop target, and an empty state accepts nothing. The radius |
| + stays because 1.x keeps every 1.0 declaration; it paints nothing now. |
| + The padding gains the 1px the border took, so nothing moves. */ |
| .rst-empty, [rst-empty] { |
| - background: var(--rst-surface); |
| - border: 1px dashed var(--rst-line-strong); |
| + background: transparent; |
| + border: none; |
| border-radius: var(--rst-radius); |
| - padding: var(--rst-sp-6) var(--rst-sp-4); |
| + padding: calc(var(--rst-sp-6) + 1px) calc(var(--rst-sp-4) + 1px); |
| text-align: center; |
| } |
| /* Class-based, so it styles the partial's <h2> without inheriting any |
diff --git a/internal/calendartest/vendored_test.go b/internal/calendartest/vendored_test.go| index 766ed33..9aaad2c 100644 |
| --- a/internal/calendartest/vendored_test.go |
| +++ b/internal/calendartest/vendored_test.go |
| @@ -26,6 +26,11 @@ const vendoredTheme = "day" |
| // record that the edit was on purpose, so the next reader (and the next |
| // upgrade) can tell it from drift. |
| var vendoredIsMine = map[string]bool{ |
| + // tokens.css with one rule edited on purpose: .rst-empty has no dashed |
| + // box (Fiesta 1.5.0, rastrillo's branch empty-state-no-box). This app |
| + // is pinned before the release that carries it. The next |
| + // rastrillo doctor --fix writes the same rule; delete this line then. |
| + "tokens.css": true, |
| // rastrillo's shim as estilo carries it: without the old busy rule, |
| // which would fight busy.js. Pinned to estilo by TestBusyFilesAreEstilos. |
| "rastrillo.js": true, |