Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix alignment for <rt> and <em> font-face #41

Merged
merged 1 commit into from
Nov 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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