Skip to content

Commit 523a2fb

Browse files
SkyBird233HouLiXieBuRou
authored andcommitted
feat: override heti font stack to fix Chinese quote width
This change overrides the default sans-serif and serif font stacks in Heti to be empty, falling back to the website's default font settings.
1 parent 82d2b09 commit 523a2fb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

assets/index.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ $common-margin: 24px;
1616
$manualmode-dark-selector: 'body.dark &',
1717
$font-size-h2: normal,
1818
$line-height-size-h2: normal,
19-
$std-block-unit: 16px
19+
$std-block-unit: 16px,
20+
21+
// TODO: discussion on website font config
22+
// Heti's default font family displays Chinese quotes half-width
23+
// so they have been removed for backward compatibility.
24+
$_font-stack-sans: '',
25+
$_font-stack-serif: ''
2026
);
2127

2228
.heti {

0 commit comments

Comments
 (0)