瀏覽代碼

文章优化样式 增大行距

visuddhinanda 5 年之前
父節點
當前提交
782cb9c783
共有 4 個文件被更改,包括 174 次插入159 次删除
  1. 2 159
      app/article/index.php
  2. 21 0
      app/article/mobile.css
  3. 150 0
      app/article/style.css
  4. 1 0
      app/term/term.css

+ 2 - 159
app/article/index.php

@@ -38,167 +38,10 @@ require_once "../pcdl/html_head.php";
 	}
 	?>
 	</script>
-	<style>
-	#search_result{
-		position: absolute;
-		background: wheat;
-		max-width: 95%;
-		width: 24em;
-	}
-
-	.icon{
-		width: 15px;
-		height: 15px;
-	}
-	.submenu_title{
-		font-size: 120%;
-		font-weight: 700;		
-	}
-
-	#head_bar{
-		display: flex;
-		justify-content: space-between;
-		/*height: 5em;*/
-		background-color: var(--tool-bg-color1);
-		border-bottom: 1px solid var(--tool-line-color);
-		padding:10px;
-		margin-top: 50px;
-	}
-
-	.main_view{
-		padding: 0 1em;
-		max-width: 1280px;
-		margin-left: auto;
-		margin-right: auto;
-	}
-
-	.fun_frame {
-		border-bottom: 1px solid gray;
-		margin-right: 10px;
-		margin-bottom: 10px;
-	}
-	.fun_frame .title{
-		padding:6px;
-		font-weight: 700;
-	}
-	.fun_frame>.content{
-		padding:6px;
-		max-height:6em;
-		overflow-y: scroll;
-	}
-	
-	.fixed{
-		position:fixed;
-		right: 0;
-    	top: 0;
-	}
-	.when_right_fixed{
-		padding-right:20em;
-	}
-
-
-	#contents_view{
-		display:flex;
-	}
-	#contents_div{
-		flex:7;
-		padding: 0 1em 0 30px;
-		width:70vw;
-	}
-	#contents{
-		min-height: 400px;
-	}
-	#contents li{
-		white-space: normal;
-	}
-	#right_pannal{
-		flex:3;
-		max-width:20em;
-	}
-	#head_bar{
-		height:unset;
-	}
-	#contents_foot{
-		margin-bottom: 70vh;
-	}
-
-
-#toc_content .level_2{
-	padding-left:0.5em;
-}
-#toc_content .level_3{
-	padding-left:1em;
-}
-#toc_content .level_4{
-	padding-left:1.5em;
-}
-#toc_content .level_5{
-	padding-left:2em;
-}
-.ui-dialog-titlebar{
-		display: flex;
-    justify-content: space-between;
-	background-color: var(--btn-bg-color);
-    padding: 5px;
-	}
-	.ui-widget-content{
-		background-color: var(--bg-color);
-	}
-	.ui-dialog{
-		box-shadow:  8px 8px 20px var(--border-shadow);
-	}
-	.active{
-		background-color: var(--btn-hover-bg-color);
-	}
-	.icon_btn a {
-	color: var(--main-color);
-	}
-	.icon_btn:hover a {
-		color: var(--btn-hover-color);
-	}
-	.tran  img{
-	max-width: 100%;
-     max-height: 200px;
-     width: auto;
-     height: auto;
-     object-fit: cover;
-     background-size: contain;   
- }
- .channal_list{
-		white-space: nowrap;
-		overflow-x: hidden;
-	}
-	.userinfo_channal{
-		display:none;
-	}
-	.userinfo_channal:hover{
-		display:block;
-	}
-	img {
-    width: 90vw;
-    max-width: 40em;
-}
-	</style>
-<style media="screen and (max-width:800px)">
-#right_pannal{
-	display:none;
-}
-.when_right_fixed{
-	padding-right:0;
-}
-.index_toolbar{
-	position:unset;
-}
-#pali_pedia{
-	font-size: 200%;
-	margin-top: auto;
-	margin-bottom: auto;
-	padding-left: 0.5em;
-}
-
 
-</style>
 
+<link type="text/css" rel="stylesheet" href="style.css"  />
+<link type="text/css" rel="stylesheet" href="mobile.css" media="screen and (max-width:800px)" />
 <link type="text/css" rel="stylesheet" href="print.css" media="print" />
 
 

