Răsfoiți Sursa

修正目录bug

bhikkhu-kosalla-china 4 ani în urmă
părinte
comite
fc3acad52f

+ 14 - 6
app/article/index.php

@@ -227,24 +227,32 @@ function show_content(){
 	$("#left_pannal").toggleClass("hidden");
 	if($("#left_pannal").hasClass("hidden")){
 		$("#main_view").css("margin-left","0");
-		$(".fun_frame").css("width","calc(30% - 1em)");
+		$(".fun_frame").css("width","30vw");
+		$("#contents_div").css("width","calc(70vw - 2em)");
+		$("#left_pannal_inner").css("width","unset");
 		localStorage.setItem('article_show_toc_'+_mode, 'hide');
 	}else{
-		$("#main_view").css("margin-left","270px");
-		$(".fun_frame").css("width","calc(30% - 81px - 1em)");
+		$("#main_view").css("margin-left","20vw");
+		$(".fun_frame").css("width","20vw");
+		$("#left_pannal_inner").css("width","unset");
+		$("#contents_div").css("width","calc(60vw - 2em)");
 		localStorage.setItem('article_show_toc_'+_mode, 'show');
 	}
 }
 function set_toc_visible(isVisible){
 	if(isVisible){
 		$("#left_pannal").removeClass("hidden");
-		$("#main_view").css("margin-left","270px");
-		$(".fun_frame").css("width","calc(30% - 81px - 1em)");
+		$("#main_view").css("margin-left","20vw");
+		$(".fun_frame").css("width","20vw");
+		$("#left_pannal_inner").css("width","unset");
+		$("#contents_div").css("width","calc(60vw - 2em)");
 		localStorage.setItem('article_show_toc_'+_mode, 'show');
 	}else{
 		$("#left_pannal").addClass("hidden");
 		$("#main_view").css("margin-left","0");
-		$(".fun_frame").css("width","calc(30% - 1em)");
+		$(".fun_frame").css("width","30vw");
+		$("#left_pannal_inner").css("width","unset");
+		$("#contents_div").css("width","calc(70vw - 2em)");
 		localStorage.setItem('article_show_toc_'+_mode, 'hide');
 	}
 }

+ 7 - 7
app/article/style.css

@@ -53,16 +53,16 @@
     height: 100%;
 	/*width:300px;*/
 	overflow-x: hidden;
-	overflow-y: scroll;
+	overflow-x: scroll;
 }
 
 #toc_content{
 	max-height: calc(100vh - 90px);
     width: max-content;
-	max-width:270px;
+	max-width:calc(20vw - 24px);
 	background-color: var(--bg-color);
     border-bottom: 1px solid var(--border-line-color);
-	overflow-y: unset;
+	overflow-y: scroll;
 }
 
 .fun_frame {
@@ -96,9 +96,9 @@
 	display: flex;
 }
 #contents_div {
-	flex: 7;
+	/*flex: 7;*/
 	padding: 0 1em 0 30px;
-	width: 70vw;
+	width: calc(70vw - 30px - 1em);
 }
 #contents {
 	min-height: 400px;
@@ -107,8 +107,8 @@
 	white-space: normal;
 }
 #right_pannal {
-	flex: 3;
-	max-width: 270px;
+	/*flex: 3;*/
+	/*max-width: 270px;*/
 }
 #head_bar {
 	height: unset;

+ 5 - 3
app/dict/css/style.css

@@ -11,6 +11,8 @@ body {
 	padding: 0.6em 1em 0.1em 1em;
 	background-color: var(--tool-bg-color1);
 	border-bottom: none;
+	position: fixed;
+    width: 100%;
 }
 
 .search_fixed {
@@ -273,7 +275,7 @@ input[type="submit"] {
 #word_parts {
 }
 #search_info {
-	display: flex;
+	/*display: flex;*/
 	justify-content: space-between;
 }
 #part_mean {
@@ -317,8 +319,8 @@ textarea {
 }
 
 #dict_ref_search_input {
-	margin-left: 0.5em;
-	max-width: 500px;
+	/*margin-left: 0.5em;*/
+	/*max-width: 500px;*/
 	font-size: 130%;
 	font-weight: 500;
 	padding: 0.3em 0.6em;

