auth: fade the footer band at its sides too
Some checks failed
Build pull request / Build pull request (pull_request) Has been cancelled
Some checks failed
Build pull request / Build pull request (pull_request) Has been cancelled
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
eb6efeee91
commit
56bc40abe6
1 changed files with 37 additions and 0 deletions
|
|
@ -90,6 +90,43 @@ globalStyle(`${scene} ${AuthCardContent}`, {
|
|||
gap: config.space.S500,
|
||||
});
|
||||
|
||||
// The footer line sits on the terrain, which is dark at its foot in every sky (luminance 0.02 to 0.04 at dusk), where
|
||||
// the sky's dark ink is unreadable. Over the scene it gets a blurred band tinted with the plate's fill and the plate's
|
||||
// ink and link, faded out at its edges so it reads as haze and not as a bar: the scene shows through and round it.
|
||||
// The tint (FOOTER_TINT) is checked against the ink in skyTheme.test.ts.
|
||||
const FADE_Y =
|
||||
'linear-gradient(to bottom, transparent, #000 16px, #000 calc(100% - 16px), transparent)';
|
||||
const FADE_X =
|
||||
'linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent)';
|
||||
globalStyle(`${scene} ${AuthFooter}`, {
|
||||
paddingTop: config.space.S500,
|
||||
paddingBottom: config.space.S500,
|
||||
backgroundColor: `color-mix(in srgb, var(--sky-bubble, #0d1a26) ${
|
||||
FOOTER_TINT * 100
|
||||
}%, transparent)`,
|
||||
backdropFilter: 'blur(12px)',
|
||||
WebkitBackdropFilter: 'blur(12px)',
|
||||
maskImage: `${FADE_Y}, ${FADE_X}`,
|
||||
WebkitMaskImage: `${FADE_Y}, ${FADE_X}`,
|
||||
maskComposite: 'intersect',
|
||||
WebkitMaskComposite: 'source-in',
|
||||
color: 'var(--sky-bubble-text, #b7c7d9)',
|
||||
borderRadius: config.radii.R500,
|
||||
// A faint inner edge, so a pane this clear still reads as a surface.
|
||||
borderColor: 'rgba(183, 199, 217, 0.14)',
|
||||
});
|
||||
globalStyle(`${scene} body:not(.gamecult-theme) ${AuthCard}`, {
|
||||
vars: { '--tc-link': '#99c7ff' },
|
||||
});
|
||||
globalStyle(`${scene} ${AuthHeader}`, {
|
||||
backgroundColor: 'transparent',
|
||||
});
|
||||
globalStyle(`${scene} ${AuthCardContent}`, {
|
||||
paddingTop: config.space.S500,
|
||||
paddingBottom: config.space.S400,
|
||||
gap: config.space.S500,
|
||||
});
|
||||
|
||||
// The footer line sits on the terrain, which is dark at its foot in every sky (luminance 0.02 to 0.04 at dusk), where
|
||||
// the sky's dark ink is unreadable. Over the scene it gets a blurred band tinted with the plate's fill and the plate's
|
||||
// ink and link, faded out at its edges so it reads as haze and not as a bar: the scene shows through and round it.
|
||||
|
|
|
|||
Loading…
Reference in a new issue