From cd982e64595ab47a5fa71a40f8249893dbf867df Mon Sep 17 00:00:00 2001
From: mat <github@matdoes.dev>
Date: Wed, 16 Feb 2022 22:13:11 +0000
Subject: add

---
 src/lib/ListItemWithIcon.svelte | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 src/lib/ListItemWithIcon.svelte

(limited to 'src/lib/ListItemWithIcon.svelte')

diff --git a/src/lib/ListItemWithIcon.svelte b/src/lib/ListItemWithIcon.svelte
new file mode 100644
index 0000000..2c7aade
--- /dev/null
+++ b/src/lib/ListItemWithIcon.svelte
@@ -0,0 +1,18 @@
+<script lang="ts">
+	export let url: string
+</script>
+
+<li class="list-item-with-icon" style="background: url({url}) 0 0/1em no-repeat">
+	<slot />
+</li>
+
+<style>
+	.list-item-with-icon {
+		list-style: none;
+		padding-left: 1.2em;
+		position: relative;
+		right: 1.2em;
+		image-rendering: crisp-edges;
+		image-rendering: pixelated;
+	}
+</style>
-- 
cgit 

