impr: fix font rendering
This commit is contained in:
3 files changed
+9
-26
No files matched your search
@@ -23,7 +23,9 @@
|
|||||||
Icon,
|
Icon,
|
||||||
} from 'svelte-hero-icons'
|
} from 'svelte-hero-icons'
|
||||||
import InfiniteScroll from 'svelte-infinite-scroll'
|
import InfiniteScroll from 'svelte-infinite-scroll'
|
||||||
|
import { expoOut } from 'svelte/easing'
|
||||||
import { SvelteSet } from 'svelte/reactivity'
|
import { SvelteSet } from 'svelte/reactivity'
|
||||||
|
import { fly } from 'svelte/transition'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
posts: PostView[]
|
posts: PostView[]
|
||||||
@@ -200,12 +202,11 @@
|
|||||||
>
|
>
|
||||||
{#snippet item(row)}
|
{#snippet item(row)}
|
||||||
<li
|
<li
|
||||||
|
in:fly={row < 7
|
||||||
|
? { duration: 800, easing: expoOut, y: 24, delay: row * 50 }
|
||||||
|
: { opacity: 1, duration: 0 }}
|
||||||
data-index={row}
|
data-index={row}
|
||||||
style={row < 7 ? `--anim-delay: ${row * 50}ms` : ''}
|
class={['relative post-container px-3 sm:px-6', row < 7 && '']}
|
||||||
class={[
|
|
||||||
'relative post-container px-3 sm:px-6',
|
|
||||||
row < 7 && 'pop-in opacity-0',
|
|
||||||
]}
|
|
||||||
>
|
>
|
||||||
<Post
|
<Post
|
||||||
bind:post={posts[row]}
|
bind:post={posts[row]}
|
||||||
@@ -278,21 +279,3 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{@render children?.()}
|
{@render children?.()}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<style lang="postcss">
|
|
||||||
@keyframes popIn {
|
|
||||||
from {
|
|
||||||
transform: translateY(24px);
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
transform: translateY(0px);
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.pop-in {
|
|
||||||
animation: popIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards
|
|
||||||
var(--anim-delay);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -157,7 +157,7 @@
|
|||||||
class="flex flex-col gap-4 h-full w-full flex-2/3"
|
class="flex flex-col gap-4 h-full w-full flex-2/3"
|
||||||
onsubmit={preventDefault(submit)}
|
onsubmit={preventDefault(submit)}
|
||||||
>
|
>
|
||||||
<Button href="/signup" class="inline-block mb-4 w-max" rounding="pill">
|
<Button href="/accounts" class="inline-block mb-4 w-max" rounding="pill">
|
||||||
<Icon src={ArrowLeft} size="16" micro />
|
<Icon src={ArrowLeft} size="16" micro />
|
||||||
{$t('common.back')}
|
{$t('common.back')}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
+2
-2
@@ -11,7 +11,7 @@
|
|||||||
--font-display: Inter, system-ui, sans-serif;
|
--font-display: Inter, system-ui, sans-serif;
|
||||||
--font-mono: monospace;
|
--font-mono: monospace;
|
||||||
|
|
||||||
--animate-pop-in: pop-in 0.8s cubic-bezier(0.075, 0.82, 0.165, 1) forwards;
|
--animate-pop-in: pop-in 0.8s cubic-bezier(0.075, 0.82, 0.165, 1);
|
||||||
|
|
||||||
--ease-cubic: cubic-bezier(0.075, 0.82, 0.165, 1);
|
--ease-cubic: cubic-bezier(0.075, 0.82, 0.165, 1);
|
||||||
--spacing-22: 88px;
|
--spacing-22: 88px;
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
|
|
||||||
@keyframes pop-in {
|
@keyframes pop-in {
|
||||||
0% {
|
0% {
|
||||||
transform: translateY(16px);
|
transform: translateY(12px);
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
100% {
|
100% {
|
||||||
|
|||||||
Reference in new issue
Block a user