heti/lib/heti.scss

59 lines
1.5 KiB
SCSS
Raw Normal View History

2020-02-20 20:53:26 +08:00
/*!
* Project: Heti
* URL: https://github.com/sivan/heti
2020-02-11 20:47:29 +08:00
* Author: Sivan [sun.sivan@gmail.com]
*/
@import "font";
2020-02-11 20:47:29 +08:00
@import "variables";
@import "base";
@import "heading";
@import "list";
@import "table";
@import "inline";
2020-02-11 21:01:13 +08:00
@import "modifiers/font-stack";
@import "modifiers/writing-mode";
@import "modifiers/column";
@import "modifiers/ancient";
@import "modifiers/annotation";
@import "helpers/block";
@import "helpers/inline";
2020-02-21 01:49:22 +08:00
@import "helpers/add-on";
2020-02-11 20:47:29 +08:00
#{$root-selector} {
// 中文每行展示文字(CPL)建议在 30~50 之间,默认 42
max-width: $line-length;
// 默认字体大小为 16px,行高 1.5
font-size: $font-size-normal;
font-weight: $font-weight-normal;
2020-02-21 01:49:22 +08:00
-webkit-font-smoothing: subpixel-antialiased;
2020-02-11 20:47:29 +08:00
line-height: $line-height-normal;
// 自动在中西文间加 1/4 空格(暂无浏览器支持)
//text-spacing: ideograph-alpha;
2020-02-11 21:01:13 +08:00
// 模块引用顺序
// 1. 引入各模块
// .heti h1, .heti p, .heti ul
2020-02-11 20:47:29 +08:00
@include hetiBase();
@include hetiHeading();
@include hetiList();
@include hetiTable();
@include hetiInline();
2020-02-11 21:01:13 +08:00
// 2. 定义所有修饰器(需与 .heti 组合使用)
// .heti--sans h1, .heti--vertical h1 etc.
2020-02-11 20:47:29 +08:00
@include hetiFontModifier();
2020-02-11 21:01:13 +08:00
@include hetiColumnModifier();
@include hetiWritingModeModifier();
@include hetiAncientModifier();
@include hetiAnnotationModifier();
2020-02-11 20:47:29 +08:00
2020-02-11 21:01:13 +08:00
// 3. 定义工具类样式(仅在 .heti 内部使用)
// .heti .heti-verse, .heti .heti-hang
2020-02-11 20:47:29 +08:00
@include hetiBlockHelperClasses();
@include hetiInlineHelperClasses();
2020-02-21 01:49:22 +08:00
@include hetiAddOns();
2020-02-11 20:47:29 +08:00
}