feat: update style

This commit is contained in:
changjun
2023-05-08 23:44:54 +08:00
parent b4924388c1
commit c19c2bde56
4 changed files with 23 additions and 16 deletions

View File

@@ -22,9 +22,6 @@ export default defineConfig({
shortcuts: [
[/^(.*)Text$/, ([,c]) => `text-${ARTICLE_TEXT[c]}`],
{
link: 'text-dark dark:text-white no-underline border-bottom-',
},
],
theme: {
@@ -106,6 +103,22 @@ export default defineConfig({
':not(pre) > code::before,:not(pre) > code::after': {
content: '',
},
'figcaption': {
'color': 'var(--c-blockquote)',
'font-size': '.875em',
'margin-top': '.8em',
},
'img,video': {
'max-width': '100%',
'border-radius': '.6rem',
'height': 'auto',
},
'figure,picture': {
margin: '1em 0',
},
},
}),
],