mirror of https://github.com/status-im/codimd.git
Updated to support ja, zh-TW, zh-CN font and removed non-latin font in all default styles to allow font fallbacks
This commit is contained in:
parent
ff2fc76491
commit
dcebc75d39
|
@ -272,6 +272,30 @@ h6:hover .header-link {
|
||||||
padding-right: 38px;
|
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 {
|
.ui-affix-toc {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
||||||
/* for markdown-body */
|
/* for markdown-body */
|
||||||
|
|
||||||
.markdown-body {
|
.markdown-body {
|
||||||
font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft JhengHei", Meiryo, "MS ゴシック", "MS Gothic", sans-serif;
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
padding-top: 40px;
|
padding-top: 40px;
|
||||||
padding-bottom: 40px;
|
padding-bottom: 40px;
|
||||||
max-width: 758px;
|
max-width: 758px;
|
||||||
|
|
|
@ -7,7 +7,7 @@ body {
|
||||||
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
||||||
/*text-rendering: optimizeLegibility;*/
|
/*text-rendering: optimizeLegibility;*/
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
font-family: "Source Sans Pro", Helvetica, Arial, "Microsoft JhengHei UI", "Meiryo UI", "MS Pゴシック", "MS PGothic", sans-serif;
|
font-family: "Source Sans Pro", Helvetica, Arial, sans-serif;
|
||||||
letter-spacing: 0.025em;
|
letter-spacing: 0.025em;
|
||||||
}
|
}
|
||||||
:focus {
|
:focus {
|
||||||
|
|
Loading…
Reference in New Issue