docs(styles): explain toolbar inheritance and workspace layering

This commit is contained in:
2026-11-12 17:05:08 +08:00
parent e4e148502e
commit abf5ea9baa
4 changed files with 5 additions and 0 deletions
+1
View File
@@ -1,6 +1,7 @@
/* Toolbar 共享表面:统一控件尺寸变量、排列间距、边框和背景;不负责自身在画布中的定位。 */
/* 提供后代按钮消费的 CSS 变量;半透明背景与 backdrop blur 处理工具栏背后的内容。 */
.surface {
/* 变量按 DOM 继承:渲染到 body Portal 的浮层不会仅因 React 父子关系继承此处尺寸。 */
--toolbar-icon-size: 20px;
--toolbar-control-width: 32px;
--toolbar-control-height: 32px;