From 6ea320e1e0a99d53acc812728f9b464fb6433b64 Mon Sep 17 00:00:00 2001 From: byodian Date: Sun, 1 Dec 2024 11:24:31 +0800 Subject: [PATCH] chore: update cartoon template --- package.json | 3 ++- .../cartoon-template/cartoon-template.ts | 15 +++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 0d0c6ef..e636880 100644 --- a/package.json +++ b/package.json @@ -91,7 +91,8 @@ "lint-staged": "^15.2.10", "postcss": "^8", "tailwindcss": "^3.4.1", - "typescript": "^5" + "typescript": "^5", + "vercel": "39.1.1" }, "lint-staged": { "src/**/*.{ts,tsx}": [ diff --git a/src/theme/templates/cartoon-template/cartoon-template.ts b/src/theme/templates/cartoon-template/cartoon-template.ts index c621bf4..6f763c8 100644 --- a/src/theme/templates/cartoon-template/cartoon-template.ts +++ b/src/theme/templates/cartoon-template/cartoon-template.ts @@ -61,13 +61,12 @@ export const cartoonTemplate: ArticleModuleTemplate = { '&::before': { content: '""', position: 'absolute', - width: '48px', - height: '48px', - top: '-20px', - left: 0, - backgroundSize: '24px 24px, 18px 18px', - backgroundImage: 'url(/images/cartoon-star-yellow.svg), url(/images/cartoon-star-yellow.svg)', - backgroundPosition: 'left center, right 8px top 5px', + width: '24px', + height: '24px', + top: '-10px', + left: '10px', + backgroundSize: '24px 24px', + backgroundImage: 'url(/images/cartoon-star-yellow.svg)', backgroundRepeat: 'no-repeat', }, @@ -76,7 +75,7 @@ export const cartoonTemplate: ArticleModuleTemplate = { position: 'absolute', width: '24px', height: '24px', - right: 0, + right: '20px', bottom: 0, backgroundImage: 'url(/images/cartoon-star-yellow.svg)', backgroundRepeat: 'no-repeat',