mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 11:41:17 +02:00
style: optimize icons
This commit is contained in:
parent
610c86db0d
commit
85f0bd9909
5 changed files with 8 additions and 19 deletions
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
import type { CollectionEntry } from 'astro:content'
|
||||
import PinIconBold from '@/assets/icons/pin-icon-bold.svg'
|
||||
import PinIcon from '@/assets/icons/pin-icon.svg'
|
||||
import PostDate from '@/components/PostDate.astro'
|
||||
import { defaultLocale } from '@/config'
|
||||
|
@ -51,18 +50,11 @@ function getPostPath(post: Post) {
|
|||
|
||||
{/* pinned icon */}
|
||||
{pinned && (
|
||||
<>
|
||||
<PinIcon
|
||||
aria-hidden="true"
|
||||
class="ml-0.25em inline-block aspect-square w-0.92em translate-y--0.1em lg:hidden"
|
||||
fill="currentColor"
|
||||
/>
|
||||
<PinIconBold
|
||||
aria-hidden="true"
|
||||
class="hidden lg:(ml-0.25em inline-block aspect-square w-1.05em translate-y--0.14em)"
|
||||
fill="currentColor"
|
||||
/>
|
||||
</>
|
||||
<PinIcon
|
||||
aria-hidden="true"
|
||||
class="ml-0.25em inline-block aspect-square w-0.98em translate-y--0.1em lg:(w-1.05em translate-y--0.15em)"
|
||||
fill="currentColor"
|
||||
/>
|
||||
)}
|
||||
</h3>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue