/*  
Theme Name: Coolcode.CN
Description: based on Almost Spring. 
Version: 1.5
Author: andot
Author URI: http://blog.coolcode.cn

Theme last updated: 2005-07-07
*/

/* Basics and Typography */

body {
	margin: 0;
	padding: 0;
	background: #E8E8CE url(images/bg.gif) repeat-x fixed;
	font-size: 12px;
	font-family: Tahoma, Verdana, Arial, "Lucida Grande", "Lucida Sans Unicode", sans-serif;
	color: #333;
	text-align: center;
}
p {
	font-size: 14px;
	line-height: 1.5em;
	margin: 1.2em 0;
}
ol, ul {
	font-size: 12px;
	line-height: 1.5em;
	margin: 1.2em 0 1.2em 2em;
	padding: 0;
}
h1, h2, h3, h4, h5, h6 {
	margin: 1.2em 0;
	font-family: Tahoma, Arial, "Lucida Grande", sans-serif;
	color: #9BBB38; 
}
h1, h2 {
	font-size: 16px;
	font-weight: bold;
}
h3 {
	font-size: 14px;
	font-weight: bold;
}
h4 {
	font-size: 14px;
}
a {
	text-decoration: none;
}
a:link {
	color: #E58712;
}
a:visited {
	color: #B96F17;
}
a:hover, a:active {
	color: #9BBB38;
}

pre code {
    background: #eee;
    line-height: 22px;
    margin: 8px 0;
    padding: 8px;
    font-size: 1.2em;
    font-family: 'Courier New', 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono',  monospace, serif;
    display: block;
    white-space: pre-wrap;
}

input, textarea, select {
	border: 1px solid #C1C0B5;
	background-color: #FAFAF0;
	color: #333;
	font-size: 12px;
	font-family: Tahoma, Arial, "Lucida Sans Unicode", sans-serif;
}
blockquote {
	background:transparent url(images/bg_blockquote.gif) no-repeat scroll 0pt 5px;
	padding-left:35px;
	padding-bottom:10px;
}

form, img {
	margin: 0;
	padding: 0;
	border: 0;
}
.small {
	font-size: 12px;
	color: #999;
}

/* Layout */

#wrapper {
	margin: 0 auto;
	width: 100%;
	background-color: #FFF;
	text-align: left;
}
#header {
	padding: 32px 0 0 0;
	background-color: #F5F5E7;
	border-bottom: 10px solid #9BBB38;
}

	/* Header Styles */
	#header h1 {
		margin: 0;
		font-size: 24px;
		font-weight: bold;
		padding: 0 20px;
	}
	#header h1 a {
		text-decoration: none;
		color: #80904F;
	}
	
#container {
	float: left;
	width: 100%;
	margin-right: -230px;
}
	
#content {
	padding: 0 20px;
	margin-right: 230px;
} 
* html #content {
	overflow: hidden;
	/* So IE won't break things */
}
#sidebar {
	float: right;
	padding: 1.8em 20px 0 20px;
	width: 230px;
	font-size: 12px;
	voice-family: "\"}\""; 
	voice-family: inherit;
	width: 190px;
	overflow:hidden;
} 
#search_content, #du_content {
	display:none;
}
html>body #sidebar {
	width: 190px;
}

	/* Lots of sidebar styles, so they're below */

#footer {
	clear: both;
	font-size: 12px;
	text-align: center;
}

	/* Footer Styles */
	#footer p {
		margin: 0;
		padding: 10px 0 20px 0;
		background-color: #E8E8CE;
		border-top: 10px solid #9BBB38;
		font-size: 12px;
		text-align: center;
	}

	
	
/* Sidebar Styles */

