opencode/packages/ui/src/components/resize-handle.css

47 lines
822 B
CSS
Raw Normal View History

2025-12-09 00:24:23 +08:00
[data-component="resize-handle"] {
position: absolute;
z-index: 10;
2026-01-02 08:26:34 +08:00
&::after {
content: "";
position: absolute;
opacity: 0;
transition: opacity 0.15s ease-in-out;
}
&:hover::after,
&:active::after {
opacity: 1;
}
2025-12-09 00:24:23 +08:00
&[data-direction="horizontal"] {
inset-block: 0;
inset-inline-end: 0;
width: 8px;
transform: translateX(50%);
cursor: ew-resize;
2026-01-02 08:26:34 +08:00
&::after {
width: 3px;
inset-block: 0;
inset-inline-start: 50%;
transform: translateX(-50%);
}
2025-12-09 00:24:23 +08:00
}
&[data-direction="vertical"] {
inset-inline: 0;
inset-block-start: 0;
height: 8px;
transform: translateY(-50%);
cursor: ns-resize;
2026-01-02 08:26:34 +08:00
&::after {
height: 3px;
inset-inline: 0;
inset-block-start: 50%;
transform: translateY(-50%);
}
2025-12-09 00:24:23 +08:00
}
}