分享我的博客园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; }
新版
@charset "utf-8"; :root { --side-bar-bg-color: #fff; --control-text-color: #777; --select-text-bg-color: #ffafa3; --active-file-text-color: #262626; --active-file-border-color: #f22f27; /* --active-file-bg-color: #fff3f0; */ --primary-color: #f22f27; /* 中性色 */ --mid-1: #ffffff; --mid-2: #fafafa; --mid-3: #f5f5f5; --mid-4: #f0f0f0; --mid-5: #d9d9d9; --mid-6: #bfbfbf; --mid-7: #8c8c8c; --mid-8: #595959; --mid-9: #434343; --mid-10: #262626; --mid-11: #1f1f1f; --mid-12: #141414; --mid-13: #000000; /* 主题色 */ --main-1: #fff3f0; --main-2: #ffd4cc; --main-3: #ffafa3; --main-4: #ff887a; --main-5: #ff5d52; --main-6: #f22f27; --main-7: #cc1616; --main-8: #a60a0f; --main-9: #80010a; --main-10: #590009; } body { font-size: 16px; padding: 0; margin: 0; font-family: "Consolas", "courier", "Microsoft YaHei", "微软雅黑", "宋体", 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: 1330px; overflow: auto; margin-top: 30px; margin-bottom: 30px; background-color: #ecf0f5; border-radius: 8px; } .postBody p, .postCon p { margin: 7px 0; line-height: 24px; } 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: 5px; box-shadow: 2px 2px 2px #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: 5px; box-shadow: 2px 2px 2px #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: 5px; } #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: 5px; box-shadow: 2px 2px 2px #ccc; } #sideBarMain { padding: 0 10px 0 0; background: #fff; margin: 0 0 20px 0; width: 190px; font-size: 14px; 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: 1030px; padding-left: 0px; } .day { background: #fff; padding: 0; margin: 0 0 20px 0; } .postTitle a { color:#343434; } .dayTitle { display: none; float: right; line-height: 30px; } .dayTitle a { color: #aaa; font-size: 14px; } .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: 14px; 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 { 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 { 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: 14px; 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 { 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: 5px; } .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: 14px; color: #999; padding-left: 40px; } #footer { font-size: 14px; margin: 20px 0px 10px 0px; text-align: center; color: #353535; font-size: 14px; border-radius: 5px; } #cnblogs_post_body p img { margin: 10px; } .diggnum { font-size: 18px; color: #159B76; } #div_digg { position: fixed; border-radius: 5px; background-color: #fff; width: 47px; padding: 10px; right: -17px; bottom: 0; z-index: 200; } .buryit { float:none; margin: 0px; } .diggit { float:none; } .diggword { display: none; } #green_channel { margin-bottom: 10px; font-size: 14px; 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: 7px; 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: 14px; 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: 14px; } .sidebar-block { border-bottom: 1px solid #ddd; padding-bottom: 5px; } #homepage_top_pager { display: none; } .pager { font-size: 14px; 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: 14px; } #sidebar_categories > div { border-bottom: 1px solid #ddd; padding-bottom: 5px; } #cnblogs_post_body h1, #cnblogs_post_body h2, #cnblogs_post_body h3, #cnblogs_post_body h4, #cnblogs_post_body h5, #cnblogs_post_body h6 { position: relative; margin-top: 1rem; margin-bottom: 1rem; font-weight: bold; line-height: 1.4; cursor: text; } #cnblogs_post_body h1 tt, #cnblogs_post_body h1 code { font-size: inherit !important; } #cnblogs_post_body h2 tt, #cnblogs_post_body h2 code { font-size: inherit !important; } #cnblogs_post_body h3 tt, #cnblogs_post_body h3 code { font-size: inherit !important; } #cnblogs_post_body h4 tt, #cnblogs_post_body h4 code { font-size: inherit !important; } #cnblogs_post_body h5 tt, #cnblogs_post_body h5 code { font-size: inherit !important; } #cnblogs_post_body h6 tt, #cnblogs_post_body h6 code { font-size: inherit !important; } #cnblogs_post_body h1 a, #cnblogs_post_body h2 a, #cnblogs_post_body h3 a { color: #34495e; } #cnblogs_post_body h1 { margin: 2em auto 1.4em; line-height: 1.4; font-size: 1.8em; border-bottom: 1px solid var(--main-6); } #cnblogs_post_body h1::before { content: '# '!important; color: #f22f27; } #cnblogs_post_body h2 { font-size: 1.4em; line-height: 1.43; margin: 1.4em auto 1.2em; padding-left: 9px; border-left: 5px solid #f22f27; } #cnblogs_post_body h3 { margin-top: 1.3em; font-size: 1.2em; padding-left: 6px; padding-right: 6px; border-left: 2px solid var(--main-6); } .postTitle { text-align: center; padding-bottom: 0.3em; font-size: 2.2em; line-height: 1.2; margin: 0.5em auto 0.5em; color: var(--main-10); } .postTitle:after { content: ''; display: block; margin: 0.2em auto 0; width: 100px; height: 2px; border-bottom: 2px solid var(--main-6); } #cnblogs_post_body blockquote { color: rgb(255, 53, 2) !important; border-left: 4px solid rgb(239, 112, 96)!important; padding: 10px 15px !important; background-color: #fff9f9!important; } #cnblogs_post_body blockquote > p { color: rgb(255, 53, 2) !important; } #cnblogs_post_body table { padding: 0 !important; border: 2px solid var(--main-6) !important; word-break: initial !important; } #cnblogs_post_body thead { background-color: rgb(239, 112, 96) !important; color: rgb(255, 255, 255) !important; } #cnblogs_post_body table tr { border-top: 1px solid var(--main-6) !important; margin: 0 !important; padding: 0 !important; } #cnblogs_post_body table tr th { font-weight: bold !important; border: 1px solid var(--main-6) !important; border-bottom: 0 !important; text-align: left !important; margin: 0 !important; padding: 6px 13px !important; background-color: inherit !important; } #cnblogs_post_body table tr td { border: 1px solid var(--main-6) !important; text-align: left !important; margin: 0 !important; padding: 6px 13px !important; } #cnblogs_post_body table tr th:first-child, #cnblogs_post_body table tr td:first-child { margin-top: 0 !important; } #cnblogs_post_body table tr th:last-child, #cnblogs_post_body table tr td:last-child { margin-bottom: 0 !important; } code { font-size: 0.92rem !important; color: rgb(255, 53, 2) !important; background-color: rgb(248, 245, 236) !important; border-radius: 2px !important; font-family: "Consolas", "courier", "Microsoft YaHei", "微软雅黑", "宋体", Arial !important; } .comment_textarea { width: 780px !important; } .under-post-card { display: none !important; }
博客皮肤选择的是lessismore,最后记得勾选“禁用模板默认CSS”。