Skip to content

Commit 10b8445

Browse files
committed
Use Noto Serif quotation marks to improve CJK full-width punctuation spacing
1 parent afbb064 commit 10b8445

20 files changed

+989
-70
lines changed

_includes/footer.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<footer>
1+
<footer class="card-fade-in">
22
<div class="foot-header"></div>
33
<div class="foot-container">
44
<div class="copyright" style="display: flex; flex-direction: column; align-items: start;">
@@ -11,12 +11,6 @@
1111
</div>
1212
</div>
1313
</footer>
14-
<script>
15-
// 默认先隐藏footer,渐进动画显示
16-
// 用JS隐藏的原因是避免未启用JS的浏览器不显示页脚
17-
const footerE = document.querySelector("footer")
18-
footerE.classList.add("card-fade-in")
19-
</script>
2014

2115
<!-- Floating Action Button -->
2216
<div class="mdc-touch-target-wrapper">

npm/dist/assets/blog-font.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

npm/dist/assets/blog-post.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

npm/dist/assets/blog-scaffold.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

npm/src/component/dialog/BasicDialog.scss

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
// border: 2px solid map.get(base.$dialog, "border-light");
6060
// border: 1px dashed var(--divider-dashed-color);
6161
// surface不滚动,content滚动
62-
overflow: clip;
62+
overflow-x: hidden;
6363
}
6464

6565
.dark .mdc-dialog__surface {
@@ -103,16 +103,13 @@
103103
height: 3.2rem;
104104
padding: 0;
105105
border-radius: 0;
106-
}
107-
108-
.mdc-button.basic-dialog_btn_action {
106+
109107
@include button.container-fill-color(var(--dialog-action-btn-bg));
110108
@include button.ink-color(var(--dialog-action-btn-ink));
111-
112-
@include ripple.surface;
113-
// 如果为bounded则宽度可能有问题,导致横向溢出,滚动🤔
114-
// Dialog的surface的尺寸异常导致滚动,已设置设置其overflow为clip
109+
// 启用Ripple的radius-bounded可能导致某些东西溢出元素,导致整个页面宽度不正常可以横向滚动
110+
// 加上这个则可以解决🤔
115111
overflow: hidden;
112+
@include ripple.surface;
116113
@include ripple.radius-bounded;
117114
@include ripple.states-base-color(map.get(base.$dialog-action-btn-ripple, "light"));
118115
@include ripple.states-opacities((hover: .0, focus: .0, press: .1));

npm/src/component/dialog/SearchDialog.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@
1818
}
1919

2020
.mdc-text-field {
21+
display: flex;
22+
align-items: center;
23+
padding: 0 0 0 1rem;
24+
margin-left: auto;
25+
margin-right: auto;
26+
2127
@include textfield.ink-color(var(--mdc-theme-on-surface));
2228
@include textfield.caret-color(var(--mdc-theme-on-surface));
2329
@include textfield.placeholder-color(var(--mdc-theme-text-secondary-on-background));
2430
@include textfield.label-color(var(--mdc-theme-text-secondary-on-background));
2531
@include textfield.outline-color(var(--divider-color));
2632
@include textfield.hover-outline-color(var(--divider-color));
2733
@include textfield.focused-outline-color(var(--divider-color));
28-
29-
display: flex;
30-
align-items: center;
31-
padding: 0 0 0 1rem;
32-
margin-left: auto;
33-
margin-right: auto;
3434
}
3535

3636
#btn-search {

npm/src/component/drawer.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373

7474
.nav-list {
7575
.mdc-deprecated-list-item {
76+
overflow: hidden;
7677
@include ripple.surface;
7778
@include ripple.radius-bounded;
7879
@include ripple.states-base-color(map.get(base.$drawer-nav-ripple, "light"));

npm/src/component/font/_NotoSerifSC.scss

Lines changed: 915 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Noto Serif 的省略号 … 和引号 “” ‘’ 字符,注意比正常自重大一级,这里的Regular是源字体的Light
2+
@font-face {
3+
font-family: "Noto Serif Sub";
4+
src: url("https://apqx-host.oss-cn-hangzhou.aliyuncs.com/blog/fonts/NotoSerif/NotoSerif-ExtraLight-Ellipsis-Quotation/39b0e1e8024e5698dcc3c2411d0b33e1.woff2") format("woff2");
5+
font-style: normal;
6+
font-weight: 300;
7+
font-display: swap;
8+
unicode-range: U+2018-2019, U+201c-201d, U+2026;
9+
}
10+
11+
@font-face {
12+
font-family: "Noto Serif Sub";
13+
src: url("https://apqx-host.oss-cn-hangzhou.aliyuncs.com/blog/fonts/NotoSerif/NotoSerif-Light-Ellipsis-Quotation/6a794c8ad38390c6e23e3adbc6d19186.woff2") format("woff2");
14+
font-style: normal;
15+
font-weight: 400;
16+
font-display: swap;
17+
unicode-range: U+2018-2019, U+201c-201d, U+2026;
18+
}
19+
20+
@font-face {
21+
font-family: "Noto Serif Sub";
22+
src: url("https://apqx-host.oss-cn-hangzhou.aliyuncs.com/blog/fonts/NotoSerif/NotoSerif-Regular-Ellipsis-Quotation/f34a43b2b879093842cb30be1d30c73c.woff2") format("woff2");
23+
font-style: normal;
24+
font-weight: 500;
25+
font-display: swap;
26+
unicode-range: U+2018-2019, U+201c-201d, U+2026;
27+
}

npm/src/component/font/_PingFangSCEllipsis.scss

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)