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
.definition-popover {
    min-width: 17rem;
    max-width: 20rem;
    padding: 0.5rem 0.75rem 0.75rem;

    .definition-popover-header {
        display: flex;
        flex-direction: column;

        .definition-popover-header-row {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            margin-bottom: 0.25rem;
            line-height: 2rem;

            .definition-popover-header-row-title {
                font-size: 0.6875rem;
                font-weight: 600;
                color: var(--color-text-secondary);
                text-transform: uppercase;
                letter-spacing: 0.05em;
            }
        }

        .definition-popover-title {
            display: flex;
            gap: 0.25rem;
            align-items: center;
            min-height: 1.5rem;
            margin-bottom: 0.25rem;
            font-size: 1.25rem;
            font-weight: 600;
            line-height: 1.2;
            white-space: normal;

            svg.taxonomy-icon {
                flex-shrink: 0;
                margin-right: 0.75rem;
                font-size: 1.5rem;

                &.taxonomy-icon-muted {
                    color: var(--color-text-secondary);
                }

                &.taxonomy-icon-verified {
                    color: var(--success);
                }

                &.taxonomy-icon-built-in {
                    color: var(--color-accent);
                }
            }
        }
    }

    .definition-popover-tags {
        margin: 0 !important;
    }

    .definition-popover-description {
        margin: 0.5rem 0;
        font-weight: 400;
        overflow-wrap: break-word;

        &.empty {
            font-style: italic;
            color: var(--color-text-secondary);
        }
    }

    .definition-popover-examples {
        margin-bottom: 0.25rem;
        font-style: italic;
    }

    .definition-popover-timemeta {
        margin: 0.5rem 0;

        .definition-popover-timemeta-user {
            display: inline-flex;
        }

        .definition-popover-timemeta-spacer {
            margin-right: 0.5rem;
        }
    }

    .DefinitionPopover {
        background-color: var(--color-bg-primary);

        .DefinitionPopover__label {
            align-items: flex-start;
            margin-top: 1rem;
            margin-bottom: 1rem;
            font-size: 0.6875rem;
            text-transform: uppercase;
        }
    }

    .definition-popover-edit-form {
        display: flex;
        flex-direction: column;

        .label-text {
            margin-right: 0.25rem;
            font-weight: 600;
        }

        .definition-popover-edit-form-label {
            margin-bottom: 0.5rem;
        }

        .definition-popover-edit-form-value {
            margin-bottom: 1rem;
        }
    }
}

.Popover.definition-popover--data-warehouse-funnel-wide .definition-popover {
    min-width: min(28rem, calc(100vw - 3rem));
    max-width: min(34rem, calc(100vw - 3rem));
}