Skip to content

Commit

Permalink
use halt instead of palt
Browse files Browse the repository at this point in the history
  • Loading branch information
yuheiy committed Nov 30, 2024
1 parent b322ad3 commit 3f023c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/components/PageHeader.astro
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const Title = isHome ? 'p' : 'h1';
</Nav>

<Title
class="text-pretty text-2xl font-bold leading-tight kerning-all [hanging-punctuation:none] [word-break:auto-phrase]"
class="text-pretty text-2xl font-bold leading-tight [font-feature-settings:'halt'] [hanging-punctuation:none] [word-break:auto-phrase]"
set:html={title}
/>

Expand Down
18 changes: 3 additions & 15 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -118,35 +118,23 @@ const latestBlogItems = await Promise.all(

<main>
<section class="wrapper">
<h2
class="mb-12 text-lg font-bold leading-tight text-dynamic-muted [hanging-punctuation:none]"
>
主な投稿
</h2>
<h2 class="mb-12 text-lg font-bold leading-tight text-dynamic-muted">主な投稿</h2>

<DetailsList headingLevel={3} items={primaryItems} />
</section>

<div class="my-16 border-t"></div>

<section class="wrapper">
<h2
class="mb-12 text-lg font-bold leading-tight text-dynamic-muted [hanging-punctuation:none]"
>
プロジェクト
</h2>
<h2 class="mb-12 text-lg font-bold leading-tight text-dynamic-muted">プロジェクト</h2>

<DetailsList headingLevel={3} items={projectItems} />
</section>

<div class="my-16 border-t"></div>

<section class="wrapper">
<h2
class="mb-12 text-lg font-bold leading-tight text-dynamic-muted [hanging-punctuation:none]"
>
最近のブログ
</h2>
<h2 class="mb-12 text-lg font-bold leading-tight text-dynamic-muted">最近のブログ</h2>

<DetailsList headingLevel={3} items={latestBlogItems} clampDescription />
</section>
Expand Down
3 changes: 1 addition & 2 deletions src/styles/components/prose.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@
hanging-punctuation: none;
font-weight: bold;
line-height: theme(lineHeight.tight);
font-feature-settings: 'halt';
text-wrap: pretty;
word-break: auto-phrase;
}

h2 {
font-size: theme(fontSize.2xl);
font-kerning: normal;
font-feature-settings: 'palt';
}

h3 {
Expand Down

0 comments on commit 3f023c9

Please sign in to comment.