mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-16 06:19:21 +00:00
* fix(studio): ship component styles as their own stylesheet for embedders Studio's component rules (timeline clips, loaders, range inputs, toasts and the rest) lived only in the app sheet, so a page that embeds Studio's components with theme.css got unstyled clips and dark-on-dark labels. They move unchanged into components.css, exported as @hyperframes/studio/components.css; studio.css keeps the app shell and imports it, so Studio's compiled CSS has the same rules. * test(studio): read moved component rules from components.css * test(studio): catch class rules nested in the app sheet's layers and media blocks
52 lines
1.5 KiB
CSS
52 lines
1.5 KiB
CSS
@import "tailwindcss" source(none);
|
|
@import "./palette-reset.css";
|
|
@import "./theme.css";
|
|
@import "./components.css";
|
|
|
|
/* Explicit sources: Studio's own TypeScript and its shell HTML. Automatic
|
|
* detection would walk up to the repo root and scan `data/projects`, gitignored user content. */
|
|
@source "../**/*.{ts,tsx}";
|
|
@source "../../index.html";
|
|
|
|
/* Tailwind v4 preflight no longer gives enabled buttons a pointer cursor. */
|
|
@layer base {
|
|
button:not(:disabled),
|
|
[role="button"]:not(:disabled) {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Studio is a dark-only UI — pin the user-agent color scheme to dark so that
|
|
* browser-native chrome (scrollbars, form controls, focus rings) picks the
|
|
* matching palette instead of defaulting to light against our #0a0a0a body.
|
|
*/
|
|
:root {
|
|
color-scheme: dark;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background: var(--color-bg-0);
|
|
color: var(--color-text-body);
|
|
font-family: var(--font-sans);
|
|
overflow: hidden;
|
|
}
|
|
|
|
#root {
|
|
width: 100vw;
|
|
/*
|
|
* 100vh on iOS Safari measures the LARGEST viewport (toolbars hidden) and
|
|
* stays fixed at that value, so when the toolbar is visible the bottom of
|
|
* the layout sits *under* it and anything at flex-end — the player
|
|
* controls row, notably — becomes untappable. `100dvh` follows the
|
|
* dynamic viewport, shrinking when the toolbar is shown so the bottom of
|
|
* #root lines up with the bottom of the visible area. Fallback to 100vh
|
|
* keeps older browsers (pre-Safari 15.4 / Firefox 101 / Chrome 108) on
|
|
* the existing behaviour.
|
|
*/
|
|
height: 100vh;
|
|
height: 100dvh;
|
|
}
|