The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
.positioner {
z-index: var(--t-last-layer-z-index);
&[data-anchor-hidden] {
visibility: hidden;
}
}
.popup {
backdrop-filter: var(--t-blur-strong);
background-color: var(--t-tooltip-background);
border-radius: var(--t-border-radius-md);
box-sizing: border-box;
box-shadow: var(--t-box-shadow-light);
color: var(--t-tooltip-color);
font-size: var(--t-font-size-sm);
font-weight: var(--t-font-weight-regular);
overflow: visible;
padding: var(--t-spacing-1) var(--t-spacing-1_5);
word-break: break-word;
inline-size: max-content;
max-inline-size: min(
var(--tw-tooltip-max-width, 300px),
var(--available-width)
);
will-change: opacity;
transition: opacity 0.15s ease-out;
&[data-starting-style],
&[data-ending-style] {
opacity: 0;
}
// No exit transition: the shared tooltip is reused across anchors, and a
// fading node lingers while the next one opens, which strands references to
// the old element. Scope any exit animation per instance instead.
&[data-ending-style] {
transition-duration: 0s;
}
&[data-with-exit-animation] {
transition:
opacity duration(fast) ease-out,
transform duration(fast) cubic-bezier(0.2, 0, 0, 1);
&[data-ending-style] {
transition-duration: duration(fast);
}
&[data-starting-style],
&[data-ending-style] {
&[data-side='top'] {
transform: translateY(var(--t-spacing-1));
}
&[data-side='bottom'] {
transform: translateY(calc(-1 * var(--t-spacing-1)));
}
&[data-side='left'] {
transform: translateX(var(--t-spacing-1));
}
&[data-side='right'] {
transform: translateX(calc(-1 * var(--t-spacing-1)));
}
}
}
}
.content {
display: flex;
flex-direction: column;
line-height: var(--t-spacing-4);
}
.title {
align-items: center;
display: flex;
font-weight: var(--t-font-weight-medium);
gap: var(--t-spacing-1);
min-inline-size: 0;
span {
min-inline-size: 0;
overflow-wrap: anywhere;
}
}
.icon {
flex-shrink: 0;
align-items: center;
display: inline-flex;
& > svg {
block-size: calc(var(--t-icon-size-sm) * 1px);
inline-size: calc(var(--t-icon-size-sm) * 1px);
}
}
.description {
color: var(--t-tooltip-description-color);
overflow-wrap: anywhere;
white-space: pre-wrap;
}
.arrow {
--tw-tooltip-arrow-size: 6px;
position: absolute;
background: inherit;
&[data-side='top'],
&[data-side='bottom'] {
width: calc(2 * var(--tw-tooltip-arrow-size));
height: var(--tw-tooltip-arrow-size);
}
&[data-side='left'],
&[data-side='right'] {
width: var(--tw-tooltip-arrow-size);
height: calc(2 * var(--tw-tooltip-arrow-size));
}
&[data-side='top'] {
bottom: calc(-1 * var(--tw-tooltip-arrow-size));
clip-path: polygon(0 0, 100% 0, 50% 100%);
}
&[data-side='bottom'] {
top: calc(-1 * var(--tw-tooltip-arrow-size));
clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
&[data-side='left'] {
right: calc(-1 * var(--tw-tooltip-arrow-size));
clip-path: polygon(0 0, 100% 50%, 0 100%);
}
&[data-side='right'] {
left: calc(-1 * var(--tw-tooltip-arrow-size));
clip-path: polygon(100% 0, 100% 100%, 0 50%);
}
}
@media (prefers-reduced-motion: reduce) {
.popup,
.popup[data-with-exit-animation] {
transition: none;
}
}