heti/lib/helpers/_add-on.scss

36 lines
551 B
SCSS
Raw Permalink Normal View History

2020-02-21 01:49:22 +08:00
// 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;
}
heti-adjacent {
display: inline;
}
.heti-adjacent-half {
margin-inline-end: -0.5em;
}
.heti-adjacent-quarter {
margin-inline-end: -0.25em;
}
2020-02-21 01:49:22 +08:00
}