mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 03:56:19 +02:00
style: add letter spacing to cjk header, navbar and post titles
This commit is contained in:
parent
385b5508aa
commit
9c1d2241d4
8 changed files with 25 additions and 64 deletions
|
@ -17,7 +17,7 @@ const SubtitleTag = isPost ? 'div' : 'h2'
|
|||
<header
|
||||
class:list={[
|
||||
isPost ? 'mb-10.8' : 'mb-10.5',
|
||||
'lg:(uno-desktop-column top-20)',
|
||||
'cjk:tracking-0.02em lg:(uno-desktop-column top-20)',
|
||||
]}
|
||||
>
|
||||
<TitleTag
|
||||
|
|
|
@ -37,7 +37,7 @@ const navItems = [
|
|||
class:list={[
|
||||
isPost ? 'hidden lg:block' : '',
|
||||
'mb-10.5 text-3.6 font-semibold leading-8.75 font-navbar',
|
||||
'lg:(uno-desktop-column text-4 leading-9.72 bottom-50)',
|
||||
'cjk:tracking-0.02em lg:(uno-desktop-column text-4 leading-9.72 bottom-50)',
|
||||
]}
|
||||
>
|
||||
<ul>
|
||||
|
|
|
@ -39,7 +39,7 @@ function getPostPath(post: Post) {
|
|||
{/* post title */}
|
||||
<h3 class="inline">
|
||||
<a
|
||||
class="hover:c-primary"
|
||||
class="cjk:tracking-0.02em hover:c-primary"
|
||||
lg={isHome ? 'font-medium text-4.5' : ''}
|
||||
href={getPostPath(post)}
|
||||
transition:name={`post-${post.data.abbrlink || post.id}-${lang}`}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue