分享我的博客园CSS代码

总觉得博客园的可选皮肤都不是很理想,然后从网上获取别人的一套CSS源码(给原作者致歉,我现在找不到原地址了),然后改了改,就是现在的样子了。大家喜欢的话可以拿去。

@charset "utf-8";
body {
    font-size: 15px;
    padding: 0;
    margin: 0;
    font-family: "微软雅黑", "宋体", Arial;
    background: url('http://images.cnblogs.com/cnblogs_com/LOVE0612/843803/o_%E8%83%8C%E6%99%AF.jpg') no-repeat top center fixed;
    min-width: 1000px;
}

#home {
    box-shadow: 0 0 10px #000;
    margin: auto;
    width: 1050px;
    overflow: auto;
    margin-top: 30px;
    margin-bottom: 30px;
    background-color: #ecf0f5;
    border-radius: 8px;
}

.postBody p, .postCon p {
    margin: 7px 0;
    line-height: 24px;
}

h1 {
    
}

h3 {
    font-size: 15px;
    font-weight: bold;
}

a {
    color: #3498DB;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:visited, a:hover {
    color: #3498DB;
}

ul {
    list-style: none;
    margin: 0;
    padding: 5px;
}

image {
    border: none;
}

#header {
    padding: 20px;
}

#blogTitle {
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 5px 5px 5px #ccc;
}

#blogTitle a {
    font-weight: bold;
    color: #666;
}

#blogTitle .title {
    margin-top: 7px;
    height: 140px;
    line-height: 140px;
    font-size: 36px;
    padding-left: 180px;
    background: #fff url('http://images.cnblogs.com/cnblogs_com/LOVE0612/843803/o_%E5%A4%B4%E5%83%8F.png') no-repeat;
    background-size: 140px;
    background-color: rgba(0,0,0,0);
    font-weight: bold;
}

.headermaintitle {

}

#blogTitle a:hover {
    text-decoration: none;
}

.subtitle {
    padding-left: 5px;
    font-size: 14px;
    color: #999;
    font-weight: normal;
    margin: 10px 0;
}

#navigator {
    font-size: 16px;
    background: #fff;
    text-align: center;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 5px 5px 5px#ccc;
}

#navList li {
    margin: 0;
    line-height: 48px;
    display: inline-block;
    float: left;
    margin: 0px 5px;
}

#navList li:hover {
    display: inline-block;
    background-color: rgba(204, 204, 204, 0.22);
    border-radius: 10px;
}

#navList li a {
    padding: 0 20px;
    text-decoration: none;
    line-height: 48px;
    border: 0;
    color: #444;
}

.blogStats {
    height: 48px;
    color: #fff;
    line-height: 48px;
}

#main {
    padding: 20px;
    background-color: #fff;
    margin: 0px 20px;
    border-radius: 10px;
    box-shadow: 5px 5px 5px #ccc;
}

#sideBarMain {
    padding: 0 10px 0 0;
    background: #fff;
    margin: 0 0 20px 0;
    width: 190px;
    font-size: 12px;
    line-height: 22px;
}

#sideBarMain a {
    color: #666;
}

#leftcontentcontainer {
    color: #666;
}

.newsItem {
    color: #666;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

#profile_block {
    margin-top: 0px;
    line-height: 24px;
    text-align: left;
}

#mainContent {
    margin-top: 0px;
    padding-top: 0px;
    padding-right: 0px;
    background: #fff;
    padding-bottom: 0px;
    float: right;
    width: 760px;
    padding-left: 0px;
}

.day {
    background: #fff;
    padding: 0;
    margin: 0 0 20px 0;
}

.postTitle a {
    color:#343434;
}

.postTitle {
    padding-bottom: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #464646;
    background: url('http://images.cnblogs.com/cnblogs_com/LOVE0612/843803/o_%e5%9b%be%e6%a0%872.png') no-repeat 0 3px;
    padding-left: 30px;
}

.dayTitle {
    display: inline-block;
    float: right;
    line-height: 30px;
}

.dayTitle a {
    color: #aaa;
    font-size: 10px;
}

.c_b_p_desc {
    padding: 10px;
    line-height: 24px;
    color: #888;
}

.c_b_p_desc a {
    color: #888;
}

.c_b_p_desc a:hover {
    text-decoration: none;
    border-bottom-width: 1px;
    border-bottom-style: dotted;
}

.desc_img {
    margin-left: 10px;
    border: solid 1px #fff;
    box-shadow: 0 0 10px #aaa;
}

#topics .post {
    background: #fff;
}

.postCon {
    padding: 10px 20px 0 20px;
}

.postDesc {
    margin: 0 30px;
    margin-bottom: 2px;
    padding: 8px 0px;
    font-size: 12px;
    color: #aaa;
    background: #fff;
    text-align: right;
}

.postDesc a {
    color: #AAA;
}

.postBody {
    padding: 0;
}

#google_q, #q {
    height: 22px;
    width: 120px;
    border: solid 1px #ccc;
    box-shadow: inset 0 0 3px #ddd;
    border-radius: 4px;
}

.btn_my_zzk {
    font-family: 'Microsoft Yahei';
    border: none;
    height: 26px;
    width: 60px;
    padding: 1px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    display: inline-block;
    background: #159B76;
    border-radius: 4px;
    color: #fff;
}

.btn_my_zzk:hover {
    background: #159B76;
}

