/*  
Theme Name: YASimple
Author: Tanky Woo<me@tankywoo.com>
Author URI: http://www.wutianqi.com/
Description: Yet another simple theme for simiki.
Version: 0.1
License: The MIT License (MIT)
Tags: simple, single-columns, code, codehighlight, white, markdown
*/

/* Global Configuration */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* IE6 ignores this and uses default size of 16pt */
html>body { font-size: 15px; }

html {
    font-size: 100%;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: "Microsoft YaHei","Helvetica Neue", "Segoe UI", Arial, Sans-Serif;
    /* font-family: Monaco, 'Courier New', monospace; */
    line-height: 1.5em;
    background-color: #95AFBA;
}

a { color: #1863A1; text-decoration: none; }
a:visited { color: #1863A1; }
a:hover { color: #A00; text-decoration: underline; }
a:active { color: #1863A1; }

p { margin: 0 0 1em 0; }

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    margin-bottom: 1em;
    #padding-left: 1em;
}

h1 { font-size: 2.0em; }
h2 { font-size: 1.6em; padding-bottom: 5px; overflow:hidden }
h3 { font-size: 1.4em; }
h4 { font-size: 1.2em; }
h5 { font-size: 1.0em; font-weight:bold }
h6 { font-size: 0.8em; }

blockquote {
    color: #666;
    margin: 0;
    padding-left: 1em;
    border-left: 0.3em #eee solid;
}

/* Gradient transparent - color - transparent
http://css-tricks.com/examples/hrs/
*/
hr {
    border: 0px;
    height: 2px;
    margin: 15px 0;
    background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:    -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:     -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:      -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
}

b, strong { font-weight: bold; }

table {
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 1em;
    border: 1px solid #eee;
}

td {
    vertical-align: top;
    padding: 3px 6px;
}

/* Optimization for pre and code tag */
pre, code { 
    /* font-family: Consolas, "DejaVu Sans Mono", "Lucida Console", Monaco, Andale Mono, "MS Gothic", monospace; */
    font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 12px;
    color: #586E75;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    overflow: auto;
}

code {
    background-color: #EEE;
    margin: 0 2px;
    padding: 1px 3px;
}

pre {
    /* border: 1px solid #eee; */
    padding: 8px 12px;
    white-space: pre;
    white-space: -moz-pre-wrap; /* Firefox */
    white-space: -pre-wrap;     /* ancient Opera */
    white-space: -o-pre-wrap;   /* newer Opera */
    white-space: pre-wrap;      /* Chrome; W3C standard */
    word-wrap: break-word;      /* IE */
}

pre code {
    border: 0px !important;
    padding: 0;
    color: #000;
    background-color: #F8F8F8;
}

/* Custom Configuration */
#container {
    width: 50em;
    margin: 0 auto 3em auto;
    padding: 3em 2em 1.5em 2em;
    background-color: #FBFFFD;
    border: 1px solid #eee;
    box-shadow: 2px 2px 8px #aaa;
    -webkit-box-shadow: 2px 2px 8px #aaa;
    -moz-box-shadow: 2px 2px 8px #aaa;
}

#container a {
    color: #666;
    text-decoration: none;
}

#container a:hover {
    color: #666;
    border-bottom: 2px solid #88ACDB;
    /* border-bottom: 2px solid #e1e1e1; */
}

#nav {
    position:fixed;
    left:0;
    top: 150px;
    border:0;
}

#wiki_title, #title {
    text-align: center;
    font-size: 2em;
    padding-bottom: 10px;
    margin: 20px 0;
}

#title {
    border-bottom: 1px dashed #eee;
}

#footer {
    margin: 10px auto;
    color: grey;
    font-size: 80%;
    text-align: center;
}

li.pagelist {
    width: 22em;
    margin-right: 1.5em;
    list-style-type: none;
    white-space: nowrap;
    overflow: hidden;
}

li.pagelist:before {
    content: "\0BB \020";
}

.category {
    float: left;
    width: 100px;
    height: 8em
}
.category_list {
    float: left;
}

#container .category h2{ color: #CCC; }

#content h2 { color: #88ACDB; }

#content h3 { color: #8D6E63; }

#content h4 { color: #006064; }

#content img {
    border: 0;
    vertical-align: middle;
    margin: 0 auto;
    max-width: 720px;
    display: block;
}


#content li {
    margin-bottom: 0.7em

}

/* Table of Contents */
.toc {
    margin: 0 0.5em;
    padding: 0.5em 1em;
    border: 1px dashed silver;
    background-color: #ECF5FF;
    float: right;
    display: block;
    font-size: 75%;
}

.toc > .toctitle {
    display: block;
    text-align: center;
    font-weight: bold;
    margin-bottom: 1em;
}

.toc ul {
    margin: 0;
    padding-left: 1.5em;
}

/* Hackers */
/* Hacker for codehilite */
.hlcodetable {
    border: 0;
    border-collapse: separate !important;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
}

.hlcodetable td { padding: 0; border: 0 none; margin: 0; }

.hlcodetable .linenodiv {
    border-right: 1px solid #ddd;
}

.hlcodetable .linenodiv pre, .hlcodetable .hlcode pre { margin: 0; border: none; }

.hlcode {
    margin: 0 0 1em 0;
    color: #586E75;
}

/* Pygments them, Punctuation and Name */
.hlcode pre .p, .hlcode pre .n { color: #586E75; }

/* Clear the float problem */
.clearfix:after {
    visibility: hidden;
    clear: both;
    font-size: 0;
    content: ".";
    display: block;
    height: 0;
}
