首页 > 其他 > 详细

博客主题修改记录

时间:2020-09-27 11:40:42      阅读:33      评论:0      收藏:0      [点我收藏+]

技术分享图片

 

基于主题:darkgreentrip

定制CSS代码:

/*背景图片*/
body {
    /*background: url(‘https://w.wallhaven.cc/full/lq/wallhaven-lqpv1l.jpg‘) fixed no-repeat; */
    /*background: url(‘https://w.wallhaven.cc/full/vg/wallhaven-vgk5xp.jpg‘) fixed no-repeat; */
    background: #dcdcdc fixed no-repeat;
    background-size: cover;
}
#home {         
       width: 95%;
       min-width: 0px;
       background-color: rgba(245, 245, 245, 0);
       padding: 0px;
       margin-top: 0px; 
       margin-bottom: 0px;
}
/*blogtitle 博客顶部:博客名、个性签名*/
#blogTitle {   
    height:0px;  /*高度*/
    clear: none;
    background-color:rgba(245,245,245,0);
}
#blogTitle h1 {    /*博客名*/
    font-size: 36px;
    color: #003153;
    font-weight: normal;
    line-height: 1em;
    margin-bottom: 3px;
    font-family: Comic Sans,Verdana;
}
#blogTitle h2 {   /*个性签名*/
    font-size: 15px;
    line-height: 1;
    color: #003153;
    margin-bottom: 5px;
    font-weight: normal;
    text-align: right;
    float: right;
    font-family: Comic Sans,Verdana;
}
/*导航栏*/
#navigator{
     background-color: #003153;
     height: 50px;
     line-height: 45px;
}
#navList a:link, #navList a:visited, #navList a:active{
    color: #d3d5d9;
    font-size: 16px;
    font-weight: normal;
}
.blogStats{
    color: #d3d5d9;
}
/*文章标题*/
#topics .postTitle {
    font-size: 120%;
    font-weight: bold;
    border-bottom: 1px solid rgba(0,0,0,0);
    float: left;
    line-height: 2em;
    width: 100%;
    padding-left: 5px;
}
.postTitle a:link, .postTitle a:visited, .postTitle a:active {
    font-size: 24px;
    color: #21759b;
    transition: all 0.4s linear 0s;
}
/*正文;h1一级标题;h2二级标题*/
#cnblogs_post_body h1{
    margin-top: 34px;
    color: #21759b;
    border-bottom: 2px solid rgba(53,86,129, 0.3);
    font-family:"Verdana","微软雅黑", Arial;
    font-size: 22px;
}
#cnblogs_post_body h2{
    margin-top: 24px;
    color: #21759b;
    border-bottom: 1px solid rgba(53,86,129, 0.3);
    font-family:"Verdana","微软雅黑", Arial;
    font-size:18px;
}
#cnblogs_post_body h3{
    color: #21759b;
    font-family:"Verdana","微软雅黑", Arial;
    font-size:18px;
}
/*正文字体*/
#cnblogs_post_body {
     font-size: 15px;
     font-family: "Cambria","微软雅黑";
}
/*引用字体*/
.postBody blockquote {
    font-family: "Cambria","微软雅黑";
}
/*代码块*/
.cnblogs_code pre {
    padding: 5px;
    font-family: "Courier New","仿宋" !important;
    font-size: 14px !important;
    word-wrap: break-word;
}
.cnblogs_code span {
    font-family:  "Courier New","仿宋" !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}
/*隐藏代码复制图标*/
.cnblogs_code_toolbar{
    display: none;
}
/*插入图片*/
#cnblogs_post_body img {
    max-width: 100% !important;
    height: auto;
    margin: 3px 5px 3px 5px;   /*上 右 下 左*/
}
#topics{   /*文章正文背景,纯白微灰*/
    background: rgba(250, 250, 250);
}
.postCon {
    float: right;
    line-height: 1.5em;
    width: 100%;
    clear: both;
    padding: 10px 0;
}
.day .postTitle a {
    padding-left: 10px;
}
.day {
    background: rgba(250, 250, 250);
}
.postDesc {
    background: rgba(250, 250, 250);
    color: #757575;
    float: left;
    width: 100%;
    clear: both;
    text-align: left;
    font-family: "Courier New","微软雅黑",Arial;
    font-size: 15px;
    padding-right: 20px;
    margin-top: 20px;
    line-height: 1.8;
    padding-bottom: 35px;
}
.newsItem, .catListEssay, .catListLink, .catListNoteBook, .catListTag, .catListPostCategory,
.catListPostArchive, .catListImageCategory, .catListArticleArchive, .catListView,
.catListFeedback, .mySearch, .catListComment, .catListBlogRank, .catList, .catListArticleCategory ,#blog-calendar
{
    background: rgba(250, 250, 250);
    margin-bottom: 35px;
    word-wrap: break-word;
}

.CalTitle{
   background: rgba(250, 250, 250);
}
.catListTitle{
    background-color:#003153;
}

.c_ad_block{
    display: none;
}

#tbCommentBody{
    width: 100%;
    height: 200px;
    background: rgba(250, 250, 250);
}

#q{background: rgba(250, 250, 250);}

.CalNextPrev{background: #d3d5d9;}

/*文章分类界面*/
.entrylist{
   background: rgba(250, 250, 250);
}
a.entrylistItemTitle {
    color: #21759b;
}
/*鼠标停放时颜色*/
a.entrylistItemTitle:hover {
    color: #21759b;
}
/*用于隐藏博客底部的推荐文章*/
#ad_t2{
    display: none;
}
#under_post_news{
    display: none;
}

 

 

 

博客主题修改记录

原文:https://www.cnblogs.com/cpcpp/p/13738119.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!