Korbs/Contour
Archived
Template
1
Fork 0
This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
Contour/public/@shoelace-style/shoelace/cdn/chunks/chunk.IDFVJOTW.js
2024-01-30 10:59:28 -05:00

90 lines
1.7 KiB
JavaScript

import {
component_styles_default
} from "./chunk.K23QWHWK.js";
import {
i
} from "./chunk.CXZZ2LVK.js";
// src/components/split-panel/split-panel.styles.ts
var split_panel_styles_default = i`
${component_styles_default}
:host {
--divider-width: 4px;
--divider-hit-area: 12px;
--min: 0%;
--max: 100%;
display: grid;
}
.start,
.end {
overflow: hidden;
}
.divider {
flex: 0 0 var(--divider-width);
display: flex;
position: relative;
align-items: center;
justify-content: center;
background-color: var(--sl-color-neutral-200);
color: var(--sl-color-neutral-900);
z-index: 1;
}
.divider:focus {
outline: none;
}
:host(:not([disabled])) .divider:focus-visible {
background-color: var(--sl-color-primary-600);
color: var(--sl-color-neutral-0);
}
:host([disabled]) .divider {
cursor: not-allowed;
}
/* Horizontal */
:host(:not([vertical], [disabled])) .divider {
cursor: col-resize;
}
:host(:not([vertical])) .divider::after {
display: flex;
content: '';
position: absolute;
height: 100%;
left: calc(var(--divider-hit-area) / -2 + var(--divider-width) / 2);
width: var(--divider-hit-area);
}
/* Vertical */
:host([vertical]) {
flex-direction: column;
}
:host([vertical]:not([disabled])) .divider {
cursor: row-resize;
}
:host([vertical]) .divider::after {
content: '';
position: absolute;
width: 100%;
top: calc(var(--divider-hit-area) / -2 + var(--divider-width) / 2);
height: var(--divider-hit-area);
}
@media (forced-colors: active) {
.divider {
outline: solid 1px transparent;
}
}
`;
export {
split_panel_styles_default
};