feat: remove letter-spacing in non-cjk
This commit is contained in:
parent
893cd10d7e
commit
464c78285d
1 changed files with 11 additions and 0 deletions
|
@ -23,6 +23,8 @@
|
|||
margin-block-end: $std-block-unit;
|
||||
font-size: $font-size-h1;
|
||||
line-height: $line-height-size-h1;
|
||||
|
||||
// 中文大标题增加微小文字间距
|
||||
letter-spacing: $font-size-h1 * 0.05;
|
||||
}
|
||||
|
||||
|
@ -53,6 +55,15 @@
|
|||
line-height: $line-height-size-h6;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3 {
|
||||
// 非中文时不加间距
|
||||
@include non-cjk-block {
|
||||
letter-spacing: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// 压缩两个标题之间的间距
|
||||
h1 + h2,
|
||||
h2 + h3,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue