UI : badge de statut texte (À JOUR, ÉCARTS, BLOQUANT) sur les cartes à la place du liseré coloré
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
4980cd4c7f
commit
dc1a7ff40e
2 files changed
+15
-16
No files matched your search
+7
-7
@@ -254,21 +254,21 @@ body.busy .progress::after {
|
||||
position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0;
|
||||
padding: 10px 12px 10px 14px; text-align: left;
|
||||
background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
|
||||
/* status edge drawn inside the border: follows the rounded corners */
|
||||
box-shadow: inset 3px 0 0 var(--st, var(--border));
|
||||
}
|
||||
button.ccard:hover { background: var(--row-hover); }
|
||||
.ccard[aria-selected="true"] { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--st, var(--accent)), 0 0 0 1px var(--accent); }
|
||||
.ccard.ref { --st: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--panel)); cursor: default; }
|
||||
.ccard.st-ok { --st: var(--ok); }
|
||||
.ccard.st-diff { --st: var(--warn); }
|
||||
.ccard.st-error { --st: var(--err); }
|
||||
.ccard[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
|
||||
.ccard.ref { background: color-mix(in srgb, var(--accent) 5%, var(--panel)); cursor: default; }
|
||||
.ccard .c-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
|
||||
.ccard .c-name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.ccard .c-role {
|
||||
flex: none; padding: 0 5px; border-radius: 5px; font-size: 10px; font-weight: 700; letter-spacing: .04em;
|
||||
color: var(--accent); background: var(--accent-soft);
|
||||
}
|
||||
/* status badge, same shape as the role badge */
|
||||
.ccard .c-role.st { --c: var(--muted); color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
|
||||
.ccard .c-role.st-ok { --c: var(--ok); }
|
||||
.ccard .c-role.st-diff { --c: var(--warn); }
|
||||
.ccard .c-role.st-error { --c: var(--err); }
|
||||
.ccard .c-ver { margin-left: auto; flex: none; font: 11.5px var(--mono); color: var(--muted); }
|
||||
.ccard .c-url { font: 11.5px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.ccard .c-counts { display: flex; flex-wrap: wrap; gap: 4px; min-height: 20px; align-items: center; }
|
||||
|
||||
Reference in new issue
Block a user