feat: make menus blurred

This commit is contained in:
Xyphyn committed 2023-08-26 12:59:28 -07:00
1 parent 76884eba7c
commit 79342f2188
3 files changed
+8 -5

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
<script lang="ts">
import type { Alignment } from '$lib/components/ui/menu/menu.js'
import { expoOut } from 'svelte/easing'
import { backOut, bounceOut, circOut, expoOut, sineOut } from 'svelte/easing'
import { scale } from 'svelte/transition'
export let open = false
@@ -66,7 +66,7 @@
alignment
)}
rounded-lg py-2 min-w-[16rem] my-2 flex flex-col shadow-sm
bg-white dark:bg-zinc-900 border border-slate-200 dark:border-zinc-800
bg-white/50 dark:bg-zinc-900/50 backdrop-blur-xl border border-slate-200 dark:border-zinc-800
{$$props.containerClass}"
>
{#if open}
+2 -2
View File
@@ -7,8 +7,8 @@
const buttonColors = {
secondary:
'hover:bg-neutral-100 hover:dark:bg-zinc-800 text-slate-800 fill-slate-800 dark:text-zinc-200 dark:fill-zinc-200',
dangerSecondary: 'hover:bg-red-500 text-red-500 hover:text-white',
'hover:bg-neutral-100/20 hover:dark:bg-zinc-600/20 text-slate-800 fill-slate-800 dark:text-zinc-200 dark:fill-zinc-200',
dangerSecondary: 'hover:bg-red-500/70 text-red-500 hover:text-white',
success: 'hover:bg-green-600 text-green-500 hover:text-white',
warning:
'hover:bg-yellow-500 dark:text-yellow-300 text-yellow-500 hover:text-black',
+4 -1
View File
@@ -8,6 +8,7 @@
import { toast } from '$lib/components/ui/toasts/toasts.js'
import { DEFAULT_INSTANCE_URL, LINKED_INSTANCE_URL } from '$lib/instance.js'
import { getClient, validateInstance } from '$lib/lemmy.js'
import { AtSymbol, Icon } from 'svelte-hero-icons'
let data = {
instance: DEFAULT_INSTANCE_URL,
@@ -67,7 +68,9 @@
required
/>
{#if !LINKED_INSTANCE_URL}
<span class="mt-5 font-bold">@</span>
<span class="flex items-center font-bold mt-6">
<Icon src={AtSymbol} mini size="20" class="mt-auto" />
</span>
<TextInput
id="instance_url"
label="Instance URL"