Skip to content

: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.

2.9 KB
Raw Blame
@import '../../styles/base';

*,
*::before,
*::after {
    --z-toolbar: 2147483020;

    box-sizing: border-box;
}

:host {
    // reset fonts
    all: initial;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-primary);

    // @include root-variables;
}

// Re-evaluate text color within themed containers so dark mode
// descendants inherit the correct (light) text color instead of
// the light-mode value computed on :host.
[theme] {
    color: var(--color-text-primary);
}

.LemonModal__overlay--force-modal-above-popovers {
    z-index: calc(var(--z-toolbar) + var(--z-force-modal-above-popovers)) !important;
}

.section-title {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: bold;
    color: hsl(220deg 15% 49% / 100%);
    text-transform: uppercase;
}

.fade-component-container {
    position: fixed;
    z-index: var(--z-toolbar);
}

.Toastify__toast-container {
    z-index: calc(var(--z-toolbar) + 20);
}

.toolbar-global-fade-container {
    position: absolute;
    inset: 0;
    pointer-events: none;

    > * {
        pointer-events: auto;
    }
}

.Popover {
    z-index: calc(var(--z-toolbar) + var(--z-popover)) !important;
}

.Tooltip {
    z-index: calc(var(--z-toolbar) + var(--z-tooltip)) !important;
}

// Product Tours animations
// Following animation guidelines: ease-out for entering elements, max 0.3s duration

$ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);

@keyframes Toolbar__SlideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes Toolbar__Pop {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes Toolbar__BlurRight {
    from {
        filter: blur(4px);
        opacity: 0;
        transform: translateX(-8px);
    }

    to {
        filter: blur(0);
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes Toolbar__Fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.toolbar-animate-slide-up {
    animation: Toolbar__SlideUp 0.2s $ease-out-quart forwards;
    will-change: transform, opacity;

    @media (prefers-reduced-motion: reduce) {
        animation: Toolbar__Fade 0.2s $ease-out-quart forwards;
    }
}

.toolbar-animate-pop {
    animation: Toolbar__Pop 0.2s $ease-out-quart forwards;
    will-change: transform, opacity;

    @media (prefers-reduced-motion: reduce) {
        animation: Toolbar__Fade 0.2s $ease-out-quart forwards;
    }
}

.toolbar-animate-blur-right {
    animation: Toolbar__BlurRight 0.2s $ease-out-quart forwards;
    will-change: transform, opacity, filter;

    @media (prefers-reduced-motion: reduce) {
        animation: Toolbar__Fade 0.2s $ease-out-quart forwards;
    }
}

.toolbar-animate-fade {
    animation: Toolbar__Fade 0.15s $ease-out-quart forwards;
    will-change: opacity;
}