Better header line height #418

已合并
dfeyer 已将来自 task-better-header 的 2 提交合并入 master 2019-01-09 16:46:04 +00:00
dfeyer 评论于 2019-01-08 23:02:11 +00:00 (从 github.com 迁移)

This change also remote all units for line-height to have more consistent styles and better cascading support. This solve the too small line height for multi line header in article and also add styling for h1 to h6 (previously h3 to h6 was not styled at all)

This change also remote all units for line-height to have more consistent styles and better cascading support. This solve the too small line height for multi line header in article and also add styling for h1 to h6 (previously h3 to h6 was not styled at all)
igalic (从 github.com 迁移) 评审于 2019-01-08 23:49:30 +00:00
igalic (从 github.com 迁移) 留下了一条评论

@ -18,3 +18,3 @@
font-size: 1.2em;
line-height: 1.7em;
line-height: 1.7;
igalic (从 github.com 迁移) 评论于 2019-01-08 23:48:32 +00:00

what's the measure without a postfix?

what's the measure without a postfix?
dfeyer (从 github.com 迁移) 评审于 2019-01-09 12:30:54 +00:00
@ -18,3 +18,3 @@
font-size: 1.2em;
line-height: 1.7em;
line-height: 1.7;
dfeyer (从 github.com 迁移) 评论于 2019-01-09 12:30:53 +00:00

line-height without postfix is based on the current font size (so a bit like em), but with the em postfix, cascading is based on the current font size, so the h1-6 get a line height of 1.7em based on the font size of the main articleselector, so way too small. Without the postfix, element inside the article will have a correct line height, based on their own font size.

Try to insert a really long headline in an article (to have a multi line rendering), with and without this PR to see that the headline are not readable.

See for more details about the unitless value for line-height: https://css-tricks.com/almanac/properties/l/line-height/#article-header-id-0

line-height without postfix is based on the current font size (so a bit like em), but with the em postfix, cascading is based on the current font size, so the h1-6 get a line height of 1.7em based on the font size of the `main article`selector, so way too small. Without the postfix, element inside the article will have a correct line height, based on their own font size. Try to insert a really long headline in an article (to have a multi line rendering), with and without this PR to see that the headline are not readable. See for more details about the unitless value for line-height: https://css-tricks.com/almanac/properties/l/line-height/#article-header-id-0
elegaanz (从 github.com 迁移)2019-01-09 16:45:40 +00:00 批准此合并请求
elegaanz (从 github.com 迁移) 留下了一条评论

Thanks!

Thanks!
登录 并参与到对话中。
无评审员
未选择里程碑
暂无项目
未指派成员
1 位参与者
通知
到期时间
到期日期无效或超出范围。请使用“yyyy-mm-dd”格式。

未设置到期时间。

依赖工单

没有设置依赖项。

引用:Plume/Plume#418
没有提供说明。