博客园自定义
Posted ak-b
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了博客园自定义相关的知识,希望对你有一定的参考价值。
css
body,
h1,
h2,
h3,
ul,
#profile_block {
margin: 0;
padding: 0;
}
li {
list-style: none;
}
a {
font-size: 14px;
line-height: 1.5;
text-decoration: none;
color: #0366d6
}
body {
padding-top: 47px;
background: #f3f6f7;
font: 14px PingFangSC, 'helvetica neue', 'hiragino sans gb', arial, 'microsoft yahei ui', 'microsoft yahei', simsun, sans-serif !important;
line-height: 1.5;
color: #333
}
#home {
width: 1130px;
margin: 0 auto;
}
#blogTitle,
a[href='#top'],
a[id='green_channel_weibo'],
a[id='green_channel_wechat'] {
display: none !important;
}
#header {
position: fixed;
top: 0;
left: 0;
z-index: 3;
width: 100%;
height: 36px;
background: #2a303c;
box-shadow: 0 1px 3px #999;
}
#navigator {
width: 1154px;
margin: 0 auto;
}
#navList {
float: left;
}
.blogStats {
float: right;
}
#navList>li {
display: inline-block;
}
#navList>li>a,
#blog_stats>span {
display: inline-block;
height: 36px;
line-height: 36px;
padding: 0 12px;
color: #ccc;
}
#navList>li>a:hover {
color: #fff
}
#main a:hover {
border-bottom: 1px solid #0366d6;
}
#sideBar,
#mainContent {
padding: 0 20px;
background: #fff;
border-radius: 2px;
box-shadow: 0 1px 3px rgba(26, 26, 26, .1);
}
#sideBar {
float: left;
width: 200px;
}
#sideBarMain {
padding: 6px 0 8px;
}
#sideBarMain h3,
.day>.postTitle,
.entrylistPosttitle {
margin-top: 3px;
font-size: 1.1em;
font-weight: bold;
}
#sideBarMain .input_my_zzk {
width: 142px;
height: 16px;
}
#mainContent {
float: right;
position: relative;
width: 840px;
}
.day,
.entrylist {
padding-top: 12px;
}
.dayTitle,
.entrylistTitle {
font-size: 16px;
line-height: 1.5;
padding-left: 10px;
border-left: 3px solid #333;
}
.dayTitle a {
font-size: 16px;
font-weight: bold;
color: #333;
}
#mainContent .dayTitle a:hover {
border: none;
}
.day>.postTitle,
.entrylistPosttitle {
margin: 5px 0 0;
}
.day>.postDesc,
.entrylistItemPostDesc {
text-align: right;
padding-bottom: 2px;
border-bottom: 1px dashed #ccc;
}
.post>.postTitle {
padding-bottom: 30px;
border-bottom: 1px solid #ccc;
}
.post>.postTitle>a {
font-size: 18px;
color: #333;
}
#mainContent .post>.postTitle>a:hover {
border: none;
}
.post>.postDesc {
position: absolute;
top: 35px;
left: 35px;
}
#BlogPostCategory {
position: absolute;
top: 35px;
right: 20px;
}
#cnblogs_post_body code {
font: 14px/1.5 Consolas, Menlo, Monaco, "Courier New", monospace !important;
color: #525252;
border: none !important;
background: #f6f8fa;
margin: 4px
}
pre {
background: #f6f8fa;
}
#green_channel {
border: none;
position: fixed;
margin: 0;
top: calc(50% - 36px);
width: 90px;
overflow: hidden;
right: calc(50% - 665px);
}
#green_channel>a {
font-size: 12px;
padding: 2px 3px;
border-radius: 2px;
margin: 3px 0;
}
#footer {
padding: 15px;
text-align: center;
}
以上是关于博客园自定义的主要内容,如果未能解决你的问题,请参考以下文章