/**************************************************
说明：
1：我们建议你通过只改变css的方式来制作新的皮肤模板。当然，页面的部分代
码你也是可以更改的，例如一些图片的地址。但是，请你在递交作品的时候，请同时
提交对页面部分代码的修改备注和说明。以便我们了解。
2：为了保证页面的兼容性，请你分别在IE和Firefox中分别查看你的页面，以便保证页面
对浏览器的兼容性。
3：请你随时关注官方网站。以便获得最新的通知和说明
时间：2008-1-30
作者：杨正祎
**************************************************/


/**************************************************
说明2：
上面那个说明，是在 https://skintemplate.cnblogs.com 下载的皮肤模板中附带的
在八年后的今天，这份“模板”，其实真正保留的，也只有注释了。
博客园肯定经过了许许多多的变迁，好多元素的类名，ID都或多或少的有所变化。
我也没有准备兼容低级浏览器，用了一些奇怪的选择器。没办法，谁让没有JS权限呢。
博客园官方貌似一直没有更新这个主题模板，我也没有找到投递新主题的入口。
嗯，就放在这里吧，算是我对MaterialDesign的一个执念。
时间：2016-8-26 00：12
作者：Rocket1184@博客园
**************************************************/


/**************************************************
坑：
由于博客园任性的代码高亮CSS，全部是 !important 优先级而且无法覆盖，
此次的修改没有对代码块的字体大小做调整，但这恰恰是我最急于改变的地方之一。
我会尽快申请JS权限，以便找到更好的解决方案。
时间：2016-8-26 00:16

更新：
已经使用优先级更高的 id 选择器和 !important 优先级覆盖了默认代码字体。
这坑算是填上了。
时间：2012-11-8 00:14
作者：Rocket1184@博客园
**************************************************/


/**************************************************
第一部分：所有的模板都使用的公共样式。公告样式是为了更好的向前和向后兼容。
如果不符合你皮肤的要求，你可以在后面通过更高的优先级覆盖着这些样式，但是
你不能删除这些样式。
**************************************************/

#EntryTag {
    margin-top: 20px;
    font-size: 9pt;
    color: gray;
}

.topicListFooter {
    text-align: right;
    margin-right: 10px;
    margin-top: 10px;
}

#divRefreshComments {
    text-align: right;
    margin-right: 10px;
    margin-bottom: 5px;
    font-size: 9pt;
}


/*****第一部分结束*******************************/

a {
    outline: none;
}

a:link {
    color: black;
    text-decoration: none;
}

a:visited {
    color: black;
    text-decoration: none;
}

a:hover {
    color: #F60;
    text-decoration: none;
}

a:active {
    color: black;
    text-decoration: none;
}

#cnblogs_post_body {
    font-size: 15px !important;
}

/**************************************************
第四部分：文章内容常用标签格式。这个部分是设置作者写作内容的部分。例如：
如果作者的文章用有p标签，则可通过这个对这些文章中的p标签进行设置。前面
的“.postBody”明确的指出了这里样式的作用范围。仅仅适用于文章主体部分。
建议这个不要设置过于详细的细节。因为，一些样式，一篇文章比较适合的话，
并不能保证所有的文章都适合。
**************************************************/


/*文章内部常用标签格式*/

#EntryTag,
#post_next_prev {
    font-size: 1rem;
}

#cnblogs_post_body code {
    font-family: 'Monaco', 'Consolas', monospace, '文泉驿微米黑', '微软雅黑' !important;
    white-space: pre;
}

.postBody img {
    max-width: 100% !important;
}

.postBody blockquote {
    position: relative;
    border: none;
    border-left: 10px solid lightgray;
    background-color: rgba(0, 0, 0, 0.05);
}


/*****第四部分结束*******************************/