#sidebar h2 {
	display: inline;
	margin: 1.2em 0 0.6em 0;
	padding: 0 10px 0 0;
	background: url(images/arrow.gif) no-repeat center right;
	font-size: 14px;
	font-weight: bold;
}
#sidebar ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}
#sidebar ul li {
}
#sidebar ul ul {
	margin: 1.2em 0;
	border-top: 1px solid #E8E7D0;
	background-color: #FAFAF0;
}
#sidebar ul ul li {
	padding: 0 0 0 10px;
	border-bottom: 1px solid #E8E7D0;
}
#sidebar ul ul li a {
	display: block;
	margin: 0 0 0 -10px;
	padding: 2px 10px 0 10px;
	width: 190px;
	voice-family: "\"}\""; 
	voice-family: inherit;
	width: 170px;
} 
html>body #sidebar ul ul li a {
	width: 170px;
}
#sidebar ul ul li a:hover {
	background-color: #FFF;
}
/* Nested lists? */
#sidebar ul ul ul {
	margin: 0;
	border: none;
}
#sidebar ul ul ul li {
	margin: 0 0 0 -10px;
	padding: 0 0 0 25px;
	border-bottom: none;
	border-top: 1px solid #E8E7D0;
}
#sidebar ul ul ul li a {
	margin: 0 0 0 -25px;
	padding: 2px 10px 0 25px;
	width: 190px;
	voice-family: "\"}\""; 
	voice-family: inherit;
	width: 155px;
} 
html>body #sidebar ul ul ul li a {
	width: 155px;
}


/* Blog */
.post {
}
.posttitle {
	font-size:2.1em;
	margin-bottom: 0;
	width: 100%;
	color: #FFF;
	overflow: auto;
	clear:both;
	/* Width and overflow to clear '.posttitle a' */
}
.posttitle a {
	padding: 2px 10px 0 10px;
	background: #9BBB38 url(images/posttitle.gif) no-repeat top right;
}
.posttitle a:link, .posttitle a:visited {
	color: #FFF;	
}
.posttitle a:hover, .posttitle a:active {
	background: #E8E7D0 url(images/posttitle.gif) no-repeat 100% -91px;
	color: #80904F;
}
.postmeta {
	margin-top: 0;
	padding-top: 1px;
	background: url(images/postmeta.gif) no-repeat top left;
	font-size: 12px;
	color: #999;
}

.permalink {
	margin: 0 1.8em 0 0;
	padding: 0 0 0 14px;
	background: url(images/permalink.gif) no-repeat center left;
}
.commentslink {
	padding: 0 0 0 17px;
	background: url(images/commentslink.gif) no-repeat center left;
}



/* Comments */

#comment {
        width: 90%;
}

#commentlist {
	margin: 1.2em 0;
	padding: 0;
	border-bottom: 1px solid #E8E7D0;
	list-style-type: none;
}
#commentlist li {
	border-top: 1px solid #E8E7D0;
	padding: 1px 20px;
	background-color: #FFF;
}
.alt {
	background-color: #FAFAF0 !important;
}
.commenttitle {
	margin-bottom: 0;
	font-size: 12px;
	font-weight: bold;
}
.commentmeta {
	margin-top: 0;
	font-size: 12px;
	color: #999;
}

.avatar {
	border:1px dashed #D3D3D3;
	float:left;
	margin-right:5px;
	margin-top:10px;
	padding:2px;
}

div.comment-number {
        float: right;
	color: #999;
	width: auto;
	text-align: right;
}

/* Search Button */
.searchbutton {
  width: 42px;
  height: 20px;
}

.navigation{margin:5px; margin-bottom:1.5em; padding-bottom:4px;}
.navigation a{font-size:14px;}
.alignright { float: right; }
.alignleft { float: left }

.related {float:right; border-left:2px solid #ccc; padding-left:5px; margin:5px; width:230px; background:#f3f3f3; }
.related h2 {margin:.2em 0;}
.related ul {margin:0px; list-style:none;}
.related a{font-size:1em; line-height:1.4em;}

.banner_mod {margin:5px; float:left;}

.adsense {text-align:center; margin:0.5em;}

