* feat(ui): 完善 UI 布局系统和编辑器可视化工具 * refactor: 移除 ModuleRegistry,统一使用 PluginManager 插件系统 * fix: 修复 CodeQL 警告并提升测试覆盖率 * refactor: 分离运行时入口点,解决 runtime bundle 包含 React 的问题 * fix(ci): 添加 editor-core 和 editor-runtime 到 CI 依赖构建步骤 * docs: 完善 ServiceContainer 文档,新增 Symbol.for 模式和 @InjectProperty 说明 * fix(ci): 修复 type-check 失败问题 * fix(ci): 修复类型检查失败问题 * fix(ci): 修复类型检查失败问题 * fix(ci): behavior-tree 构建添加 @tauri-apps 外部依赖 * fix(ci): behavior-tree 添加 @tauri-apps/plugin-fs 类型依赖 * fix(ci): platform-web 添加缺失的 behavior-tree 依赖 * fix(lint): 移除正则表达式中不必要的转义字符
98 lines
1.6 KiB
CSS
98 lines
1.6 KiB
CSS
.menu-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0;
|
|
height: 100%;
|
|
user-select: none;
|
|
}
|
|
|
|
.menu-item {
|
|
position: relative;
|
|
}
|
|
|
|
.menu-button {
|
|
height: 100%;
|
|
padding: 0 10px;
|
|
background: transparent;
|
|
border: none;
|
|
color: #999;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
transition: all 0.1s;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.menu-button:hover {
|
|
background-color: rgba(255, 255, 255, 0.06);
|
|
color: #ccc;
|
|
}
|
|
|
|
.menu-button.active {
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
color: #fff;
|
|
}
|
|
|
|
.menu-dropdown {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
min-width: 180px;
|
|
background: #252529;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 3px;
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
|
|
padding: 4px 0;
|
|
z-index: var(--z-index-dropdown);
|
|
margin-top: 0;
|
|
}
|
|
|
|
.menu-dropdown-item {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 5px 12px;
|
|
background: transparent;
|
|
border: none;
|
|
color: #ccc;
|
|
font-size: 11px;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
transition: background-color 0.1s;
|
|
}
|
|
|
|
.menu-dropdown-item:hover:not(.disabled) {
|
|
background-color: #3b82f6;
|
|
color: #fff;
|
|
}
|
|
|
|
.menu-dropdown-item.disabled {
|
|
color: #555;
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.menu-item-content {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.menu-item-content svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.menu-shortcut {
|
|
margin-left: 16px;
|
|
color: #666;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.menu-separator {
|
|
height: 1px;
|
|
background-color: rgba(255, 255, 255, 0.08);
|
|
margin: 4px 8px;
|
|
}
|