impr: fix font rendering

This commit is contained in:
James Xylight committed 2025-08-30 15:39:15 -07:00
1 parent e4c8d667f7
commit 5514e3eea2
3 files changed
+9 -26

No files matched your search

@@ -23,7 +23,9 @@
Icon,
} from 'svelte-hero-icons'
import InfiniteScroll from 'svelte-infinite-scroll'
import { expoOut } from 'svelte/easing'
import { SvelteSet } from 'svelte/reactivity'
import { fly } from 'svelte/transition'
interface Props {
posts: PostView[]
@@ -200,12 +202,11 @@
>
{#snippet item(row)}
<li
in:fly={row < 7
? { duration: 800, easing: expoOut, y: 24, delay: row * 50 }
: { opacity: 1, duration: 0 }}
data-index={row}
style={row < 7 ? `--anim-delay: ${row * 50}ms` : ''}
class={[
'relative post-container px-3 sm:px-6',
row < 7 && 'pop-in opacity-0',
]}
class={['relative post-container px-3 sm:px-6', row < 7 && '']}
>
<Post
bind:post={posts[row]}
@@ -278,21 +279,3 @@
{/if}
{@render children?.()}
</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>
+1 -1
View File
@@ -157,7 +157,7 @@
class="flex flex-col gap-4 h-full w-full flex-2/3"
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 />
{$t('common.back')}
</Button>
+2 -2
View File
@@ -11,7 +11,7 @@
--font-display: Inter, system-ui, sans-serif;
--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);
--spacing-22: 88px;
@@ -50,7 +50,7 @@
@keyframes pop-in {
0% {
transform: translateY(16px);
transform: translateY(12px);
opacity: 0;
}
100% {