diff --git a/README.md b/README.md index d589dae..91c498f 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,11 @@ [![](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) -❤️ 一款专注阅读的博客园主题,其追求大道至简的终极真理,界面追求简洁、运行追求高效、部署追求简单。 +一款专注于阅读的博客园主题,其追求大道至简的终极真理,界面追求简洁、运行追求高效、部署追求简单。 -## 快速安装 +## 部署指南 -📖 [https://github.com/esofar/cnblogs-theme-silence](https://github.com/esofar/cnblogs-theme-silence) +[https://github.com/esofar/cnblogs-theme-silence](https://github.com/esofar/cnblogs-theme-silence) ## 贡献代码 diff --git a/dist/silence.min.css b/dist/silence.min.css index 20e71ea..470e202 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}.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 +@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=a]{--theme-color:#2d8cf0}:root[theme=b]{--theme-color:#fa7298}:root[theme=c]{--theme-color:#42b983}:root[theme=d]{--theme-color:#607d8b}:root[theme=e]{--theme-color:#5e72e4}:root[theme=f]{--theme-color:#ff9700}:root[theme=g]{--theme-color:#ff5722}:root[theme=h]{--theme-color:#009688}:root[theme=i]{--theme-color:#673bb7}:root[theme=j]{--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}.toc-container-header{font-size:20px;font-weight:700}#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}.hljs-built_in,.hljs-keyword,.hljs-name,.hljs-selector-tag,.hljs-tag{color:#7171bf}.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/dist/silence.min.js b/dist/silence.min.js index 2399d86..fdff204 100644 --- a/dist/silence.min.js +++ b/dist/silence.min.js @@ -1 +1 @@ -!function(e){var t={};function a(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,a),s.l=!0,s.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)a.d(n,s,function(t){return e[t]}.bind(null,s));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=14)}([function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){},function(e,t,a){"use strict";a.r(t);a(0);var n={version:"3.0.0",avatar:null,favicon:null,customNavs:[],catalog:{enable:!1,move:!0,index:!0,level1:"h2",level2:"h3",level3:"h4"},signature:{enable:!0,author:null,license:"署名-非商业性使用-相同方式共享 4.0 国际",link:"https://creativecommons.org/licenses/by-nc-sa/4.0/",remark:null},sponsor:{enable:!0,text:"Buy me a cup of coffee ☕.",paypal:null,wechat:null,alipay:null},github:{enable:!1,color:"#fff",target:"_blank",fill:null,link:null}};function s(){return $("#topics").length>0}a(1);var l=function(){var e=n.github;if(e.enable){let t=e.fill?`fill:${e.fill};`:"";$("body").append(`\n \n `)}};a(2);var i=function(){const e=n.customNavs,t=$("#navList");e&&e.length&&(e.forEach(e=>{if(e.chilren&&e.chilren.length){var a=e.chilren.map((function(e){return`
  • ${e.title}
  • `}));t.find("li").eq(1).after(`\n
  • \n ${e.title}\n \n \n
    \n
  • `)}else t.find("li").eq(1).after(`
  • ${e.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(t.children("li"),(e,t)=>{$(t).children("a").length?$(t).append(""):$(t).remove()}),$("#header").prepend('
    '),$(".esa-mobile-menu").on("click",()=>{$("#navigator").fadeToggle()})};a(3);var o=function(){$("#footer").append(`& Theme Silence v${n.version}`)};a(4);var c=function(){const e=n.avatar,t=n.favicon;e&&$("#sideBarMain").prepend(``),t&&$("#favicon").attr("href",t)};a(5);var r=function(){const e=n.catalog;if(e.enable){let t=[e.level1,e.level2,e.level3],a=$("#cnblogs_post_body").find(t.join(","));if(!a.length)return!1;$("body").append('
    ');let n=0,s=0,l=0,i="",$(".esa-contents").append(i)}};a(6);const d="https://unpkg.com/lightbox2@2.11.1/dist/css/lightbox.min.css",p="https://unpkg.com/lightbox2@2.11.1/dist/js/lightbox.min.js";var h=function(){$("head").append(``),$.getScript(p,()=>{$("#cnblogs_post_body").find("img").wrap((function(){return``})),$(".code_img_closed, .code_img_opened, .cnblogs_code_copy img").unwrap()})};a(7);var u=function(){let e=$(".postBody .cnblogs-markdown").find("pre code");if(!e.length)return!1;$.each(e,(e,t)=>{if(!$(t).hasClass("hljsln")){var a=$(t).html();a=function(e){var t=e.replace(/]*>|<\/span>/g,"");/\r|\n$/.test(t)&&(e+='');var a=1;return e=''+(e=''+(e=e.replace(/\r\n|\r|\n/g,(function(e){return e+''}))))}(a),$(t).html(a).addClass("hljsln");var n=$("span[data-num]:last");n.html()||n.remove()}})};a(8);var f=function(){const e=n.signature;if(e.enable){const t=$("#cb_post_title_url").attr("href"),a=`
    \n

    作者:${e.author||$("#profile_block a").eq(0).html()}

    \n

    出处:${t}

    \n

    版权:本文采用「${e.license}」知识共享许可协议进行许可。

    \n

    ${e.remark||""}

    \n
    `;$("#MySignature").html(a).show()}};a(9),a(10);function v(e){$("body").prepend(`
    ${e}
    `);let t=$(".esa-layer");t.slideDown(200),setTimeout(()=>{t.remove()},2e3)}var m=function(){const e=n.sponsor;$("#blog_post_info").prepend(`\n
    \n
    ${e.text}
    \n \n
    \n \n
    \n
    `);var t=$(".esa-sponsor");t.find(".box li").hover((function(){const a=$(this).attr("class");if("paypal"==a&&!e.paypal)return v("没有设置 PayPal 收款二维码😅");if("alipay"==a&&!e.alipay)return v("没有设置支付宝收款二维码😅");if("wechat"==a&&!e.wechat)return v("没有设置微信收款二维码😅");var n=null;switch(a){case"paypal":n=e.paypal;break;case"alipay":n=e.alipay;break;case"wechat":n=e.wechat}t.find(".qrshow").html(``).show()}),(function(){t.find(".qrshow").hide()}))};a(11);var g=function(){const e=".feedbackItem > .feedbackCon > .blog_comment_body",t=()=>{$(e).before("
    ");let t=$(".feedbackItem > .feedbackCon");$.each(t,(function(e,t){let a=null,n=$(t).find('span[id$="avatar"]');n.length&&(a=$.trim($(n).text())),$(t).find(".esa-comment-avatar img").attr("src",a||"https://pic.cnblogs.com/face/sample_face.gif");const s=$(t).parent().find(".comment_date").next().attr("href");$(t).find(".esa-comment-avatar a").attr("href",$.trim(s))}))};if($(e).length)t();else{let a=1,n=setInterval(()=>{$(e).length&&(clearInterval(n),t()),10==a&&clearInterval(n),a++},500)}};a(12);var b=function(){$("body").append('
    \n
    \n \n \n \n
    \n
    \n
    主题色彩
    \n
    \n \n \n \n \n \n \n \n \n \n \n
    \n
    \n
    \n
    \n ');const e=s()&&n.catalog.enable;e&&$(".esa-toolbar").append('');const t="silence-mode-"+currentBlogApp,a="silence-theme-"+currentBlogApp,l=sessionStorage.getItem(t)||"light",i=sessionStorage.getItem(a)||"a1";$("html").attr("mode",l),$("html").attr("theme",i);const o=$(".esa-toolbar"),c=$(".skin-popup");let r=!1;o.find(".bars").click((function(){r?(o.find(".bars").removeClass("bars-show"),o.find(".up").removeClass("up-show"),o.find(".mode").removeClass("mode-show"),o.find(".skin").removeClass("skin-show"),e&&o.find(".contents").removeClass("contents-show")):(o.find(".bars").addClass("bars-show"),o.find(".up").addClass("up-show"),o.find(".mode").addClass("mode-show"),o.find(".skin").addClass("skin-show"),e&&o.find(".contents").addClass("contents-show")),r=!r})),o.find(".up").click(()=>{$("html, body").animate({scrollTop:0},450)}),o.find(".mode").click(()=>{const e="light"==$("html").attr("mode")?"dark":"light";sessionStorage.setItem(t,e),$("html").attr("mode",e)}),o.find(".skin").click(()=>{c.slideToggle()}),c.find(".themes button").click((function(){const e=$(this).data("theme");sessionStorage.setItem(a,e),$("html").attr("theme",e)})),o.find(".contents").click(()=>{$(".esa-contents").toggleClass((function(){return $(this).hasClass("active")?($(this).removeClass("active"),"noactive"):($(this).removeClass("noactive"),"active")}))})};a(13);const w={show:()=>{$(".esa-loader").show()},hide:()=>{$(".esa-loader").fadeOut()}};var y=w;new class{constructor(){this.init()}init(){$.extend({silence:e=>{e&&$.extend(!0,n,e),this.building()}})}building(){c(),l(),o(),i(),b(),s()?(r(),h(),u(),f(),m(),g()):($(".forFlow").css({marginLeft:"260px"}),$("#sideBar").show()),y.hide()}}}]); \ No newline at end of file +!function(t){var e={};function a(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,a),s.l=!0,s.exports}a.m=t,a.c=e,a.d=function(t,e,n){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)a.d(n,s,function(e){return t[e]}.bind(null,s));return n},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s=14)}([function(t,e,a){},function(t,e,a){},function(t,e,a){},function(t,e,a){},function(t,e,a){},function(t,e,a){},function(t,e,a){},function(t,e,a){},function(t,e,a){},function(t,e,a){},function(t,e,a){},function(t,e,a){},function(t,e,a){},function(t,e,a){},function(t,e,a){"use strict";a.r(e);a(0);var n={version:"3.0.0",avatar:null,favicon:null,github:null,defaultMode:"auto",defaultTheme:"a",navbars:[],showNavAdmin:!0,catalog:{enable:!1,index:!0,active:!1,levels:["h2","h3","h4"]},signature:{enable:!0,author:null,license:["署名-非商业性使用-相同方式共享 4.0 国际","https://creativecommons.org/licenses/by-nc-sa/4.0/"],remark:null},sponsor:{enable:!1,text:"Buy me a cup of coffee ☕.",paypal:null,wechat:null,alipay:null}};function s(){return $("#topics").length>0}a(1);var i=function(){var t=n.github;t&&$("body").append(`\n \n `)};a(2);var l=function(){const t=n.navbars,e=$("#navList");t&&t.length&&(t.reverse().forEach(t=>{if(t.target=t.target||"_self",t.chilren&&t.chilren.length){var a=t.chilren.map((function(t){return t.target=t.target||"_self",`
  • ${t.title}
  • `}));e.find("li").eq(1).after(`\n
  • \n ${t.title}\n \n \n
      ${a.join("")}
    \n
  • `)}else e.find("li").eq(1).after(`
  • ${t.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(e.children("li"),(t,e)=>{$(e).children("a").length?$(e).append(""):$(e).remove()}),$("#header").prepend('
    '),$(".esa-mobile-menu").on("click",()=>{$("#navigator").fadeToggle()}),n.showNavAdmin||$("#blog_nav_admin").parent().remove()};a(3);var o=function(){$("#footer").append(`& Theme Silence v${n.version}`)};a(4);var c=function(){const t=n.avatar,e=n.favicon;t&&$("#sideBarMain").prepend(``),e&&$("#favicon").attr("href",e)};a(5);var r=function(){const t=n.catalog;if(t.enable){const e=t.levels,a=e[0],n=e[1],s=e[2];let i=$("#cnblogs_post_body").find(e.join(","));if(!i.length)return!1;$("body").append(`
    `);let l=0,o=0,c=0,r="",$(".esa-contents").append(r)}};a(6);const d="https://unpkg.com/lightbox2@2.11.1/dist/css/lightbox.min.css",h="https://unpkg.com/lightbox2@2.11.1/dist/js/lightbox.min.js";var u=function(){$("head").append(``),$.getScript(h,()=>{$("#cnblogs_post_body").find("img").wrap((function(){return``})),$(".code_img_closed, .code_img_opened, .cnblogs_code_copy img").unwrap()})};a(7);var p=function(){let t=$(".postBody .cnblogs-markdown").find("pre code");if(!t.length)return!1;$.each(t,(t,e)=>{if(!$(e).hasClass("hljsln")){var a=$(e).html();a=function(t){var e=t.replace(/]*>|<\/span>/g,"");/\r|\n$/.test(e)&&(t+='');var a=1;return t=''+(t=''+(t=t.replace(/\r\n|\r|\n/g,(function(t){return t+''}))))}(a),$(e).html(a).addClass("hljsln");var n=$("span[data-num]:last");n.html()||n.remove()}})};a(8);var f=function(){const t=n.signature;if(t.enable){const e=$("#cb_post_title_url").attr("href"),a=`
    \n

    作者:${t.author||$("#profile_block a").eq(0).html()||"(*^_^*)"}

    \n

    出处:${e}

    \n

    版权:本作品采用「${t.license[0]}」许可协议进行许可。

    \n

    ${t.remark||""}

    \n
    `;$("#MySignature").html(a).show()}};a(9),a(10);function v(t){$("body").prepend(`
    ${t}
    `);let e=$(".esa-layer");e.slideDown(200),setTimeout(()=>{e.remove()},2e3)}var m=function(){const t=n.sponsor;if(!t.enable)return!1;$("#blog_post_info").prepend(`\n
    \n
    ${t.text}
    \n
      \n
    • \n
    • \n
    • \n
    \n
    \n \n
    \n
    `);var e=$(".esa-sponsor");e.find(".box li").hover((function(){const a=$(this).attr("class");if("paypal"==a&&!t.paypal)return v("未设置 PayPal 收款二维码");if("alipay"==a&&!t.alipay)return v("未设置支付宝收款二维码");if("wechat"==a&&!t.wechat)return v("未设置微信收款二维码");var n=null;switch(a){case"paypal":n=t.paypal;break;case"alipay":n=t.alipay;break;case"wechat":n=t.wechat}e.find(".qrshow").html(``).show()}),(function(){e.find(".qrshow").hide()}))};a(11);var g=function(){const t=".feedbackItem > .feedbackCon > .blog_comment_body",e=()=>{$(t).before("
    ");let e=$(".feedbackItem > .feedbackCon");$.each(e,(function(t,e){let a=null,n=$(e).find('span[id$="avatar"]');n.length&&(a=$.trim($(n).text())),$(e).find(".esa-comment-avatar img").attr("src",a||"https://pic.cnblogs.com/face/sample_face.gif");const s=$(e).parent().find(".comment_date").next().attr("href");$(e).find(".esa-comment-avatar a").attr("href",$.trim(s))}))};if($(t).length)e();else{let a=1,n=setInterval(()=>{$(t).length&&(clearInterval(n),e()),10==a&&clearInterval(n),a++},500)}};a(12);var b=function(){$("body").append('
    \n
    \n \n \n \n
    \n
    \n
    主题色彩
    \n
    \n \n \n \n \n \n \n \n \n \n \n
    \n
    \n
    \n
    \n ');const t=s()&&n.catalog.enable;t&&$(".esa-toolbar").append('');const e="silence-mode-"+currentBlogApp,a="silence-theme-"+currentBlogApp,i=(new Date).getHours(),l=sessionStorage.getItem(a)||n.defaultTheme,o=sessionStorage.getItem(e)||("auto"==n.defaultMode?i>=6&&i<18?"light":"dark":n.defaultMode);$("html").attr("mode",o),$("html").attr("theme",l);const c=$(".esa-toolbar"),r=$(".skin-popup");let d=!1;c.find(".bars").click((function(){d?(c.find(".bars").removeClass("bars-show"),c.find(".up").removeClass("up-show"),c.find(".mode").removeClass("mode-show"),c.find(".skin").removeClass("skin-show"),t&&c.find(".contents").removeClass("contents-show")):(c.find(".bars").addClass("bars-show"),c.find(".up").addClass("up-show"),c.find(".mode").addClass("mode-show"),c.find(".skin").addClass("skin-show"),t&&c.find(".contents").addClass("contents-show")),d=!d})),c.find(".up").click(()=>{$("html, body").animate({scrollTop:0},450)}),c.find(".mode").click(()=>{const t="light"==$("html").attr("mode")?"dark":"light";sessionStorage.setItem(e,t),$("html").attr("mode",t)}),c.find(".skin").click(()=>{r.slideToggle()}),r.find(".themes button").click((function(){const t=$(this).data("theme");sessionStorage.setItem(a,t),$("html").attr("theme",t)})),c.find(".contents").click(()=>{$(".esa-contents").toggleClass((function(){return $(this).hasClass("active")?($(this).removeClass("active"),"noactive"):($(this).removeClass("noactive"),"active")}))})};a(13);const w={show:()=>{$(".esa-loader").show()},hide:()=>{$(".esa-loader").fadeOut()}};var y=w;new class{constructor(){this.init()}init(){const t=window.$silence;t&&$.extend(!0,n,t),this.building()}building(){l(),o(),c(),b(),i(),s()?(r(),u(),p(),f(),m(),g()):($(".forFlow").css({marginLeft:"260px"}),$("#sideBar").show()),y.hide()}}}]); \ No newline at end of file diff --git a/src/components/customFooter/index.js b/src/modules/customFooter/index.js similarity index 100% rename from src/components/customFooter/index.js rename to src/modules/customFooter/index.js diff --git a/src/components/customFooter/index.less b/src/modules/customFooter/index.less similarity index 100% rename from src/components/customFooter/index.less rename to src/modules/customFooter/index.less diff --git a/src/modules/customHeader/index.js b/src/modules/customHeader/index.js new file mode 100644 index 0000000..865e048 --- /dev/null +++ b/src/modules/customHeader/index.js @@ -0,0 +1,55 @@ +import "./index.less"; +import options from '@/consts/options'; + +function buildCustomHeader() { + const navs = options.navbars; + const $navList = $('#navList'); + + if (navs && navs.length) { + navs.reverse().forEach((nav) => { + nav.target = nav.target || '_self'; + if (nav.chilren && nav.chilren.length) { + var subnavs = nav.chilren.map(function (subnav) { + subnav.target = subnav.target || '_self'; + 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(); + } + }); + + $('#header').prepend(`
    `); + $('.esa-mobile-menu').on('click', () => { + $('#navigator').fadeToggle(); + }); + + if (!options.showNavAdmin) { + $('#blog_nav_admin').parent().remove(); + } +} + +export default buildCustomHeader; \ No newline at end of file diff --git a/src/modules/customHeader/index.less b/src/modules/customHeader/index.less new file mode 100644 index 0000000..f29a8fa --- /dev/null +++ b/src/modules/customHeader/index.less @@ -0,0 +1,15 @@ +.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/modules/githubCorner/index.js similarity index 100% rename from src/components/githubCorner/index.js rename to src/modules/githubCorner/index.js diff --git a/src/components/githubCorner/index.less b/src/modules/githubCorner/index.less similarity index 100% rename from src/components/githubCorner/index.less rename to src/modules/githubCorner/index.less diff --git a/src/components/hljsLineNumber/index.js b/src/modules/hljsLineNumber/index.js similarity index 100% rename from src/components/hljsLineNumber/index.js rename to src/modules/hljsLineNumber/index.js diff --git a/src/components/hljsLineNumber/index.less b/src/modules/hljsLineNumber/index.less similarity index 100% rename from src/components/hljsLineNumber/index.less rename to src/modules/hljsLineNumber/index.less diff --git a/src/components/layer/index.js b/src/modules/layer/index.js similarity index 100% rename from src/components/layer/index.js rename to src/modules/layer/index.js diff --git a/src/components/layer/index.less b/src/modules/layer/index.less similarity index 100% rename from src/components/layer/index.less rename to src/modules/layer/index.less diff --git a/src/components/loader/index.js b/src/modules/loader/index.js similarity index 100% rename from src/components/loader/index.js rename to src/modules/loader/index.js diff --git a/src/components/loader/index.less b/src/modules/loader/index.less similarity index 100% rename from src/components/loader/index.less rename to src/modules/loader/index.less diff --git a/src/components/postCommentAvatars/index.js b/src/modules/postCommentAvatars/index.js similarity index 100% rename from src/components/postCommentAvatars/index.js rename to src/modules/postCommentAvatars/index.js diff --git a/src/components/postCommentAvatars/index.less b/src/modules/postCommentAvatars/index.less similarity index 100% rename from src/components/postCommentAvatars/index.less rename to src/modules/postCommentAvatars/index.less diff --git a/src/components/postContents/index.js b/src/modules/postContents/index.js similarity index 100% rename from src/components/postContents/index.js rename to src/modules/postContents/index.js diff --git a/src/components/postContents/index.less b/src/modules/postContents/index.less similarity index 100% rename from src/components/postContents/index.less rename to src/modules/postContents/index.less diff --git a/src/components/postLightbox/index.js b/src/modules/postLightbox/index.js similarity index 100% rename from src/components/postLightbox/index.js rename to src/modules/postLightbox/index.js diff --git a/src/components/postLightbox/index.less b/src/modules/postLightbox/index.less similarity index 100% rename from src/components/postLightbox/index.less rename to src/modules/postLightbox/index.less diff --git a/src/components/postSignature/index.js b/src/modules/postSignature/index.js similarity index 100% rename from src/components/postSignature/index.js rename to src/modules/postSignature/index.js diff --git a/src/components/postSignature/index.less b/src/modules/postSignature/index.less similarity index 100% rename from src/components/postSignature/index.less rename to src/modules/postSignature/index.less diff --git a/src/components/postSponsor/index.js b/src/modules/postSponsor/index.js similarity index 100% rename from src/components/postSponsor/index.js rename to src/modules/postSponsor/index.js diff --git a/src/components/postSponsor/index.less b/src/modules/postSponsor/index.less similarity index 100% rename from src/components/postSponsor/index.less rename to src/modules/postSponsor/index.less diff --git a/src/modules/profile/index.js b/src/modules/profile/index.js new file mode 100644 index 0000000..f2ea793 --- /dev/null +++ b/src/modules/profile/index.js @@ -0,0 +1,15 @@ +import "./index.less"; +import options from '@/consts/options'; + +function buildProfile() { + const avatar = options.avatar; + const favicon = options.favicon; + if (avatar) { + $('#sideBarMain').prepend(``); + }; + if (favicon) { + $('#favicon').attr('href', favicon); + } +} + +export default buildProfile; \ No newline at end of file diff --git a/src/modules/profile/index.less b/src/modules/profile/index.less new file mode 100644 index 0000000..6ae19df --- /dev/null +++ b/src/modules/profile/index.less @@ -0,0 +1,4 @@ +.esa-profile-avatar { + border-radius: 4px; + width: 100%; +} diff --git a/src/components/toolbar/index.js b/src/modules/toolbar/index.js similarity index 100% rename from src/components/toolbar/index.js rename to src/modules/toolbar/index.js diff --git a/src/components/toolbar/index.less b/src/modules/toolbar/index.less similarity index 100% rename from src/components/toolbar/index.less rename to src/modules/toolbar/index.less