Расширить свечение от письма на все колонки

Радиальный градиент: ellipse 120% 90% at 95% 50% — центр у правого
края, распространяется влево на всю ширину экрана, захватывая
колонку писем и сайдбар. Opacity 0.09 → 0.13.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
vodyanoysh 2026-04-01 00:07:49 +07:00
parent 49d6d49412
commit 49dd1b06fc
2 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@ body {
/* Rich gradient base — accent-glow is set dynamically via JS */
background:
radial-gradient(ellipse 60% 50% at 15% 15%, var(--accent-glow, rgba(168,230,0,0.08)) 0%, transparent 70%),
radial-gradient(ellipse 55% 65% at 78% 55%, var(--content-glow, transparent) 0%, transparent 65%),
radial-gradient(ellipse 120% 90% at 95% 50%, var(--content-glow, transparent) 0%, transparent 100%),
radial-gradient(ellipse 45% 55% at 88% 90%, rgba(0, 110, 220, 0.05) 0%, transparent 70%),
radial-gradient(ellipse 60% 40% at 50% 50%, rgba(80, 0, 160, 0.04) 0%, transparent 100%),
#09090e;

View file

@ -132,7 +132,7 @@ function onIframeLoad(): void {
const bodyColor = parseRgb(view.getComputedStyle(doc.body).backgroundColor)
if (bodyColor && bodyColor.a > 0.1 && bodyColor.r + bodyColor.g + bodyColor.b > 60) {
const { r, g, b } = bodyColor
setContentGlow(`rgba(${r},${g},${b},0.09)`)
setContentGlow(`rgba(${r},${g},${b},0.13)`)
return
}
@ -142,7 +142,7 @@ function onIframeLoad(): void {
const raw = firstEl.getAttribute('bgcolor') ?? view.getComputedStyle(firstEl).backgroundColor
const c = parseRgb(raw)
if (c && c.a > 0.1 && c.r + c.g + c.b > 60) {
setContentGlow(`rgba(${c.r},${c.g},${c.b},0.09)`)
setContentGlow(`rgba(${c.r},${c.g},${c.b},0.13)`)
return
}
}