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',