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"> <script lang="ts">
import type { Alignment } from '$lib/components/ui/menu/menu.js' 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' import { scale } from 'svelte/transition'
export let open = false export let open = false
@@ -66,7 +66,7 @@
alignment alignment
)} )}
rounded-lg py-2 min-w-[16rem] my-2 flex flex-col shadow-sm 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}" {$$props.containerClass}"
> >
{#if open} {#if open}
+2 -2
View File
@@ -7,8 +7,8 @@
const buttonColors = { const buttonColors = {
secondary: secondary:
'hover:bg-neutral-100 hover:dark:bg-zinc-800 text-slate-800 fill-slate-800 dark:text-zinc-200 dark:fill-zinc-200', '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 text-red-500 hover:text-white', dangerSecondary: 'hover:bg-red-500/70 text-red-500 hover:text-white',
success: 'hover:bg-green-600 text-green-500 hover:text-white', success: 'hover:bg-green-600 text-green-500 hover:text-white',
warning: warning:
'hover:bg-yellow-500 dark:text-yellow-300 text-yellow-500 hover:text-black', '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 { toast } from '$lib/components/ui/toasts/toasts.js'
import { DEFAULT_INSTANCE_URL, LINKED_INSTANCE_URL } from '$lib/instance.js' import { DEFAULT_INSTANCE_URL, LINKED_INSTANCE_URL } from '$lib/instance.js'
import { getClient, validateInstance } from '$lib/lemmy.js' import { getClient, validateInstance } from '$lib/lemmy.js'
import { AtSymbol, Icon } from 'svelte-hero-icons'
let data = { let data = {
instance: DEFAULT_INSTANCE_URL, instance: DEFAULT_INSTANCE_URL,
@@ -67,7 +68,9 @@
required required
/> />
{#if !LINKED_INSTANCE_URL} {#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 <TextInput
id="instance_url" id="instance_url"
label="Instance URL" label="Instance URL"