From dccbde6f136f500f90303787d13d889f52413f3a Mon Sep 17 00:00:00 2001 From: esofar Date: Thu, 1 Oct 2020 18:55:35 +0800 Subject: [PATCH] =?UTF-8?q?:memo:=20=E6=B7=BB=E5=8A=A0=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 43 +- dist/silence.min.css | 2 +- docs/.nojekyll | 0 docs/README.md | 6 + docs/_coverpage.md | 8 + docs/_media/icon.svg | 33 ++ docs/_navbar.md.md | 5 + docs/_sidebar.md | 2 + docs/guide.md | 3 + docs/index.html | 36 ++ docs/options.md | 324 +++++++++++++ index.html | 5 +- src/components/bloggerProfile/index.js | 15 - src/components/bloggerProfile/index.less | 4 - src/components/customNavList/index.js | 65 --- src/components/customNavList/index.less | 15 - src/components/githubCorner/index.js | 7 +- src/components/hljsLineNumber/index.less | 8 + src/components/postContents/index.js | 23 +- src/components/postSignature/index.js | 11 +- src/components/postSponsor/index.js | 10 +- src/components/toolbar/index.js | 31 +- src/consts/options.js | 28 +- src/index.js | 26 +- src/index.less | 45 +- src/templates/index.html | 112 ++--- src/templates/post.html | 98 ++-- src/templates/tag.html | 572 ----------------------- webpack.config.dev.js | 6 +- 29 files changed, 612 insertions(+), 931 deletions(-) create mode 100644 docs/.nojekyll create mode 100644 docs/README.md create mode 100644 docs/_coverpage.md create mode 100644 docs/_media/icon.svg create mode 100644 docs/_navbar.md.md create mode 100644 docs/_sidebar.md create mode 100644 docs/guide.md create mode 100644 docs/index.html create mode 100644 docs/options.md delete mode 100644 src/components/bloggerProfile/index.js delete mode 100644 src/components/bloggerProfile/index.less delete mode 100644 src/components/customNavList/index.js delete mode 100644 src/components/customNavList/index.less delete mode 100644 src/templates/tag.html diff --git a/README.md b/README.md index 2f19556..d589dae 100644 --- a/README.md +++ b/README.md @@ -1,50 +1,21 @@ -# Silence +# Cnblogs Theme - Silence [![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/esofar/cnblogs-theme-silence?include_prereleases&style=flat-square)](https://github.com/esofar/cnblogs-theme-silence/releases) [![](https://data.jsdelivr.com/v1/package/gh/esofar/cnblogs-theme-silence/badge)](https://www.jsdelivr.com/package/gh/esofar/cnblogs-theme-silence) [![Gitter](https://img.shields.io/gitter/room/esofar/cnblogs-theme-silence?style=flat-square)](https://gitter.im/cnblogs-theme-silence/community) -一款专注阅读的博客园主题,主要面向于经常混迹博客园的朋友。其追求大道至简的终极真理,界面追求简洁、运行追求高效、部署追求简单。 +❤️ 一款专注阅读的博客园主题,其追求大道至简的终极真理,界面追求简洁、运行追求高效、部署追求简单。 -## 目录 +## 快速安装 -- [Security](#security) -- [Background](#background) -- [Install](#install) -- [Usage](#usage) -- [API](#api) -- [Maintainers](#maintainers) -- [Contributing](#contributing) -- [License](#license) +📖 [https://github.com/esofar/cnblogs-theme-silence](https://github.com/esofar/cnblogs-theme-silence) -## Security -## Background +## 贡献代码 -## Install +如果您在使用该主题时遇到问题,或者有什么好主意,可以在 Github 仓库 发表 Issue 或者 PR 。 -``` -``` -## Usage - -``` -``` - -## API - -## Maintainers - -[@esofar](https://github.com/esofar) - -## Contributing - -See [the contributing file](contributing.md)! - -PRs accepted. - -Small note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification. - -## License +## 开源许可 MIT © 2020 esofar diff --git a/dist/silence.min.css b/dist/silence.min.css index 2f25427..20e71ea 100644 --- a/dist/silence.min.css +++ b/dist/silence.min.css @@ -1 +1 @@ -@import url(https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css);@media only screen and (max-width:1080px){.github-corner{display:none}}@media only screen and (max-width:990px){#header,.esa-mobile-menu{display:block!important}#header{width:auto;position:fixed!important;background:var(--blog-bg-color)}#header #blogTitle{margin-left:15px}#header #navigator{display:none;left:0;top:61px}#header #navigator #navList>li{float:none;position:relative;background:var(--blog-bg-color);height:34px;line-height:34px;width:120px;border-bottom:1px solid var(--border-color);border-right:1px solid var(--border-color)}#header #navigator #navList>li>a{float:none;width:inherit;padding:0 10px}#header #navigator #navList>li>a .arrow{position:absolute;top:.8rem;right:.8rem;transform:rotate(270deg) scaleX(-1)}#header #navigator #navList>li .esa-sub-navs{position:fixed;width:130px;top:0;left:121px;top:61px}#header #navigator #navList>li .esa-sub-navs .caret{display:none}#header #navigator #navList>li .esa-sub-navs ul{box-shadow:none;padding:0;border-radius:0}#header #navigator #navList>li .esa-sub-navs ul li{height:34px;line-height:34px;border:1px solid var(--border-color);border-top:none}#header #navigator #navList>li .esa-sub-navs ul li a{text-align:left;padding:0 10px}#header #navigator #navList>li i{display:none}#sideBar{display:none!important}#home{min-width:auto!important}#main{width:100%!important;padding:70px 0 0!important}#main .forFlow{margin-left:0!important;padding-left:15px;padding-right:15px}#main .forFlow .postBody{padding:0!important}#main .forFlow .postDesc{display:none}#main .forFlow #comment_form{padding:0!important}#main .forFlow .commentform{margin-left:0!important}#main .forFlow .day .postDesc,#main .forFlow .entrylist .entrylistItemPostDesc{display:none}#myposts .postDesc2{text-align:right!important}#myposts .postDesc2 span{display:none}.esa-toolbar .skin-popup{bottom:calc(50% - 67px)!important;border-radius:15px!important}}:root[mode=light]{--blog-bg-color:#fff;--text-color:#314659;--border-color:#eef2f8;--catalog-bg-color:#fff;--panel-bg-color:#f8f8f8;--contents-bg-color:#fff;--code-bg-color:#f1f1f1}:root[mode=dark]{--blog-bg-color:#202020;--text-color:#d8d8d8;--border-color:#2f2f2f;--catalog-bg-color:#252525;--panel-bg-color:#252525;--contents-bg-color:#343232;--code-bg-color:#3a3a3a}:root[theme=a1]{--theme-color:#2d8cf0}:root[theme=b1]{--theme-color:#fa7298}:root[theme=c1]{--theme-color:#42b983}:root[theme=d1]{--theme-color:#607d8b}:root[theme=e1]{--theme-color:#5e72e4}:root[theme=f1]{--theme-color:#ff9700}:root[theme=g1]{--theme-color:#ff5722}:root[theme=h1]{--theme-color:#009688}:root[theme=i1]{--theme-color:#673bb7}:root[theme=j1]{--theme-color:#906f61}*{margin:0;padding:0}body,html{height:100%}body{background:var(--blog-bg-color);color:var(--text-color);font-family:Lato,PingFang SC,Microsoft YaHei,sans-serif;font-size:14px;font-weight:300}table{border-collapse:collapse;border-spacing:0}td{padding:5px}fieldset,img{border:0}ul{word-break:break-all}li{list-style:none}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}a{color:var(--text-color);text-decoration:none;transition:all .3s ease}a:hover{color:var(--theme-color)}::-moz-selection{background:var(--theme-color);color:#fff}::selection{background:var(--theme-color);color:#fff}#ad_c1,#ad_c2,#ad_t2,#author_profile,#comment_nav,#green_channel,#lnkBlogLogo,#under_post_kb,#under_post_news,.blogStats,.c_ad_block,.dayTitle{display:none}.clear{clear:both}#home{width:100%;height:100%;margin:0 auto}#header{width:960px;position:relative;top:0;right:0;left:0;margin:0 auto;border-top:0;opacity:.95;border-bottom:1px solid var(--border-color);padding-bottom:0;display:block;height:60px;z-index:999}#blogTitle h1{font-size:25px;font-weight:600;font-family:Georgia;float:left;margin-top:15px}#blogTitle h2{display:none}#navigator{height:inherit;position:absolute;right:0;top:0}#navList{height:inherit;float:left}#navList>li{position:relative;float:left}#navList>li:hover i{width:100%;left:0}#navList>li>a:active,#navList>li>a:link,#navList>li>a:visited{float:left;font-size:17px;border-right:0;font-weight:300;text-align:center;width:auto;padding:19px 16px}#navList>li>i{width:0;height:4px;background-color:var(--theme-color);content:"";position:absolute;left:50%;bottom:0;transition:.7s}#navList .open{transform:rotate(180deg) scaleX(-1);transition:.3s}#navList .esa-sub-navs{position:absolute;width:130px;top:60px;left:calc(50% - 65px);display:none}#navList .esa-sub-navs .caret{border-top:0 solid transparent;border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:8px solid var(--contents-bg-color);width:0;position:relative;left:calc(50% - 8px)}#navList .esa-sub-navs ul{background-color:var(--contents-bg-color);border-radius:4px;box-shadow:0 1px 15px rgba(27,31,35,.15);padding:10px;text-align:center}#navList .esa-sub-navs ul li{float:none}#navList .esa-sub-navs ul li a{font-size:15px;border-right:0;color:var(--text-color);display:block;width:100%;padding:10px 0;height:inherit;border-bottom:1px solid transparent}#navList .esa-sub-navs ul li a:hover{color:var(--theme-color)}#main{width:960px;margin:0 auto;min-height:calc(100% - 75px);padding:15px 0;transition:all .3s ease}#mainContent{float:right;margin-left:-25em;width:100%}#mainContent .forFlow{margin:0 auto 0 0;max-width:960px}#sideBar{width:230px;border-right:1px solid var(--border-color);font-weight:300;display:none;min-height:750px;padding:0 15px 0 0}#sideBar #profile_block{margin:0;font-size:0;display:flex;flex-wrap:wrap;text-align:left;line-height:1.6}#sideBar #profile_block a{box-sizing:border-box}#sideBar #profile_block a:first-child{font-size:18px;font-weight:700;width:100%;display:block;text-align:center;margin-bottom:14px}#sideBar #profile_block a:nth-child(3):after{content:"\56ed\9f84"}#sideBar #profile_block a:nth-child(5):after{content:"\7c89\4e1d"}#sideBar #profile_block a:nth-child(7):after{content:"\5173\6ce8"}#sideBar #profile_block a:nth-child(3),#sideBar #profile_block a:nth-child(5),#sideBar #profile_block a:nth-child(7){font-size:14px;width:33.3333333%;display:block;padding:0 4px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:center}#sideBar #profile_block a:nth-child(3):after,#sideBar #profile_block a:nth-child(5):after,#sideBar #profile_block a:nth-child(7):after{color:#97979f;font-size:14px;display:block;text-overflow:ellipsis;overflow:hidden;width:100%;font-weight:400}#sideBar #profile_block #p_b_follow{margin:15px 0 10px;text-align:center}#sideBar #profile_block #p_b_follow a{border:1px solid var(--border-color);font-size:13px;padding:7px 0;border-radius:4px;width:230px;font-weight:300}#sideBar #profile_block #p_b_follow a:hover{border-color:var(--theme-color)}.newsItem{margin-bottom:10px}.newsItem .catListTitle{display:none}#blog-calendar{border:1px solid var(--border-color);border-radius:4px}#blog-calendar .CalDayHeader{font-weight:300}#blog-calendar .CalTodayDay{color:var(--theme-color);font-weight:600}#sideBarMain ul{line-height:1.6}.catListTitle{text-align:left;margin:20px 0;font-size:20px;font-weight:300;border-left:4px solid var(--theme-color);border-radius:4px;padding-left:7px}#sidebar_search #widget_my_zzk .input_my_zzk{color:#314659;border:1px solid var(--border-color);background-color:transparent;width:150px;height:32px;padding:0 7px;font-size:16px;border-radius:4px}#sidebar_search #widget_my_zzk .input_my_zzk:focus{outline:none}#sidebar_search #widget_my_zzk .btn_my_zzk{height:34px;font-size:14px;font-weight:300;background-color:transparent;color:var(--text-color);cursor:pointer;width:59px;outline:0;border:1px solid var(--border-color);border-radius:4px;transition:border .3s}#sidebar_search #widget_my_zzk .btn_my_zzk:hover{color:var(--theme-color);border:1px solid var(--theme-color)}#sidebar_search #widget_my_google{display:none}#sidebar_toptags li{font-size:14px;height:16px;line-height:16px;padding:5px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:210px;border:1px solid var(--border-color);margin:0 6px 6px 0;display:inline-grid;transition:all .3s ease;border-radius:4px}#sidebar_toptags li a{transition:inherit}#sidebar_toptags li a .tag-count{display:none}#sidebar_toptags li:active,#sidebar_toptags li:link,#sidebar_toptags li:visited{border-color:var(--border-color)}#sidebar_toptags li:hover{border-color:var(--theme-color)}#sidebar_categories li,#sidebar_scorerank li,#sidebar_shortcut li{font-size:15px;height:40px;padding-left:3px;line-height:30px;white-space:nowrap;overflow:hidden;transition:all .5s;text-overflow:ellipsis;list-style:inside}#sidebar_categories li:hover,#sidebar_scorerank li:hover,#sidebar_shortcut li:hover{margin-left:7px}#sidebar_recentposts li,#sidebar_topcommentedposts li,#sidebar_topdiggedposts li,#sidebar_topviewedposts li{font-size:15px;padding:10px 0;transition:all .3s;text-align:justify;border-bottom:1px solid var(--border-color)}#sidebar_recentposts li:first-child,#sidebar_topcommentedposts li:first-child,#sidebar_topdiggedposts li:first-child,#sidebar_topviewedposts li:first-child{border-top:1px solid var(--border-color)}#sidebar_recentcomments li{text-align:justify}#sidebar_recentcomments .recent_comment_title:nth-child(n+2){padding-top:10px}#sidebar_recentcomments .recent_comment_title:first-child{border-top:1px solid var(--border-color);padding-top:10px}#sidebar_recentcomments .recent_comment_body{border-radius:4px;padding:5px 10px;margin:5px 0;background-color:var(--panel-bg-color)}#sidebar_recentcomments .recent_comment_author{margin-right:0;text-align:right;padding-bottom:10px;border-bottom:1px solid var(--border-color)}#taglist_title,.entrylistTitle,.myposts_title,.PostListTitle,.thumbTitle{font-size:20px;font-weight:300;margin-bottom:10px;text-align:left}.entrylistDescription{margin:10px auto;border-left:4px solid var(--border-color);text-align:justify;padding-left:7px}#myposts{margin-left:0}#myposts .PostList{border-bottom:1px solid var(--border-color);padding:0;margin:0}#myposts .PostList:first-of-type{border-top:1px solid var(--border-color)}#myposts .postTitl2{font-size:17px;margin:10px 0;text-align:justify}#myposts .postDesc2{text-align:right;margin-bottom:10px;font-size:14px}#myposts .postDesc2>a{display:none}#myposts .postDesc2:before{font-family:FontAwesome;content:"\f017";opacity:.7}.post-view-count:before{content:"\f06e"}.post-comment-count:before,.post-view-count:before{font-family:FontAwesome;padding-left:10px;padding-right:5px;opacity:.7}.post-comment-count:before{content:"\f27b"}.post-digg-count:before{font-family:FontAwesome;content:"\f08a";padding-left:10px;padding-right:5px;opacity:.7}.entrylist .postSeparator,.postSeparator{margin:0;border:none}.day,.entrylistItem{border-bottom:1px solid var(--border-color);text-align:justify;margin-bottom:10px;padding-bottom:10px}.day .postTitle,.entrylist .entrylistPosttitle{font-size:20px}.day .postCon,.entrylist .entrylistPostSummary{font-size:16px;padding:10px 0}.day .postCon img,.entrylist .entrylistPostSummary img{max-height:150px;max-width:200px;margin-left:10px}.day .postCon a,.entrylist .entrylistPostSummary a{border-bottom:1px solid var(--text-color);padding:2px 5px;font-size:14px;margin-top:10px;display:table}.day .postCon a:after,.entrylist .entrylistPostSummary a:after{content:" \00bb"}.day .postCon a:hover,.entrylist .entrylistPostSummary a:hover{border-bottom:1px solid var(--theme-color)}.day .postDesc,.entrylist .entrylistItemPostDesc{text-align:right}.day .postDesc>a,.entrylist .entrylistItemPostDesc>a{display:none}#topics .postTitle{font-size:21px;font-weight:300}#topics .postBody{font-size:16px;line-height:1.75;padding-bottom:5px;border-bottom:1px solid var(--border-color)}#topics .postBody a{transition:all .3s ease}#topics .postBody a:hover{text-decoration:underline}#topics .postBody a:active,#topics .postBody a:link,#topics .postBody a:visited{color:var(--theme-color);text-decoration:none}#topics .postBody h1{font-size:21px}#topics .postBody h2{font-size:20px}#topics .postBody h3{font-size:19px}#topics .postBody h4{font-size:18px}#topics .postBody h5{font-size:17px}#topics .postBody h6{font-size:16px}#topics .postBody p{margin:13px auto}#topics .postBody hr{border-top:none;border-bottom:1px solid var(--border-color)}#topics .postBody blockquote{border:none;margin:15px 0;border-radius:4px;padding:1px 10px;border-left:4px solid var(--theme-color);background-color:var(--panel-bg-color)}#topics .postBody em{padding-right:3px}#topics .postBody strong{margin:0 3px;font-weight:500}#topics .postBody img{display:block;margin:15px 0 30px;border-radius:3px;box-shadow:0 1px 15px rgba(27,31,35,.15),0 0 1px rgba(106,115,125,.35)}#topics .postBody .cnblogs-markdown pre{white-space:pre;position:relative}#topics .postBody ol li,#topics .postBody ul li{margin:3px 0}#topics .postBody table{font-size:14px;border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid var(--border-color);width:100%;margin:15px 0}#topics .postBody table th{background:var(--panel-bg-color);white-space:nowrap;font-weight:400}#topics .postBody table td,#topics .postBody table th{border:1px solid var(--border-color);padding:6px 15px}#topics .postBody h1 code,#topics .postBody h2 code,#topics .postBody h3 code,#topics .postBody h4 code,#topics .postBody h5 code,#topics .postBody h6 code,#topics .postBody li>code,#topics .postBody p>code,#topics .postBody table code{line-height:1.2;font-family:consolas!important;vertical-align:middle;margin:0 3px;background-color:var(--code-bg-color)!important;font-size:14px!important;padding:.2em .3em!important;border-radius:3px!important;border:none!important}#topics .postBody #BlogPostCategory{font-size:13px;margin-bottom:10px}#topics .postBody #BlogPostCategory a{border-radius:4px;padding:5px 10px;background-color:var(--panel-bg-color);margin-right:5px;transform:none}#topics .postBody #EntryTag{font-size:13px}#topics .postBody #EntryTag a{border-radius:4px;padding:5px 10px;background-color:var(--panel-bg-color);margin-right:5px}#topics .postBody #post_next_prev{font-size:14px}#topics .postDesc{padding-top:5px;text-align:right}.cnblogs_code{background-color:#333232;padding-left:1em;padding-right:1em;border:none;border-radius:3px;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace!important}.cnblogs_code div{background-color:transparent;color:#656c73}.cnblogs_code img{margin:0!important}.cnblogs_code pre{color:#abb2bf;font-family:inherit!important;font-size:15px!important}.cnblogs_code pre span{font-family:inherit!important;color:inherit!important}.cnblogs_code textarea{font-family:inherit!important;padding:5px;border:1px solid #3e4c42;color:#c5d4ef;background-color:#282c34}.cnblogs_code textarea:focus{outline:0}.cnblogs_code .code_img_closed,.cnblogs_code .code_img_opened{display:none!important}.cnblogs_code .cnblogs_code_toolbar{width:20px}.cnblogs_code .cnblogs_code_toolbar span{padding-right:0}.cnblogs_code .cnblogs_code_toolbar a:link img{background-color:transparent!important}.cnblogs_code .cnblogs_code_collapse{color:#656c73;border:1px solid #989fa6;border-radius:2px;background-color:transparent;display:inline-block;cursor:pointer;padding:5px 5px 2px}#footer{border-top:1px solid var(--border-color);font-size:13px;text-align:center;padding:15px 0}.louzhu{color:var(--theme-color);font-weight:500}.feedbackListSubtitle .sendMsg2This{background:transparent;padding-left:0;font-size:15px}.feedbackListSubtitle .sendMsg2This:before{content:"✉️"}.feedbackManage{float:right}.feedbackItem .feedbackCon{margin-bottom:10px;padding:10px 0;border-bottom:1px solid var(--border-color)}.feedbackItem .feedbackCon .comment_vote{margin-top:12px}.blog_comment_body{width:auto;border-radius:4px;padding:12px;margin-left:50px;background-color:var(--panel-bg-color);min-height:19px}.blog_comment_body img{border-radius:3px}#taglist_main{margin-top:0}#taglist_main table{width:100%}#taglist_main table tr td{padding:5px 20px 5px 0}#taglist_main table tr td:last-child{padding-right:0}#taglist_main table tr td .small{display:none}#taglist_main table tr td a{display:block;padding:5px;font-weight:300;height:19px;line-height:20px;text-align:center;border:1px solid var(--border-color);border-radius:4px;color:var(--text-color)}#taglist_main table tr td a:hover{border:1px solid var(--theme-color)}#div_digg{margin:0;width:auto}#div_digg .buryit,#div_digg .diggit{background:none;height:auto;width:auto;margin:0;font-size:17px;border-radius:4px;padding:3px 10px;background-color:var(--panel-bg-color);transition:all .3s}#div_digg .buryit span,#div_digg .diggit span{font-size:inherit;color:inherit}#div_digg .buryit:hover,#div_digg .diggit:hover{color:#fff;background-color:var(--theme-color)}#div_digg .diggit:before{content:"\63a8\8350"}#div_digg .buryit{margin-left:15px}#div_digg .buryit:before{content:"\53cd\5bf9"}.topicListFooter{text-align:right;margin-top:10px;margin-right:0}#nav_next_page,.pager{color:var(--text-color);text-align:right;margin-right:0!important}#nav_next_page a,.pager a{color:var(--text-color);padding:2px 8px;border:1px solid var(--border-color);border-radius:4px;margin:0 0 0 5px}#nav_next_page a:hover,.pager a:hover{color:var(--theme-color);border:1px solid var(--theme-color)}.pager span.current{padding:3px 7px;border:1px solid var(--theme-color);background-color:var(--theme-color);border-radius:4px;margin:0 0 0 5px}.feedback_area_title{font-size:20px;border-bottom:1px solid var(--border-color);margin-bottom:15px;padding-bottom:5px}.commentform #commentform_title{background-image:none;padding-left:0;font-size:20px}.commentform #tip_comment{color:var(--theme-color)!important;margin:15px 0;display:block}.commentform .comment_textarea{width:100%;border:1px solid var(--border-color);background-color:transparent;padding:0}.commentform .comment_textarea:focus{outline:0}.commentform .commentbox_title{border-bottom:1px solid var(--border-color)}.commentform .commentbox_title .commentbox_title_left .commentbox_tab{margin:0;padding:5px 15px;color:var(--text-color);border-bottom:none}.commentform .commentbox_title .commentbox_title_left .active{color:var(--theme-color)}.commentform .commentbox_title .commentbox_title_right{margin:0 10px 0 0}.commentform .commentbox_title .commentbox_title_right .comment_svg:hover,.commentform .commentbox_title .commentbox_title_right .comment_svg_stroke:hover{fill:var(--theme-color);stroke:var(--theme-color)}.commentform #tbCommentBody,.commentform #tbCommentBodyPreview{padding:10px 15px;background:transparent;color:var(--text-color);font-weight:300}.commentform #tbCommentBodyPreviewBody{margin-left:0;min-height:235px;background-color:transparent}.commentform #btn_comment_submit{width:auto;height:auto;border-width:0;cursor:pointer;color:#fff;background-color:var(--theme-color);border-color:var(--theme-color);font-weight:300;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:5px 17px;font-size:13px;border-radius:4px;outline:none;transition:all .3s}.commentform #btn_comment_submit:hover{opacity:.7}.commentform .comment_my_posted>img{display:none}.commentform .bq_post_comment{margin-top:5px;font-size:13px;display:block;color:var(--text-color);background-color:var(--border-color);border:none;border-radius:4px;padding:1px 15px}::-webkit-scrollbar{width:6px;height:8px}::-webkit-scrollbar-thumb{background-color:var(--text-color)}::-webkit-scrollbar-thumb:hover{background-color:var(--theme-color)}@-webkit-keyframes loading{0%{opacity:0}to{opacity:1}}@keyframes loading{0%{opacity:0}to{opacity:1}}.p-loading{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;justify-content:center;align-items:center;background:#222;z-index:19940121}.p-loading .loading h2{color:#ccc;margin:0;font:.8em verdana;text-transform:uppercase;letter-spacing:.1em;text-align:center}.p-loading .loading span{display:inline-block;vertical-align:middle;width:.6em;height:.6em;margin:.19em;background:#007db6;border-radius:.6em;-webkit-animation:loading 1s infinite alternate;animation:loading 1s infinite alternate}.p-loading .loading span:nth-of-type(2){background:#008fb2;-webkit-animation-delay:.2s;animation-delay:.2s}.p-loading .loading span:nth-of-type(3){background:#009b9e;-webkit-animation-delay:.4s;animation-delay:.4s}.p-loading .loading span:nth-of-type(4){background:#00a77d;-webkit-animation-delay:.6s;animation-delay:.6s}.p-loading .loading span:nth-of-type(5){background:#00b247;-webkit-animation-delay:.8s;animation-delay:.8s}.p-loading .loading span:nth-of-type(6){background:#5ab027;-webkit-animation-delay:1s;animation-delay:1s}.p-loading .loading span:nth-of-type(7){background:#a0b61e;-webkit-animation-delay:1.2s;animation-delay:1.2s}.github-corner:hover .octo-arm{-webkit-animation:octocat-wave .56s ease-in-out;animation:octocat-wave .56s ease-in-out}.github-corner svg{fill:var(--theme-color);z-index:999;cursor:pointer;position:fixed;top:0;border:0;left:0;transform:scaleX(-1)}@-webkit-keyframes octocat-wave{0%,to{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@keyframes octocat-wave{0%,to{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}.esa-mobile-menu{display:none;position:fixed;top:17px;right:20px;height:25px;width:25px;text-align:center;line-height:25px;z-index:941113;font-size:1.5em;cursor:pointer;color:var(--text-color);border-radius:4px}.esa-profile-avatar{border-radius:4px;width:100%}.esa-contents{box-shadow:-2px 0 3px rgba(0,0,0,.1);position:fixed;top:0;right:0;bottom:0;background-color:var(--contents-bg-color);overflow-y:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:1rem 0;width:252px;transform:translate3d(252px,0,0);z-index:1000}.esa-contents ul{padding:0 15px;overflow-y:auto}.esa-contents ul li{padding:5px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;color:var(--text-color)}.esa-contents ul li .level1{margin-left:0}.esa-contents ul li .level2{margin-left:10px}.esa-contents ul li .level3{margin-left:26px}.esa-anchor{opacity:0;transition:opacity .3s ease;margin-left:8px}.active{transform:translateZ(0)}.active,.noactive{transition-duration:378ms}.noactive{transform:translate3d(252px,0,0)}.cnblogs-markdown .hljs{display:block;overflow-x:auto;padding:.5em 1em .5em 3em!important;background:#2b2b2b!important;border:1px solid #2c2a2a!important;color:#bababa;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace!important;font-size:15px!important}.hljs-comment,.hljs-quote{color:#5c6370;font-style:italic}.hljs-doctag,.hljs-formula,.hljs-keyword{color:#c678dd}.hljs-deletion,.hljs-name,.hljs-section,.hljs-selector-tag,.hljs-subst{color:#e06c75}.hljs-literal{color:#56b6c2}.hljs-addition,.hljs-attribute,.hljs-meta-string,.hljs-regexp,.hljs-string{color:#98c379}.hljs-built_in,.hljs-class .hljs-title{color:#e6c07b}.hljs-attr,.hljs-number,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-pseudo,.hljs-template-variable,.hljs-type,.hljs-variable{color:#d19a66}.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-symbol,.hljs-title{color:#61aeee}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}.hljsln{display:block;margin-left:2.4em;padding-left:.7em!important}.hljsln::-webkit-scrollbar{height:8px}.hljsln::-webkit-scrollbar-thumb{background:#314659}.hljsln::-webkit-scrollbar-thumb:hover{background:var(--theme-color)}.hljsln .ln-bg{z-index:1;top:0;height:100%;background:#333;border-radius:4px}.hljsln .ln-bg,.hljsln .ln-num{position:absolute;left:0;width:2.4em}.hljsln .ln-num{z-index:2;text-align:center;display:inline-block;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.hljsln .ln-num:before{color:#777;font-style:normal;font-weight:400;text-align:center;content:attr(data-num)}.esa-post-signature{padding:12px 24px 12px 20px;margin-top:15px;margin-left:5px;font-size:15px;line-height:2;background-color:var(--panel-bg-color);position:relative;border-radius:4px;border-left:4px solid var(--theme-color)}.esa-post-signature p{margin:0!important}.esa-post-signature a{color:var(--text-color)!important}.esa-sponsor{position:relative;width:100%;height:85px;margin:60px 0 100px}.esa-sponsor .title{text-align:center;margin-bottom:15px;font-size:17px;font-weight:400;opacity:.8}.esa-sponsor .box{position:absolute;left:calc(50% - 110px);border:1px solid var(--border-color);border-radius:4px}.esa-sponsor .box li{width:66px;float:left;margin:0!important;text-align:center;border-left:1px solid var(--border-color);background:transparent;transition:background .3s ease;cursor:pointer;line-height:0;opacity:1;list-style:none;margin:0;padding:6px 3px}.esa-sponsor .box li svg{opacity:.5}.esa-sponsor .box li:hover{background:var(--panel-bg-color)}.esa-sponsor .box li:first-child{border-width:0}.esa-sponsor .qrshow{position:absolute;width:200px;height:200px;background:var(--bg-color);cursor:pointer;margin:0!important;left:calc(50% - 100px);top:-180px;z-index:999;display:none}.esa-sponsor .qrshow img{height:100%;width:100%}.esa-layer{position:fixed;top:10px;text-align:center;line-height:25px;font-size:15px;width:100%;display:none;z-index:9999999}.esa-layer .content{position:relative;background:var(--theme-color,#3b4f61);max-width:250px;padding:5px 10px;font-size:14px;font-weight:400;border-radius:4px;color:#fff;display:inline-block}.esa-comment-avatar{float:left}.esa-comment-avatar img{height:43px;width:43px;border-radius:4px;transition:all .5s ease-out;-webkit-transition:all .6s ease-out}.esa-comment-avatar img:hover{border-radius:50%}.esa-toolbar{position:fixed;bottom:30px;right:30px;width:45px;height:45px;z-index:1001}.esa-toolbar .bars{position:relative;width:inherit;height:inherit;cursor:pointer;border-radius:50%;background:var(--theme-color);z-index:1;text-align:center;font-size:24px;line-height:46px;color:#fff;transition:all .3s ease;box-shadow:0 2px 4px 1px rgba(0,0,0,.2)}.esa-toolbar .contents,.esa-toolbar .mode,.esa-toolbar .skin,.esa-toolbar .up{position:absolute;cursor:pointer;bottom:0;right:0;height:35px;width:35px;text-align:center;line-height:35px;z-index:0;opacity:0;border-radius:4px;box-shadow:0 2px 4px 1px rgba(0,0,0,.2);background-color:var(--panel-bg-color);transition:all .3s ease}.esa-toolbar .contents:hover,.esa-toolbar .mode:hover,.esa-toolbar .skin:hover,.esa-toolbar .up:hover{color:#fff;background-color:var(--theme-color)}.esa-toolbar .bars-show{transform:rotate(270deg)}.esa-toolbar .up-show{transform:translate3d(0,-200%,0);opacity:1}.esa-toolbar .mode-show{transform:translate3d(-140%,-140%,0);opacity:1}.esa-toolbar .skin-show{transform:translate3d(-200%,0,0);opacity:1}.esa-toolbar .contents-show{transform:translate3d(-350%,0,0);opacity:1}.esa-toolbar .skin-popup{display:none;position:fixed;left:calc(50% - 100px);bottom:0;padding:25px;opacity:1;width:150px;height:auto;border-radius:15px 15px 0 0;background-clip:border-box;box-shadow:0 2px 4px 1px rgba(0,0,0,.2);background-color:var(--panel-bg-color)}.esa-toolbar .skin-popup .item{text-align:center}.esa-toolbar .skin-popup .title{font-size:17px;margin-bottom:.5em}.esa-toolbar .skin-popup .themes button{font-size:1em;position:relative;width:calc(1.75em - 5px);height:calc(1.75em - 5px);border-radius:.15em;cursor:pointer;margin:2.5px;flex-shrink:0;justify-self:center;transition:all .15s;overflow:hidden;background:transparent;z-index:1;box-sizing:border-box;outline:none;border:none}.esa-loader{width:100%;height:100%;top:0;position:fixed;z-index:99999;background:#fff}.esa-loader .box{overflow:visible;padding-top:2em;height:0;width:2em}.esa-loader .box,.esa-loader .figure{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.esa-loader .figure{height:0;width:0;box-sizing:border-box;border:0 solid #1976d2;border-radius:50%;-webkit-animation:loader-figure 1.15s cubic-bezier(.215,.61,.355,1) infinite;animation:loader-figure 1.15s cubic-bezier(.215,.61,.355,1) infinite}.esa-loader .label{float:left;transform:translateX(-50%);margin:.5em 0 0 50%;font-size:.875em;letter-spacing:.1em;line-height:1.5em;color:#1976d2;white-space:nowrap;-webkit-animation:loader-label 1.15s cubic-bezier(.215,.61,.355,1) infinite;animation:loader-label 1.15s cubic-bezier(.215,.61,.355,1) infinite}@-webkit-keyframes loader-figure{0%{height:0;width:0;background-color:#1976d2}29%{background-color:#1976d2}30%{height:2em;width:2em;background-color:transparent;border-width:1em;opacity:1}to{height:2em;width:2em;border-width:0;opacity:0;background-color:transparent}}@keyframes loader-figure{0%{height:0;width:0;background-color:#1976d2}29%{background-color:#1976d2}30%{height:2em;width:2em;background-color:transparent;border-width:1em;opacity:1}to{height:2em;width:2em;border-width:0;opacity:0;background-color:transparent}}@-webkit-keyframes loader-label{0%{opacity:.25}30%{opacity:1}to{opacity:.25}}@keyframes loader-label{0%{opacity:.25}30%{opacity:1}to{opacity:.25}} \ No newline at end of file +@import url(https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css);@media only screen and (max-width:1080px){.github-corner{display:none}}@media only screen and (max-width:990px){#header,.esa-mobile-menu{display:block!important}#header{width:auto;position:fixed!important;background:var(--blog-bg-color)}#header #blogTitle{margin-left:15px}#header #navigator{display:none;left:0;top:61px}#header #navigator #navList>li{float:none;position:relative;background:var(--blog-bg-color);height:34px;line-height:34px;width:120px;border-bottom:1px solid var(--border-color);border-right:1px solid var(--border-color)}#header #navigator #navList>li>a{float:none;width:inherit;padding:0 10px}#header #navigator #navList>li>a .arrow{position:absolute;top:.8rem;right:.8rem;transform:rotate(270deg) scaleX(-1)}#header #navigator #navList>li .esa-sub-navs{position:fixed;width:130px;top:0;left:121px;top:61px}#header #navigator #navList>li .esa-sub-navs .caret{display:none}#header #navigator #navList>li .esa-sub-navs ul{box-shadow:none;padding:0;border-radius:0}#header #navigator #navList>li .esa-sub-navs ul li{height:34px;line-height:34px;border:1px solid var(--border-color);border-top:none}#header #navigator #navList>li .esa-sub-navs ul li a{text-align:left;padding:0 10px}#header #navigator #navList>li i{display:none}#sideBar{display:none!important}#home{min-width:auto!important}#main{width:100%!important;padding:70px 0 0!important}#main .forFlow{margin-left:0!important;padding-left:15px;padding-right:15px}#main .forFlow .postBody{padding:0!important}#main .forFlow .postDesc{display:none}#main .forFlow #comment_form{padding:0!important}#main .forFlow .commentform{margin-left:0!important}#main .forFlow .day .postDesc,#main .forFlow .entrylist .entrylistItemPostDesc{display:none}#myposts .postDesc2{text-align:right!important}#myposts .postDesc2 span{display:none}.esa-toolbar .skin-popup{bottom:calc(50% - 67px)!important;border-radius:15px!important}}:root[mode=light]{--blog-bg-color:#fff;--text-color:#314659;--border-color:#eef2f8;--catalog-bg-color:#fff;--panel-bg-color:#f8f8f8;--contents-bg-color:#fff;--code-bg-color:#f1f1f1}:root[mode=dark]{--blog-bg-color:#202020;--text-color:#d8d8d8;--border-color:#2f2f2f;--catalog-bg-color:#252525;--panel-bg-color:#252525;--contents-bg-color:#343232;--code-bg-color:#3a3a3a}:root[theme=a1]{--theme-color:#2d8cf0}:root[theme=b1]{--theme-color:#fa7298}:root[theme=c1]{--theme-color:#42b983}:root[theme=d1]{--theme-color:#607d8b}:root[theme=e1]{--theme-color:#5e72e4}:root[theme=f1]{--theme-color:#ff9700}:root[theme=g1]{--theme-color:#ff5722}:root[theme=h1]{--theme-color:#009688}:root[theme=i1]{--theme-color:#673bb7}:root[theme=j1]{--theme-color:#906f61}*{margin:0;padding:0}body,html{height:100%}body{background:var(--blog-bg-color);color:var(--text-color);font-family:Lato,PingFang SC,Microsoft YaHei,sans-serif;font-size:14px;font-weight:300}table{border-collapse:collapse;border-spacing:0}td{padding:5px}fieldset,img{border:0}ul{word-break:break-all}li{list-style:none}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}a{color:var(--text-color);text-decoration:none;transition:all .3s ease}a:hover{color:var(--theme-color)}::-moz-selection{background:var(--theme-color);color:#fff}::selection{background:var(--theme-color);color:#fff}#ad_c1,#ad_c2,#ad_t2,#author_profile,#comment_nav,#green_channel,#lnkBlogLogo,#under_post_kb,#under_post_news,.blogStats,.c_ad_block,.dayTitle{display:none}.clear{clear:both}#home{width:100%;height:100%;margin:0 auto}#header{width:960px;position:relative;top:0;right:0;left:0;margin:0 auto;border-top:0;opacity:.95;border-bottom:1px solid var(--border-color);padding-bottom:0;display:block;height:60px;z-index:999}#blogTitle h1{font-size:25px;font-weight:600;font-family:Georgia;float:left;margin-top:15px}#blogTitle h2{display:none}#navigator{height:inherit;position:absolute;right:0;top:0}#navList{height:inherit;float:left}#navList>li{position:relative;float:left}#navList>li:hover i{width:100%;left:0}#navList>li>a:active,#navList>li>a:link,#navList>li>a:visited{float:left;font-size:17px;border-right:0;font-weight:300;text-align:center;width:auto;padding:19px 16px}#navList>li>i{width:0;height:4px;background-color:var(--theme-color);content:"";position:absolute;left:50%;bottom:0;transition:.7s}#navList .open{transform:rotate(180deg) scaleX(-1);transition:.3s}#navList .esa-sub-navs{position:absolute;width:130px;top:60px;left:calc(50% - 65px);display:none}#navList .esa-sub-navs .caret{border-top:0 solid transparent;border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:8px solid var(--contents-bg-color);width:0;position:relative;left:calc(50% - 8px)}#navList .esa-sub-navs ul{background-color:var(--contents-bg-color);border-radius:4px;box-shadow:0 1px 15px rgba(27,31,35,.15);padding:10px;text-align:center}#navList .esa-sub-navs ul li{float:none}#navList .esa-sub-navs ul li a{font-size:15px;border-right:0;color:var(--text-color);display:block;width:100%;padding:10px 0;height:inherit;border-bottom:1px solid transparent}#navList .esa-sub-navs ul li a:hover{color:var(--theme-color)}#main{width:960px;margin:0 auto;min-height:calc(100% - 75px);padding:15px 0;transition:all .3s ease}#mainContent{float:right;margin-left:-25em;width:100%}#mainContent .forFlow{margin:0 auto 0 0;max-width:960px}#sideBar{width:230px;border-right:1px solid var(--border-color);font-weight:300;display:none;min-height:750px;padding:0 15px 0 0}#sideBar #profile_block{margin:0;font-size:0;display:flex;flex-wrap:wrap;text-align:left;line-height:1.6}#sideBar #profile_block a{box-sizing:border-box}#sideBar #profile_block a:first-child{font-size:18px;font-weight:700;width:100%;display:block;text-align:center;margin-bottom:14px}#sideBar #profile_block a:nth-child(3):after{content:"\56ed\9f84"}#sideBar #profile_block a:nth-child(5):after{content:"\7c89\4e1d"}#sideBar #profile_block a:nth-child(7):after{content:"\5173\6ce8"}#sideBar #profile_block a:nth-child(3),#sideBar #profile_block a:nth-child(5),#sideBar #profile_block a:nth-child(7){font-size:14px;width:33.3333333%;display:block;padding:0 4px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:center}#sideBar #profile_block a:nth-child(3):after,#sideBar #profile_block a:nth-child(5):after,#sideBar #profile_block a:nth-child(7):after{color:#97979f;font-size:14px;display:block;text-overflow:ellipsis;overflow:hidden;width:100%;font-weight:400}#sideBar #profile_block #p_b_follow{margin:15px 0 10px;text-align:center}#sideBar #profile_block #p_b_follow a{border:1px solid var(--border-color);font-size:13px;padding:7px 0;border-radius:4px;width:230px;font-weight:300}#sideBar #profile_block #p_b_follow a:hover{border-color:var(--theme-color)}.newsItem{margin-bottom:10px}.newsItem .catListTitle{display:none}#blog-calendar{border:1px solid var(--border-color);border-radius:4px}#blog-calendar .CalDayHeader{font-weight:300}#blog-calendar .CalTodayDay{color:var(--theme-color);font-weight:600}#sideBarMain ul{line-height:1.6}.catListTitle{text-align:left;margin:20px 0;font-size:20px;font-weight:300;border-left:4px solid var(--theme-color);border-radius:4px;padding-left:7px}#sidebar_search #widget_my_zzk .input_my_zzk{color:#314659;border:1px solid var(--border-color);background-color:transparent;width:150px;height:32px;padding:0 7px;font-size:16px;border-radius:4px}#sidebar_search #widget_my_zzk .input_my_zzk:focus{outline:none}#sidebar_search #widget_my_zzk .btn_my_zzk{height:34px;font-size:14px;font-weight:300;background-color:transparent;color:var(--text-color);cursor:pointer;width:59px;outline:0;border:1px solid var(--border-color);border-radius:4px;transition:border .3s}#sidebar_search #widget_my_zzk .btn_my_zzk:hover{color:var(--theme-color);border:1px solid var(--theme-color)}#sidebar_search #widget_my_google{display:none}#sidebar_toptags li{font-size:14px;height:16px;line-height:16px;padding:5px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:210px;border:1px solid var(--border-color);margin:0 6px 6px 0;display:inline-grid;transition:all .3s ease;border-radius:4px}#sidebar_toptags li a{transition:inherit}#sidebar_toptags li a .tag-count{display:none}#sidebar_toptags li:active,#sidebar_toptags li:link,#sidebar_toptags li:visited{border-color:var(--border-color)}#sidebar_toptags li:hover{border-color:var(--theme-color)}#sidebar_categories li,#sidebar_scorerank li,#sidebar_shortcut li{font-size:15px;height:40px;padding-left:3px;line-height:30px;white-space:nowrap;overflow:hidden;transition:all .5s;text-overflow:ellipsis;list-style:inside}#sidebar_categories li:hover,#sidebar_scorerank li:hover,#sidebar_shortcut li:hover{margin-left:7px}#sidebar_recentposts li,#sidebar_topcommentedposts li,#sidebar_topdiggedposts li,#sidebar_topviewedposts li{font-size:15px;padding:10px 0;transition:all .3s;text-align:justify;border-bottom:1px solid var(--border-color)}#sidebar_recentposts li:first-child,#sidebar_topcommentedposts li:first-child,#sidebar_topdiggedposts li:first-child,#sidebar_topviewedposts li:first-child{border-top:1px solid var(--border-color)}#sidebar_recentcomments li{text-align:justify}#sidebar_recentcomments .recent_comment_title:nth-child(n+2){padding-top:10px}#sidebar_recentcomments .recent_comment_title:first-child{border-top:1px solid var(--border-color);padding-top:10px}#sidebar_recentcomments .recent_comment_body{border-radius:4px;padding:5px 10px;margin:5px 0;background-color:var(--panel-bg-color)}#sidebar_recentcomments .recent_comment_author{margin-right:0;text-align:right;padding-bottom:10px;border-bottom:1px solid var(--border-color)}#taglist_title,.entrylistTitle,.myposts_title,.PostListTitle,.thumbTitle{font-size:20px;font-weight:300;margin-bottom:10px;text-align:left}.entrylistDescription{margin:10px auto;border-left:4px solid var(--border-color);text-align:justify;padding-left:7px}#myposts{margin-left:0}#myposts .PostList{border-bottom:1px solid var(--border-color);padding:0;margin:0}#myposts .PostList:first-of-type{border-top:1px solid var(--border-color)}#myposts .postTitl2{font-size:17px;margin:10px 0;text-align:justify}#myposts .postDesc2{text-align:right;margin-bottom:10px;font-size:14px}#myposts .postDesc2>a{display:none}#myposts .postDesc2:before{font-family:FontAwesome;content:"\f017";opacity:.7}.post-view-count:before{content:"\f06e"}.post-comment-count:before,.post-view-count:before{font-family:FontAwesome;padding-left:10px;padding-right:5px;opacity:.7}.post-comment-count:before{content:"\f27b"}.post-digg-count:before{font-family:FontAwesome;content:"\f08a";padding-left:10px;padding-right:5px;opacity:.7}.day,.entrylistItem,.postSeparator{border-bottom:1px solid var(--border-color);text-align:justify;margin-bottom:10px;padding-bottom:10px}.day .postTitle,.entrylist .entrylistPosttitle{font-size:20px}.day .postCon,.entrylist .entrylistPostSummary{font-size:16px;padding:10px 0}.day .postCon img,.entrylist .entrylistPostSummary img{height:150px;width:150px;border-radius:4px;margin-left:10px}.day .postCon a,.entrylist .entrylistPostSummary a{border-bottom:1px solid var(--text-color);padding:2px 5px;font-size:14px;margin-top:10px;display:table}.day .postCon a:after,.entrylist .entrylistPostSummary a:after{content:" \00bb"}.day .postCon a:hover,.entrylist .entrylistPostSummary a:hover{border-bottom:1px solid var(--theme-color)}.day .postDesc,.entrylist .entrylistItemPostDesc{text-align:right}.day .postDesc>a,.entrylist .entrylistItemPostDesc>a{display:none}#topics .postTitle{font-size:21px;font-weight:300}#topics .postBody{font-size:16px;line-height:1.75;padding-bottom:5px;border-bottom:1px solid var(--border-color)}#topics .postBody a{transition:all .3s ease}#topics .postBody a:hover{text-decoration:underline}#topics .postBody a:active,#topics .postBody a:link,#topics .postBody a:visited{color:var(--theme-color);text-decoration:none}#topics .postBody h1{font-size:21px}#topics .postBody h2{font-size:20px}#topics .postBody h3{font-size:19px}#topics .postBody h4{font-size:18px}#topics .postBody h5{font-size:17px}#topics .postBody h6{font-size:16px}#topics .postBody p{margin:13px auto}#topics .postBody hr{border-top:none;border-bottom:1px solid var(--border-color)}#topics .postBody blockquote{border:none;margin:15px 0;border-radius:4px;padding:1px 10px;border-left:4px solid var(--theme-color);background-color:var(--panel-bg-color)}#topics .postBody em{padding-right:3px}#topics .postBody strong{margin:0 3px;font-weight:500}#topics .postBody img{display:block;margin:15px 0 30px;border-radius:3px;box-shadow:0 1px 15px rgba(27,31,35,.15),0 0 1px rgba(106,115,125,.35)}#topics .postBody .cnblogs-markdown pre{white-space:pre;position:relative}#topics .postBody ol li,#topics .postBody ul li{margin:3px 0}#topics .postBody table{font-size:14px;border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid var(--border-color);width:100%;margin:15px 0}#topics .postBody table th{background:var(--panel-bg-color);white-space:nowrap;font-weight:400}#topics .postBody table td,#topics .postBody table th{border:1px solid var(--border-color);padding:6px 15px}#topics .postBody h1 code,#topics .postBody h2 code,#topics .postBody h3 code,#topics .postBody h4 code,#topics .postBody h5 code,#topics .postBody h6 code,#topics .postBody li>code,#topics .postBody p>code,#topics .postBody table code{line-height:1.2;font-family:consolas!important;vertical-align:middle;margin:0 3px;background-color:var(--code-bg-color)!important;font-size:14px!important;padding:.2em .3em!important;border-radius:3px!important;border:none!important}#topics .postBody #BlogPostCategory{font-size:13px;margin-bottom:10px}#topics .postBody #BlogPostCategory a{border-radius:4px;padding:5px 10px;background-color:var(--panel-bg-color);margin-right:5px;transform:none}#topics .postBody #EntryTag{font-size:13px}#topics .postBody #EntryTag a{border-radius:4px;padding:5px 10px;background-color:var(--panel-bg-color);margin-right:5px}#topics .postBody #post_next_prev{font-size:14px}#topics .postDesc{padding-top:5px;text-align:right}.cnblogs_code{background-color:#333232;padding-left:1em;padding-right:1em;border:none;border-radius:3px;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace!important}.cnblogs_code div{background-color:transparent;color:#656c73}.cnblogs_code img{margin:0!important}.cnblogs_code pre{color:#abb2bf;font-family:inherit!important;font-size:15px!important}.cnblogs_code pre span{font-family:inherit!important;color:inherit!important}.cnblogs_code textarea{font-family:inherit!important;padding:5px;border:1px solid #3e4c42;color:#c5d4ef;background-color:#282c34}.cnblogs_code textarea:focus{outline:0}.cnblogs_code .code_img_closed,.cnblogs_code .code_img_opened{display:none!important}.cnblogs_code .cnblogs_code_toolbar{width:20px}.cnblogs_code .cnblogs_code_toolbar span{padding-right:0}.cnblogs_code .cnblogs_code_toolbar a:link img{background-color:transparent!important}.cnblogs_code .cnblogs_code_collapse{color:#656c73;border:1px solid #989fa6;border-radius:2px;background-color:transparent;display:inline-block;cursor:pointer;padding:5px 5px 2px}#footer{border-top:1px solid var(--border-color);font-size:13px;text-align:center;padding:15px 0}.louzhu{color:var(--theme-color);font-weight:500}.feedbackListSubtitle .sendMsg2This{background:transparent;padding-left:0;font-size:15px}.feedbackListSubtitle .sendMsg2This:before{content:"✉️"}.feedbackManage{float:right}.feedbackItem .feedbackCon{margin-bottom:10px;padding:10px 0;border-bottom:1px solid var(--border-color)}.feedbackItem .feedbackCon .comment_vote{margin-top:12px}.blog_comment_body{width:auto;border-radius:4px;padding:12px;margin-left:50px;background-color:var(--panel-bg-color);min-height:19px}.blog_comment_body img{border-radius:3px}#taglist_main{margin-top:0}#taglist_main table{width:100%}#taglist_main table tr td{padding:5px 20px 5px 0}#taglist_main table tr td:last-child{padding-right:0}#taglist_main table tr td .small{display:none}#taglist_main table tr td a{display:block;padding:5px;font-weight:300;height:19px;line-height:20px;text-align:center;border:1px solid var(--border-color);border-radius:4px;color:var(--text-color)}#taglist_main table tr td a:hover{border:1px solid var(--theme-color)}#div_digg{margin:0;width:auto}#div_digg .buryit,#div_digg .diggit{background:none;height:auto;width:auto;margin:0;font-size:17px;border-radius:4px;padding:3px 10px;background-color:var(--panel-bg-color);transition:all .3s}#div_digg .buryit span,#div_digg .diggit span{font-size:inherit;color:inherit}#div_digg .buryit:hover,#div_digg .diggit:hover{color:#fff;background-color:var(--theme-color)}#div_digg .diggit:before{content:"\63a8\8350"}#div_digg .buryit{margin-left:15px}#div_digg .buryit:before{content:"\53cd\5bf9"}.topicListFooter{text-align:right;margin-top:10px;margin-right:0}#nav_next_page,.pager{color:var(--text-color);text-align:right;margin-right:0!important}#nav_next_page a,.pager a{color:var(--text-color);padding:2px 8px;border:1px solid var(--border-color);border-radius:4px;margin:0 0 0 5px}#nav_next_page a:hover,.pager a:hover{color:var(--theme-color);border:1px solid var(--theme-color)}.pager span.current{padding:3px 7px;border:1px solid var(--theme-color);background-color:var(--theme-color);border-radius:4px;margin:0 0 0 5px}.feedback_area_title{font-size:20px;border-bottom:1px solid var(--border-color);margin-bottom:15px;padding-bottom:5px}.commentform #commentform_title{background-image:none;padding-left:0;font-size:20px}.commentform #tip_comment{color:var(--theme-color)!important;margin:15px 0;display:block}.commentform .comment_textarea{width:100%;border:1px solid var(--border-color);background-color:transparent;padding:0}.commentform .comment_textarea:focus{outline:0}.commentform .commentbox_title{border-bottom:1px solid var(--border-color)}.commentform .commentbox_title .commentbox_title_left .commentbox_tab{margin:0;padding:5px 15px;color:var(--text-color);border-bottom:none}.commentform .commentbox_title .commentbox_title_left .active{color:var(--theme-color)}.commentform .commentbox_title .commentbox_title_right{margin:0 10px 0 0}.commentform .commentbox_title .commentbox_title_right .comment_svg:hover,.commentform .commentbox_title .commentbox_title_right .comment_svg_stroke:hover{fill:var(--theme-color);stroke:var(--theme-color)}.commentform #tbCommentBody,.commentform #tbCommentBodyPreview{padding:10px 15px;background:transparent;color:var(--text-color);font-weight:300}.commentform #tbCommentBodyPreviewBody{margin-left:0;min-height:235px;background-color:transparent}.commentform #btn_comment_submit{width:auto;height:auto;border-width:0;cursor:pointer;color:#fff;background-color:var(--theme-color);border-color:var(--theme-color);font-weight:300;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:5px 17px;font-size:13px;border-radius:4px;outline:none;transition:all .3s}.commentform #btn_comment_submit:hover{opacity:.7}.commentform .comment_my_posted>img{display:none}.commentform .bq_post_comment{margin-top:5px;font-size:13px;display:block;color:var(--text-color);background-color:var(--border-color);border:none;border-radius:4px;padding:1px 15px}::-webkit-scrollbar{width:6px;height:8px}::-webkit-scrollbar-thumb{background-color:var(--text-color)}::-webkit-scrollbar-thumb:hover{background-color:var(--theme-color)}@-webkit-keyframes loading{0%{opacity:0}to{opacity:1}}@keyframes loading{0%{opacity:0}to{opacity:1}}.p-loading{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;justify-content:center;align-items:center;background:#222;z-index:19940121}.p-loading .loading h2{color:#ccc;margin:0;font:.8em verdana;text-transform:uppercase;letter-spacing:.1em;text-align:center}.p-loading .loading span{display:inline-block;vertical-align:middle;width:.6em;height:.6em;margin:.19em;background:#007db6;border-radius:.6em;-webkit-animation:loading 1s infinite alternate;animation:loading 1s infinite alternate}.p-loading .loading span:nth-of-type(2){background:#008fb2;-webkit-animation-delay:.2s;animation-delay:.2s}.p-loading .loading span:nth-of-type(3){background:#009b9e;-webkit-animation-delay:.4s;animation-delay:.4s}.p-loading .loading span:nth-of-type(4){background:#00a77d;-webkit-animation-delay:.6s;animation-delay:.6s}.p-loading .loading span:nth-of-type(5){background:#00b247;-webkit-animation-delay:.8s;animation-delay:.8s}.p-loading .loading span:nth-of-type(6){background:#5ab027;-webkit-animation-delay:1s;animation-delay:1s}.p-loading .loading span:nth-of-type(7){background:#a0b61e;-webkit-animation-delay:1.2s;animation-delay:1.2s}.github-corner:hover .octo-arm{-webkit-animation:octocat-wave .56s ease-in-out;animation:octocat-wave .56s ease-in-out}.github-corner svg{fill:var(--theme-color);z-index:999;cursor:pointer;position:fixed;top:0;border:0;left:0;transform:scaleX(-1)}@-webkit-keyframes octocat-wave{0%,to{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@keyframes octocat-wave{0%,to{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}.esa-mobile-menu{display:none;position:fixed;top:17px;right:20px;height:25px;width:25px;text-align:center;line-height:25px;z-index:941113;font-size:1.5em;cursor:pointer;color:var(--text-color);border-radius:4px}.esa-profile-avatar{border-radius:4px;width:100%}.esa-contents{box-shadow:-2px 0 3px rgba(0,0,0,.1);position:fixed;top:0;right:0;bottom:0;background-color:var(--contents-bg-color);overflow-y:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:1rem 0;width:252px;transform:translate3d(252px,0,0);z-index:1000}.esa-contents ul{padding:0 15px;overflow-y:auto}.esa-contents ul li{padding:5px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;color:var(--text-color)}.esa-contents ul li .level1{margin-left:0}.esa-contents ul li .level2{margin-left:10px}.esa-contents ul li .level3{margin-left:26px}.esa-anchor{opacity:0;transition:opacity .3s ease;margin-left:8px}.active{transform:translateZ(0)}.active,.noactive{transition-duration:378ms}.noactive{transform:translate3d(252px,0,0)}.cnblogs-markdown .hljs{display:block;overflow-x:auto;padding:.5em 1em .5em 3em!important;background:#2b2b2b!important;border:1px solid #2c2a2a!important;color:#bababa;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace!important;font-size:15px!important}.hljs-comment,.hljs-quote{color:#5c6370;font-style:italic}.hljs-doctag,.hljs-formula,.hljs-keyword{color:#c678dd}.hljs-deletion,.hljs-name,.hljs-section,.hljs-selector-tag,.hljs-subst{color:#e06c75}.hljs-literal{color:#56b6c2}.hljs-addition,.hljs-attribute,.hljs-meta-string,.hljs-regexp,.hljs-string{color:#98c379}.hljs-built_in,.hljs-class .hljs-title{color:#e6c07b}.hljs-attr,.hljs-number,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-pseudo,.hljs-template-variable,.hljs-type,.hljs-variable{color:#d19a66}.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-symbol,.hljs-title{color:#61aeee}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}.hljsln{display:block;margin-left:2.4em;padding-left:.7em!important}.hljsln::-webkit-scrollbar{height:8px}.hljsln::-webkit-scrollbar-thumb{background:#314659}.hljsln::-webkit-scrollbar-thumb:hover{background:var(--theme-color)}.hljsln .ln-bg{z-index:1;top:0;height:100%;background:#333;border-radius:4px}.hljsln .ln-bg,.hljsln .ln-num{position:absolute;left:0;width:2.4em}.hljsln .ln-num{z-index:2;text-align:center;display:inline-block;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.hljsln .ln-num:before{color:#777;font-style:normal;font-weight:400;text-align:center;content:attr(data-num)}.esa-post-signature{padding:12px 24px 12px 20px;margin-top:15px;margin-left:5px;font-size:15px;line-height:2;background-color:var(--panel-bg-color);position:relative;border-radius:4px;border-left:4px solid var(--theme-color)}.esa-post-signature p{margin:0!important}.esa-post-signature a{color:var(--text-color)!important}.esa-sponsor{position:relative;width:100%;height:85px;margin:60px 0 100px}.esa-sponsor .title{text-align:center;margin-bottom:15px;font-size:17px;font-weight:400;opacity:.8}.esa-sponsor .box{position:absolute;left:calc(50% - 110px);border:1px solid var(--border-color);border-radius:4px}.esa-sponsor .box li{width:66px;float:left;margin:0!important;text-align:center;border-left:1px solid var(--border-color);background:transparent;transition:background .3s ease;cursor:pointer;line-height:0;opacity:1;list-style:none;margin:0;padding:6px 3px}.esa-sponsor .box li svg{opacity:.5}.esa-sponsor .box li:hover{background:var(--panel-bg-color)}.esa-sponsor .box li:first-child{border-width:0}.esa-sponsor .qrshow{position:absolute;width:200px;height:200px;background:var(--bg-color);cursor:pointer;margin:0!important;left:calc(50% - 100px);top:-180px;z-index:999;display:none}.esa-sponsor .qrshow img{height:100%;width:100%}.esa-layer{position:fixed;top:10px;text-align:center;line-height:25px;font-size:15px;width:100%;display:none;z-index:9999999}.esa-layer .content{position:relative;background:var(--theme-color,#3b4f61);max-width:250px;padding:5px 10px;font-size:14px;font-weight:400;border-radius:4px;color:#fff;display:inline-block}.esa-comment-avatar{float:left}.esa-comment-avatar img{height:43px;width:43px;border-radius:4px;transition:all .5s ease-out;-webkit-transition:all .6s ease-out}.esa-comment-avatar img:hover{border-radius:50%}.esa-toolbar{position:fixed;bottom:30px;right:30px;width:45px;height:45px;z-index:1001}.esa-toolbar .bars{position:relative;width:inherit;height:inherit;cursor:pointer;border-radius:50%;background:var(--theme-color);z-index:1;text-align:center;font-size:24px;line-height:46px;color:#fff;transition:all .3s ease;box-shadow:0 2px 4px 1px rgba(0,0,0,.2)}.esa-toolbar .contents,.esa-toolbar .mode,.esa-toolbar .skin,.esa-toolbar .up{position:absolute;cursor:pointer;bottom:0;right:0;height:35px;width:35px;text-align:center;line-height:35px;z-index:0;opacity:0;border-radius:4px;box-shadow:0 2px 4px 1px rgba(0,0,0,.2);background-color:var(--panel-bg-color);transition:all .3s ease}.esa-toolbar .contents:hover,.esa-toolbar .mode:hover,.esa-toolbar .skin:hover,.esa-toolbar .up:hover{color:#fff;background-color:var(--theme-color)}.esa-toolbar .bars-show{transform:rotate(270deg)}.esa-toolbar .up-show{transform:translate3d(0,-200%,0);opacity:1}.esa-toolbar .mode-show{transform:translate3d(-140%,-140%,0);opacity:1}.esa-toolbar .skin-show{transform:translate3d(-200%,0,0);opacity:1}.esa-toolbar .contents-show{transform:translate3d(-350%,0,0);opacity:1}.esa-toolbar .skin-popup{display:none;position:fixed;left:calc(50% - 100px);bottom:0;padding:25px;opacity:1;width:150px;height:auto;border-radius:15px 15px 0 0;background-clip:border-box;box-shadow:0 2px 4px 1px rgba(0,0,0,.2);background-color:var(--panel-bg-color)}.esa-toolbar .skin-popup .item{text-align:center}.esa-toolbar .skin-popup .title{font-size:17px;margin-bottom:.5em}.esa-toolbar .skin-popup .themes button{font-size:1em;position:relative;width:calc(1.75em - 5px);height:calc(1.75em - 5px);border-radius:.15em;cursor:pointer;margin:2.5px;flex-shrink:0;justify-self:center;transition:all .15s;overflow:hidden;background:transparent;z-index:1;box-sizing:border-box;outline:none;border:none}.esa-loader{width:100%;height:100%;top:0;position:fixed;z-index:99999;background:#fff}.esa-loader .box{overflow:visible;padding-top:2em;height:0;width:2em}.esa-loader .box,.esa-loader .figure{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.esa-loader .figure{height:0;width:0;box-sizing:border-box;border:0 solid #1976d2;border-radius:50%;-webkit-animation:loader-figure 1.15s cubic-bezier(.215,.61,.355,1) infinite;animation:loader-figure 1.15s cubic-bezier(.215,.61,.355,1) infinite}.esa-loader .label{float:left;transform:translateX(-50%);margin:.5em 0 0 50%;font-size:.875em;letter-spacing:.1em;line-height:1.5em;color:#1976d2;white-space:nowrap;-webkit-animation:loader-label 1.15s cubic-bezier(.215,.61,.355,1) infinite;animation:loader-label 1.15s cubic-bezier(.215,.61,.355,1) infinite}@-webkit-keyframes loader-figure{0%{height:0;width:0;background-color:#1976d2}29%{background-color:#1976d2}30%{height:2em;width:2em;background-color:transparent;border-width:1em;opacity:1}to{height:2em;width:2em;border-width:0;opacity:0;background-color:transparent}}@keyframes loader-figure{0%{height:0;width:0;background-color:#1976d2}29%{background-color:#1976d2}30%{height:2em;width:2em;background-color:transparent;border-width:1em;opacity:1}to{height:2em;width:2em;border-width:0;opacity:0;background-color:transparent}}@-webkit-keyframes loader-label{0%{opacity:.25}30%{opacity:1}to{opacity:.25}}@keyframes loader-label{0%{opacity:.25}30%{opacity:1}to{opacity:.25}} \ No newline at end of file diff --git a/docs/.nojekyll b/docs/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..0dd8189 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,6 @@ +# Cnblogs Theme - Silence + +> 一款专注于阅读的博客园主题 + +文档完善中... + diff --git a/docs/_coverpage.md b/docs/_coverpage.md new file mode 100644 index 0000000..cad28d6 --- /dev/null +++ b/docs/_coverpage.md @@ -0,0 +1,8 @@ +![logo](_media/icon.svg) + +# Silence + +> 专 注 于 阅 读 的 博 客 园 主 题 + +[GitHub](https://github.com/esofar/cnblogs-theme-silence/) +[Get Started](#cnblogs-theme-silence) \ No newline at end of file diff --git a/docs/_media/icon.svg b/docs/_media/icon.svg new file mode 100644 index 0000000..2274c81 --- /dev/null +++ b/docs/_media/icon.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/_navbar.md.md b/docs/_navbar.md.md new file mode 100644 index 0000000..0e73556 --- /dev/null +++ b/docs/_navbar.md.md @@ -0,0 +1,5 @@ +* [配置项](/configuration.md) +* [主题](/themes.md) +* [使用插件](/plugins.md) +* [Markdown 配置](/markdown.md) +* [代码高亮](/language-highlight.md) \ No newline at end of file diff --git a/docs/_sidebar.md b/docs/_sidebar.md new file mode 100644 index 0000000..e8b436a --- /dev/null +++ b/docs/_sidebar.md @@ -0,0 +1,2 @@ +* [部署指南](/guide) +* [配置选项](/options) \ No newline at end of file diff --git a/docs/guide.md b/docs/guide.md new file mode 100644 index 0000000..6eefd43 --- /dev/null +++ b/docs/guide.md @@ -0,0 +1,3 @@ +## 获取 + +## 配置 \ No newline at end of file diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..88348a7 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,36 @@ + + + + + + + + + + + +
+ + + + diff --git a/docs/options.md b/docs/options.md new file mode 100644 index 0000000..c08b97f --- /dev/null +++ b/docs/options.md @@ -0,0 +1,324 @@ +# Silence + +您可以配置在`window.$silence`里。 + +```html + +``` + +## avatar + +- 类型:`String` +- 默认值:`null` + +该配置项用来设置左侧栏中博主头像图片,未配置则不会渲染。 + +注意图片需自行上传至支持外链的存储空间,建议使用图片像素大小为`230px*230px`,图片过大可能会影响页面加载速度。 + +```js +window.$silence = { + avatar: 'https://images.cnblogs.com/cnblogs_com/esofar/972540/o_avatar.jpg' +}; +``` + +## favicon + +- 类型:`String` +- 默认值:`null` + +该配置项用来设置网页标题前面的小图标,未设置则继续使用博客园官方默认的图标。 + +注意图标类型是`ico`格式,其他类型可以通过 [Aconvert](https://www.aconvert.com/image/) 在线转换后上传和使用。 + +```js +window.$silence = { + favicon: 'https://blog-static.cnblogs.com/files/esofar/favicon.ico' +}; +``` + +## github + +- 类型:`String` +- 默认值:`null` + +该配置项用来设置个人 Github 主页地址,会在页面左上角渲染一个 [GitHub Corner](https://github.com/tholman/github-corners) 挂件,未设置则不会渲染。 + +```js +window.$silence = { + github: 'https://github.com/esofar' +}; +``` + +## defaultMode + +- 类型:`String` +- 默认值:`'auto'` + +该配置项用来设置默认加载的主题模式。可选值如下: + +- `'light'`:日间模式 +- `'dark'`:夜间模式 +- `'auto'`:自动模式 + +自动模式会根据当前时间自行选择日间或夜间模式:早上 6 点至晚上 6 点前加载日间模式,晚上 6 点至次日早上 6 点前加载夜间模式。 + +```js +window.$silence = { + defaultMode: 'auto' +}; +``` + +## defaultTheme + +- 类型:`String` +- 默认值:`'a'` + +该配置项用来设置默认加载的主题色彩。可选值与色彩对照表如下: + + + + + + + + + + + + + + + + + + + + + + + + + + +
'a'
'b'
'c'
'd'
'e'
'f'
'g'
'h'
'i'
'j'
+ +```js +window.$silence = { + defaultTheme: 'a' +}; +``` + +## navbars + +- 类型:`Arrary` +- 默认值:`[]` + +该配置项用来在导航栏中追加自定义菜单项。 + +注意目前仅支持到二级菜单,一级菜单项通过`chilren`属性配置纵向悬浮二级菜单。若希望链接页面总是在一个新打开的窗口中载入,则需要在菜单项中多配置一个值为`'_blank'`的`target`属性。 + +```js +window.$silence = { + navbars: [{ + title: '标签', + url: 'https://www.cnblogs.com/esofar/tag/' + }, { + title: '朋友', + chilren: [{ + title: '百度', + target: '_blank', + url: 'https://www.baidu.com', + }, { + title: '谷歌', + target: '_blank', + url: 'https://www.google.com', + }] + }] +}; +``` + +## showNavAdmin + +- 类型:`Boolean` +- 默认值:`true` + +该配置项用来控制是否显示导航栏中的「管理」菜单项。 + +博客园官方的原生导航栏菜单项中除「管理」以外,其余均可在后台控制显示或者隐藏。对于希望完全自主设置导航栏菜单项的园友来说,可能会有隐藏「管理」菜单项的需求。 + +```js +window.$silence = { + showNavAdmin: false +}; +``` + +## catalog + +- 类型:`Object` +- 默认值:`{}` + +该配置项用来生成在右侧悬浮的博文标题目录。 + +标题目录悬浮可有效帮助读者实时分析文体结构、加深阅读印象,对一些长文来讲,效果尤佳。另外,该模块不会破坏 markdown 格式博文中使用`[TOC]`标记生成的目录标题锚点,两类标题目录可同时使用。 + +``` js +window.$silence = { + catalog: { + enable: true, + index: true, + active: false, + levels: ['h2', 'h3', 'h4'] + }, +}; +``` + +其属性详细介绍参考如下: + +### enable + +- 类型:`Boolean` +- 默认值:`false` + +是否启用目录生成功能。 + +若在博文中未使用标题`h1~h6`,即使启用也不会生成悬浮目录。 + +### index + +- 类型:`Boolean` +- 默认值:`true` + +是否在生成的标题链接前面添加索引。 + +部分园友习惯在写文时直接在标题前面加上索引,这种情况可能需要将该属性值设为`false`,不然生成的标题链接会出现索引重复的情况。 + +### active + +- 类型:`Boolean` +- 默认值:`false` + +页面加载时是否直接显示目录。 + +不直接显示情况下会在页面右下角的工具栏中生成一个按钮用来控制悬浮目录的显示和隐藏。 + +### levels + +- 类型:`Arrary` +- 默认值:`['h2', 'h3', 'h4']` + +设置需要生成目录的标题等级。 + +请根据自己平时的标题等级使用规则自行修改默认值,注意仅支持采集三级博文标题。 + + +## signature + +- 类型:`Object` +- 默认值:`{}` + +该配置项用来在每篇博文结尾处生成版权签名。 + +``` js +window.$silence = { + signature: { + enable: true, + author: null, + license: ['署名-非商业性使用-相同方式共享 4.0 国际', 'https://creativecommons.org/licenses/by-nc-sa/4.0/'], + remark: '你可以在这里自定义其他内容', + } +}; +``` + +其属性详细介绍参考如下: + +### enable + +- 类型:`Boolean` +- 默认值:`false` + +是否启用签名生成功能。 + +### author + +- 类型:`String` +- 默认值:`null` + +自定义作者名称,未设置则默认使用博客园显示名称。 + + +### license + +- 类型:`Arrary` +- 默认值:`['署名-非商业性使用-相同方式共享 4.0 国际', 'https://creativecommons.org/licenses/by-nc-sa/4.0/']` + +设置您分享的作品需要采用的 [知识共享许可协议](https://creativecommons.org/licenses/)。 + + +### remark + +- 类型:`String` +- 默认值:`null` + +设置其他备注,未设置则不会渲染,支持 HTML 内容。 + + +## sponsor + +- 类型:`Object` +- 默认值:`{}` + +该配置项用来在每篇博文结尾处生成赞赏按钮。 + +``` js +window.$silence = { + sponsor: { + enable: true, + text: '', + paypal: 'https://images.cnblogs.com/cnblogs_com/esofar/972540/o_wechat.png', + wechat: 'https://images.cnblogs.com/cnblogs_com/esofar/972540/o_wechat.png', + alipay: 'https://images.cnblogs.com/cnblogs_com/esofar/972540/o_alipay.png' + } +}; +``` + +其属性详细介绍参考如下: + +### enable + +- 类型:`Boolean` +- 默认值:`false` + +是否启用赞赏按钮生成功能。 + + +### text + +- 类型:`String` +- 默认值:`'Buy me a cup of coffee ☕.'` + +设置赞赏友好提示。 + +### paypal + +- 类型:`String` +- 默认值:`null` + +设置 PayPal 收款二维码。 + +### wechat + +- 类型:`String` +- 默认值:`null` + +设置微信收款二维码。 + +### alipay + +- 类型:`String` +- 默认值:`null` + +设置支付宝收款二维码。 diff --git a/index.html b/index.html index c94f8ef..3c82302 100644 --- a/index.html +++ b/index.html @@ -5,9 +5,8 @@ - 博客首页 - 博文内容页 - 我的标签页 + 博客首页 + 博文内容页 \ No newline at end of file diff --git a/src/components/bloggerProfile/index.js b/src/components/bloggerProfile/index.js deleted file mode 100644 index 7456f36..0000000 --- a/src/components/bloggerProfile/index.js +++ /dev/null @@ -1,15 +0,0 @@ -import "./index.less"; -import options from '@/consts/options'; - -function buildBloggerProfile() { - const avatar = options.avatar; - const favicon = options.favicon; - if (avatar) { - $('#sideBarMain').prepend(``); - }; - if (favicon) { - $('#favicon').attr('href', favicon); - } -} - -export default buildBloggerProfile; \ No newline at end of file diff --git a/src/components/bloggerProfile/index.less b/src/components/bloggerProfile/index.less deleted file mode 100644 index 6ae19df..0000000 --- a/src/components/bloggerProfile/index.less +++ /dev/null @@ -1,4 +0,0 @@ -.esa-profile-avatar { - border-radius: 4px; - width: 100%; -} diff --git a/src/components/customNavList/index.js b/src/components/customNavList/index.js deleted file mode 100644 index 8eddee6..0000000 --- a/src/components/customNavList/index.js +++ /dev/null @@ -1,65 +0,0 @@ -import "./index.less"; -import options from '@/consts/options'; - -function buildCustomNavList() { - const navs = options.customNavs; - const $navList = $('#navList'); - - if (navs && navs.length) { - navs.forEach((nav) => { - if (nav.chilren && nav.chilren.length) { - var subnavs = nav.chilren.map(function (subnav) { - return `
  • ${subnav.title}
  • `; - }); - $navList.find('li').eq(1).after(` -
  • - ${nav.title} - - -
      ${subnavs.join('')}
    -
  • `); - - } else { - $navList.find('li').eq(1).after(`
  • ${nav.title}
  • `); - } - }); - - $('li.esa-has-subnavs').hover(function () { - $(this).find('svg').addClass('open'); - $(this).find('.esa-sub-navs').fadeIn('fast'); - }, function () { - $(this).find('svg').removeClass('open'); - $(this).find('.esa-sub-navs').hide(); - }); - } - - $.each($navList.children('li'), (index, nav) => { - if($(nav).children('a').length){ - $(nav).append(''); - }else{ - $(nav).remove(); - } - }); - - // var startheight = $(document).scrollTop(); - // var headerHeight = $('#header').outerHeight(); - // $(window).scroll(function () { - // var endHeight = $(document).scrollTop(); - // if (endHeight > headerHeight) { - // $('#header').hide(); - // } else { - // $('#header').show(); - // } - // if (endHeight < startheight) { - // $('#header').show(); - // } - // startheight = $(document).scrollTop(); - // }); - - $('#header').prepend(`
    `); - $('.esa-mobile-menu').on('click', () => { - $('#navigator').fadeToggle(); - }); -} - -export default buildCustomNavList; \ No newline at end of file diff --git a/src/components/customNavList/index.less b/src/components/customNavList/index.less deleted file mode 100644 index f29a8fa..0000000 --- a/src/components/customNavList/index.less +++ /dev/null @@ -1,15 +0,0 @@ -.esa-mobile-menu { - display: none; - position: fixed; - top: 17px; - right: 20px; - height: 25px; - width: 25px; - text-align: center; - line-height: 25px; - z-index: 941113; - font-size: 1.5em; - cursor: pointer; - color: var(--text-color); - border-radius: 4px; - } \ No newline at end of file diff --git a/src/components/githubCorner/index.js b/src/components/githubCorner/index.js index 5bf439e..fed7d79 100644 --- a/src/components/githubCorner/index.js +++ b/src/components/githubCorner/index.js @@ -3,11 +3,10 @@ import options from '@/consts/options'; function buildGithubCorner() { var config = options.github; - if (config.enable) { - let fillStyle = config.fill ? `fill:${config.fill};` : ''; + if (config) { $('body').append( - ` -
    `); + $('body').append(`
    `); let h1c = 0; let h2c = 0; @@ -18,7 +21,7 @@ function buildPostContents() { let catalogContents = '