Commit f47c497e authored by dmscode's avatar dmscode
Browse files

样式定义完成

parent eccf51fc
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -25,7 +25,9 @@ Mac 系统我不了解,求赞助一个供我研究……
* 代码转换 ………… OK
* 文件获取 ………… OK
* 命名空间 ………… OK
* 样式定义
* 样式定义 ………… OK
* 代码复制
* 首页文档

## 使用说明: ##

@@ -41,6 +43,7 @@ Mac 系统我不了解,求赞助一个供我研究……
	* 	|- files			全部引用文件
	* 	|- imgs				全部文章图片
	* 	|- data				全部文章源码
		*	|- index.md		默认显示文档,建议用作索引
	* 	|- index.html		唯一的页面文件,负责解读一切内容


+9 −5
Original line number Diff line number Diff line
@@ -59,6 +59,10 @@ Markdown 的目标是实现「易读易写」。

总之, Markdown 的语法全由一些符号所组成,这些符号经过精挑细选,其作用一目了然。比如:在文字两旁加上星号,看起来就像\*强调\*。Markdown 的列表看起来,嗯,就是列表。Markdown 的区块引用看起来就真的像是引用一段文字,就像你曾在电子邮件中见过的那样。

![](https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcR_UEcxP1DIot46KpnwmdXjLVAORBKPUJKClptKa_3xGSPZEM5WPg)

![](http://f2.topitme.com/2/bc/d1/11454254184aad1bc2o.jpg)

<h3 id="html">兼容 HTML</h3>

Markdown 语法的目标是:成为一种适用于网络的*书写*语言。
+59 −5
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ body {
	margin:0;
	background: #EFEFEF;
}
#header {
body>#header {
	background: #22222C;
	width: 100%;
	height: 200px;
@@ -23,19 +23,19 @@ body {
	color: #EFEFEF;
	overflow: hidden;
}
#header a {
body>#header a {
	color: #EFEFEF;
}
#header h1 {
body>#header h1 {
	text-align: center;
	line-height: 84px;
	margin: 0;
}
#main {
body>#main {
	margin-top: 15px;
	margin-bottom: 15px;
}
#content {
body>#main #content {
	background: #FCFCFC;
	padding: 35px 60px;
	min-height: 480px;
@@ -44,3 +44,57 @@ body {
	-moz-box-shadow: 0 2px 2px 3px #EEE;
	box-shadow: 0 2px 2px 3px #EEE;
}

/*内容样式*/
body>#main #content p {
	padding: 0.6em 0;
	margin:0;
	/*text-indent:2em;*/
}
pre {
	display: block;
	overflow-x: auto;
	word-wrap: break-word; 
	word-break: normal; 
	padding: 0 60px;
	margin: 0.6em -60px;
	background: #23241f;
	color: #f8f8f2;
	font-size: 16px;
	-webkit-text-size-adjust: none;
}
pre code {
	display: block;
	padding: 35px 15px;
	margin:0;
	border-left:2px solid #666;
}
pre code .code-line {
	position: relative;
	min-height: 1.8em;
}
pre code .code-line .line-num {
	position: absolute;
	left: -77px;
	width: 60px;
	padding: 0 5px;
	text-align: right;
	color: #666;
}
body>#main #content .img-box {
	padding: 0;
	margin: 0.6em -60px;
}
body>#main #content .img-box img {
	padding: 0;
	display: block;
	margin: 0 auto;
	max-width: 100%;
}
body>#main #content blockquote {
	background: #F6F6F6;
	border-left: 5px solid #DDDDE3;
}
body>#main #content blockquote>blockquote {
	background: #FFF;
}
 No newline at end of file
+17 −2
Original line number Diff line number Diff line
@@ -8,8 +8,8 @@

		<!-- Bootstrap -->
		<link href="files/css/bootstrap.min.css" rel="stylesheet">
		<link href="files/css/monokai_sublime.css" rel="stylesheet">
		<link href="files/css/main.css" rel="stylesheet">
		<link href="files/css/default.css" rel="stylesheet">
		<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
		<script src="files/js/jquery.min.js"></script>
		<script src="files/js/marked.js"></script>
@@ -19,7 +19,8 @@
			function QueryGET(TheName){      
				var urlt = window.location.href.split("?");
				if(!urlt[1]){}else{
					var gets = urlt[1].split("&");
					var clearurl = urlt[1].split("#");
					var gets = clearurl[0].split("&");
					for(var i=0;i<gets.length;i++){
						var get = gets[i].split("=");
						if(get[0] == TheName){
@@ -64,6 +65,20 @@
						$("#content").html(function(){
							return marked(markdownString);
						});
						$('pre code').each(function(){
							var thecode = $(this).html().split('\n');
							var code = "";
							for(k in thecode){
								if(!thecode[k] && k == (thecode.length-1)){}else{
									m=k+1;
									code +='<div class="code-line"><div class="line-num">'+(Number(k)+1)+'</div>'+thecode[k]+'</div>';
								}
							}
							$(this).html(code);
						});
						$('#content img').each(function(){
							$(this).wrap('<div class="img-box"></div>');
						});
						pagetitle=$("#content").find(":header:first").text();
						if(pagetitle != ""){
							$("title").text(pagetitle + " - Wiki in box");