Skip to content

Commit

Permalink
fix: fix alignment for <rt> and <em> font-face
Browse files Browse the repository at this point in the history
Fixes #32 #37
  • Loading branch information
sivan authored Nov 2, 2020
2 parents feaa583 + 2ef37ac commit 5407f6d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion _site/heti.css
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@
font-family: "Times New Roman", Times, "Heti Kai", serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.heti--classic em,
.heti--classic figcaption,
.heti--classic caption,
.heti--classic th {
Expand Down Expand Up @@ -893,7 +894,9 @@

.heti .heti-ruby--inline rt {
display: inline;
line-height: 0.5;
margin-bottom: -0.25em;
line-height: 1;
text-align: center;
}

.heti heti-spacing {
Expand Down
4 changes: 3 additions & 1 deletion lib/helpers/_inline.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@

rt {
display: inline;
line-height: 0.5;
margin-bottom: -0.25em;
line-height: 1;
text-align: center;
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion lib/modifiers/font-stack.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
font-family: $font-family-kai;
}

// 说明文字、表头使用黑体
// 强调、说明文字、表头使用黑体
em,
figcaption,
caption,
th {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "heti",
"version": "0.8.0",
"version": "0.8.1",
"description": "赫蹏是专为中文内容展示设计的排版样式增强。它基于通行的中文排版规范而来,可以为网站的读者带来更好的文章阅读体验。",
"main": "lib/heti.scss",
"files": [
Expand Down

0 comments on commit 5407f6d

Please sign in to comment.