fix: fix <code> in <pre> and add gap for line-through, underline elements (#5)

This commit is contained in:
Sivan 2020-02-20 20:28:14 +08:00 committed by GitHub
parent 0cb5d0cca0
commit ef4749c65f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 12 deletions

View file

@ -84,8 +84,7 @@
border-radius: 4px; border-radius: 4px;
code { code {
margin-inline-start: inherit; margin: 0;
margin-inline-end: inherit;
padding: 0; padding: 0;
border: 0; border: 0;
border-radius: 0; border-radius: 0;

View file

@ -157,18 +157,19 @@
} }
} }
//b, // 为所有加划线的元素增加缝隙
//cite, abbr[title],
//dfn, del,
//em, ins,
//strong { s,
// margin-inline-start: 1px; u {
// margin-inline-end: 1px; margin-inline-start: 1px;
//} margin-inline-end: 1px;
}
// 带边框的元素两个相连时添加间距以防止视觉上混为一个元素 // 带边框的元素两个相连时添加间距以防止视觉上混为一个元素
// @todo: 此处有一个问题如果结构是 <u>倚天</u><u>屠龙</u>屠龙前面仍然会有边距此处跟预期不一致应该只在两个同名元素紧邻时增加边距<u>倚天剑</u><u>屠龙刀</u> // @todo: 此处有一个问题如果结构是 <u>倚天</u><u>屠龙</u>屠龙前面仍然会有边距此处跟预期不一致应该只在两个同名元素紧邻时增加边距<u>倚天剑</u><u>屠龙刀</u>
//@each $tag in (abbr, del, ins, s, u) { //@each $tag in (abbr[title], del, ins, s, u) {
// #{$tag} + #{$tag} { // #{$tag} + #{$tag} {
// margin-inline-start: 0.125em; // margin-inline-start: 0.125em;
// } // }

View file

@ -1,6 +1,6 @@
{ {
"name": "heti", "name": "heti",
"version": "0.3.0", "version": "0.3.1",
"description": "赫蹏", "description": "赫蹏",
"main": "index.scss", "main": "index.scss",
"directories": { "directories": {