Files
esengine/packages/editor-app/src/styles/MenuBar.css

98 lines
1.5 KiB
CSS
Raw Normal View History

2025-10-15 18:24:13 +08:00
.menu-bar {
display: flex;
align-items: center;
gap: 0;
2025-10-15 18:24:13 +08:00
height: 100%;
user-select: none;
}
.menu-item {
position: relative;
}
.menu-button {
height: 100%;
padding: 0 10px;
2025-10-15 18:24:13 +08:00
background: transparent;
border: none;
color: #999;
font-size: 12px;
2025-10-15 18:24:13 +08:00
cursor: pointer;
transition: all 0.1s;
border-radius: 0;
2025-10-15 18:24:13 +08:00
}
.menu-button:hover {
background-color: rgba(255, 255, 255, 0.06);
color: #ccc;
2025-10-15 18:24:13 +08:00
}
.menu-button.active {
background-color: rgba(255, 255, 255, 0.1);
color: #fff;
2025-10-15 18:24:13 +08:00
}
.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);
2025-10-15 18:24:13 +08:00
padding: 4px 0;
z-index: 1000;
margin-top: 0;
2025-10-15 18:24:13 +08:00
}
.menu-dropdown-item {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 5px 12px;
2025-10-15 18:24:13 +08:00
background: transparent;
border: none;
color: #ccc;
font-size: 11px;
2025-10-15 18:24:13 +08:00
cursor: pointer;
text-align: left;
transition: background-color 0.1s;
2025-10-15 18:24:13 +08:00
}
.menu-dropdown-item:hover:not(.disabled) {
background-color: #3b82f6;
color: #fff;
2025-10-15 18:24:13 +08:00
}
.menu-dropdown-item.disabled {
color: #555;
2025-10-15 18:24:13 +08:00
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;
}
2025-10-15 18:24:13 +08:00
.menu-shortcut {
margin-left: 16px;
color: #666;
font-size: 10px;
2025-10-15 18:24:13 +08:00
}
.menu-separator {
height: 1px;
background-color: rgba(255, 255, 255, 0.08);
2025-10-15 18:24:13 +08:00
margin: 4px 8px;
}