cnblogs样式提升

页面定制CSS代码:


/ css file : https://www.cnblogs.com/blog/customcss/166538.cssv=o6NlMnWKH5%2bK9ejEqSVjT7TiC3A%3d /
 
body {
    font-family: “Courier New”,“Bitstream Vera Sans Mono”,MONACO,Consolas,
    “DejaVu Sans Mono”,monospace,Arial,sans-serif;
    margin: 0;
    background-image: #FFFFFF
    background-repeat: repeat;
    background-color: #FFFDFA;
    color: #11434a;
}
a {
    color: #3399FF;
    font-weight: bolder;
    line-height: inherit;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
h1, .post h1 {
    font-size: 24px;
}
h2, #cnblogs_post_body h2 {
    font-size: 22px;
}
h3, #cnblogs_post_body h3 {
    font-size: 20px;
}
h4, #cnblogs_post_body h4 {
    font-size: 18px;
}
h5, #cnblogs_post_body h5 {
    font-size: 16px;
}
#home {
    
}
#header {
    background-color: #2d94de;
    height: 35px;
    width: 98.45%;
}
#blogTitle {
    display: none;
}
#navigator {
    left: 0;
    right: 0;
    margin: 0 0 0 0;
    position: relative;
}
#navList {
    list-style: none outside none;
    display: block;
    float: left;
    left: 0;
    right: 0;
    margin: 0 10px 0 20px;
    position: relative;
}
#navList li {
    float: left;
    margin-right: 25px;
    margin-top: 8px;
    display: inline;
    text-align: -webkit-center;
}
#navList li a {
    background-color: #2D94DE;
    font-size: 16px;
    text-decoration: none;
    color: #FFF;
    padding: 0px 3px;
    margin-top: -8px;
}
#navList li a:hover {
    background-color: #2175bc;
}
.blogStats {
    float: right;
    color: #ddd;
    margin: 9px 60px 8px 0px;
    text-align: right;
    padding: 0;
    font-size: 14px;
}
#sidebar_search_box{
    height: 60px;
}
#main{
    min-width: 950px;
    text-align: left;
    margin: 20px;
}
#mainContent {
    min-height: 200px;
    padding: 0px 0px 10px 0;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-all;
    float: right;
    margin-left: -290px;
    margin-right: 0px;
    width: 100%;
}

#mainContent .forFlow {
    margin-left: 290px;
    float: none;
    width: auto;
    margin-top: 10px;
}
.day {
    min-height: 10px;
    _height: 10px;
    margin: 10px 0px;
}
.dayTitle {
    border-bottom: 1px solid #DDDDDD;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    padding-bottom: 4px;
    text-align: right;
    font-size: 14px;
    display: none;
}
.dayTitle a {
    color: #333;
}
.postTitle, .entrylistPosttitle {
    padding-right: 64px;
    padding-left: 10px;
    border-left-width: 3px;
    border-left-style: solid;
    border-left-color: #2175bc;
    font-size: 120%;
    font-weight: bold;
    line-height: 1.5;
    width: 100%;
    color: #444;
    margin: 0px 0px;
}
#mainContent #post_detail .postTitle {
    padding-left: 15px;
    font-size: 24px;
    margin: 10px 0px 23px 0px;
    color: #111;
}
.postTitle a, .entrylistPosttitle a {
    color: #000;
}
.postTitle a:hover, .entrylistPosttitle a:hover {
    color: #3399ff;
    text-decoration: none;
}
#mainContent #post_detail .postTitle a, #mainContent #post_detail .postTitle a:hover {
    color: #111;
    text-decoration: none;
}
.postCon, .entrylistPostSummary {
    float: right;
    line-height: 1.5;
    width: 100%;
    clear: both;
    padding: 13px 0;
    font-size: 15px;
}
.postBody {
    line-height: 1.5;
    width: 100%;
    font-size: 16px;
}
.postDesc, .entrylistItemPostDesc {
    float: right;
    width: 100%;
    clear: both;
    text-align: right;
    padding-right: 5px;
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
}
.day .postDesc, .entrylist .entrylistItemPostDesc {
    border-bottom: 1px solid #DDDDDD;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    padding-bottom: 4px;
}
.postSeparator {
    clear: both;
}
#post_detail #blog_post_info_block, #comment_form {
    font-size: 13px;
}