/* CSS Document */
/* code */
.cnblogs_code,.cnblogs_code span{
    font-size:13px!important;
}
.syntaxhighlighter a, .syntaxhighlighter div,
.syntaxhighlighter code, .syntaxhighlighter table,
.syntaxhighlighter table td, .syntaxhighlighter table tr,
.syntaxhighlighter table tbody, .syntaxhighlighter table thead,
.syntaxhighlighter table caption, .syntaxhighlighter textarea {
    font-size: 13px!important;
}　
.syntaxhighlighter .preprocessor {/*头文件、预编译部分*/
    color: #e29710!important;
}
 
.syntaxhighlighter .keyword {/*关键字（for/if...else/while/return...）*/
    font-weight: normal!important;
    color: #b216ac!important;
}
 

 
.syntaxhighlighter .color1,
.syntaxhighlighter .color1 a {/*int等变量类型名*/
    color: #15b6bf!important;
}

.syntaxhighlighter .functions {/*scanf/printf等函数*/
    color: #ff1493!important;
}
.gutter .line.alt2{
    background: #fff!important;
}

/**************************************************
第五部分：响应式视图布局。
**************************************************/

@media screen and (max-width:1200px) {
    #navigator {
        width: 100%;
        overflow: scroll;
    }
    #navList {
        margin: 0;
        width: max-content;
    }
    #blogTitle h1,
    #blogTitle h2 {
        margin-left: 2rem;
        width: max-content;
    }
    #main {
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    .dayTitle,
    #comment_form_container > p:nth-last-child(2),
    .postText2 {
        display: none;
    }
    #mainContent,
    #sideBar,
    .day,
    .feedback_area_title,
    .entrylistTitle,
    .myposts_title,
    .feedbackItem,
    #post_detail,
    #comment_form_container,
    #divCommentShow > div,
    #under_post_news,
    #under_post_kb,
    .entrylistItem,
    #myposts,
    #comment_nav,
    #ad_t2 {
        width: 100% !important;
    }
    #green_channel {
        width: max-content;
        float: none;
        right: 0;
    }
    #div_digg {
        position: inherit;
    }
    #blogCalendar td.CalTodayDay {
        background-color: teal;
    }
    #blogCalendar td.CalTodayDay::before {
        display: none;
    }
    #commentform_title {
        width: calc(100% + 2rem);
    }
    #tbCommentBody {
        width: calc(100% - 0.5rem);
    }
    .commentbox_title {
        width: 300px;
    }
    .commentbox_title_right {
        float: none;
    }
    .PostList {
        padding: 0.5rem 0.5rem 0;
    }
    .postDesc2 {
        display: block;
        margin-top: 1rem;
    }
}

@media screen and (max-width:1200px) and (min-width:900px) {
    #main,
    #mainContent,
    #sideBar,
    #blogTitle h1,
    #blogTitle h2 {
        width: 900px;
    }
}


/*****第五部分结束*******************************/


/* h1 ~ h5*/
#cnblogs_post_body
    {
        color :black;      
        font :0.875em1.5em 微软雅黑 , PTSans , Arial ,sans-serif;
        font-size :16px;
    }
#cnblogs_post_body h1    {

    border-radius: 3px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 20px;
    background: #1977B0;
    margin-top: 15px;
    margin-bottom: 5px;
    color: white;
    font-size: 18px !important;
    font-weight: bold;
    letter-spacing: 1px;
    -moz-box-shadow: 2px 2px 10px rgba(140,140,140,1);
    -webkit-box-shadow: 2px 2px 10px rgba(140, 140, 140, 1);
    box-shadow: 2px 2px 10px rgba(140, 140, 140, 1);
    text-shadow: 2px 2px 2px #222222;
    }
