design: postactions buttons: ghost -> secondary

This commit is contained in:
James Xylight committed 2025-08-07 15:54:39 -07:00
1 parent 29109efa64
commit 508d1d11ba
4 files changed
+9 -8

No files matched your search

@@ -128,7 +128,7 @@
>
<div
class={[
'absolute -inset-0.5 group-hover:-inset-1.5 opacity-0 group-hover:opacity-100 transition-all',
'absolute -inset-0.5 right-1 group-hover:right-0 group-hover:-inset-1.5 opacity-0 group-hover:opacity-100 transition-all',
'bg-slate-100 dark:bg-zinc-900 -z-10 rounded-full',
]}
>
@@ -73,7 +73,7 @@
)}
<div
class={[
buttonColor.ghost,
buttonColor.secondary,
'rounded-full h-full font-medium flex items-center *:p-2 relative',
'hover:bg-white dark:hover:bg-zinc-900 overflow-hidden transition-colors shrink-0',
'text-inherit! divide-x divide-slate-200 dark:divide-zinc-800 shadow-xs',
@@ -51,7 +51,7 @@
{#if editing}
<Modal bind:open={editing}>
{#snippet customTitle()}
<h1 class="text-2xl font-bold">Editing post</h1>
<h1 class="text-2xl font-bold">{$t('form.edit')}</h1>
{/snippet}
{#await import('../form/PostForm.svelte')}
<div class="mx-auto h-96 flex justify-center items-center">
@@ -94,7 +94,7 @@
size="custom"
href="{postLink(post.post)}#comments"
class="text-inherit! h-full px-3 relative"
color="ghost"
color="secondary"
rounding="pill"
target={settings.openLinksInNewTab ? '_blank' : ''}
title={$t('post.actions.comments')}
@@ -119,7 +119,7 @@
onclick={() => (debug = true)}
title="Debug"
size="custom"
color="ghost"
color="secondary"
rounding="pill"
class={buttonSquare}
animations={{ scale: true, large: true }}
@@ -135,7 +135,7 @@
{#snippet target(acting)}
<Button
size="custom"
color="ghost"
color="secondary"
rounding="pill"
loading={acting}
class={buttonSquare}
@@ -157,7 +157,7 @@
}}
size="custom"
class={buttonSquare}
color="ghost"
color="secondary"
rounding="pill"
loading={saving}
disabled={saving}
@@ -173,7 +173,7 @@
{#snippet target()}
<Button
title={$t('post.actions.more.label')}
color="ghost"
color="secondary"
rounding="pill"
size="custom"
class={buttonSquare}
@@ -34,6 +34,7 @@
class={[
'flex flex-col-reverse sm:flex-row overflow-hidden gap-4 embed-card z-0 relative',
'dark:bg-zinc-950 group-hover/link:bg-slate-50 dark:group-hover/link:bg-zinc-900 transition-colors',
'shadow-xs',
]}
rounding="2xl"
element="article"