summaryrefslogtreecommitdiff
path: root/public/css
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-02-15 19:13:17 -0600
committerCheng-Han, Wu2016-02-15 19:13:17 -0600
commit880f6bcf0266578c4e8e16d909c18af0449943cc (patch)
treea7cc0ba1a35b9fe422c9235effcd3589a4dcf9fd /public/css
parent6967dac0ffaa7ff26c6ec4a1e42e81fffa687693 (diff)
Updated to support lang attribute and styles in editor
Diffstat (limited to 'public/css')
-rw-r--r--public/css/index.css14
1 files changed, 13 insertions, 1 deletions
diff --git a/public/css/index.css b/public/css/index.css
index dba15842..17765206 100644
--- a/public/css/index.css
+++ b/public/css/index.css
@@ -11,7 +11,7 @@ body {
/*overflow: hidden;*/
}
.CodeMirror {
- font-family: "Source Code Pro", Consolas, monaco, "Microsoft JhengHei", Meiryo, "MS ゴシック", "MS Gothic", monospace;
+ font-family: "Source Code Pro", Consolas, monaco, monospace;
letter-spacing: 0.025em;
line-height: 1.25;
font-size: 18px;
@@ -19,6 +19,18 @@ body {
overflow-y: hidden !important;
-webkit-overflow-scrolling: touch;
}
+/* support japanese font */
+.CodeMirror[lang^="ja"] {
+ font-family: "Source Code Pro", Consolas, monaco, Meiryo, "MS ゴシック", "MS Gothic", monospace;
+}
+/* support zh-tw font */
+.CodeMirror[lang="zh-tw"] {
+ font-family: "Source Code Pro", Consolas, monaco, "Microsoft JhengHei", "微軟正黑", monospace;
+}
+/* support zh-cn font */
+.CodeMirror[lang="zh-cn"] {
+ font-family: "Source Code Pro", Consolas, monaco, "Microsoft YaHei", "微软雅黑", monospace;
+}
.CodeMirror-placeholder {
color: #777 !important;
}