heti/lib/modifiers/annotation.scss

39 lines
1 KiB
SCSS
Raw Normal View History

2020-02-20 21:37:10 +08:00
// Author: Sivan [sun.sivan@gmail.com]
// Description: define interlinear annotation styles.
2020-02-11 21:01:13 +08:00
@import "../variables";
@mixin hetiAnnotationModifier {
&--annotation {
// 首行缩进且行间距加大,去除段落间距
p {
margin-block-start: 0;
margin-block-end: 0;
line-height: $line-height-expanded-ultra;
text-indent: $text-indent-length;
}
// 着重号不应影响行间距,经测试最小可用行高为 1.7
em {
-webkit-text-emphasis: filled circle;
-webkit-text-emphasis-position: under;
2022-01-22 11:13:21 +08:00
text-emphasis: filled circle;
text-emphasis-position: under right;
2020-02-11 21:01:13 +08:00
font-weight: $font-weight-normal;
@include non-cjk-block {
-webkit-text-emphasis: none;
2022-01-22 11:13:21 +08:00
text-emphasis: none;
2020-02-11 21:01:13 +08:00
}
}
// 元信息保持间距
#{$root-selector}-meta {
margin-block-start: $std-block-unit * 0.5;
2020-02-11 21:01:13 +08:00
margin-block-end: $std-block-unit;
}
// ruby 不应影响行间距,经测试最小可用行高为 2
//ruby {}
}
}