From 2ef37ac30d760030f1e07e876bcc0bcd1e3e4a73 Mon Sep 17 00:00:00 2001 From: Sivan Date: Mon, 2 Nov 2020 14:34:34 +0800 Subject: [PATCH] fix: fix alignment for and font-face Fixes #32 #37 --- _site/heti.css | 5 ++++- lib/helpers/_inline.scss | 4 +++- lib/modifiers/font-stack.scss | 3 ++- package.json | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/_site/heti.css b/_site/heti.css index d92d890..83be8eb 100644 --- a/_site/heti.css +++ b/_site/heti.css @@ -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 { @@ -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 { diff --git a/lib/helpers/_inline.scss b/lib/helpers/_inline.scss index 46399eb..8d2d8eb 100644 --- a/lib/helpers/_inline.scss +++ b/lib/helpers/_inline.scss @@ -31,7 +31,9 @@ rt { display: inline; - line-height: 0.5; + margin-bottom: -0.25em; + line-height: 1; + text-align: center; } } } diff --git a/lib/modifiers/font-stack.scss b/lib/modifiers/font-stack.scss index f315fed..c6d3936 100644 --- a/lib/modifiers/font-stack.scss +++ b/lib/modifiers/font-stack.scss @@ -38,7 +38,8 @@ font-family: $font-family-kai; } - // 说明文字、表头使用黑体 + // 强调、说明文字、表头使用黑体 + em, figcaption, caption, th { diff --git a/package.json b/package.json index f1837f4..4fd4387 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "heti", - "version": "0.8.0", + "version": "0.8.1", "description": "赫蹏是专为中文内容展示设计的排版样式增强。它基于通行的中文排版规范而来,可以为网站的读者带来更好的文章阅读体验。", "main": "lib/heti.scss", "files": [