From 205c82c4fc76ac58ad9d8a05f132430e26529f92 Mon Sep 17 00:00:00 2001 From: Elliot Date: Sun, 17 Nov 2024 11:26:47 +0800 Subject: [PATCH] feat: update list style --- src/assets/theme.ts | 42 ++++++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/src/assets/theme.ts b/src/assets/theme.ts index 06a145f..fce2e09 100644 --- a/src/assets/theme.ts +++ b/src/assets/theme.ts @@ -122,34 +122,32 @@ a { text-decoration: none; } +/* 样式化有序列表
    */ ol { - text-align: left; - line-height: 1.75; - font-family: -apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif; - font-size: 14px; - margin-left: 0; - padding-left: 1em; - color: #3f3f3f; + list-style-type: decimal; /* 使用数字作为列表项标记 */ + margin: 20px 0; /* 上下间距 */ + padding-left: 40px; /* 左边距 */ + font-family: Arial, sans-serif; /* 字体 */ + font-size: 16px; /* 字体大小 */ + color: #333; /* 文字颜色 */ +} + +ol li { + margin: 8px 0; /* 列表项的上下间距 */ } +/* 样式化无序列表