Files
bim_engine/src/components/dialog/index.css
yuding 19f7e3ffbc feat(theme): 重构主题系统,新增 glass-pill 按钮样式
- ThemeConfig 接口扩展至 60+ 语义化属性
- 新增深浅主题预设 (glassPill overrides)
- button-group 支持 glass-pill 样式变体
- 默认主题改为浅色
- 移除 toolbar 容器硬编码定位
- 统一组件 CSS 变量命名规范
- 暂时隐藏下拉箭头
2026-01-21 15:50:07 +08:00

87 lines
1.9 KiB
CSS

.bim-dialog {
position: absolute;
background-color: var(--bim-dialog-bg, var(--bim-bg-elevated));
border: 1px solid var(--bim-dialog-border-color, var(--bim-border-default));
border-radius: 6px;
box-shadow: var(--bim-shadow-lg);
display: flex;
flex-direction: column;
z-index: 10001;
color: var(--bim-dialog-title-color, var(--bim-text-primary));
overflow: hidden;
min-width: 200px;
min-height: 100px;
pointer-events: auto;
}
.bim-dialog-header {
height: 32px;
background-color: var(--bim-dialog-header-bg, var(--bim-bg-inset));
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 10px;
cursor: default;
user-select: none;
border-bottom: 1px solid var(--bim-dialog-border-color, var(--bim-border-default));
flex-shrink: 0;
}
.bim-dialog-header.draggable {
cursor: move;
}
.bim-dialog-title {
font-size: 14px;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: var(--bim-dialog-title-color);
}
.bim-dialog-close {
cursor: pointer;
font-size: 18px;
color: var(--bim-text-tertiary);
line-height: 1;
margin-left: 8px;
}
.bim-dialog-close:hover {
color: var(--bim-text-primary);
}
.bim-dialog-content {
flex: 1;
overflow: auto;
font-size: 14px;
color: var(--bim-dialog-text-color, var(--bim-text-secondary));
}
/* 缩放句柄 */
.bim-dialog-resize-handle {
position: absolute;
width: 10px;
height: 10px;
bottom: 0;
right: 0;
cursor: se-resize;
z-index: 10;
}
.bim-dialog-resize-handle::after {
content: '';
position: absolute;
bottom: 3px;
right: 3px;
width: 6px;
height: 6px;
border-right: 2px solid var(--bim-text-tertiary);
border-bottom: 2px solid var(--bim-text-tertiary);
}
.bim-dialog-resize-handle:hover::after {
border-color: var(--bim-text-primary);
}