Browse Source

:art: ol 的序号 支持不同语言的不同类型

visuddhinanda 5 years ago
parent
commit
798f70351e
2 changed files with 67 additions and 1 deletions
  1. 1 1
      app/article/index.php
  2. 66 0
      app/term/term.css

+ 1 - 1
app/article/index.php

@@ -6,10 +6,10 @@ require_once "../pcdl/html_head.php";
 <body style="margin: 0;padding: 0;" class="reader_body" >
 	<script src="../term/term.js"></script>
 	<script src="../term/note.js"></script>
+	<link type="text/css" rel="stylesheet" href="../term/term.css"/>
 	<script src="../channal/channal.js"></script>
 	<script src="./article.js"></script>
 
-	<link type="text/css" rel="stylesheet" href="../term/term.css"/>
 	<script src="../widget/click_dropdown.js"></script>
 	<link type="text/css" rel="stylesheet" href="../widget/click_dropdown.css"/>
 

+ 66 - 0
app/term/term.css

@@ -113,3 +113,69 @@ note .ref {
   font-size: 75%;
   margin-top: 8px;
 }
+
+.tran ul {
+  list-style-type: circle;
+  margin-left: 2em;
+}
+
+.tran li {
+  list-style: inherit;
+}
+
+.tran ol {
+  list-style-type: decimal;
+  margin: 0;
+  padding: 0;
+  margin-left: 2em;
+}
+
+.tran:lang(en) > ol {
+  list-style-type: decimal;
+}
+
+/*中文*/
+.tran:lang(zh) > ol {
+  list-style-type: cjk-ideographic;
+  margin-left: 2.5em;
+}
+
+/*简体中文*/
+.tran:lang(zh-cn) > ol {
+  list-style-type: trad-chinese-formal;
+  margin-left: 2.5em;
+}
+.tran:lang(zh-hans) > ol {
+  list-style-type: trad-chinese-formal;
+  margin-left: 2.5em;
+}
+/*繁体中文*/
+.tran:lang(zh-tw) > ol {
+  list-style-type: trad-chinese-formal;
+  margin-left: 2.5em;
+}
+.tran:lang(zh-hant) > ol {
+  list-style-type: trad-chinese-formal;
+  margin-left: 2.5em;
+}
+
+/*japanese*/
+.tran:lang(jp) > ol {
+  list-style-type: hiragana;
+  margin-left: 2.5em;
+}
+/*kora*/
+.tran:lang(ko) > ol {
+  list-style-type: korean-hangul-formal;
+  margin-left: 2.5em;
+}
+/*thai*/
+.tran:lang(ti) > ol {
+  list-style-type: thai;
+  margin-left: 2em;
+}
+/*myanmar*/
+.tran:lang(my) > ol {
+  list-style-type: myanmar;
+  margin-left: 2em;
+}