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

104 lines
1.7 KiB
CSS
Raw Normal View History

.context-menu {
position: fixed;
background: #2d2d30;
border: 1px solid #3e3e42;
border-radius: 4px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
padding: 4px 0;
min-width: 200px;
max-height: calc(100vh - 80px);
overflow-y: auto;
z-index: 10001;
font-size: 13px;
}
.context-menu.submenu {
position: fixed;
}
.context-menu-item {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 12px;
padding-right: 24px;
color: #cccccc;
cursor: pointer;
transition: background-color 0.1s ease;
user-select: none;
position: relative;
}
.context-menu-item:hover:not(.disabled) {
background-color: #094771;
color: #ffffff;
}
.context-menu-item.disabled {
color: #666666;
cursor: not-allowed;
opacity: 0.5;
}
.context-menu-item.has-submenu {
padding-right: 28px;
}
.context-menu-icon {
display: flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
flex-shrink: 0;
}
.context-menu-icon svg {
width: 16px;
height: 16px;
}
.context-menu-label {
flex: 1;
white-space: nowrap;
}
.context-menu-shortcut {
color: #888888;
font-size: 11px;
margin-left: 24px;
white-space: nowrap;
}
.context-menu-item:hover:not(.disabled) .context-menu-shortcut {
color: #aaaaaa;
}
.context-menu-arrow {
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
color: #888888;
}
.context-menu-item:hover:not(.disabled) .context-menu-arrow {
color: #ffffff;
}
.context-menu-separator {
height: 1px;
background-color: #3e3e42;
margin: 4px 0;
}
/* Section header in submenu */
.context-menu-section-header {
padding: 4px 12px;
color: #888888;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.5px;
cursor: default;
}