分享自用博客園主題樣式
阿新 • • 發佈:2019-01-22
min ima 頂部 font auto vertica 發表 ogr 朋友
1. 博客皮膚選擇 SimpleMemory
因為簡單,所以愛~
2. 在”頁面定制CSS代碼“中填入以下內容
/* ********************** * 整體布局 * **********************/ /* 整體布局 */ body { background:#F6F6F6; font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif; } #home { max-width: 1140px; padding: 15px; background: transparent; box-shadow: none; margin-top: 0; width: auto; } #main { margin-top: 15px; } #mainContent .forFlow { padding-right: 20px; } /* 非閱讀區域去掉白色背景 */ .newsItem, .catListEssay, .catListLink, .catListNoteBook, .catListTag, .catListPostCategory, .catListPostArchive, .catListImageCategory, .catListArticleArchive, .catListView, .catListFeedback, .mySearch, .catListComment, .catListBlogRank, .catList, .catListArticleCategory { background-color: transparent; } /* ********************** * 博客頁首 * **********************/ /* 隱藏系統標題 */ #blogTitle { display: none; } /* 頂部通告條 */ /* 頭像和社交 */ .c-portrait { text-align: center; padding: 50px 0; background: #39424b; color: #fff; margin-bottom: -40px; } /* 頭像 */ .c-portrait > img { display: inline-block; height: 80px; border-radius: 50%; } /* 標題和簽名 */ .c-portrait h1 { font-size: 25px; font-weight: bold; margin: 5px 0; } .c-portrait h1 a { color: #fff; } .c-portrait h2 { font-size: 16px; margin: 7px 0 10px; color: #ccc; } /* 社交圖標 */ .c-social a { color: #959da5; display: inline-block; vertical-align: middle; } /* ********************** * 導航欄 * **********************/ #navigator { padding: 0 10px; } #stats_article_count { display: none; } /* ********************** * 側邊欄 * **********************/ .catListLink,#sidebar_scorerank,#blog-news, .mysearch,#sidebar_articlecategory,#sidebar_postcategory { font-weight: normal; line-height: 1.2; font-size: 100%; margin-top: 0; margin-bottom: 10px; text-align: left; background-color: #fff; padding: 0 0 0 15px; border: 1px solid #eaeaea; } div#profile_block{ padding: 10px 0 10px 0px; } #sideBar h3 { font-size: 14px; background-color: #428BCA; padding: 5px; color: #fff; } .catListTitle{ font-weight: normal; line-height: 1.2; font-size: 100%; margin-top:0; margin-bottom: 10px; text-align: center; width: 80px; } #sideBar { width: 250px; margin-top: 0; } #sideBar a { color: inherit; } /* 隱藏側邊公告標題 */ .newsItem .catListTitle { display: none; } /* 增加列表項間距 */ .sidebar-block li { margin-bottom: 5px; } /* ********************** * 文章列表 * **********************/ /* 文章列表 */ #topics .postTitle { font-size: 28px; margin: 35px 0 30px; padding-left: 0; } #mainContent .day { padding: 15px 20px; background: #fff; } #mainContent .day .postTitle a { display: inline-block; } /* ********************** * 文章詳情 * **********************/ pre { margin-bottom: 1.35em; } pre code { padding: 10px 16px !important; } .post { background: #fff; padding: 0 60px 60px; box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3); } /* 文章標題 */ .postTitle { border-left: 8px solid #21759b; margin-bottom: 5px; font-weight: bold; line-height: 1; box-sizing: border-box; } .postTitle a:hover { margin-left: 0; } /* 去除首行縮進 */ .postBody p, .postCon p { text-indent: 0; } /* 重寫引用塊樣式 */ .postBody blockquote { min-height: auto; border-top: none; border-bottom: none; border-right: none; padding: 0 0 0 1em; } /* 增加底部留白 */ #cnblogs_post_body { padding-bottom: 5px; } /* 防止圖片溢出 */ #cnblogs_post_body img { max-width: 100%; } /* 文章底部信息 */ .postDesc { margin-top: 0; } /* ********************** * 評論 * **********************/ #comment_form_container .comment_textarea { width: 100%; } .comment_vote { padding-right: 2px; font-size: 14px; margin-top: 10px; } .comment_vote a.comment_digg { color: #f80; } .feedbackItem { margin: 20px 0 25px; background: #fff; padding: 10px 15px; } .feedbackCon { font-size: 13px; border-bottom: 0; padding: 10px 5px 0 5px; text-align: justify; } /* ********************** * 文章評價 * **********************/ #div_digg { position: fixed; right: 30px; bottom: 50px; background: #fff; padding: 20px 20px 15px; border-radius: 5px; border: 1px solid #888; box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.3); } /* ********************** * 隱藏廣告 * **********************/ #ad_t2, #opt_under_post, .c_ad_block, #under_post_news, #under_post_kb { display: none !important; } /* ********************** * 適配手機 * **********************/ @media (max-width: 767px) { #home { padding-left: 0; padding-right: 0; } #div_digg { width: auto; padding: 0; right: -25px; bottom: 3px; box-shadow: none; } #div_digg .buryit { display: none; } #mainContent .forFlow { padding-right: 0; } #mainContent .post { padding: 0 20px; } #sideBar, #blog-comments-placeholder { padding: 0 15px; } }
3. 在“首頁Html代碼”中填入以下內容:
<div class="c-portrait"> <img src="%E8%BF%99%E9%87%8C%E6%98%AF%E4%BD%A0%E7%9A%84%E5%A4%B4%E5%83%8FURL" > <h1><a href="https://www.cnblogs.com/emacode/">易碼</a></h1> <h2>舒心、快樂,比什麽都重要</h2> <div class="c-social"> </div> </div>
目前還在編輯中,此文還會更新。喜歡的朋友請稍等。急著發表一片文章是為了調樣式。
分享自用博客園主題樣式