summaryrefslogtreecommitdiff
path: root/public/css/extra.css
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-01-31 21:19:47 -0600
committerCheng-Han, Wu2016-01-31 21:19:47 -0600
commitdcebc75d397f42cd3b3c9400f3217b621466aed6 (patch)
tree6bb52ae1d6ddf9cba5cb9bb3b7035464629992ab /public/css/extra.css
parentff2fc76491c11fad33ae6c62c4d5b5c47b431597 (diff)
Updated to support ja, zh-TW, zh-CN font and removed non-latin font in all default styles to allow font fallbacks
Diffstat (limited to '')
-rw-r--r--public/css/extra.css24
1 files changed, 24 insertions, 0 deletions
diff --git a/public/css/extra.css b/public/css/extra.css
index 186eb910..2b5091da 100644
--- a/public/css/extra.css
+++ b/public/css/extra.css
@@ -272,6 +272,30 @@ h6:hover .header-link {
padding-right: 38px;
}
+/* support japanese font */
+.markdown-body[lang^="ja"] {
+ font-family: "Helvetica Neue", Helvetica, Arial, Meiryo, "MS Gothic", "MS ゴシック", sans-serif;
+}
+.ui-toc-dropdown[lang^="ja"] {
+ font-family: "Source Sans Pro", Helvetica, Arial, "Meiryo UI", "MS PGothic", "MS Pゴシック", sans-serif;
+}
+
+/* support zh-tw font */
+.markdown-body[lang="zh-tw"] {
+ font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft JhengHei", "微軟正黑", sans-serif;
+}
+.ui-toc-dropdown[lang="zh-tw"] {
+ font-family: "Source Sans Pro", Helvetica, Arial, "Microsoft JhengHei UI", "微軟正黑UI", sans-serif;
+}
+
+/* support zh-cn font */
+.markdown-body[lang="zh-cn"] {
+ font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
+}
+.ui-toc-dropdown[lang="zh-cn"] {
+ font-family: "Source Sans Pro", Helvetica, Arial, "Microsoft YaHei UI", "微软雅黑UI", sans-serif;
+}
+
.ui-affix-toc {
position: fixed;
top: 0;