Browse Source

代码块样式优化

star7th 9 years ago
parent
commit
077091c3ce
3 changed files with 16 additions and 11 deletions
  1. 3 10
      Application/Home/View/Page/index.html
  2. 12 0
      Public/css/page/index.css
  3. 1 1
      composer.json

+ 3 - 10
Application/Home/View/Page/index.html

@@ -1,16 +1,9 @@
 <include file="Common/header" />
 <link href="__PUBLIC__/highlight/default.min.css" rel="stylesheet"> 
-<link href="__PUBLIC__/css/page/index.css" rel="stylesheet">
-<style type="text/css">
-.hljs{
-	padding: 0px;
-}
-
-</style>
+<link href="__PUBLIC__/css/page/index.css?v=1.12" rel="stylesheet">
 <h3 style="text-align: center;">{$page.page_title}</h3>
 <!-- 这里开始是内容 -->
-
-<div id="page_md_content" style="padding-top:10px;" ><textarea style="display:none;">
+<div id="page_md_content" ><textarea style="display:none;">
 {$page.page_md_content}</textarea></div>
 
 <div id="page_html_content" style="display:none;">{$page.page_html_content}</div>
@@ -25,4 +18,4 @@
  <script src="__PUBLIC__/editor.md/lib/sequence-diagram.min.js"></script>
  <script src="__PUBLIC__/editor.md/lib/jquery.flowchart.min.js"></script>
  <script src="__PUBLIC__/editor.md/editormd.min.js"></script>
-<script src="__PUBLIC__/js/page/index.js?a=1"></script>
+<script src="__PUBLIC__/js/page/index.js?a=12"></script>

+ 12 - 0
Public/css/page/index.css

@@ -15,4 +15,16 @@ p{
 
 li{
 	line-height: 30px;
+}
+
+.hljs{
+	padding: 0px;
+}
+
+.linenums li{
+	list-style-type:none;
+}
+
+#page_md_content{
+	padding-top:10px;
 }

+ 1 - 1
composer.json

@@ -5,7 +5,7 @@
     "description": "ShowDoc is a tool greatly applicable for an IT team to share documents online",
     "keywords": ["showdoc","documents","Api"],
     "homepage": "https://github.com/star7th/showdoc",
-    "version":"v1.1.3",
+    "version":"v1.1.4",
     "license": "Apache-2.0",
     "authors": [
         {