【发布时间】:2011-02-19 18:03:41
【问题描述】:
最近转换为 RoR,我一直在使用 Compass w/ Blueprint 进入众所周知的池中。 Compass 非常棒,但我在 Typography 库中发现了一些奇怪的东西。
blueprint-typography-body mixin 包含以下内容:
=blueprint-typography-body($font-size: $blueprint-font-size)
line-height: 1.5
+normal-text
font-size: 100% * $font-size / 16px
我的问题围绕着“字体大小”。我有点迷茫,因为我希望传递字体大小并在页面加载时反映该大小。但是,在这种情况下,公式似乎规定了默认字体的百分比。
即:
+blueprint-typography-body(10px) //produces 7.5px off of the default font size of 12px from what I can tell.
本质上,我很好奇 Compass 中是否有设置字体大小的标准,而不是明确声明“font-size: 10px”。
注意:我倾向于 Blueprint/Compass 字体样式的原因是行高、字体和颜色的标准化。
【问题讨论】:
标签: sass blueprint-css compass-sass