Publish / publish (push) Successful in 5s
Under prefers-color-scheme: dark, use homepage's translucent magenta-to-blue gradient with exclusion instead of difference. --waves-dark-from/-to/-blend override it, --waves-blend the light blend. The texture is referenced once, so it's inlined once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
976 B
CSS
25 lines
976 B
CSS
/*
|
|
* @mtps/waves: a tiling wave texture under a colour gradient, blended with
|
|
* `difference`. Originally the page background of mtps/auth.
|
|
*
|
|
* Put class="waves" on any element (body included) and override the
|
|
* variables on it or any ancestor. Under prefers-color-scheme: dark it
|
|
* switches to the darker look from mtps/homepage, with its own variables.
|
|
*/
|
|
.waves {
|
|
--_waves-from: var(--waves-from, #f7b440);
|
|
--_waves-to: var(--waves-to, hsl(7 82% 63%));
|
|
--_waves-blend: var(--waves-blend, difference);
|
|
background:
|
|
linear-gradient(var(--waves-angle, -45deg), var(--_waves-from) 0%, var(--_waves-to) 100%),
|
|
url('./waves.png') 0 0 / var(--waves-tile, 400px) repeat;
|
|
background-blend-mode: var(--_waves-blend);
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
.waves {
|
|
--_waves-from: var(--waves-dark-from, hsl(304 97% 37% / 0.4));
|
|
--_waves-to: var(--waves-dark-to, hsl(218 97% 37% / 0.4));
|
|
--_waves-blend: var(--waves-dark-blend, exclusion);
|
|
}
|
|
}
|