2025-10-27 09:29:11 +08:00
|
|
|
.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;
|
2025-12-01 22:28:51 +08:00
|
|
|
min-width: 200px;
|
2025-12-06 11:56:25 +08:00
|
|
|
max-height: calc(100vh - 80px);
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
z-index: 10001;
|
2025-10-27 09:29:11 +08:00
|
|
|
font-size: 13px;
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-01 22:28:51 +08:00
|
|
|
.context-menu.submenu {
|
|
|
|
|
position: fixed;
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-27 09:29:11 +08:00
|
|
|
.context-menu-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
padding: 6px 12px;
|
2025-12-01 22:28:51 +08:00
|
|
|
padding-right: 24px;
|
2025-10-27 09:29:11 +08:00
|
|
|
color: #cccccc;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: background-color 0.1s ease;
|
|
|
|
|
user-select: none;
|
2025-12-01 22:28:51 +08:00
|
|
|
position: relative;
|
2025-10-27 09:29:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.context-menu-item:hover:not(.disabled) {
|
2025-12-01 22:28:51 +08:00
|
|
|
background-color: #094771;
|
2025-10-27 09:29:11 +08:00
|
|
|
color: #ffffff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.context-menu-item.disabled {
|
|
|
|
|
color: #666666;
|
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-01 22:28:51 +08:00
|
|
|
.context-menu-item.has-submenu {
|
|
|
|
|
padding-right: 28px;
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-27 09:29:11 +08:00
|
|
|
.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;
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-01 22:28:51 +08:00
|
|
|
.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;
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-27 09:29:11 +08:00
|
|
|
.context-menu-separator {
|
|
|
|
|
height: 1px;
|
|
|
|
|
background-color: #3e3e42;
|
|
|
|
|
margin: 4px 0;
|
|
|
|
|
}
|
2025-12-01 22:28:51 +08:00
|
|
|
|
|
|
|
|
/* 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;
|
|
|
|
|
}
|