#btn_comment_submit {
    border: none;
    height: 38px;
    width: 80px;
    border-radius: 5px;
    font-size: 15px;
}

.comment_btn {
    font-family: 'Microsoft Yahei';
    border: none;
    height: 48px;
    width: 120px;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    display: inline-block;
    background: #159B76;
    color: #fff;
}

#btn_comment_submit:hover {
    background: #159B76;
}

.feedback_area_title {
    color: #159B76;
    background-image: none;
    background-repeat: no-repeat;
    margin-bottom: 10px;
    padding: 5px 0px 5px 0px;
    font-size: 22px;
    font-weight: bold;
    border-bottom: solid 2px #159B76;
}

.feedbackListSubtitle {
    font-size: 12px;
    color: #888;
}

.feedbackListSubtitle a {
    color: #888;
}

.comment_quote {
    background: #FCFAAC;
    padding: 15px;
    border: 1px solid #CCC;
}

#commentform_title {
    color: #159B76;
    background-image: none;
    background-repeat: no-repeat;
    margin-bottom: 10px;
    padding: 5px 0px 5px 0px;
    font-size: 22px;
    font-weight: bold;
    border-bottom: solid 2px #159B76;
}

#comment_form {
    margin: 10px 0;
    padding: 0;
}

.commentform {
    margin: 10px 0;
    padding: 10px 20px;
    background: #fff;
}

#tbCommentBody {
    font-family: 'MIcrosoft Yahei';
    margin-top: 10px;
    width: 740px;
    max-width: 740px;
    min-width: 740px;
    background: white;
    color: #333;
    border: 2px solid #fff;
    box-shadow: inset 0 0 8px #aaa;
    padding: 10px;
    height: 120px;
    font-size: 14px;
    min-height: 120px;
    border-radius: 10px;
}

.feedbackItem {
    font-size: 14px;
    line-height: 24px;
    margin: 10px 0;
    padding: 10px;
    background: #F2F2F2;
    box-shadow: 0 0 5px #aaa;
}

.feedbackListSubtitle {
    font-weight: normal;
}

.entrylist {
    padding: 10px 20px;
    background: #fff;
}

.entrylistItem {
    margin: 10px 0;
    padding: 10px;
}

.entrylistPosttitle {
    font-size: 18px;
    font-weight: bold;
    background: url('http://images.cnblogs.com/cnblogs_com/libaoheng/305804/o_br229512.link(en-us,MSDN.10).gif') no-repeat 0 3px;
    padding-left: 30px;
}

.entrylistPostSummary {
    padding: 10px;
}

.entrylistItemPostDesc {
    font-size: 12px;
    color: #999;
    padding-left: 40px;
}

#footer {
    font-size: 12px;
    margin: 20px 0px 10px 0px;
    text-align: center;
    color: #353535;
    font-size: 10px;
    border-radius: 10px;
}

#cnblogs_post_body p img {
    margin: 10px;
}

.diggnum {
    font-size: 18px;
    color: #159B76;
    font-family: 'Microsoft Yahei';
}

#div_digg {
    position: fixed;
    border-radius: 5px;
    background-color: #fff;
    width: 47px;
    padding: 10px;
    right: 0;
    bottom: 0;
    border: solid 1px #ddd;
    z-index: 200;
}

.buryit {
    float:none;
    margin: 0px;
}

.diggit {
    float:none;
}

.diggword {
    display: none;
}

#green_channel { 
    margin-bottom: 10px;
    font-size: 12px;
    width: 350px;
    border: none;
    padding: 0px;
    margin: 0px 0px 10px 0px;
    text-align: left;
}

#green_channel a { 
    margin-right: 0px;
}

#myposts .PostList {
    font-size: 14px;
    line-height: 24px;
    margin: 10px 0;
    padding: 20px;
    background: #F2F2F2;
    box-shadow: 0 0 5px #aaa;
}

#comment_nav {
    display: none;
}

#author_profile_info {
    position: fixed;
    bottom: 170px;
    right: 24px;
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

#author_profile_info > a {
    display: inline-block;
}

#author_profile_detail {
    float: none;
}

.commentbox_title{
    width: 750px;
}

.commentbox_title_left {
    float: left;
    font-size: 14px;
    margin-left: 1px;
}

#MySignature {
    font-size: 12px;
    background-color: rgba(238, 238, 238, 0.22);
    border-radius: 5px;
    padding: 10px;
    box-shadow: 2px 2px 2px #eee;
}

#BlogPostCategory {
    margin-bottom: 10px;    
    font-size: 12px;
}

.sidebar-block {
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;        
}

#homepage_top_pager {
    display: none;
}

.pager {
    font-size: 12px;
    margin: 10px 0;
    color: #3498DB;
    line-height: 200%;
    text-align: right;
}

.pager a {
    border: none;
}

#ad_c1, #ad_c2, #ad_t2, #under_post_news, #under_post_kb {
    display: none;
}

#commentbox_opt {
    margin-left: 1px;
}

div.commentform input.author {
    background-position: 3px -3px;
    border-radius: 5px;
}

.comment_vote {
    text-align: right;
    font-size: 12px;    
}

#sidebar_categories > div {
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

博客皮肤选择的是lessismore,最后记得勾选“禁用模板默认CSS”。

转载于:https://www.cnblogs.com/LOVE0612/p/5606753.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值