Skip to content

Commit 76e05b9

Browse files
committed
chore: update cartoon template
1 parent 2ae42ea commit 76e05b9

File tree

3 files changed

+67
-81
lines changed

3 files changed

+67
-81
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@
9191
"lint-staged": "^15.2.10",
9292
"postcss": "^8",
9393
"tailwindcss": "^3.4.1",
94-
"typescript": "^5"
94+
"typescript": "^5",
95+
"vercel": "39.1.1"
9596
},
9697
"lint-staged": {
9798
"src/**/*.{ts,tsx}": [

pnpm-lock.yaml

+57-72
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/theme/templates/cartoon-template/cartoon-template.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,12 @@ export const cartoonTemplate: ArticleModuleTemplate = {
6161
'&::before': {
6262
content: '""',
6363
position: 'absolute',
64-
width: '48px',
65-
height: '48px',
66-
top: '-20px',
67-
left: 0,
68-
backgroundSize: '24px 24px, 18px 18px',
69-
backgroundImage: 'url(/images/cartoon-star-yellow.svg), url(/images/cartoon-star-yellow.svg)',
70-
backgroundPosition: 'left center, right 8px top 5px',
64+
width: '24px',
65+
height: '24px',
66+
top: '-10px',
67+
left: '10px',
68+
backgroundSize: '24px 24px',
69+
backgroundImage: 'url(/images/cartoon-star-yellow.svg)',
7170
backgroundRepeat: 'no-repeat',
7271
},
7372

@@ -76,7 +75,7 @@ export const cartoonTemplate: ArticleModuleTemplate = {
7675
position: 'absolute',
7776
width: '24px',
7877
height: '24px',
79-
right: 0,
78+
right: '20px',
8079
bottom: 0,
8180
backgroundImage: 'url(/images/cartoon-star-yellow.svg)',
8281
backgroundRepeat: 'no-repeat',
@@ -150,6 +149,7 @@ export const cartoonTemplate: ArticleModuleTemplate = {
150149
},
151150
},
152151
content: {
152+
width: '100%',
153153
paddingTop: '30px',
154154
paddingLeft: '16px',
155155
paddingRight: '16px',

0 commit comments

Comments
 (0)