feat: 调整了markdown 的样式

This commit is contained in:
2025-08-03 14:55:25 +08:00
parent 6c9fc5f222
commit a88d909a90
2 changed files with 17 additions and 17 deletions

View File

@@ -30,7 +30,7 @@ export default {
},
themeColor: {
type: String,
default: '#007AFF'
default: '#00A6FF'
},
codeBgColor: {
type: String,
@@ -200,51 +200,51 @@ export default {
`,
// 一级标题
h1: `
margin:18px 0 10px 0;
font-size: 24px;
margin:12px 0 10px 0;
font-size: 22px;
color: ${themeColor};
`,
// 二级标题
h2: `
margin:14px 0 10px 0;
margin:10px 0 10px 0;
font-size: 20px;
color: ${themeColor};
`,
// 三级标题
h3: `
margin:12x 0 8px 0;
margin:8x 0 8px 0;
font-size: 18px;
color: ${themeColor};
`,
// 四级标题
h4: `
margin:12px 0 8px 0;
font-size: 16px;
margin:6px 0 8px 0;
font-size: 16px;
color: ${themeColor};
`,
// 五级标题
h5: `
margin:10px 0 8px 0;
font-size: 16px;
margin:6px 0 8px 0;
font-size: 16px;
color: ${themeColor};
`,
// 六级标题
h6: `
margin:8px 0 8px 0;
font-size: 16px;
margin:6px 0 8px 0;
font-size: 16px;
color: ${themeColor}
`,
// 引用
blockquote: `
margin:15px 0;
font-size:15px;
margin:12px 0;
font-size:14px;
color: #777777;
border-left: 4px solid #dddddd;
padding: 0 10px;
`,
// 列表
ul: `
margin: 10px 0;
margin: 8px 0;
color: #555;
`,
li: `
@@ -272,14 +272,14 @@ export default {
border:none;
text-align:center;
background-image:linear-gradient(to right,rgba(248,57,41,0),${themeColor},rgba(248,57,41,0));
margin:10px 0;
margin:8px 0;
`,
// 表格
table: `
border-spacing:0;
overflow:auto;
min-width:100%;
margin:10px 0;
margin:8px 0;
border-collapse: collapse;
`,
th: `