Files

41 lines
2.6 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* KeynoteStage (Cloud 1 chat): see KeynoteStage.jsx.
The h1 baseline sits near 38% of the screen; h1, lede and the ask fit the first screen at 1470×801 and 375×812, with
the product object starting under them as the one big thing. */
.kns { position: relative; padding: clamp(32px, calc(38svh - 128px), 200px) 0 clamp(72px, 11vw, 188px); }
.kns-g { row-gap: 44px; }
.kns-t { grid-column: 1 / span 7; align-self: end; display: flex; flex-direction: column; gap: 17px; }
.kns-r { grid-column: 8 / span 5; align-self: end; display: flex; flex-direction: column; gap: 17px; }
.kns-obj-wrap { grid-column: 1 / -1; position: relative; }
.kns-obj { transform-origin: 50% 0; }
.kns-acts .x-arrow { min-height: 44px; }
.kns-meta { display: flex; align-items: center; gap: 12px; }
.kns-meta-t { display: flex; flex-direction: column; gap: 4px; font: 500 13px/1.45 var(--mono); color: var(--quiet); letter-spacing: .02em; }
.kns-meta-t a { color: var(--body); }
/* the first screen arrives by CSS at first paint (html.js is set before paint); JS off, it simply stands */
.js .kns-in { animation: kns-in .5s var(--e-in) both; animation-delay: var(--d, 0s); }
.js .kns-obj-in { animation: kns-rise .9s var(--e-in) .18s both; }
@keyframes kns-in { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@keyframes kns-rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
/* paused: every CSS loop inside the object holds its frame (JS loops read useStagePause) */
.kns[data-paused] .kns-obj *, .kns[data-paused] .kns-obj *::before, .kns[data-paused] .kns-obj *::after { animation-play-state: paused !important; }
.kns.side .kns-g { row-gap: 27px; align-items: center; }
.kns.side .kns-t { grid-column: 1 / span 5; grid-row: 1; align-self: end; }
.kns.side .kns-r { grid-column: 1 / span 5; grid-row: 2; align-self: start; }
.kns.side .kns-obj-wrap { grid-column: 6 / -1; grid-row: 1 / span 2; margin-right: calc((100vw - min(100vw - 2 * var(--kn-g), 1152px)) / -2); }
.kns.side .kns-obj { transform-origin: 0 50%; }
.kns.side .kn-lede { max-width: 30ch; }
@media (max-width: 899px) {
.kns { padding: 24px 0 72px; }
.kns-g { row-gap: 20px; }
.kns-t, .kns-r, .kns.side .kns-t, .kns.side .kns-r { grid-column: 1 / -1; grid-row: auto; padding: 0; }
.kns-r { gap: 17px; }
.kns-obj-wrap, .kns.side .kns-obj-wrap { grid-column: 1 / -1; grid-row: auto; margin: 10px 0 0; }
.kns.side .kns-obj { transform-origin: 50% 0; }
.kns-acts > * { flex: 1 1 auto; }
.kns-acts .x-btn { width: 100%; }
.kns-meta-t { font-size: 14px; }
}