﻿/* Scaffolding */

body {
	margin: 0;
	padding:50px;
	font:15px/1.5 Helvetica, "微软雅黑", "Helvetica Neue", Arial, sans-serif;
	color:#333;
    line-height:1.8em;
	font-weight:300;
}

.wrapper {
	width:950px;
	margin:0 auto;
	*zoom: 1;
}
.wrapper:before,
.wrapper:after {
	display: table;
	content: " ";
}
.wrapper:after {
	clear: both;
}

img {
	max-width:100%;
}


/* Typography */

h1, h2, h3, h4, h5, h6 {
	color:#222;
	margin:0 0 20px;
}

p, ul, ol, table, pre, dl {
	margin:0 0 20px;
}

h1, h2, h3 {
	line-height:1.1;
}

h1 {
	font-size:30px;
}

h2, h2 a {
	font-size:26px;
	color:#333 !important;
}
h2 a:hover {
	color:#333 !important;
	text-decoration: underline;
}

h3, h4, h5, h6, h3 a, h4 a, h5 a, h6 a {
	color:#444 !important;
}
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover {
	color:#444 !important;
	text-decoration: underline;
}

a {
	color:#6491b2;
	text-decoration:none;
}

a:hover,
a:active {
	color:#4f738d;
	text-decoration: underline;
}

a small {
	font-size:11px;
	color:#777;
	margin-top:-0.6em;
	display:block;
}

a:hover small {
	color:#777;
}

strong {
	color:#222;
	font-weight:700;
}

section {
	width:600px;
	float:right;
	padding-bottom:50px;
	min-height: 400px;
	overflow: hidden;
}

small {
	font-size:11px;
}

hr {
	border:0;
	background:#e5e5e5;
	height:1px;
	margin:0 0 20px;
}

#table-of-contents {
	margin-bottom: 0.5em;
}
#markdown-toc {
	font-size: 0.9em;
	display: inline-block;
	background: #f8f8f8;
	border-radius: 5px;
	border: 1px solid #e5e5e5;
	padding: 0.5em 1em 0.5em 2em;
}

#markdown-toc li > ul {
	margin-bottom: 0;
}

/* Code */
code,
pre {
  font-family: Menlo, Monaco, "Courier New", monospace;
}
code {
  padding: .25em .5em;
  font-size: 85%;
  color: #bf616a;
  background-color: #eee;
}
pre {
  display: block;
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 5px;
  font-size: .8rem;
  line-height: 1.4;
  overflow-x: auto;
 # white-space: pre;
 # white-space: pre-wrap;
 # word-break: break-all;
 # word-wrap: break-word;
  background-color: #eee;
}
pre code {
  padding: 0;
  font-size: 100%;
  color: inherit;
  background-color: transparent;
}
.highlight {
  -webkit-margin-start: 0;
  -webkit-margin-end: 0;
  margin-bottom: 1rem;
}
.highlight pre {
  margin-bottom: 0;
}

/* Quotes */
blockquote {
  padding: .5rem 1rem;
  margin: .8rem 0;
  color: #7a7a7a;
  border-left: .25rem solid #e5e5e5;
}
blockquote p:last-child {
  margin-bottom: 0;
}
@media (min-width: 30rem) {
  blockquote {
    padding-right: 5rem;
    padding-left: 1.25rem;
  }
}

/* Tables */
table {
  margin-bottom: 1rem;
  width: 100%;
  border: 1px solid #e5e5e5;
  border-collapse: collapse;
}
td,
th {
  padding: .25rem .5rem;
  border: 1px solid #e5e5e5;
}
tbody tr:nth-child(odd) td,
tbody tr:nth-child(odd) th {
  background-color: #eee;
}

/* Header / Sidebar Top */

header {
	width:275px;
	float:left;
	position:fixed;
	border-right: 1px solid #eee;
	padding: 50px 30px 50px 0;
	min-height: 100%;
	margin: -50px 0;
}

header h1 {
	margin-bottom: 12px;
}


/* Navbar */

nav ul {
	list-style:none;
	height:24px;
	padding:0;
	background: #fff;
	border-radius:5px;
	border:1px solid #e5e5e5;
	width:272px;
}

nav li {
	float:left;
	height:24px;
	width:67px;
	border-right:1px solid #e5e5e5;
}

nav li:last-child {
	border-right:none;
	width:68px;
}

nav li a {
	font-size:11px;
	color:#999;
	display:block;
	text-align:center;
	line-height:24px;
	height:24px;
	font-size:13px;
}

nav li:first-child a {
	border-radius:5px 0 0 5px;
}

nav li:last-child a {
	border-radius:0 5px 5px 0;
}

nav li a:hover,
nav li a:active {
	color:#444;
	font-weight: bold;
	text-decoration: none;
}

nav li a:active,
nav li a.active,
nav li a.active:hover {
	background: #f8f8f8;
}


/* Pagination */

