mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 09:42:21 +00:00
UiButton gains styled variants beside the unstyled default ghost: action (the gev-action-button surface, tone="danger" and size="compact"), primary (that surface with the scene panel's main-action accent) and icon (the panel collapse toggle's square glyph button). A pressed styled button looks as a hovered one does. UiChip wears the read-only chip (now chip.css, shared with the news chips), UiEmpty the one-line empty state (now empty-state.css, shared with the news readout), and UiBadge and UiSegmented carry their skins through the kit's own classes too. Every kit selector shares one selector list with the Core skin it comes from, in skins loaded before the feature stylesheets, so no rule is copied and feature classes still win. The app renders as before: the voice card chip and the Recent Imagery and Authoring empty states keep their own type by inheriting it, and the dock pin buttons drop variant="icon", which they never wore. kitStyles.test.mjs pins the shared rules. Co-authored-by: Manjunath Paparaju <[email protected]>
47 lines
1.2 KiB
CSS
47 lines
1.2 KiB
CSS
/* Read-only badges. Feature CSS supplies meaning through explicit colors;
|
|
appearance variants change density/shape without interpreting status codes.
|
|
The kit's UiBadge (.ui-badge) wears it. */
|
|
.ui-badge,
|
|
.gev-status-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 4px 8px;
|
|
border: 1px solid var(--status-badge-border, rgba(0, 212, 255, 0.32));
|
|
border-radius: 999px;
|
|
background: var(--status-badge-background, rgba(0, 212, 255, 0.09));
|
|
color: var(--status-badge-color, #9defff);
|
|
font-family: var(--font-mono);
|
|
font-size: 8px;
|
|
letter-spacing: 1.3px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.gev-status-badge--box {
|
|
padding: 6px 8px;
|
|
border-radius: 8px;
|
|
font-size: 9px;
|
|
letter-spacing: 1px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.gev-status-badge--plain {
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: 0;
|
|
background: none;
|
|
color: var(--status-badge-color, var(--text-dim));
|
|
font-size: 9px;
|
|
letter-spacing: 0.5px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* Explicitly beat the component display rule, including in older browsers. */
|
|
.ui-badge[hidden],
|
|
.gev-status-badge[hidden] {
|
|
display: none;
|
|
}
|