+ 21 - 0
app/article/mobile.css

@@ -0,0 +1,21 @@
+#right_pannal {
+	display: none;
+}
+.when_right_fixed {
+	padding-right: 0;
+}
+.index_toolbar {
+	position: unset;
+}
+#pali_pedia {
+	font-size: 200%;
+	margin-top: auto;
+	margin-bottom: auto;
+	padding-left: 0.5em;
+}
+#contents_div {
+	padding: 0;
+}
+#head_bar {
+	flex-direction: column;
+}

+ 150 - 0
app/article/style.css

@@ -0,0 +1,150 @@
+#search_result {
+	position: absolute;
+	background: wheat;
+	max-width: 95%;
+	width: 24em;
+}
+
+.icon {
+	width: 15px;
+	height: 15px;
+}
+.submenu_title {
+	font-size: 120%;
+	font-weight: 700;
+}
+
+#head_bar {
+	display: flex;
+	justify-content: space-between;
+	/*height: 5em;*/
+	background-color: var(--tool-bg-color1);
+	border-bottom: 1px solid var(--tool-line-color);
+	padding: 10px;
+	margin-top: 50px;
+}
+
+.main_view {
+	padding: 0 1em;
+	max-width: 1280px;
+	margin-left: auto;
+	margin-right: auto;
+}
+
+.fun_frame {
+	border-bottom: 1px solid gray;
+	margin-right: 10px;
+	margin-bottom: 10px;
+}
+.fun_frame .title {
+	padding: 6px;
+	font-weight: 700;
+}
+.fun_frame > .content {
+	padding: 6px;
+	max-height: 6em;
+	overflow-y: scroll;
+}
+
+.fixed {
+	position: fixed;
+	right: 0;
+	top: 0;
+}
+.when_right_fixed {
+	padding-right: 20em;
+}
+
+#contents_view {
+	display: flex;
+}
+#contents_div {
+	flex: 7;
+	padding: 0 1em 0 30px;
+	width: 70vw;
+}
+#contents {
+	min-height: 400px;
+}
+#contents li {
+	white-space: normal;
+}
+#right_pannal {
+	flex: 3;
+	max-width: 20em;
+}
+#head_bar {
+	height: unset;
+}
+#contents_foot {
+	margin-bottom: 70vh;
+}
+
+#toc_content .level_2 {
+	padding-left: 0.5em;
+}
+#toc_content .level_3 {
+	padding-left: 1em;
+}
+#toc_content .level_4 {
+	padding-left: 1.5em;
+}
+#toc_content .level_5 {
+	padding-left: 2em;
+}
+.ui-dialog-titlebar {
+	display: flex;
+	justify-content: space-between;
+	background-color: var(--btn-bg-color);
+	padding: 5px;
+}
+.ui-widget-content {
+	background-color: var(--bg-color);
+}
+.ui-dialog {
+	box-shadow: 8px 8px 20px var(--border-shadow);
+}
+.active {
+	background-color: var(--btn-hover-bg-color);
+}
+.icon_btn a {
+	color: var(--main-color);
+}
+.icon_btn:hover a {
+	color: var(--btn-hover-color);
+}
+.tran img {
+	max-width: 100%;
+	max-height: 200px;
+	width: auto;
+	height: auto;
+	object-fit: cover;
+	background-size: contain;
+}
+.channal_list {
+	white-space: nowrap;
+	overflow-x: hidden;
+}
+.userinfo_channal {
+	display: none;
+}
+.userinfo_channal:hover {
+	display: block;
+}
+img {
+	width: 90vw;
+	max-width: 40em;
+}
+
+/*
+左右对读
+.note_shell {
+    display: flex;
+}
+.note_shell > .palitext{
+	flex: 5;
+}
+.note_shell>note {
+    flex: 5;
+}
+*/

+ 1 - 0
app/term/term.css

@@ -164,6 +164,7 @@ note > .tran {
 	padding: 0;
 	position: relative;
 	margin-top: -0.5em;
+	line-height: 1.8em;
 }
 note > .tran > .text {
 	margin-bottom: 1em;