34 lines
2.9 KiB
CSS
34 lines
2.9 KiB
CSS
.c3-couch { width: 100%; min-width: 0; --c3-couch-figure-width: 42px; --c3-couch-figure-height: 50px; }
|
|
.c3-couch-width { min-width: 0; margin-inline: calc(var(--control-compact-size) / 2); }
|
|
.c3-couch-scene { position: relative; min-height: 94px; max-width: 100%; margin: auto; }
|
|
.c3-couch-bench { position: absolute; inset: 13px 0 0; pointer-events: none; }
|
|
.c3-couch-bench > svg { display: block; width: 100%; height: auto; }
|
|
.c3-couch-people { position: relative; display: flex; justify-content: center; align-items: start; margin: 0 var(--c3-couch-gutter); }
|
|
.c3-couch-guests { display: flex; min-width: 0; padding-block: 11px 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-behavior: smooth; scrollbar-width: none; }
|
|
.c3-couch-guests:empty { display: none; }
|
|
.c3-couch-guests::-webkit-scrollbar { display: none; }
|
|
.c3-couch-seat { display: grid; flex: 0 0 var(--c3-couch-seat); min-width: 0; justify-items: center; align-content: start; scroll-snap-align: start; }
|
|
.c3-couch-people > .c3-couch-seat { padding-block: 11px 6px; }
|
|
.c3-couch-seat > .lr-comic-tip-wrap { width: 100%; min-width: 0; }
|
|
.c3-couch-seat .lr-pawn { width: 100%; min-width: 44px; min-height: 44px; }
|
|
.c3-couch-seat .lr-pawn > .lr-person { display: block; width: var(--c3-couch-figure-width); height: var(--c3-couch-figure-height); }
|
|
.c3-couch .c3-couch-seat .lr-pawn-name { max-width: calc(100% - 4px); margin-top: 9px; padding-inline: 4px; font-size: calc(var(--type-badge-size) / var(--c3-couch-zoom, 1)); line-height: calc(var(--type-badge-line) / var(--c3-couch-zoom, 1)); font-weight: var(--type-weight-strong); }
|
|
.c3-couch-seat .lr-pawn-name[data-guest] { max-width: calc(100% - 2px); padding-inline: 1px; white-space: normal; text-align: center; }
|
|
.c3-couch-seat .lr-pawn-name[data-guest] > span { display: inline-block; font-family: var(--mono); white-space: nowrap; }
|
|
.c3-couch-browse { position: absolute; top: 50px; }
|
|
.c3-couch-browse.is-previous { left: calc(var(--control-compact-size) / -2); }
|
|
.c3-couch-browse.is-next { right: calc(var(--control-compact-size) / -2); }
|
|
.c3-couch[data-compact] { --c3-couch-figure-width: 36px; --c3-couch-figure-height: 42px; }
|
|
.c3-couch[data-compact] .c3-couch-scene { min-height: 80px; }
|
|
.c3-couch[data-compact] .c3-couch-bench { inset-block-start: 10px; }
|
|
.c3-couch[data-compact] .c3-couch-bench > svg { transform: scaleY(.8); transform-origin: top; }
|
|
.c3-couch[data-compact] :is(.c3-couch-guests, .c3-couch-people > .c3-couch-seat) { padding-block: 7px 5px; }
|
|
.c3-couch[data-compact] .c3-couch-browse { top: 32px; }
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.c3-couch-guests { scroll-behavior: auto; }
|
|
}
|
|
|
|
/* Cancel idle sampling for fully clipped seats. The existing animationstart
|
|
handler realigns the pawn to wall time when its motion returns. */
|
|
.c3-couch-seat[data-pawn-clipped] :is(.lr-person-body, .lr-person-eyes) { animation-name: none; }
|