Five buttons with nothing above them

The Escribir button on Privados sat flush against the select, and four others
were in the same state: Enviar under the message box, Publicar respuesta,
Aprobar y publicar, and Volver a Inicio on the error page. None of them is
wrapped in the <div class="actions"> every other form uses, and that wrapper is
where the space comes from — .btn carries no margin of its own.

One rule rather than five wrappers: `.card > .btn` gets the same 1.25rem
.actions has. Direct-child, so a button inside an actions row never gets both,
and the next bare button somebody adds is spaced without anybody remembering.
Wrapping each one by hand would have been an allowlist of places that got it
right, which is the shape of the bug that left the password box unstyled.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
This commit is contained in:
Claude 2026-10-03 12:47:09 +00:00
parent 5e8ee5ad20
commit 1e1113ed53
No known key found for this signature in database

View File

@ -221,6 +221,16 @@ textarea { resize: vertical; line-height: 1.55; }
} }
.btn:hover { background: var(--brand-dark); } .btn:hover { background: var(--brand-dark); }
/* A button sitting straight in a card, rather than in an .actions row, still
* needs air above it. Five of them did not have any — the one under the "escribir
* a" picker was flush against the select — because the space every other form
* has comes from .actions, not from the button.
*
* Matching .actions' own margin so the two look the same, and a direct-child
* selector so a button inside .actions is never given both: it is a child of the
* row, not of the card. */
.card > .btn { margin-top: 1.25rem; }
.linkish { .linkish {
background: none; background: none;
border: 0; border: 0;