design: postactions buttons: ghost -> secondary
This commit is contained in:
4 files changed
+9
-8
No files matched your search
@@ -128,7 +128,7 @@
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class={[
|
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',
|
'bg-slate-100 dark:bg-zinc-900 -z-10 rounded-full',
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -73,7 +73,7 @@
|
|||||||
)}
|
)}
|
||||||
<div
|
<div
|
||||||
class={[
|
class={[
|
||||||
buttonColor.ghost,
|
buttonColor.secondary,
|
||||||
'rounded-full h-full font-medium flex items-center *:p-2 relative',
|
'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',
|
'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',
|
'text-inherit! divide-x divide-slate-200 dark:divide-zinc-800 shadow-xs',
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
{#if editing}
|
{#if editing}
|
||||||
<Modal bind:open={editing}>
|
<Modal bind:open={editing}>
|
||||||
{#snippet customTitle()}
|
{#snippet customTitle()}
|
||||||
<h1 class="text-2xl font-bold">Editing post</h1>
|
<h1 class="text-2xl font-bold">{$t('form.edit')}</h1>
|
||||||
{/snippet}
|
{/snippet}
|
||||||
{#await import('../form/PostForm.svelte')}
|
{#await import('../form/PostForm.svelte')}
|
||||||
<div class="mx-auto h-96 flex justify-center items-center">
|
<div class="mx-auto h-96 flex justify-center items-center">
|
||||||
@@ -94,7 +94,7 @@
|
|||||||
size="custom"
|
size="custom"
|
||||||
href="{postLink(post.post)}#comments"
|
href="{postLink(post.post)}#comments"
|
||||||
class="text-inherit! h-full px-3 relative"
|
class="text-inherit! h-full px-3 relative"
|
||||||
color="ghost"
|
color="secondary"
|
||||||
rounding="pill"
|
rounding="pill"
|
||||||
target={settings.openLinksInNewTab ? '_blank' : ''}
|
target={settings.openLinksInNewTab ? '_blank' : ''}
|
||||||
title={$t('post.actions.comments')}
|
title={$t('post.actions.comments')}
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
onclick={() => (debug = true)}
|
onclick={() => (debug = true)}
|
||||||
title="Debug"
|
title="Debug"
|
||||||
size="custom"
|
size="custom"
|
||||||
color="ghost"
|
color="secondary"
|
||||||
rounding="pill"
|
rounding="pill"
|
||||||
class={buttonSquare}
|
class={buttonSquare}
|
||||||
animations={{ scale: true, large: true }}
|
animations={{ scale: true, large: true }}
|
||||||
@@ -135,7 +135,7 @@
|
|||||||
{#snippet target(acting)}
|
{#snippet target(acting)}
|
||||||
<Button
|
<Button
|
||||||
size="custom"
|
size="custom"
|
||||||
color="ghost"
|
color="secondary"
|
||||||
rounding="pill"
|
rounding="pill"
|
||||||
loading={acting}
|
loading={acting}
|
||||||
class={buttonSquare}
|
class={buttonSquare}
|
||||||
@@ -157,7 +157,7 @@
|
|||||||
}}
|
}}
|
||||||
size="custom"
|
size="custom"
|
||||||
class={buttonSquare}
|
class={buttonSquare}
|
||||||
color="ghost"
|
color="secondary"
|
||||||
rounding="pill"
|
rounding="pill"
|
||||||
loading={saving}
|
loading={saving}
|
||||||
disabled={saving}
|
disabled={saving}
|
||||||
@@ -173,7 +173,7 @@
|
|||||||
{#snippet target()}
|
{#snippet target()}
|
||||||
<Button
|
<Button
|
||||||
title={$t('post.actions.more.label')}
|
title={$t('post.actions.more.label')}
|
||||||
color="ghost"
|
color="secondary"
|
||||||
rounding="pill"
|
rounding="pill"
|
||||||
size="custom"
|
size="custom"
|
||||||
class={buttonSquare}
|
class={buttonSquare}
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
class={[
|
class={[
|
||||||
'flex flex-col-reverse sm:flex-row overflow-hidden gap-4 embed-card z-0 relative',
|
'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',
|
'dark:bg-zinc-950 group-hover/link:bg-slate-50 dark:group-hover/link:bg-zinc-900 transition-colors',
|
||||||
|
'shadow-xs',
|
||||||
]}
|
]}
|
||||||
rounding="2xl"
|
rounding="2xl"
|
||||||
element="article"
|
element="article"
|
||||||
|
|||||||
Reference in new issue
Block a user