autumn-web 0.10.0

An opinionated, convention-over-configuration web framework for Rust
Documentation
/* Workflow widgets (`widgets-workflow`). The server joins this file to
   autumn-widgets.css only when the feature is on (#3408). */

/* ── Transition controls (autumn-transition-controls, autumn-transition) ──── */

/* The grouping container holds one no-JS POST form per legal edge leaving the
   current state; lay them out in a wrapping row of action buttons. */
.autumn-transition-controls {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

/* Each transition is its own inline form so the buttons sit side by side. */
.autumn-transition {
    display: inline-flex;
    margin: 0;
}

.autumn-transition button {
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.autumn-transition button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Bulk actions (autumn-bulk-*, issue #1312) ────────────────────────────── */

/* The wrapping `<form method="post">` around a list and its toolbar. It carries
   no geometry of its own: it must not disturb the layout of whatever list it
   wraps (a `data_table`, a `<ul>`, a card grid), so it stays a plain block and
   only strips the default form margin. */
.autumn-bulk-form {
    margin: 0;
}

/* The `role="group"` holding the submit button, below the list it applies to.
   Aligned to the start so it reads as an action on the selection above rather
   than as page-level navigation. */
.autumn-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    margin-top: var(--space-3);
}

.autumn-bulk-actions button {
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.autumn-bulk-actions button:hover {
    border-color: var(--primary);
}

.autumn-bulk-actions button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* One per row, in the list's leading cell. Sized up slightly from the browser
   default: this is the primary hit target for the whole flow, and a row is
   selected by hitting a single small checkbox. */
.autumn-bulk-select {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    vertical-align: middle;
}

.autumn-bulk-select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}