feat: support CJK & ANS spacing (#12)

This commit is contained in:
Sivan 2020-03-01 22:11:07 +08:00 committed by GitHub
parent 25cfc2229a
commit 91686092ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 534 additions and 1029 deletions

23
lib/helpers/_add-on.scss Normal file
View file

@ -0,0 +1,23 @@
// Author: Sivan [sun.sivan@gmail.com]
// Description: define add-ons.
@import "../variables";
@mixin hetiAddOns {
// 用于中西文混排增加边距
heti-spacing {
display: inline;
& + sup,
& + sub {
margin-inline-start: 0;
}
}
.heti-spacing-start {
margin-inline-end: 0.25em;
}
.heti-spacing-end {
margin-inline-start: 0.25em;
}
}