refactor: a part of heti css style

This commit is contained in:
radishzzz 2025-03-20 18:09:39 +00:00
parent 0f63770b69
commit 608bb0045f
13 changed files with 136 additions and 99 deletions

View file

@ -19,7 +19,7 @@ const marginBottom = {
---
<header class="mb-15 lg:hidden">
<h3 class={`${marginBottom} mt-3 text-5.375 c-secondary font-bold font-title`}>
<h2 class={`${marginBottom} mt-3 text-5.375 c-secondary font-bold font-title`}>
<!-- Fix text cropping issues during view transition on ios by adding a div tag -->
<div
class="box-content inline-block pr-1.25"
@ -30,7 +30,7 @@ const marginBottom = {
{headerTitle}
</a>
</div>
</h3>
</h2>
{headerSubtitle && (
<div

View file

@ -34,15 +34,17 @@ function getPostPath(post: Post) {
>
{/* post title */}
<a
class="hover:c-primary"
lg={isTag ? '' : 'font-medium text-4.5'}
href={getPostPath(post)}
transition:name={`post-${post.data.abbrlink || post.slug}-${lang}`}
data-disable-transition-on-theme
>
{post.data.title}
</a>
<h3 class="inline">
<a
class="hover:c-primary"
lg={isTag ? '' : 'font-medium text-4.5'}
href={getPostPath(post)}
transition:name={`post-${post.data.abbrlink || post.slug}-${lang}`}
data-disable-transition-on-theme
>
{post.data.title}
</a>
</h3>
{/* mobile post time */}
<div