diff --git a/src/lib/components/ratio/index.svelte b/src/lib/components/ratio/index.svelte index cc2440d..e0405fe 100644 --- a/src/lib/components/ratio/index.svelte +++ b/src/lib/components/ratio/index.svelte @@ -21,7 +21,8 @@ let alphaWarning = $derived.by(() => { if ($bg.alpha !== 1) return 'Alpha is not considered when the background is not opaque.'; - if ($fg.alpha !== 1) return 'This ratio is our best estimate with transparency.'; + if ($fg.alpha !== 1) + return 'This ratio is our best estimate with transparency.'; return null; }); @@ -90,7 +91,9 @@ @use 'config'; [data-layout='results'] { - background-color: var(--bgcolor); + background: linear-gradient(90deg, var(--bgcolor), var(--bgcolor)), + url('data:image/svg+xml;utf8,'); + background-size: 30px 30px; color: var(--fgcolor); display: grid; gap: var(--result-layout-gap, var(--shim));