diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 409b473..ab55bed 100755 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -9,7 +9,8 @@ "bradlc.vscode-tailwindcss", "csstools.postcss", "formulahendry.auto-rename-tag", - "heybourn.headwind" + "heybourn.headwind", + "github.vscode-github-actions" ], // List of extensions recommended by VS Code that should not be recommended for users of this workspace. "unwantedRecommendations": [] diff --git a/src/app.css b/src/app.css index b5c61c9..5393da7 100755 --- a/src/app.css +++ b/src/app.css @@ -1,3 +1,28 @@ @tailwind base; @tailwind components; @tailwind utilities; + +@layer components { + [type='checkbox']:checked { + background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%23262626' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e"); + } + + [type='radio']:checked { + background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%23262626' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e"); + } + + @media (prefers-color-scheme: dark) { + [type='checkbox']:checked { + background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%23d1d5db' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e"); + } + + [type='radio']:checked { + background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%23d1d5db' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e"); + } + } + + [type='checkbox'], + [type='radio'] { + @apply focus:ring-0 focus:ring-offset-0; + } +} diff --git a/src/app.html b/src/app.html index 32013d1..3b999cc 100755 --- a/src/app.html +++ b/src/app.html @@ -6,7 +6,7 @@ - + %sveltekit.head% diff --git a/src/components/TodoList.svelte b/src/components/TodoList.svelte index a16084f..4e7b716 100755 --- a/src/components/TodoList.svelte +++ b/src/components/TodoList.svelte @@ -59,13 +59,13 @@