fix(sw): preserve theme token inheritance across viewer components
This commit is contained in:
1 parent
40c5b89814
commit
41e963a12a
17 files changed
+445
-21
No files matched your search
@@ -1,9 +1,9 @@
|
||||
/* @hm-design/sw — SW viewer mode (reference: DWG/DXF viewer top menu and floating panels, measured 2026-10-19).
|
||||
Viewer-only tokens. The three header surfaces reuse the user-confirmed SW tokens of sw.css
|
||||
(--hm-sw-header-document-* / object-* / property-*). Never touches global selectors or the SWHeader. */
|
||||
(--hm-sw-header-document-* / object-* / property-*). Never touches global selectors or the SWHeader.
|
||||
Declared on the outermost SW scope only, like sw.css: nested viewer menus / panels inherit the tokens. */
|
||||
|
||||
.hm-sw-header,
|
||||
.hm-sw-theme {
|
||||
:is(.hm-sw-header, .hm-sw-theme):not(:where(.hm-sw-header, .hm-sw-theme) *) {
|
||||
/* Header */
|
||||
--hm-sw-viewer-height: 52px;
|
||||
--hm-sw-viewer-background: linear-gradient(180deg, #266651 0%, #123328 45%, #0a221d 100%);
|
||||
|
||||
Reference in new issue
Block a user