@asup/context-menu
Version:
REACT Typescript Context menu component
242 lines (206 loc) • 5.81 kB
CSS
.aiw-AutoHeight-module-pDlSVW-autoHeightWrapper {
transition-timing-function: height ease-in-out width ease-in-out background-color ease-in-out;
box-sizing: border-box;
position: relative;
overflow: hidden;
}
.aiw-AutoHeight-module-pDlSVW-autoHeightInner {
height: fit-content;
}
.aiw-ContextMenu-module-WinFxq-anchor {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
font-size: 9pt;
position: absolute;
top: 0;
left: 0;
}
.aiw-ContextMenu-module-WinFxq-contextMenuHandler {
width: fit-content;
height: fit-content;
}
.aiw-ContextMenu-module-WinFxq-contextMenu {
opacity: 1;
z-index: 10000;
background-color: #fbfdf6;
border: 1px solid #111418;
transition: opacity .3s linear;
position: absolute;
box-shadow: 4px 4px 4px #404040bf;
}
.aiw-ContextMenu-module-WinFxq-contextMenu.aiw-ContextMenu-module-WinFxq-hidden {
opacity: 0;
}
.aiw-ContextMenu-module-WinFxq-contextMenu.aiw-ContextMenu-module-WinFxq-visible {
opacity: 1;
}
.aiw-ContextMenu-module-WinFxq-contextMenuItem {
color: #111418;
cursor: pointer;
white-space: nowrap;
flex-direction: row;
justify-content: space-between;
min-width: 80px;
padding: 0 4px;
display: flex;
position: relative;
}
.aiw-ContextMenu-module-WinFxq-contextMenuItem.aiw-ContextMenu-module-WinFxq-disabled {
cursor: not-allowed;
background-color: #0003;
}
.aiw-ContextMenu-module-WinFxq-contextMenuItem:first-child {
padding-top: 4px;
}
.aiw-ContextMenu-module-WinFxq-contextMenuItem:last-child {
padding-bottom: 4px;
}
.aiw-ContextMenu-module-WinFxq-contextMenuItem:not(.aiw-ContextMenu-module-WinFxq-disabled):hover {
background-color: #fbe9e6;
}
.aiw-ContextMenu-module-WinFxq-contextMenuItem .aiw-ContextMenu-module-WinFxq-caretHolder {
align-self: flex-end;
}
.aiw-ContextMenu-module-WinFxq-contextMenuItem .aiw-ContextMenu-module-WinFxq-caretHolder .aiw-ContextMenu-module-WinFxq-subMenu {
z-index: 1;
position: relative;
}
.aiw-ContextMenu-module-WinFxq-contextMenuItemLabel {
flex-grow: 1;
height: 19px;
}
.aiw-LowMenu-module-JfzGeq-lowMenu {
z-index: 2;
margin: 0;
transition: opacity .3s linear;
position: absolute;
}
.aiw-LowMenu-module-JfzGeq-lowMenuButtonHolder {
background-color: #111418;
border: 2px solid #111418;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
flex-flow: wrap;
gap: 2px;
width: fit-content;
display: flex;
box-shadow: 2px 2px 2px #40404080;
}
.aiw-LowMenu-module-JfzGeq-lowMenu.aiw-LowMenu-module-JfzGeq-hidden {
opacity: 0;
}
.aiw-LowMenu-module-JfzGeq-lowMenu.aiw-LowMenu-module-JfzGeq-visible, .aiw-LowMenu-module-JfzGeq-lowMenu:hover {
opacity: 1;
}
.aiw-LowMenu-module-JfzGeq-lowMenuItem {
color: #111418;
cursor: pointer;
white-space: nowrap;
background-color: #fbfdf6;
border: 0;
flex-direction: row;
justify-content: space-between;
padding: 0 4px;
display: flex;
position: relative;
}
.aiw-LowMenu-module-JfzGeq-lowMenuItem.aiw-LowMenu-module-JfzGeq-disabled {
cursor: not-allowed;
background-color: #c8c8c8;
}
.aiw-LowMenu-module-JfzGeq-lowMenuItem:not(.aiw-LowMenu-module-JfzGeq-disabled):hover {
background-color: #fbe9e6;
}
.aiw-LowMenu-module-JfzGeq-lowMenu-item .aiw-LowMenu-module-JfzGeq-caretHolder {
align-self: flex-end;
}
.aiw-LowMenu-module-JfzGeq-lowMenuItem .aiw-LowMenu-module-JfzGeq-caretHolder .aiw-LowMenu-module-JfzGeq-subMenu {
z-index: 1;
position: relative;
}
.aiw-ContextWindow-module-RIIF9a-contextWindowAnchor {
position: relative;
}
.aiw-ContextWindow-module-RIIF9a-contextWindow {
z-index: 2001;
resize: both;
background-color: #fafafa;
border: 1px solid #000;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
border-bottom-left-radius: 8px;
justify-content: flex-start;
max-width: 95vw;
max-height: 95vh;
margin: 0;
padding: 4px;
transition: opacity .25s linear;
position: absolute;
overflow: auto;
box-shadow: 6px 6px 6px #40404080;
}
.aiw-ContextWindow-module-RIIF9a-contextWindowTitle {
box-sizing: unset;
cursor: grab;
border-bottom: 1px dashed #000;
flex-direction: row;
align-items: center;
width: calc(100% - 8px);
height: 24px;
max-height: 24px;
margin: 0 4px 3px;
padding-bottom: 4px;
font-size: 18px;
font-weight: 600;
line-height: 24px;
display: flex;
}
.aiw-ContextWindow-module-RIIF9a-contextWindowTitle.aiw-ContextWindow-module-RIIF9a-moving {
cursor: grabbing;
}
.aiw-ContextWindow-module-RIIF9a-contextWindowTitleText {
text-overflow: ellipsis;
white-space: nowrap;
width: calc(100% - 16px);
display: inline-block;
overflow: hidden;
}
.aiw-ContextWindow-module-RIIF9a-contextWindowTitleClose {
color: #000;
cursor: pointer;
border-radius: 3px;
width: 16px;
height: 16px;
margin-left: 2px;
line-height: 16px;
display: flex;
}
.aiw-ContextWindow-module-RIIF9a-contextWindowTitleClose:hover {
color: #fff;
background-color: #000;
}
.aiw-ContextWindow-module-RIIF9a-contextWindowBody {
height: calc(100% - 40px);
margin-right: 4px;
padding-bottom: 8px;
overflow: auto;
}
.aiw-ContextWindow-module-RIIF9a-contextWindowBody::-webkit-scrollbar {
width: 8px;
height: 8px;
}
.aiw-ContextWindow-module-RIIF9a-contextWindowBody::-webkit-scrollbar-track {
background: #fff;
border-radius: 8px;
}
.aiw-ContextWindow-module-RIIF9a-contextWindowBody::-webkit-scrollbar-thumb {
background: #d3d3d3;
border: none;
border-radius: 8px;
}
.aiw-ContextWindow-module-RIIF9a-contextWindowBody::-webkit-scrollbar-thumb:hover {
background: gray;
}
/*# sourceMappingURL=main.css.map */