diff --git a/lib/_base.scss b/lib/_base.scss
index 2e66e46..3dde340 100644
--- a/lib/_base.scss
+++ b/lib/_base.scss
@@ -84,8 +84,7 @@
border-radius: 4px;
code {
- margin-inline-start: inherit;
- margin-inline-end: inherit;
+ margin: 0;
padding: 0;
border: 0;
border-radius: 0;
diff --git a/lib/_inline.scss b/lib/_inline.scss
index 8857082..a213084 100644
--- a/lib/_inline.scss
+++ b/lib/_inline.scss
@@ -157,18 +157,19 @@
}
}
- //b,
- //cite,
- //dfn,
- //em,
- //strong {
- // margin-inline-start: 1px;
- // margin-inline-end: 1px;
- //}
+ // 为所有加划线的元素增加缝隙
+ abbr[title],
+ del,
+ ins,
+ s,
+ u {
+ margin-inline-start: 1px;
+ margin-inline-end: 1px;
+ }
// 带边框的元素,两个相连时添加间距,以防止视觉上混为一个元素
// @todo: 此处有一个问题:如果结构是 倚天和屠龙,「屠龙」前面仍然会有边距。此处跟预期不一致,应该只在两个同名元素紧邻时增加边距,即:倚天剑屠龙刀
- //@each $tag in (abbr, del, ins, s, u) {
+ //@each $tag in (abbr[title], del, ins, s, u) {
// #{$tag} + #{$tag} {
// margin-inline-start: 0.125em;
// }
diff --git a/package.json b/package.json
index a4fa890..385d189 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "heti",
- "version": "0.3.0",
+ "version": "0.3.1",
"description": "赫蹏",
"main": "index.scss",
"directories": {