.pagination {
	*zoom: 1;
}
.pagination:before,
.pagination:after {
	display: table;
	content: " ";
}
.pagination:after {
	clear: both;
}
.pagination ul {
	float: right;
	display: inline-block;
	list-style:none;
	height:24px;
	padding:0;
	background: #fff;
	border-radius:5px;
	border:1px solid #e5e5e5;
}

.pagination li {
	float:left;
	height:24px;
	border-right:1px solid #e5e5e5;
}

.pagination li:last-child {
	border-right:none;
}

.pagination li a {
	font-size:11px;
	color:#999;
	display:block;
	text-align:center;
	line-height:24px;
	height:24px;
	font-size:13px;
	padding: 0 8px;
	width: 1em;
}

.pagination li:first-child a {
	border-radius:5px 0 0 5px;
}

.pagination li:last-child a {
	border-radius:0 5px 5px 0;
}

.pagination li.prev a {
	width: 4em;
}

.pagination li.next a {
	width: 2.5em;
}

.pagination li a:hover,
.pagination li a:active {
	color:#444;
	font-weight: bold;
	text-decoration: none;
}

.pagination li a:active,
.pagination li a.active,
.pagination li a.active:hover {
	background: #f8f8f8;
}


/* Post Content */

.post-title {
	margin-bottom: 0;
}
.post-meta,
.post-meta a {
	color: #aaa;
	margin-bottom: 0;
	white-space: nowrap;
},
.post-meta a:hover,
.post-meta a:active {
	text-decoration: underline;
}

.post-banner {
	display: block;
	background: #000 url('/img/post-banners/no-image.gif') center;
	background-size: auto 100%;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	overflow: hidden;
	margin: 0.5em 0;
	width: 100%;
	max-height: 150px;
}
.post-banner.no-image,
.post-banner.no-image:hover {
	background-size: 100% 100% !important;
}
.post-banner > img {
	display: block;
	visibility: hidden;
	margin: 0;
	padding: 0;
	height: 0;
	width: 100%;
	padding-bottom: 33%;
}
a.post-banner { -webkit-transition: all .2s ease-in-out; }
a.post-banner:hover { background-size: auto 104%; }

.post-excerpt {
	margin-bottom: 2em;
}

/* Footer / Sidebar */

footer {
	font-size: 14px;
	text-align: center;
	width:275px;
	float:left;
	position:fixed;
	bottom:50px;
}

img.avatar {
	border-radius: 40px;
	-webkit-border-radius: 40px;
	-moz-border-radius: 40px;
	width:72px;
	height:72px;
}

img.profile {
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	width:100px;
	height:100px;
}

img.pull-right {
	max-width: 40%;
	float: right;
	margin: 0 0 1em 1em;
}

img.pull-left {
	max-width: 40%;
	float: right;
	margin: 0 1em 1em 0;
}


/* Responsive Adjustments */

@media print, screen and (max-width: 1050px) {
	
	div.wrapper {
		width:600px;
	}
	
	header, section, footer {
		float:none;
		position:static;
		width:auto;
	}
	
	header {
		background: none;
		position: relative;
		padding:0 320px 10px 0;
		margin: 0;
		min-height: 0;
		border: none;
	}
	
	section {
		border:1px solid #eee;
		border-width:1px 0;
		padding:20px 0;
		margin:0 0 20px;
	}
	
	header a small {
		display:inline;
	}
	
	header ul {
		position:absolute;
		right:0;
		top:5px;
	}
	
	footer {
		text-align: center;
		max-width: 400px;
		margin: 0 auto;
	}
}

@media print, screen and (max-width: 700px) {
	body {
		word-wrap:break-word;
		padding-top: 15px;
	}
	
	div.wrapper {
		width:auto;
		margin: 0;
	}
	
	header {
		padding: 0 0 15px;
	}
	
	nav ul {
	 position: static;
	 margin: 0 auto;
	}
	
	header p.view {
		position:static;
	}
	
	header {
		text-align: center;
	}
	
	pre, pre > code {
		word-wrap:normal;
	}
}

@media print, screen and (max-width: 480px) {
	body {
		padding:15px;
	}
	.post-meta {
		font-size: 15px;
	}
}

@media print {
	body {
		padding:0.4in;
		font-size:12pt;
		color:#444;
	}
}

/* Home Page Styling */

div.wrapper.home {
	width: auto;
	margin: 0;
}

div.home header,
div.home section,
div.home footer {
	float: none;
	width: auto;
	position: static;
	text-align: center;
	max-width: 400px;
	margin: 0 auto;
}

div.home header {
	background: none;
	padding: 0;
	margin-bottom: 2em;
	min-height: 0;
	border: none;
	text-align: center;
}

div.home header ul {
	position: static;
	margin: 0 auto;
}

div.home section {
	border: none;
	padding: 0;
	min-height: 0;
}

div.home footer {
	max-width: 300px;
}

