:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
.AnnotationsOverlay {
position: absolute;
top: var(--annotations-overlay-chart-area-height);
left: var(--annotations-overlay-chart-area-left);
}
.AnnotationsBadge {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
width: 1.5rem;
height: 1.5rem;
margin-left: var(--annotations-badge-left);
appearance: none !important;
cursor: pointer;
background: none;
border: none;
transform: translate(-50%, -50%);
> .LemonBadge {
border-color: var(--color-bg-surface-primary); // Matching the chart background
transition: transform 200ms ease; // Same as LemonBadge's transition
// Override .LemonBadge--position-self-centered
transform: scale(var(--annotations-badge-scale));
transform-origin: center;
}
// Hug the emoji with a soft blurred halo of the chart background instead of a
// solid disc. The drop-shadow follows the glyph alpha, so it crops to the icon
// shape and fades out rather than hiding the axis line behind it.
> .LemonBadge.AnnotationsBadge__emoji {
--lemon-badge-size: 1.5rem;
--lemon-badge-font-size: 1rem;
color: inherit;
background: none;
filter: drop-shadow(0 0 1px var(--color-bg-surface-primary))
drop-shadow(0 0 2px var(--color-bg-surface-primary)) drop-shadow(0 0 3px var(--color-bg-surface-primary));
border-color: transparent;
}
}
.AnnotationsPopover {
--annotations-popover-width: 30rem;
z-index: var(--z-annotation-popover) !important;
transition:
left 200ms ease,
opacity 100ms ease,
transform 100ms ease;
// Shrink to the popover height, so that only .LemonModal__content scrolls
.LemonModal {
flex: 1 1 auto;
min-width: var(--annotations-popover-width);
max-width: var(--annotations-popover-width);
min-height: 0;
max-height: 100%;
margin: 0;
border: none;
box-shadow: none;
}
}
.AnnotationCard {
// TextContent scrolls by default. In the popover, only .LemonModal__content scrolls.
.RichMarkdownEditor,
.LemonMarkdown {
overflow: visible;
overflow-wrap: anywhere;
}
.profile-package {
vertical-align: bottom;
}
h5 {
margin: 0;
}
}