+ 1 - 1
app/dict/dict_lookup.php

@@ -211,7 +211,7 @@ $right_word_list = "";
 
 
 		echo "<div id='search_summary'>";
-		echo "查询{$word} 共{$count_return}条 ";
+		echo "{$_local->gui->find_about}{$word} {$_local->gui->total}<b>{$count_return}</b>{$_local->gui->result} ";
 		if(count($base_list)>0){
 			echo "找到可能的拼写: ";
 			foreach ($base_list as $key => $value) {

+ 6 - 6
app/dict/index.php

@@ -45,12 +45,12 @@ guide.grammar_tag:hover {
 				</span>
 				</button>
 			</div>
-			<div >
-				<guide gid="dict_search_input"></guide>
-			</div>
 			<div style="flex:6;">
-				<div>
-					<div>
+				<div style="display:flex;">
+					<div style="align-self: center;">
+						<guide gid="dict_search_input"></guide>
+					</div>
+					<div style="width:90%;">
 						<input id="dict_ref_search_input" type="text" autocomplete="off" placeholder="<?php echo $_local->gui->dict_searching_placehold; ?> " onkeyup="dict_input_keyup(event,this)" style="" onfocus="dict_input_onfocus()" />
 					</div>
 					<div id="result_msg"></div>
@@ -125,7 +125,7 @@ guide.grammar_tag:hover {
 		</button>
 	</div>
 
-	<div>
+	<div style="margin-top:calc(39px + 0.6em);">
 		<div id="main_view" class='section_inner' >
 			<div id='dict_list_shell' style="display:none" onclick='setNaviVisibility()'>
 				<div id='dict_list' class='dict_list_off'></div>

+ 8 - 3
app/users_guide/zh-cn/grammar_f.md

@@ -1,9 +1,14 @@
 # 阴性
+**名词**、**三性词**所具有的属性之一:
+- 其中**名词**的**性**是相对固定的
+- 而**三性词**的**性**不固定跟随其修饰的**中心语**的**性**。
+
+>如果在**单词**的词条解释中出现,则代表该**单词**为**名词**
+
+>如果在**语尾**的词条解释中出现,则代表该**语尾**有应用在**阴性词**中的可能性
 
 |语种|缩写|全称|
 |-|-|-|
 |巴利|thī|itthi<br>itthiliṅga<br>thīliṅga|
 |汉|阴|阴性|
-|英|f.|Feminine|
-
-注:如果在词条中出现,则该词条为**名词**
+|英|f.|Feminine|

+ 7 - 2
app/users_guide/zh-cn/grammar_m.md

@@ -1,9 +1,14 @@
 # 阳性
+**名词**、**三性词**所具有的属性之一:
+- 其中**名词**的**性**是相对固定的
+- 而**三性词**的**性**不固定跟随其修饰的**中心语**的**性**。
+
+>如果在**单词**的词条解释中出现,则代表该**单词**为**名词**
+
+>如果在**语尾**的词条解释中出现,则代表该**语尾**有应用在**阳性词**中的可能性
 
 |语种|缩写|全称|
 |-|-|-|
 |巴利|pu|puma<br>pumaliṅga<br>pulliṅga|
 |汉|阳|阳性|
 |英|m.|masculine|
-
-注:如果在词条中出现,则该词条为**名词**

+ 9 - 3
app/users_guide/zh-cn/grammar_nt.md

@@ -1,9 +1,15 @@
 # 中性
+**名词**、**三性词**所具有的属性之一:
+- 其中**名词**的**性**是相对固定的
+- 而**三性词**的**性**不固定跟随其修饰的**中心语**的**性**。
+
+>如果在**单词**的词条解释中出现,则代表该**单词**为**名词**
+
+>如果在**语尾**的词条解释中出现,则代表该**语尾**有应用在**中性词**中的可能性
+
 
 |语种|缩写|全称|
 |-|-|-|
 |巴利|na|napuṃsaka<br>napuṃsakaliṅga|
 |汉|中|中性|
-|英|nt.<br>n.|Neutral|
-
-注:如果在词条中出现,则该词条为**名词**
+|英|nt.<br>n.|Neutral|