2024-02-19 22:53:42 +00:00
|
|
|
export default {
|
2024-03-12 08:19:23 +00:00
|
|
|
css: ({ dt }) => `
|
2024-02-19 22:53:42 +00:00
|
|
|
.p-splitter {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
2024-03-12 08:19:23 +00:00
|
|
|
border: 1px solid ${dt('splitter.border.color')};
|
|
|
|
background: ${dt('splitter.background')};
|
|
|
|
border-radius: ${dt('rounded.base')};
|
|
|
|
color: ${dt('splitter.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-splitter-vertical {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-splitter-gutter {
|
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
z-index: 1;
|
2024-03-12 08:19:23 +00:00
|
|
|
background: ${dt('splitter.gutter.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-splitter-gutter-handle {
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
background: transparent;
|
2024-03-12 08:19:23 +00:00
|
|
|
transition: outline-color ${dt('transition.duration')};
|
2024-02-19 22:53:42 +00:00
|
|
|
outline-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-splitter-gutter-handle:focus-visible {
|
2024-03-12 08:19:23 +00:00
|
|
|
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
|
|
|
|
outline-offset: ${dt('focus.ring.offset')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-splitter-horizontal.p-splitter-resizing {
|
|
|
|
cursor: col-resize;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-splitter-vertical.p-splitter-resizing {
|
|
|
|
cursor: row-resize;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-splitter-horizontal > .p-splitter-gutter > .p-splitter-gutter-handle {
|
|
|
|
height: 24px;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-splitter-vertical > .p-splitter-gutter > .p-splitter-gutter-handle {
|
|
|
|
width: 24px;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-splitter-horizontal > .p-splitter-gutter {
|
|
|
|
cursor: col-resize;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-splitter-vertical > .p-splitter-gutter {
|
|
|
|
cursor: row-resize;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-splitter-panel {
|
|
|
|
flex-grow: 1;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-splitter-panel-nested {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-splitter-panel .p-splitter {
|
|
|
|
flex-grow: 1;
|
|
|
|
border: 0 none;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|