27 lines
1.1 KiB
CSS
27 lines
1.1 KiB
CSS
/* Toolbar 共享表面:统一控件尺寸变量、排列间距、边框和背景;不负责自身在画布中的定位。 */
|
|
/* 提供后代按钮消费的 CSS 变量;半透明背景与 backdrop blur 处理工具栏背后的内容。 */
|
|
.surface {
|
|
--toolbar-icon-size: 20px;
|
|
--toolbar-control-width: 32px;
|
|
--toolbar-control-height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 4px;
|
|
border: 1px solid #e2dcd3;
|
|
border-radius: 8px;
|
|
background: #fffffff5;
|
|
color: #4b443d;
|
|
box-shadow: 0 3px 14px #32251a0a;
|
|
backdrop-filter: blur(12px);
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
/* Text in the view controls already creates wider visual spacing. */
|
|
/* 含缩放文字的视图工具栏增加横向留白,不改变控件本身的尺寸。 */
|
|
.relaxed { column-gap: 6px; padding-inline: 6px; }
|
|
/* 分隔线保持 1px flex 基准,避免被相邻控件挤宽或挤没。 */
|
|
.divider { flex: 0 0 1px; width: 1px; height: 16px; margin: 0 2px; background: #ece6df; }
|