swarm-ui: shared Hint, ActionRow, Toolbar, EmptyState, ExternalLink and ExpandableCard replace per-page copies
Hint, ActionRow, Toolbar, EmptyState and ExternalLink replace the muted text, button row, refresh bar, empty line and _blank anchor that each page restyled under its own class. ExpandableCard (with a loading twin) holds the builds and recent-runs cards, which had identical head and body CSS. The create form's raw checkbox becomes CheckboxField. The components page shows each new piece.
This commit is contained in:
parent
b74b5e77e4
commit
8a2e5203ad
1 changed files with 689 additions and 427 deletions
|
|
@ -1,42 +1,10 @@
|
|||
/* The build list: one card per build, the head row a button that opens it. */
|
||||
/* The build list: one card per build (`ui/expandable-card`). */
|
||||
.ui-builds-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75em;
|
||||
margin-top: 1em;
|
||||
}
|
||||
.ui-builds-head {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 0.5em 0.75em;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
.ui-builds-head:focus-visible {
|
||||
outline: 2px solid var(--purple);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
.ui-builds-title {
|
||||
display: inline-flex;
|
||||
align-items: baseline;
|
||||
gap: 0.5em;
|
||||
}
|
||||
.ui-builds-meta {
|
||||
color: var(--muted);
|
||||
margin: 0;
|
||||
}
|
||||
.ui-builds-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.4em;
|
||||
margin-top: 0.6em;
|
||||
}
|
||||
.ui-builds-text {
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere;
|
||||
|
|
@ -51,11 +19,3 @@
|
|||
background: color-mix(in srgb, var(--crust) 60%, transparent);
|
||||
font-size: 0.85em;
|
||||
}
|
||||
.ui-builds-empty {
|
||||
color: var(--muted);
|
||||
}
|
||||
.ui-builds-refresh {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
margin-block-end: 0.5em;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue