refactor: tighten up css

created a bunch of utility classes and use those instead
This commit is contained in:
2023-02-12 20:57:46 +01:00
parent 6e7a836cbd
commit 380d3a7d89
9 changed files with 291 additions and 243 deletions

View File

@@ -5,9 +5,9 @@
export let size: string = 'var(--avatar-size)';
</script>
<div class="avatar" style:--color="{color}" style:--size="{size}" on:click>
<button class="avatar pa-0 border-0" style:--color="{color}" style:--size="{size}" on:click>
<img src="{avatar}" alt="{`${username}'s avatar`}">
</div>
</button>
<style>
.avatar, .avatar > img {