From 47598ef75c03cb9acaea24ad050e7f8eddcd344d Mon Sep 17 00:00:00 2001
From: sofish
Date: Sun, 15 Nov 2015 02:50:00 +0800
Subject: [PATCH 1/5] add package.json
---
package.json | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100644 package.json
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..832fa3b
--- /dev/null
+++ b/package.json
@@ -0,0 +1,23 @@
+{
+ "name": "typo.css",
+ "version": "2.1.2",
+ "description": "一致化浏览器排版效果,构建最适合中文阅读的网页排版",
+ "main": "typo.css",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/sofish/typo.css.git"
+ },
+ "keywords": [
+ "typograhpy",
+ "中文"
+ ],
+ "author": "sofish (http://sofi.sh/)",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/sofish/typo.css/issues"
+ },
+ "homepage": "https://github.com/sofish/typo.css"
+}
From 146313536b11e437c739df1100df2d945fff1486 Mon Sep 17 00:00:00 2001
From: hotoo
Date: Wed, 26 Oct 2016 08:12:14 +0800
Subject: [PATCH 2/5] =?UTF-8?q?fix(=E2=9C=94):=20=E8=AE=A2=E6=AD=A3?=
=?UTF-8?q?=E6=A0=B9=E5=8F=B7=E4=B8=BA=E5=AF=B9=E5=8F=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
https://github.com/sofish/typo.css/issues/58
---
typo.html | 42 +++++++++++++++++++++---------------------
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/typo.html b/typo.html
index 54fc2a0..75854ad 100644
--- a/typo.html
+++ b/typo.html
@@ -89,10 +89,10 @@ 现状和如何去做:
| OS X |
- √ |
- √ |
- √ |
- √ |
+ ✔ |
+ ✔ |
+ ✔ |
+ ✔ |
- |
- |
- |
@@ -100,32 +100,32 @@ 现状和如何去做:
| Win 7 |
- √ |
- √ |
- √ |
- √ |
- √ |
- √ |
- √ |
+ ✔ |
+ ✔ |
+ ✔ |
+ ✔ |
+ ✔ |
+ ✔ |
+ ✔ |
- |
| Win XP |
- √ |
- √ |
- √ |
- √ |
+ ✔ |
+ ✔ |
+ ✔ |
+ ✔ |
- |
- √ |
- √ |
- √ |
+ ✔ |
+ ✔ |
+ ✔ |
| Ubuntu |
- √ |
- √ |
+ ✔ |
+ ✔ |
- |
- √ |
+ ✔ |
- |
- |
- |
From 9ef9536bf854938c782d76b40856c5be5f588ba5 Mon Sep 17 00:00:00 2001
From: Junliang Huang
Date: Mon, 6 Feb 2017 11:35:22 +0800
Subject: [PATCH 3/5] fix(font-family): use sans-serif instead of sans
sans is not a valid generic font-family, see https://www.w3.org/TR/CSS2/fonts.html#generic-font-families
---
typo.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/typo.css b/typo.css
index a3b90ba..7a5b8ad 100644
--- a/typo.css
+++ b/typo.css
@@ -34,7 +34,7 @@ audio, canvas, video {
/* 要注意表单元素并不继承父级 font 的问题 */
body, button, input, select, textarea {
- font: 300 1em/1.8 PingFang SC, Lantinghei SC, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans;
+ font: 300 1em/1.8 PingFang SC, Lantinghei SC, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif;
}
button::-moz-focus-inner,
From a60a260941212f3611c911bc0de0fdbd15088c66 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B0=8F=E9=B1=BC?=
Date: Mon, 21 Jan 2019 17:32:24 +0800
Subject: [PATCH 4/5] fix #71
---
typo.css | 1 +
1 file changed, 1 insertion(+)
diff --git a/typo.css b/typo.css
index 7a5b8ad..2373d75 100644
--- a/typo.css
+++ b/typo.css
@@ -74,6 +74,7 @@ blockquote {
acronym, abbr {
border-bottom: 1px dotted;
font-variant: normal;
+ text-decoration: none;
}
/* 添加鼠标问号,进一步确保应用的语义是正确的(要知道,交互他们也有洁癖,如果你不去掉,那得多花点口舌) */
From bd5a26db7b87f0d04bab6512b3b6fcb565503a99 Mon Sep 17 00:00:00 2001
From: sofish
Date: Fri, 17 Jul 2020 11:13:21 +0800
Subject: [PATCH 5/5] use https
---
typo.html | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/typo.html b/typo.html
index 75854ad..9a19c17 100644
--- a/typo.html
+++ b/typo.html
@@ -35,9 +35,9 @@
-
@@ -137,7 +137,7 @@ 现状和如何去做:
中文排版的重点和难点
在中文排版中,HTML4 的很多标准在语义在都有照顾到。但从视觉效果上,却很难利用单独的 CSS 来实现,像着重号(例:这里强调一下)。在 HTML4 中,专名号标签(<u>)已经被放弃,而
- HTML5 被重新提起。Typo.css 也根据实际情况提供相应的方案。我们重要要注意的两点是:
+ HTML5 被重新提起。Typo.css 也根据实际情况提供相应的方案。我们重要要注意的两点是:
- 语义:语义对应的用法和样式是否与中文排版一致
- 表现:在各浏览器中的字体、大小和缩放是否如排版预期
@@ -418,12 +418,12 @@ 1、Typo.css 排版偏重点
2、开源许可
-Typo.css 基于 MIT License 开源,使用代码只需说明来源,或者引用 license.txt 即可。
+Typo.css 基于 MIT License 开源,使用代码只需说明来源,或者引用 license.txt 即可。
-
+