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

78 lines
1.2 KiB
CSS
Raw Normal View History

2025-10-15 09:43:48 +08:00
.resizable-panel {
display: flex;
width: 100%;
height: 100%;
position: relative;
}
.resizable-panel-horizontal {
flex-direction: row;
}
.resizable-panel-vertical {
flex-direction: column;
}
.panel-section {
overflow: hidden;
position: relative;
}
.resizer {
2025-10-15 17:15:05 +08:00
background: var(--color-bg-elevated);
2025-10-15 09:43:48 +08:00
position: relative;
2025-10-15 17:15:05 +08:00
z-index: var(--z-index-base);
transition: background-color var(--transition-fast);
flex-shrink: 0;
2025-10-15 09:43:48 +08:00
}
.resizer:hover {
2025-10-15 17:15:05 +08:00
background: var(--color-primary-subtle);
}
.resizer:active {
background: var(--color-primary);
2025-10-15 09:43:48 +08:00
}
.resizer-horizontal {
width: 4px;
cursor: col-resize;
}
.resizer-vertical {
height: 4px;
cursor: row-resize;
}
.resizer-handle {
position: absolute;
background: transparent;
2025-10-15 17:15:05 +08:00
pointer-events: none;
2025-10-15 09:43:48 +08:00
}
.resizer-horizontal .resizer-handle {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 12px;
height: 40px;
}
.resizer-vertical .resizer-handle {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 40px;
height: 12px;
}
body.resizing {
cursor: col-resize !important;
user-select: none !important;
}
body.resizing-vertical {
cursor: row-resize !important;
user-select: none !important;
}