: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
.SessionRecordingPlayerWrapper {
position: relative;
display: flex;
flex-direction: row;
width: 100%;
height: 100%;
overflow: hidden;
&:fullscreen {
background-color: var(--color-bg-surface-primary);
}
.SessionRecordingPlayer__sidebar {
position: relative;
display: flex;
flex-direction: column;
flex-shrink: 0;
min-width: 20rem;
max-width: 95%;
padding-left: 0.5rem;
&--collapsed {
min-width: 0;
padding-left: 0;
}
&__content {
display: flex;
flex: 1;
flex-direction: column;
overflow: hidden;
background-color: var(--color-bg-surface-primary);
border: 1px solid var(--color-border-primary);
border-radius: var(--radius);
}
}
// The watch layout stacks the player over a scrolling panel. The player's share is of the wrapper, not the viewport.
&--watch {
flex-direction: column;
overflow: hidden;
container-type: size;
.SessionRecordingPlayerWrapper__column {
display: flex;
flex: 1;
flex-direction: column;
min-width: 0;
min-height: 0;
}
&-right-dock {
flex-direction: row;
}
.SessionRecordingPlayerWrapper__player {
z-index: 2;
display: flex;
flex: 0 0 clamp(16rem, 70cqh, 60rem);
background: var(--color-bg-surface-primary);
&--fullscreen {
position: static;
flex: 1;
height: auto;
}
@media (prefers-reduced-motion: no-preference) {
transition: flex-grow 200ms ease;
}
}
&-panel-collapsed .SessionRecordingPlayerWrapper__player {
flex-grow: 1;
}
&-right-dock .SessionRecordingPlayer__sidebar,
.SessionRecordingPlayerWrapper__dock-in {
@media (prefers-reduced-motion: no-preference) {
animation: SessionRecordingPlayerWrapper__dock-in 200ms ease-out;
}
}
}
&--stacked-vertically {
flex-direction: column;
.SessionRecordingPlayer__sidebar {
min-width: 100%;
max-width: 100%;
max-height: 60%;
padding-top: 0.5rem;
padding-left: 0;
&--collapsed {
padding-top: 0;
}
}
}
}
.SessionRecordingPlayer {
position: relative;
display: flex;
flex: 1;
flex-direction: row;
width: 100%;
height: 100%;
overflow: hidden;
background-color: var(--color-bg-surface-primary);
border: 1px solid var(--color-border-primary);
border-radius: var(--radius);
&--no-border {
border: none;
border-radius: 0;
}
.SessionRecordingPlayer__body {
position: relative;
z-index: 0;
min-width: 1px;
height: 100%;
overflow: hidden;
background-color: var(--color-bg-surface-primary);
}
.SessionRecordingPlayer__main {
display: flex;
flex: 1;
flex-direction: column;
overflow: hidden;
}
&--fullscreen {
overflow-y: auto;
background-color: var(--color-bg-surface-primary);
border: none;
border-radius: 0;
.SessionRecordingPlayer__body {
height: 100%;
margin: 0;
border-radius: 0;
}
}
.LemonModal & {
.SessionRecordingPlayer__body {
height: calc(90vh - 15rem);
}
}
}
.PlayerControlSeekIcon {
position: relative;
display: flex;
.PlayerControlSeekIcon__seconds {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 6px;
font-weight: bold;
text-align: center;
}
.PlayerControlSeekIcon__icon {
font-size: 1.3rem;
&--forward {
transform: rotateY(180deg);
}
}
}
.SkipToNextButton {
position: relative;
&--animating {
&::after {
position: absolute;
inset: -2px;
content: '';
border: 2px solid var(--primary);
border-radius: 4px;
animation: SkipToNextButton__Countdown 3s linear forwards;
}
}
}
@keyframes SkipToNextButton__Countdown {
0% {
clip-path: inset(0 0 0 0);
opacity: 1;
}
100% {
clip-path: inset(0 0 0 100%);
opacity: 1;
}
}
@keyframes SessionRecordingPlayerWrapper__dock-in {
from {
opacity: 0;
translate: 0 0.5rem;
}
}