diff --git a/src/index.css b/src/index.css index 442bd2d..3d613b9 100644 --- a/src/index.css +++ b/src/index.css @@ -14,4 +14,8 @@ body, html { * { box-sizing: border-box; +} + +a { + color: white; } \ No newline at end of file diff --git a/src/lib/BackgroundGrid.svelte b/src/lib/BackgroundGrid.svelte index 90b99b9..6f2e438 100644 --- a/src/lib/BackgroundGrid.svelte +++ b/src/lib/BackgroundGrid.svelte @@ -16,7 +16,8 @@ let verticalMargin = MARGIN_SIZE; let unloaded = true; - let transparent = false; + export let transparent = false; + export let subdued = false; function updateCounts() { const gridWidth = window.innerWidth - MARGIN_SIZE; @@ -72,6 +73,7 @@ class="background" class:unloaded class:transparent + class:subdued class:even-vertical={verticalCount % 2 === 0} style="--horizontal-count: {horizontalCount}; --vertical-count: {verticalCount}; @@ -266,6 +268,13 @@ } } + .background.subdued { + & .edge, + & .corner { + opacity: 0.33; + } + } + .grid { display: grid; grid-template-columns: repeat(var(--horizontal-count), var(--block-size)); diff --git a/src/lib/TestCard.svelte b/src/lib/TestCard.svelte index da59543..72602ed 100644 --- a/src/lib/TestCard.svelte +++ b/src/lib/TestCard.svelte @@ -6,6 +6,8 @@ import BrightnessGradient from '$lib/BrightnessGradient.svelte'; import { onMount } from 'svelte'; + export let full = false; + let sizes = { blockSize: 64, horizontalCount: 16, @@ -30,6 +32,7 @@