threepipe
Version:
A modern 3D viewer framework built on top of three.js, written in TypeScript, designed to make creating high-quality, modular, and extensible 3D experiences on the web simple and enjoyable.
56 lines (51 loc) • 1.21 kB
CSS
.CustomContextMenu{
position: absolute;
background: #333e;
min-width: 8rem;
color: white;
font-size: 0.8rem;
overflow: hidden;
border-radius: 8px;
box-shadow: 2px 2px 10px #6666;
z-index: 100000;
}
.CustomContextMenu div{
cursor: pointer;
padding: 6px 10px;
transition: background-color 0.25s ease-in-out;
}
.CustomContextMenu div:hover{
background: #1a1a1c;
}
#customContextMenu {
background: #333e;
backdrop-filter: blur(8px);
border: 0.5px solid rgba(20, 20, 20, 0.3);
width: auto;
height: auto;
position: absolute;
display: flex;
flex-direction: column;
z-index: 9999;
padding: 0.4rem 0.25rem;
border-radius: 0.375rem;
min-width: 8rem;
pointer-events: auto;
box-shadow: 0 2px 10px rgba(12, 12, 12, 0.2);
}
.customContextMenuItems {
color: white;
font-size: 0.8rem;
font-family: monospace;
background-color: transparent;
cursor: pointer;
padding: 4px 8px;
border-radius: 0.25rem;
line-height: 1rem;
font-weight: 500;
transition: background-color 0.25s ease-in-out;
}
.customContextMenuItems:hover {
color: white;
background-color: #017AFF;
}