@synergy-design-system/components
Version:
This package provides the base of the Synergy Design System as native web components. It uses [lit](https://www.lit.dev) and parts of [shoelace](https://shoelace.style/). Synergy officially supports the latest two versions of all major browsers (as define
62 lines (52 loc) • 1.45 kB
JavaScript
// src/components/tooltip/tooltip.styles.ts
import { css } from "lit";
var tooltip_styles_default = css`
/* stylelint-disable */
:host {
--max-width: 20rem;
--hide-delay: 0ms;
--show-delay: 150ms;
display: contents;
}
.tooltip {
--arrow-size: var(--syn-tooltip-arrow-size);
--arrow-color: var(--syn-tooltip-background-color);
}
.tooltip::part(popup) {
z-index: var(--syn-z-index-tooltip);
}
.tooltip[placement^='top']::part(popup) {
transform-origin: bottom;
}
.tooltip[placement^='bottom']::part(popup) {
transform-origin: top;
}
.tooltip[placement^='left']::part(popup) {
transform-origin: right;
}
.tooltip[placement^='right']::part(popup) {
transform-origin: left;
}
.tooltip__body {
display: block;
width: max-content;
max-width: var(--max-width);
border-radius: var(--syn-tooltip-border-radius);
background-color: var(--syn-tooltip-background-color);
font-family: var(--syn-tooltip-font-family);
font-size: var(--syn-tooltip-font-size);
font-weight: var(--syn-tooltip-font-weight);
line-height: var(--syn-tooltip-line-height);
text-align: start;
white-space: normal;
color: var(--syn-tooltip-color);
padding: var(--syn-tooltip-padding);
pointer-events: none;
user-select: none;
-webkit-user-select: none;
}
`;
export {
tooltip_styles_default
};
//# sourceMappingURL=chunk.O644HRW3.js.map