#cnblogs_post_body h2{
        background: #2B6600;
        border-radius :6px 6px 6px 6px;
        box-shadow :0 0 0 1px #5F5A4B, 1px 1px 6px 1px rgba(10, 10, 0, 0.5);
        color: #FFFFFF;
        font-family :微软雅黑 , 宋体 , 黑体 ,Arial;
        font-size: 13px;
        font-weight :bold;
        height :24px;
        line-height: 23px;
        margin :12px 0 !important;
        padding :5px 0 5px 10px;
        text-shadow: 2px 2px 3px #222222;
}
#cnblogs_post_body h3{
        width:75%;
        margin:10px 0;
        font-family:'Microsoft Yahei';
        text-align :left;
        padding :6px 20px;
        color :#fff;
        background :#55895B;
        font-size :20px;
        border-radius :4px;
        clear: both;
}
#cnblogs_post_body h4{
        margin: 10px 0;
        font-family :'Microsoft Yahei';
        padding: 6px 20px;
        background :#93C8A2;
        color: #fff;
        font-size :18px;
        border-radius :4px;
        clear :both;
}
/* -------- */
blockquote{
	background: none;
	border: 2px solid #efefef;
	padding-left: 10px;
	padding-right: 10px;
	padding-top: 5px;
	padding-bottom: 5px;
	margin-top: 10px;
	margin-bottom: 10px;
	    display: block;
	-webkit-margin-before: 1em;
	-webkit-margin-after: 1em;
	-webkit-margin-start: 40px;
	-webkit-margin-end: 40px;
}

code{
    font-family: "Courier New",sans-serif!important;
    font-size: 13px!important;
    line-height: 20px;
    background-color: #f5f5f5!important;
    border: 1px solid #ccc!important;
    padding: 0 5px!important;
    border-radius: 3px!important;
    line-height: 1.8;
    margin: 1px 5px;
    vertical-align: middle;
    color:#c70048;
}

.postBody h5 {
        background: #2B6695;
        border-radius :6px 6px 6px 6px;
        box-shadow :0 0 0 1px #5F5A4B, 1px 1px 6px 1px rgba(10, 10, 0, 0.5);
        color :#FFFFFF;
        font-family :微软雅黑 , 宋体 , 黑体 ,Arial;
        font-size: 17px;
        font-weight: bold;
        height: 25px;
        line-height: 25px;
        margin: 18px 0 !important;
        padding: 8px 0 5px 5px;
        text-shadow: 2px 2px 3px #222222;
}

body{background:#fefef2;}


/**************************************************
   另外一个·博主优化
**************************************************/

/* 定制生成博客目录的CSS样式 */
#uprightsideBar{
    font-size:16px;
    font-family:Arial, Helvetica, sans-serif;
    text-align:left;
    position:fixed;
    /*
    将div的位置固定到距离top:150px，right:0px的位置，
    这样div就会处在最右边的位置，距离顶部150px，
    当然这两个值你可以自己改。
    */
    top:150px;
    right:0px;
    width: auto;
    height: auto; 
}
#sideBarTab{
    float:left;
    width:25px; 
    box-shadow: 0 0 8px #877788;
    border:1px solid #00DDC00;
    border-right:none;
    text-align:center;
    background:rgb(0, 220, 0);
}
#sideBarContents{
    float:left;
    overflow:auto; 
    overflow-x:hidden;!important;
    width:200px;
    min-height:101px;
    max-height:460px;
    border:1px solid #e5e5e5;
    border-right:none; 
    background:#ffffff;
}
#sideBarContents dl{
    margin:0;
    padding:0;
}
#sideBarContents dt{
    margin-top:5px;
    margin-left:5px;
}
#sideBarContents dd, dt {
    cursor: pointer;
}
#sideBarContents dd:hover, dt:hover {
    color:#A7995A;
}
#sideBarContents dd{
    margin-left:20px;
}

/* 定制返回顶部按键 */
#toTop {
    background: url('https://images.cnblogs.com/cnblogs_com/shwee/1218109/o_toTop.bmp') no-repeat 0px top;
    width: 57px;
    height: 57px;
    overflow: hidden;
    position: fixed;
    right: 20px;
    bottom: 20px;
    cursor: pointer;
}

.go_top {
    display: inline-block;
    position: fixed;
    right: 1%;
    bottom: 3%;
    width: 100px;
    height: 59px;
    background: url(https://files.cnblogs.com/files/zh605929205/2.gif) no-repeat center center;
    background-size: 111%;
    -moz-background-size: 111%;
    display: none;
}