Pārlūkot izejas kodu

:art: 百科手机版

visuddhinanda 5 gadi atpakaļ
vecāks
revīzija
e57a7e5bcf
2 mainītis faili ar 18 papildinājumiem un 4 dzēšanām
  1. 2 2
      app/public/function.php
  2. 16 2
      app/wiki/wiki.php

+ 2 - 2
app/public/function.php

@@ -81,13 +81,13 @@ function _get_para_path($book,$paragraph){
     $stmt->execute(array($book,$parent));
     $FetParent = $stmt->fetch(PDO::FETCH_ASSOC);
     
-		$toc="<chapter book='{$book}' para='{$parent}'>{$FetParent["toc"]}</chapter>";
+		$toc="<chapter book='{$book}' para='{$parent}'>{$FetParent["toc"]}&gt</chapter>";
 		
 		if($path==""){
 			$path="<para book='{$book}' para='{$parent}'>{$paragraph}</para>";
 		}
 		else{
-			$path="{$toc}>{$path}";
+			$path=$toc.$path;
 		}
 		if($sFirstParentTitle==""){
 			$sFirstParentTitle = $FetParent["toc"];

+ 16 - 2
app/wiki/wiki.php

@@ -61,7 +61,14 @@ echo "wiki_load_word('{$_get_word}')";
 		max-width: 95%;
 		width: 24em;
 	}
+	note:hover chapter{
+		display:inline;
+	} 
+	.ref>chapter:first-child{
+		display:inline;
+	}
 	chapter{
+		display:none;
 		color: var(--box-bg-color1);
 		text-decoration: none;
 		cursor: pointer;
@@ -71,11 +78,11 @@ echo "wiki_load_word('{$_get_word}')";
 		text-decoration: underline;
 	}
 	para{
-		background-color: #959595;
+		background-color: var(--drop-bg-color);
 		padding: 2px 8px;
 		text-decoration: none;
 		cursor: pointer;
-		color: white;
+		color: var(--btn-border-color);
 		border-radius: 5px;
 	}
 	para:hover{
@@ -218,6 +225,13 @@ echo "wiki_load_word('{$_get_word}')";
 }
 
 	</style>
+
+<style media="screen and (max-width:767px)">
+#term_list_right{
+	display:none;
+}
+</style>
+
 <script>