#sideBar {
    width: 250px;
    min-height: 200px;
    padding: 9px 9px 9px 5px;
    float: left;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-all;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 20px;
    min-height: 20px;
    font-size: 15px;
}
#newsSideBar .headImage {
    padding: auto;
}
#newsSideBar .headImage img {
    border: 3px solid #2586d7;
    border-radius: 50%;
    width: 150px;
    margin: auto;
    display: block;
}
#sideBarMain .newsItem .catListTitle, #sidebar_scorerank {
    display: none;
}
.newsItem #profile_block {
    padding: 0px 10px 0px 40px;
}
#blog-sidecolumn .catListTitle {
    font-size: 15px;
    padding-left: 15px;
    padding-bottom: 2px;
    font-weight: bold;
    font-family: Arial;
    margin: 15px 0px 8px 0px;
    color: #666;
    border-bottom: 1px solid #ccc;
}
#blog-sidecolumn #sidebar_search .input_my_zzk {
    width: 140px;
}
#blog-sidecolumn ul {
    margin-top: 10px;
    list-style:none;
}
#blog-sidecolumn li {
    margin-bottom: 4px;
}
#blog-sidecolumn #sidebar_recentposts .catListEssay ul, #blog-sidecolumn #sidebar_topviewedposts #TopViewPostsBlock ul {
    padding:0px;
    font-size: 13px;
}

.topicListFooter a {
    font-weight: bold;
    font-size: 17px;
}
#pageBeginBar{
    background-color: rgb(255,255,255,0.1);
    height: 90px;
}
#pageBeginTitle {
    background-color: rgb(255,255,255,0);
    padding: 18px 20px 18px 70px;
    text-align: left;
    float: left
}
#pageBeginTitle a, #pageBeginTitle a:hover {
    color: #000;
    text-decoration: none;
    font-size: 30px;
    font-weight: bold;
    padding: 10px 15px 8px 15px;
    display: block;
    float: left;
    outline: none
}
#pageBeginTitle span {
    font-size: 16px;
    font-weight: bold;
    display: block;
    float: left;
    padding: 22px 20px 13px 10px;
}
#footer {
    text-align: center;
    min-height: 25px;
    _height: 25px;
    border-top: 1px solid black;
    margin-top: 10px;
    padding-top: 10px;
    padding-bottom:35px;
    font-size: 14px;
}
#pageEnd {
    width: 100%;
    height: 200px;
    background-color: #2d94de;
    background-image: url(//www.cnblogs.com/skins);
    display: none;
}
.entrylistTitle {
    font-size: 23px;
    margin: 5px auto;
}
.entrylistDescription {
    font-size: 15px;
    padding: 5px 0px 5px 20px;
    color: #555;
    border-bottom: 1px dashed #666;
    margin: 0px 0px 25px 0px;
}

<style type=“text/css”>
    #cnblogs_post_body
    {
        color: black;
        font: 0.875em/1.5em “微软雅黑” , “PTSans” , “Arial” ,sans-serif;
        font-size: 17px;
    }
   /标题1/
#cnblogs_post_body h1 {
    color: #fff;
    padding-left: 15px;
    background-color: #6FA833 !important;
    text-shadow: 2px 2px 3px #222222;
    font-family: “微软雅黑” , “宋体” , “黑体” ,Arial;
    margin-bottom: 5px;
}
/标题2/
#cnblogs_post_body h2 {
    color: #6FA833;
    border-left: 13px solid #6FA833;
    padding: 5px;
    background-color: #f5f5f5;
}
</style>

博客侧边栏公告(支持HTML代码)(支持JS代码)

<div id=“newsSideBar”>
    <div class=“headImage”>
        <img src=“https://pic.cnblogs.com/avatar/575699/20180820225915.png" alt=“头像”>
    </div>
</div>
<script src=“https://files.cnblogs.com/files/thethomason/bootstrap.min.js"></script>
<link href=“https://files.cnblogs.com/files/thethomason/marvin.nav.css" rel=“stylesheet”>
<script type=“text/javascript” src=“https://files.cnblogs.com/files/thethomason/marvin.nav.js"></script>

页首html代码

<div id=“pageBeginBar”>
    <div id=“pageBeginTitle”>
    <a href=“https://www.cnblogs.com/thethomason/">Toooney</a>
        <span>When you pray, move your feet. </span>
        <div class=“clear”></div>
    </div>
</div>

猜你喜欢

转载自www.cnblogs.com/toooney/p/10424946.html