Files
CST-agent/archive/desktop-tauri/src/dsh/styles/focus.css
T
WHCandCursor 5538ed3412
ci / tcc-check (push) Successful in 1m8s
ci / linux (aarch64, 0) (push) Failing after 1h0m3s
ci / linux (x86, 1) (push) Failing after 1h0m3s
ci / linux (x86_64, 1) (push) Failing after 1h0m2s
ci / windows (push) Failing after 50s
refactor: archive GUI clients; keep minimal TUI with hooks/API
Move Qt/Tauri/full Web SPA under archive/, ship hermit as CLI/TUI plus
libcstcore and cst-webui/1 HTTP+SSE (turn lifecycle hooks, capabilities).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-30 22:49:23 +08:00

22 lines
1018 B
CSS

/* Components own offsets; dense tables and toolbars may keep a 1px ring. */
:root {
--dsw-focus-ring-width: 2px;
}
/* The fallback names the colour and the standard width, never the style: a control that
* disables its outline keeps `none` and paints nothing. Without the width, Chromium's
* unnamed ring stayed at `auto 1px` while every declared ring used the standard geometry.
* Declared rings also read this color, including rings on descendants and pseudo-elements. */
:focus-visible {
outline-color: var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));
outline-width: var(--dsw-focus-ring-width);
}
/* ui-primitives/input-modality publishes the attribute. Editable controls keep
* their focus feedback on click; other controls reveal rings on keyboard
* navigation. Only ring paint is suppressed, not elevation or selected borders. */
html[data-input-modality='pointer'] body :focus-visible:not(:read-write) {
--dsw-focus-ring-color: transparent;
outline-color: transparent;
}