Blog garden custom style theme
I have to say that the styles of the themes that come with the blog garden are very general, but fortunately they provide a custom interface, so let's toss.
First choose the basic theme (mine is red_autumnal_leaves
), otherwise the workload of writing all by yourself is still a lot.
You can view the basic style that comes with the theme through F12, and then modify and save it on this basis.
1. Subtitle
If you want to define a subtitle as a link, so, click Management, Settings, Subtitle and fill in the following:
<a href="https://github.com/b4zinga" target="_blank">https://github.com/b4zinga</a>
2. Navigation bar
/*******************博客导航栏 *********************/
#navList {
float: left;
}
#navList li {
border: none;
font-size: 16px;
}
.blogStats {
display: none;
}
3. Article body style
/************** 主体内容样式 ***********************/
.postBody {
padding: 20px 40px;
}
#cnblogs_post_body {
font-size: 15px;
}
#cnblogs_post_body h2 {
/*标题h2*/
border-left: 5px solid #FF3300;
padding: 10px 20px;
line-height: 2;
background: #d6dbdf8a;
margin: 30px 0;
font-size: 25px;
}
#cnblogs_post_body h3 {
margin: 20px 0;
padding: 10px 20px;
border-left: 5px solid #FF3300;
font-size: 20px;
}
#cnblogs_post_body h4{
font-size: 18px;
margin: 20px 0;
}
4. Introduction style
/********************************引言样式*****************************/
blockquote {
border-left: 5px solid #FF3300;
}
blockquote strong {
color: red;
font-size: 18px;
}
5. Code does not wrap
pre {
/*控制代码不换行*/
white-space: pre;
word-wrap: normal;
}
6. Personal Signature
/******************* 个性签名 ****************************/
#MySignature {
box-shadow: 8px 1px 10px #989898;
padding: 10px;
text-shadow: 1px 1px 1px #FFF;
font-size: 17px;
border-left: solid 5px #FF3300;
background: #F3F3F3;
border-radius: 10px 10px 50% 10px;
line-height: 2.4;
margin: 40px 0;
}
#MySignature a {
text-decoration: none;
color: #4183c4;
font-weight: bold;
}
#MySignature a:hover {
text-decoration: underline;
color: #f60;
}
#MySignature span {
color: #f60;
}
7. Previous and Next
/********************** 上一篇下一篇 *************************/
#post_next_prev {
font-size: 14px;
color: #535353;
}
8. Comments
/************************评论********************************/
/*评论列表*/
#blog-comments-placeholder {
border-radius: 10px;
background: #fff;
padding: 30px 40px;
}
.feedback_area_title {
background: url(//www.cnblogs.com/skins/red_autumnal_leaves/images/titlebg.png) no-repeat left center #fff;
border: 1px solid #FF3300;
border-left-width: 5px;
border-radius: 10px;
border-right-width: 5px;
padding: 15px 50px;
}
9. Submit button
/******************** 提交评论按钮 *******************************/
#btn_comment_submit {
border: solid 1px #fd6d0dd1 !important;
width: 90px;
height: 40px;
color: #fff !important;
background-color: #fd6d0dd1 !important;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
}
10. Hide ads and search box
/********************隐藏广告******************************/
#ad_t2, #cnblogs_c1, #under_post_news, #cnblogs_c2, #under_post_kb {
display: none;
}
/*******************隐藏搜索框*****************************/
#widget_my_google, #google_q{
display: none;
}
11. Sidebar Announcements
/*****************************侧边栏公告***********************/
#blog-news > img {
/*头像*/
display: block;
margin: auto;
border-radius: 50%;
}
#profile_block {
font-size: 15px;
padding: 20px;
line-height: 1.8;
}
#profile_block > a:link {
color: #F60;
}
/*公告结束*/
12. Side Comments
/****************************侧边评论**********************************/
li.recent_comment_body {
line-height: 30px;
}
13. Sidebar style
/**********************sideBar博客侧边栏容器**********************************/
#sideBarMain h3, .newsItem h3 {
font-size: 1.2em;
height: 50px;
line-height: 50px;
text-indent: 0.5em;
background: url(http://www.cnblogs.com/skins/red_autumnal_leaves/images/titlebg.png) no-repeat left center #fff;
padding: 0 0 0 50px;
margin-bottom: 0;
border: 1px solid #FF3300;
border-left-width: 5px;
border-radius: 10px;
border-right-width: 5px;
}
.newsItem, .catListComment, .catListEssay, .catListView, .catListFeedback,
#blog-calendar, #sidebar_postcategory, #sidebar_postcategory, #sidebar_postarchive, #sidebar_search {
border-radius: 10px;
box-shadow: 1px 2px 3px #A7A8AD;
background-color: #fff;
}
#sideBarMain ul {
background-color: #fff;
padding: 15px 20px;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}
#sideBarMain li {
line-height: 40px;
border-bottom: 1px solid #ddd;
font-size: 14px;
}
The above [2 - 13] are finally written in the management, settings, and page customization css code . For the
complete code, see github https://github.com/b4zinga/Configuration/blob/master/cnblogs%20theme.css
14. Bulletin Board Avatar
Admin, Settings, Blog Sidebar Announcements:
<img src="https://pic.cnblogs.com/avatar/1346826/20180320230642.png">
15. Signature
Management, blog signature:
GitHub:<a href="https://github.com/b4zinga" target="_blank">https://github.com/b4zinga</a><br>
博客园 : <a href="http://www.cnblogs.com/0x4D75/" target="_blank">http://www.cnblogs.com/0x4D75/</a>
Please modify the configuration related to personal information in the configuration as appropriate.
2. Final result
The final result is the effect of this blog.
I can say that I don't know anything about CSS. This configuration is mainly based on an online reference. After several personal attempts, after some additions, deletions and changes, I finally completed this configuration. Overall, I am quite satisfied.
3. Reference
2018 Wu Yulun's Crazy Girl http://www.cnblogs.com/real-me/p/8336741.html