From 02d1dd3c8356fc7d281a79ec667c2a0a448323d9 Mon Sep 17 00:00:00 2001 From: ITJoker233 <649258008@qq.com> Date: Wed, 12 Feb 2020 00:22:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89=20Update=20Version=201.6.9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 28 +-- assets/media/css/style.css | 2 +- assets/media/css/style.min.css | 2 +- assets/styles/main.less | 227 ++++++++++++++++++----- config.json | 87 ++++++++- templates/include/footer.ejs | 44 ++--- templates/include/head.ejs | 69 +++---- templates/post.ejs | 324 +++++++++++++++++++-------------- templates/tag.ejs | 62 ++++--- templates/tags.ejs | 27 +-- 10 files changed, 580 insertions(+), 292 deletions(-) diff --git a/README.md b/README.md index b84ad22..3b9b584 100644 --- a/README.md +++ b/README.md @@ -44,22 +44,23 @@ - [x] 增加搜索功能 - [x] 增加备案信息 - [x] 增加天气插件 -- [x] 增加访问量功能? ヾ(•ω•`)o (待定) +- [x] 增加访问量功能 +- [x] 增加文章分享功能 +- [x] 增加文章打赏功能 +- [x] 增加目录功能 +- [x] 增加鼠标点击特效 - [ ] 增加文章加密解密功能? ヾ(•ω•`)o (待定) (本功能需要客户端支持) -- [ ] 增加付费文章功能? ヾ(•ω•`)o (待定)(本功能需要客户端支持) -- [ ] 增加文章分享功能? ヾ(•ω•`)o (待定) - [ ] 增加关于我的页面? ヾ(•ω•`)o (待定) - [ ] 增加节日插件? ヾ(•ω•`)o (待定) -- [ ] 增加鼠标点击特效? ヾ(•ω•`)o (待定) - [ ] 增加相关的Web特效~ - More... -## 📌当前版本:1.6.8 +## 📌当前版本:1.6.9 1. (刚开始使用这个主题的请忽略这句话) 2. 由于Gridea客户端不支持直接获取主题版本,所以换了一个方法获取当前主题的版本号.(如果Gridea的客户端一直不支持获取的话,那么就采用这个方法,如果支持了就不必这一步。) 3. 因此在旧版本的基础上的解决方法:```请重新启动Gridea客户端,然后点击下主题->自定义配置->主题设置->选择最新版本->保存``` -4. 音乐插件------(详细教程见:https://blog.itjoker.cn/post/azQ6rNbFG/) (该功能慎用,影响目录跳转功能) +4. 音乐插件------[音乐插件教程](https://blog.itjoker.cn/post/azQ6rNbFG/) (该功能慎用,影响目录跳转功能) 5. 文章列表------在菜单里面添加的link为:```/posts``` 6. 如果不想使用CDN的话,那么找到head.ejs中,找到CDN样式的关键词,把下面的注释掉,然后取消掉本地样式关键词下的样式... @@ -68,10 +69,12 @@ ### 本次更新了以下内容: 1. 下次更新未知.... -2. 本次更新时间为:2020.02.06 -3. 增加了访问量的功能 -4. 优化了访问量插件js的CDN加载 -5. 修复了一些命名问题... +2. 本次更新时间为:2020.02.12 +3. 本次增加了文章分享的功能,文章打赏插件的功能,详情见[打赏插件使用教程](https://blog.itjoker.cn/post/) (参考了[xiangyi715](https://github.com/xiangyi715/Gridea-Chic-Unique)的Gridea-Chic-Unique) +4. 增加目录是否开启的开关。(因为考虑到兼容性,以及我自己太懒了.....所有增加这个开关,有需要的开启) +5. 修复了移动端显示文章列表标题文字过长溢出的Bug。 +6. 增加了页面的点击特效... +7. tags页面的上下页无法修复,Gridea 客户端不支持(除非0.9.2正式版及其以上支持该功能)....给tag增加了上下页的功能... ## 📢作者留言 @@ -105,7 +108,7 @@ git pull origin master 当前版本 -- [v1.6.8(当前版本)](https://github.com/ITJoker233/Gridea-theme-Chic/releases/tag/1.6.8) +- [v1.6.9(当前版本)](https://github.com/ITJoker233/Gridea-theme-Chic/releases/tag/1.6.9) @@ -113,7 +116,8 @@ git pull origin master 历史版本 -- [v1.6.7(https://github.com/ITJoker233/Gridea-theme-Chic/releases/tag/1.6.7) +- [v1.6.8](https://github.com/ITJoker233/Gridea-theme-Chic/releases/tag/1.6.8) +- [v1.6.7](https://github.com/ITJoker233/Gridea-theme-Chic/releases/tag/1.6.7) - [v1.6.6](https://github.com/ITJoker233/Gridea-theme-Chic/releases/tag/1.6.6) - [v1.6.5](https://github.com/ITJoker233/Gridea-theme-Chic/releases/tag/1.6.5) - [v1.6.4](https://github.com/ITJoker233/Gridea-theme-Chic/releases/tag/1.6.4) diff --git a/assets/media/css/style.css b/assets/media/css/style.css index 3b509b5..408e090 100644 --- a/assets/media/css/style.css +++ b/assets/media/css/style.css @@ -197,7 +197,7 @@ html::-webkit-scrollbar-thumb:hover { } body { - font-size: 11pt; + font-size: 10pt; font-weight: normal; line-height: 2em; background-color: #fff; diff --git a/assets/media/css/style.min.css b/assets/media/css/style.min.css index b0d4e6f..b0e8777 100644 --- a/assets/media/css/style.min.css +++ b/assets/media/css/style.min.css @@ -1 +1 @@ -@charset "utf-8";@font-face{font-family:'Fira Code Medium';src:url(https://static.meowv.com/fonts/FiraCode-Medium.woff2) format('woff2'),url(https://static.meowv.com/fonts/FiraCode-Medium.woff) format("woff"),url(../fonts/FiraCode-Medium.woff) format('woff'),url(../fonts/FiraCode-Medium.woff2) format('woff2');font-weight:500;font-style:normal}html{font-family:'Fira Code Medium',Microsoft Yahei,monospace;line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em;border-radius:5px}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;border-radius:5px}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]-moz-focusring,[type=reset]-moz-focusring,[type=submit]-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html::-webkit-scrollbar{width:8px;height:8px}html::-webkit-scrollbar-thumb{height:40px;background-color:#eee;border-radius:16px}html::-webkit-scrollbar-thumb:hover{background-color:#ddd}body{font-size:11pt;font-weight:400;line-height:2em;background-color:#fff;color:#161209;transition:color .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease}body:before{content:"";background-repeat:no-repeat;background-position:center;opacity:.05;position:fixed;top:0;left:0;width:100%;height:100%;z-index:-1}body.dark-theme{background-color:#292a2d;color:#a9a9b3;transition:color .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease}a{background-color:transparent;color:#161209;text-decoration:none;transition:color .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease;cursor:pointer}a:hover{color:#2d96bd;text-decoration:none;transition:color .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease}.dark-theme a{color:#a9a9b3;text-decoration:none;transition:color .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease}.dark-theme a:hover{color:#fff;text-decoration:none;transition:color .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease}.wrapper{display:flex;flex-direction:column;min-height:90vh;width:100%}.navbar{height:4rem;line-height:4rem;width:100%}.navbar .container{width:auto;max-width:1200px;text-align:center;margin:0 auto;display:flex;justify-content:space-between}.main{flex-grow:1;flex-shrink:0;flex-basis:auto}.container{padding-left:1em;padding-right:1em}.footer{height:4rem;width:100%;text-align:center;line-height:1.2rem;padding-top:2em}*{-webkit-tap-highlight-color:transparent}input[type=checkbox]:checked+label:after{transition:all .3s ease-in}input[type=checkbox]:not(:checked)+label:after{transition:all .3s ease-out}input[type=checkbox]:checked+label,input[type=checkbox]:not(:checked)+label{transition:all .3s ease-in-out}input[type=checkbox]:checked+label i:after,input[type=checkbox]:checked+label i:before,input[type=checkbox]:checked+label:before,input[type=checkbox]:not(:checked)+label i:after,input[type=checkbox]:not(:checked)+label i:before,input[type=checkbox]:not(:checked)+label:before{transition:all .3s ease-in-out}input[type=radio]:checked+label:after,input[type=radio]:not(:checked)+label:after{transition:all .3s ease-in-out}.switch_default[type=checkbox]{display:none}.switch_default+label{background-color:#e6e6e6;border-radius:7px;cursor:pointer;display:inline-block;height:14px;position:relative;box-shadow:.2px .2px 1px .5px #b4b4b4;width:30px}.switch_default+label:after{background-color:#fff;border-radius:50%;content:"";height:12px;left:1px;position:absolute;top:.5px;width:12px;box-shadow:.2px .2px 1px .5px #b4b4b4}.switch_default:checked+label{background-color:#1abc9c;box-shadow:none}.switch_default:checked+label:after{left:17px}.header-logo a{padding:0}.navbar .menu a{padding:0 8px}.navbar .menu .active{font-weight:900;color:#161209}.dark-theme .navbar .menu .active{color:#fff}.navbar .menu a:hover,.navbar-header a:hover{background-color:transparent}header label{margin-left:15px;position:relative;-webkit-transform:translateY(.1em) translateX(.5em)}.copyright{line-height:20px;font-size:.8rem;opacity:.75;margin-bottom:0}.pagination{display:flex;flex-direction:row;justify-content:center;list-style:none;white-space:nowrap;width:100%;padding-top:2em}.pagination a,.pagination span{-webkit-font-smoothing:antialiased;font-size:12px;color:#bfbfbf;letter-spacing:.1em;font-weight:700;padding:5px 5px;text-decoration:none;transition:.3s}.pagination .page-number{padding-bottom:3px;margin:0 20px;box-sizing:border-box;position:relative;display:inline}.pagination .page-number.disabled{display:none}.pagination .page-number:hover a{color:#000}.dark-theme .pagination .page-number:hover a{color:#fff}.pagination .page-number:after,.pagination .page-number:before{position:absolute;content:"";width:0;height:1px;background:#000;transition:.3s;bottom:0}.dark-theme .pagination .page-number:after,.dark-theme .pagination .page-number:before{background:#fff}.pagination .page-number:after .current,.pagination .page-number:before .current{width:100%}.pagination .page-number:before{left:50%}.pagination .page-number:after{right:50%}.pagination .page-number:hover:after,.pagination .page-number:hover:before{width:50%}.pagination .page-number.current{color:#000}.dark-theme .pagination .page-number.current{color:#fff}.pagination .page-number.current:after,.pagination .page-number.current:before{width:60%}.intro{transform:translateY(20vh);text-align:center}.intro .avatar{padding:10px}.intro .avatar img{width:128px;height:auto;display:inline-block;-webkit-border-radius:100%;border-radius:100%;-webkit-box-shadow:0 0 0 .3618em rgba(0,0,0,.05);box-shadow:0 0 0 .3618em rgba(0,0,0,.05);margin:0 auto;-webkit-transition:all ease .4s;-moz-transition:all ease .4s;-o-transition:all ease .4s;transition:all ease .4s;cursor:pointer}.intro .avatar img:hover{position:relative;-webkit-transform:translateY(-.75em);-moz-transform:translateY(-.75em);-ms-transform:translateY(-.75em);-o-transform:translateY(-.75em);transform:translateY(-.75em);cursor:pointer}.nickname{font-size:2em;font-weight:400}.links a{padding:0 5px}.links a:hover{background-color:transparent}.links .fa{font-size:2em}.post-wrap{position:relative;width:100%;max-width:780px;margin:0 auto;padding-top:2rem}.post-wrap .archive-item{margin-left:2rem}.archive-item-link{display:inline-block;text-decoration:none;overflow:hidden;white-space:nowrap}.archive-item-link:hover{color:#2d96bd;background-color:transparent}.dark-theme .archive-item-link{color:#a9a9b3;text-decoration:none;transition:color .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease}.dark-theme .archive-item-link:hover{color:#fff;text-decoration:none;transition:color .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease}.archive-item-date{float:right;text-align:right;color:#a9a9b3}.dark-theme .archive-item-date{color:#87878d}.post-wrap .categories-card{margin:0 auto;margin-top:1em;display:flex;align-items:center;justify-content:space-between;flex-direction:row;flex-wrap:wrap;padding:0 2.5em;line-height:1.6em}.post-wrap .categories-card .card-item{font-size:14px;text-align:left;width:45%;display:flex;align-items:flex-start;margin-top:2em;min-height:16em;padding:0 2%;position:relative}.post-wrap .categories-card .card-item .categories{overflow:hidden}.tag-cloud-tags{margin:10px 0;padding-top:2em}.tag-cloud-tags a{display:inline-block;position:relative;margin:5px 10px;word-wrap:break-word;transition-duration:.3s;transition-property:transform;transition-timing-function:ease-out}.tag-cloud-tags a:active,.tag-cloud-tags a:focus,.tag-cloud-tags a:hover{color:#2d96bd;transform:scale(1.1)}.dark-theme .tag-cloud-tags a:active,.dark-theme .tag-cloud-tags a:focus,.dark-theme .tag-cloud-tags a:hover{color:#fff}.tag-cloud-tags a small{margin:0 .3em;color:#a9a9b3}.dark-theme .tag-cloud-tags a small{color:#fff}.page{padding-top:0}.page .post-content{margin:0;padding-top:0}.post-wrap p{font-size:1em;margin:1em 0 1em 0}.post-wrap .post-header h1{margin:0!important}.post-wrap .post-title{font-size:1.5em;line-height:1em}.post-wrap .post-meta{color:rgba(85,85,85,.529)!important}.dark-theme .post-wrap .post-meta{color:#87878d!important}.post-wrap .post-meta a{color:#2d96bd}.dark-theme .post-wrap .post-meta a{color:#eee}.post-wrap .post-meta a:hover{color:#ef3982}.dark-theme .post-wrap .post-meta a:hover{color:#fff}.post-content{padding-top:2rem;text-align:justify}.post-content h2,.post-content h3,.post-content h4,.post-content h5,.post-content h6{padding-top:.8em;padding-bottom:.3em}.post-content h1::before{content:"#";margin-right:5px;color:#2d96bd}.dark-theme .post-content h1::before{color:#eee}.post-content h2::before{content:"#";margin-right:5px;color:#2d96bd}.dark-theme .post-content h2::before{color:#eee}.post-content h3::before{content:"|";margin-right:5px;color:#2d96bd}.dark-theme .post-content h3::before{color:#eee}.post-content h4::before{content:"*";margin-right:5px;color:#2d96bd}.dark-theme .post-content h4::before{color:#eee}.post-content a{color:#2d96bd}.dark-theme .post-content a{color:#eee}.post-content a:hover{color:#ef3982}.dark-theme .post-content a:hover:hover{color:#fff;text-decoration:underline}.post-content code,.post-content pre{padding:7px;font-size:13px;font-family:Consolas,Monaco,Menlo,Consolas,monospace}.post-content code{padding:3px 5px;border-radius:4px}.post-content figure.highlight{margin:1em 0;overflow-x:auto;position:relative}.post-content figure.highlight::-webkit-scrollbar{width:6px;height:6px}.post-content figure.highlight::-webkit-scrollbar-thumb{width:6px;background-color:#eee;border-radius:2px}.post-content figure.highlight table{position:relative}.post-content figure.highlight table,.post-content figure.highlight td,.post-content figure.highlight tr{margin:0;padding:0;border:0;width:100%;border-collapse:collapse}.post-content figure.highlight .code pre{margin:0 10px}.post-content figure.highlight .gutter{width:10px;color:#d0d0d0}.post-content figure.highlight .gutter pre{margin:0}.post-content ul{padding-left:2em}.post-content table{max-width:100%;margin:10px 0;border-spacing:0}.post-content table thead{background:#bce1ef}.dark-theme .post-content table thead{background:#626262}.post-content table td,.post-content table th{padding:5px 15px;border:.5px solid #e8e8e8}.post-content .image-caption:not(:empty){min-width:20%;max-width:80%;display:inline-block;padding:10px;margin:0 auto;border-bottom:1px solid #d9d9d9;font-size:14px;color:#969696;line-height:1.7}.post-content img{display:block;max-width:100%;height:auto;margin:0 auto;overflow:hidden}.post-content img[data-action=zoom]{cursor:zoom-in}.post-content blockquote{font-size:1rem;display:block;margin:1em 0;padding:1em 1.2em 1em 1.2em;position:relative;color:rgba(52,73,94,.8);background-color:#e9f5fa;border-left:2px solid #2d96bd}.post-content blockquote p{margin:0}.post-content blockquote footer strong{margin-right:.5em}.dark-theme .post-content blockquote{color:#a9a9b3;background-color:#3e3e3e;border-left:2px solid #dcdcdc}.post-content blockquote.pullquote{background-color:transparent;max-width:45%;border:0}.post-content blockquote.pullquote.left{float:left;text-align:left}.post-content blockquote.pullquote.right{float:right;text-align:right}.post-copyright{margin-top:5rem;border-top:1px solid #e8e8e8;border-bottom:1px solid #e8e8e8}.post-copyright a{color:#2d96bd}.dark-theme .post-copyright a{color:#eee}.post-copyright a:hover{color:#ef3982}.dark-theme .post-copyright a:hover{color:#fff}.post-copyright .copyright-item{margin:5px 0}.post-copyright .lincese{font-weight:700}.dark-theme .post-copyright{border-top:1px solid #909196;border-bottom:1px solid #909196}.post-content code,.post-content pre{line-height:1.7em;padding:7px;font-size:13px;font-family:Consolas,Monaco,Menlo,Consolas,monospace}.post-content code{line-height:1.7em;padding:3px 5px;border-radius:4px;color:#c7254e;background:#f8f5ec}.dark-theme .post-content code{color:#c7254e;background:#f7f7f7}.post-content figure.highlight{margin:1em 0;overflow-x:auto;position:relative}.post-content figure.highlight::-webkit-scrollbar{width:6px;height:6px}.post-content figure.highlight::-webkit-scrollbar-thumb{width:6px;background-color:#eee;border-radius:2px}.post-content figure.highlight figcaption{padding:0 .5em;text-align:right;font-size:13px}.post-content figure.highlight figcaption span{margin:0 .5em}.post-content figure.highlight table{position:relative}.post-content figure.highlight table,.post-content figure.highlight td,.post-content figure.highlight tr{margin:0;padding:0;border:0;width:100%;border-collapse:collapse}.post-content figure.highlight .code pre{margin:0 10px}.post-content figure.highlight .gutter{width:10px;color:#d0d0d0}.post-content figure.highlight .gutter pre{margin:0}.post-tags{padding:1rem 0 1rem;display:flex;justify-content:space-between}.post-nav:after,.post-nav:before{content:" ";display:table}.post-nav a.next,.post-nav a.prev{font-weight:600;font-size:16px;transition-property:transform;transition-timing-function:ease-out;transition-duration:.3s}.post-nav a.prev{float:left}.post-nav a.prev::before{content:"<";margin-right:.5em}.post-nav a.prev:hover{transform:translateX(-4px)}.post-nav a.next{float:right}.post-nav a.next::after{content:">";margin-left:.5em}.post-nav a.next:hover{transform:translateX(4px)}.post-nav a.next::after,.post-nav a.prev::before{font-weight:700}.tag:not(:last-child) a::after{content:" / "}.post-toc{position:fixed;top:95px;right:3rem;width:13em;font-size:.75rem}.post-toc .tocbot-list{max-height:450px;max-width:250px;overflow:auto;position:relative;padding-right:.875rem}.post-toc .tocbot-list::-webkit-scrollbar{width:6px;height:6px}.post-toc .tocbot-list::-webkit-scrollbar-thumb{width:6px;background-color:#eee;border-radius:2px}.post-toc .tocbot-list ul{list-style:none;position:inherit;overflow:hidden}.post-toc .tocbot-list ul li{margin-left:.25rem}.post-toc .toc-link::before{background-color:#fff}.post-toc .is-active-link::before{background-color:#2d96bd}.post-toc .tocbot-list-menu{margin:1rem .75rem;font-size:.75rem}.post-toc .tocbot-list-menu a{display:block;margin:.375rem 0;color:#999;cursor:pointer}.post-toc .tocbot-list-menu a:hover{color:grey}.toc{overflow-y:auto}.toc>.toc-list{overflow:hidden;position:relative}.toc>.toc-list li{list-style:none}.toc-list{margin:0;padding-left:10px}a.toc-link{color:currentColor;height:100%}.is-collapsible{max-height:1000px;overflow:hidden;transition:all .3s ease-in-out}.is-collapsed{max-height:0}.is-position-fixed{position:fixed!important;top:0}.is-active-link{font-weight:700}.toc-link::before{background-color:#eee;content:' ';display:inline-block;height:inherit;left:0;margin-top:-1px;position:absolute;width:2px}.is-active-link::before{background-color:#54bc4b}@media screen and (max-width:479px){.post-main{padding-top:40pt}.main{padding-top:40pt}.navbar{display:none}.navbar-mobile{display:block!important;position:fixed;width:100%;z-index:100;transition:all .6s ease 0s}.navbar-mobile .container{padding:0;margin:0;line-height:5.5em;background:#fff}.navbar-mobile .container .navbar-header{display:flex;justify-content:space-between;align-items:center;width:100%;padding-right:1em;padding-left:1em;box-sizing:border-box;position:relative}.navbar-mobile .container .navbar-header .search-input{cursor:pointer;width:100px}.navbar-mobile .container .navbar-header .menu-toggle{cursor:pointer;line-height:5.5em;padding:auto 2em}.navbar-mobile .container .navbar-header .menu-toggle span{display:block;background:#000;width:36px;height:2px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-transition:.25s margin .25s,.25s transform;-moz-transition:.25s margin .25s,.25s transform;transition:.25s margin .25s,.25s transform}.dark-theme .navbar-mobile .container .navbar-header .menu-toggle span{background:#a9a9b3}.navbar-mobile .container .navbar-header .menu-toggle span:nth-child(1){margin-bottom:8px}.navbar-mobile .container .navbar-header .menu-toggle span:nth-child(3){margin-top:8px}.navbar-mobile .container .navbar-header .menu-toggle.active span{-webkit-transition:.25s margin,.25s transform .25s;-moz-transition:.25s margin,.25s transform .25s;transition:.25s margin,.25s transform .25s}.navbar-mobile .container .navbar-header .menu-toggle.active span:nth-child(1){-moz-transform:rotate(45deg) translate(4px,6px);-ms-transform:rotate(45deg) translate(4px,6px);-webkit-transform:rotate(45deg) translate(4px,6px);transform:rotate(45deg) translate(4px,6px)}.navbar-mobile .container .navbar-header .menu-toggle.active span:nth-child(2){opacity:0}.navbar-mobile .container .navbar-header .menu-toggle.active span:nth-child(3){-moz-transform:rotate(-45deg) translate(8px,-10px);-ms-transform:rotate(-45deg) translate(8px,-10px);-webkit-transform:rotate(-45deg) translate(8px,-10px);transform:rotate(-45deg) translate(8px,-10px)}.navbar-mobile .container .menu{text-align:center;background:#fff;border-top:1px solid #000;padding-top:1em;padding-bottom:1em;display:none;box-shadow:0 2px 4px rgba(0,0,0,.1),0 4px 8px rgba(0,0,0,.1)}.navbar-mobile .container .menu a{display:inline-block;margin:0 1em;line-height:2.5em}.navbar-mobile .container .menu.active{display:block;white-space:nowrap;box-sizing:border-box;overflow-x:auto}.dark-theme .navbar-mobile .container .menu{background:#292a2d;border-top:2px solid #87878d}.dark-theme .navbar-mobile .container{background:#292a2d!important}.archive{width:90%}.archive .archive-item .archive-item-date{display:none}#dynamic-to-top{display:none!important}.footer{height:3rem;width:100%;text-align:center;line-height:1.5rem;padding-top:2em}.post-warp{padding-top:6em}.post-warp .archive-item-date{display:none}.categories .categories-card .card-item{width:100%;display:flex;min-height:0}.categories .categories-card .card-item .categories{overflow:hidden}}@media screen and (max-width:1023px){.navbar-mobile{display:none}}@media screen and (min-width:1024px){.navbar-mobile{display:none}}@media screen and (max-width:1279px){.post-toc{display:none}}.post-content figure.highlight{margin:2em 0;background:#f7f7f7;color:#4d4d4c;font-size:12px;overflow:scroll;overflow-y:hidden;overflow-x:auto}.post-content figure.highlight .gutter{color:hight-gutter}.post-content figure.highlight pre{background:#f7f7f7;margin:0}.post-content code{padding:2px 4px;background:#f7f7f7;font-family:Menlo,Monaco,Consolas,Courier New,monospace;font-size:12px}.post-content pre{padding:10px;overflow:auto;background:#f7f7f7;font-family:Menlo,Monaco,Consolas,Courier New,monospace}.post-content pre code{padding:0}.post-content pre .deletion{background:#fdd}.post-content pre .addition{background:#dfd}.post-content pre .meta{color:#8959a8}.post-content pre .comment{color:#8e908c}.post-content pre .attribute,.post-content pre .css .class,.post-content pre .css .id,.post-content pre .css .pseudo,.post-content pre .html .doctype,.post-content pre .regexp,.post-content pre .ruby .constant,.post-content pre .tag,.post-content pre .variable,.post-content pre .xml .doctype,.post-content pre .xml .pi,.post-content pre .xml .tag .title{color:#c82829}.post-content pre .built_in,.post-content pre .command,.post-content pre .constant,.post-content pre .literal,.post-content pre .number,.post-content pre .params,.post-content pre .preprocessor{color:#f5871f}.post-content pre .css .rules .attribute,.post-content pre .formula,.post-content pre .header,.post-content pre .inheritance,.post-content pre .number,.post-content pre .ruby .class .title,.post-content pre .ruby .symbol,.post-content pre .special,.post-content pre .string,.post-content pre .value,.post-content pre .xml .cdata{color:#718c00}.post-content pre .css .hexcolor,.post-content pre .title{color:#3e999f}.post-content pre .coffeescript .title,.post-content pre .function,.post-content pre .javascript .title,.post-content pre .perl .sub,.post-content pre .python .decorator,.post-content pre .python .title,.post-content pre .ruby .function .title,.post-content pre .ruby .title .keyword{color:#4271ae}.post-content pre .javascript .function,.post-content pre .keyword{color:#8959a8} \ No newline at end of file +@charset "utf-8";@font-face{font-family:'Fira Code Medium';src:url(https://static.meowv.com/fonts/FiraCode-Medium.woff2) format('woff2'),url(https://static.meowv.com/fonts/FiraCode-Medium.woff) format("woff"),url(../fonts/FiraCode-Medium.woff) format('woff'),url(../fonts/FiraCode-Medium.woff2) format('woff2');font-weight:500;font-style:normal}html{font-family:'Fira Code Medium',Microsoft Yahei,monospace;line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em;border-radius:5px}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;border-radius:5px}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]-moz-focusring,[type=reset]-moz-focusring,[type=submit]-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html::-webkit-scrollbar{width:8px;height:8px}html::-webkit-scrollbar-thumb{height:40px;background-color:#eee;border-radius:16px}html::-webkit-scrollbar-thumb:hover{background-color:#ddd}body{font-size:10pt;font-weight:400;line-height:2em;background-color:#fff;color:#161209;transition:color .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease}body:before{content:"";background-repeat:no-repeat;background-position:center;opacity:.05;position:fixed;top:0;left:0;width:100%;height:100%;z-index:-1}body.dark-theme{background-color:#292a2d;color:#a9a9b3;transition:color .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease}a{background-color:transparent;color:#161209;text-decoration:none;transition:color .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease;cursor:pointer}a:hover{color:#2d96bd;text-decoration:none;transition:color .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease}.dark-theme a{color:#a9a9b3;text-decoration:none;transition:color .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease}.dark-theme a:hover{color:#fff;text-decoration:none;transition:color .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease}.wrapper{display:flex;flex-direction:column;min-height:90vh;width:100%}.navbar{height:4rem;line-height:4rem;width:100%}.navbar .container{width:auto;max-width:1200px;text-align:center;margin:0 auto;display:flex;justify-content:space-between}.main{flex-grow:1;flex-shrink:0;flex-basis:auto}.container{padding-left:1em;padding-right:1em}.footer{height:4rem;width:100%;text-align:center;line-height:1.2rem;padding-top:2em}*{-webkit-tap-highlight-color:transparent}input[type=checkbox]:checked+label:after{transition:all .3s ease-in}input[type=checkbox]:not(:checked)+label:after{transition:all .3s ease-out}input[type=checkbox]:checked+label,input[type=checkbox]:not(:checked)+label{transition:all .3s ease-in-out}input[type=checkbox]:checked+label i:after,input[type=checkbox]:checked+label i:before,input[type=checkbox]:checked+label:before,input[type=checkbox]:not(:checked)+label i:after,input[type=checkbox]:not(:checked)+label i:before,input[type=checkbox]:not(:checked)+label:before{transition:all .3s ease-in-out}input[type=radio]:checked+label:after,input[type=radio]:not(:checked)+label:after{transition:all .3s ease-in-out}.switch_default[type=checkbox]{display:none}.switch_default+label{background-color:#e6e6e6;border-radius:7px;cursor:pointer;display:inline-block;height:14px;position:relative;box-shadow:.2px .2px 1px .5px #b4b4b4;width:30px}.switch_default+label:after{background-color:#fff;border-radius:50%;content:"";height:12px;left:1px;position:absolute;top:.5px;width:12px;box-shadow:.2px .2px 1px .5px #b4b4b4}.switch_default:checked+label{background-color:#1abc9c;box-shadow:none}.switch_default:checked+label:after{left:17px}.header-logo a{padding:0}.navbar .menu a{padding:0 8px}.navbar .menu .active{font-weight:900;color:#161209}.dark-theme .navbar .menu .active{color:#fff}.navbar .menu a:hover,.navbar-header a:hover{background-color:transparent}header label{margin-left:15px;position:relative;-webkit-transform:translateY(.1em) translateX(.5em)}.copyright{line-height:20px;font-size:.8rem;opacity:.75;margin-bottom:0}.pagination{display:flex;flex-direction:row;justify-content:center;list-style:none;white-space:nowrap;width:100%;padding-top:2em}.pagination a,.pagination span{-webkit-font-smoothing:antialiased;font-size:12px;color:#bfbfbf;letter-spacing:.1em;font-weight:700;padding:5px 5px;text-decoration:none;transition:.3s}.pagination .page-number{padding-bottom:3px;margin:0 20px;box-sizing:border-box;position:relative;display:inline}.pagination .page-number.disabled{display:none}.pagination .page-number:hover a{color:#000}.dark-theme .pagination .page-number:hover a{color:#fff}.pagination .page-number:after,.pagination .page-number:before{position:absolute;content:"";width:0;height:1px;background:#000;transition:.3s;bottom:0}.dark-theme .pagination .page-number:after,.dark-theme .pagination .page-number:before{background:#fff}.pagination .page-number:after .current,.pagination .page-number:before .current{width:100%}.pagination .page-number:before{left:50%}.pagination .page-number:after{right:50%}.pagination .page-number:hover:after,.pagination .page-number:hover:before{width:50%}.pagination .page-number.current{color:#000}.dark-theme .pagination .page-number.current{color:#fff}.pagination .page-number.current:after,.pagination .page-number.current:before{width:60%}.intro{transform:translateY(20vh);text-align:center}.intro .avatar{padding:10px}.intro .avatar img{width:128px;height:auto;display:inline-block;-webkit-border-radius:100%;border-radius:100%;-webkit-box-shadow:0 0 0 .3618em rgba(0,0,0,.05);box-shadow:0 0 0 .3618em rgba(0,0,0,.05);margin:0 auto;-webkit-transition:all ease .4s;-moz-transition:all ease .4s;-o-transition:all ease .4s;transition:all ease .4s;cursor:pointer}.intro .avatar img:hover{position:relative;-webkit-transform:translateY(-.75em);-moz-transform:translateY(-.75em);-ms-transform:translateY(-.75em);-o-transform:translateY(-.75em);transform:translateY(-.75em);cursor:pointer}.nickname{font-size:2em;font-weight:400}.links a{padding:0 5px}.links a:hover{background-color:transparent}.links .fa{font-size:2em}.post-wrap{position:relative;width:100%;max-width:780px;margin:0 auto;padding-top:2rem}.post-wrap .archive-item{margin-left:2rem}.archive-item-link{display:inline-block;text-decoration:none;overflow:hidden;white-space:nowrap}.archive-item-link:hover{color:#2d96bd;background-color:transparent}.dark-theme .archive-item-link{color:#a9a9b3;text-decoration:none;transition:color .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease}.dark-theme .archive-item-link:hover{color:#fff;text-decoration:none;transition:color .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease}.archive-item-date{float:right;text-align:right;color:#a9a9b3}.dark-theme .archive-item-date{color:#87878d}.post-wrap .categories-card{margin:0 auto;margin-top:1em;display:flex;align-items:center;justify-content:space-between;flex-direction:row;flex-wrap:wrap;padding:0 2.5em;line-height:1.6em}.post-wrap .categories-card .card-item{font-size:14px;text-align:left;width:45%;display:flex;align-items:flex-start;margin-top:2em;min-height:16em;padding:0 2%;position:relative}.post-wrap .categories-card .card-item .categories{overflow:hidden}.tag-cloud-tags{margin:10px 0;padding-top:2em}.tag-cloud-tags a{display:inline-block;position:relative;margin:5px 10px;word-wrap:break-word;transition-duration:.3s;transition-property:transform;transition-timing-function:ease-out}.tag-cloud-tags a:active,.tag-cloud-tags a:focus,.tag-cloud-tags a:hover{color:#2d96bd;transform:scale(1.1)}.dark-theme .tag-cloud-tags a:active,.dark-theme .tag-cloud-tags a:focus,.dark-theme .tag-cloud-tags a:hover{color:#fff}.tag-cloud-tags a small{margin:0 .3em;color:#a9a9b3}.dark-theme .tag-cloud-tags a small{color:#fff}.page{padding-top:0}.page .post-content{margin:0;padding-top:0}.post-wrap p{font-size:1em;margin:1em 0 1em 0}.post-wrap .post-header h1{margin:0!important}.post-wrap .post-title{font-size:1.5em;line-height:1em}.post-wrap .post-meta{color:rgba(85,85,85,.529)!important}.dark-theme .post-wrap .post-meta{color:#87878d!important}.post-wrap .post-meta a{color:#2d96bd}.dark-theme .post-wrap .post-meta a{color:#eee}.post-wrap .post-meta a:hover{color:#ef3982}.dark-theme .post-wrap .post-meta a:hover{color:#fff}.post-content{padding-top:2rem;text-align:justify}.post-content h2,.post-content h3,.post-content h4,.post-content h5,.post-content h6{padding-top:.8em;padding-bottom:.3em}.post-content h1::before{content:"#";margin-right:5px;color:#2d96bd}.dark-theme .post-content h1::before{color:#eee}.post-content h2::before{content:"#";margin-right:5px;color:#2d96bd}.dark-theme .post-content h2::before{color:#eee}.post-content h3::before{content:"|";margin-right:5px;color:#2d96bd}.dark-theme .post-content h3::before{color:#eee}.post-content h4::before{content:"*";margin-right:5px;color:#2d96bd}.dark-theme .post-content h4::before{color:#eee}.post-content a{color:#2d96bd}.dark-theme .post-content a{color:#eee}.post-content a:hover{color:#ef3982}.dark-theme .post-content a:hover:hover{color:#fff;text-decoration:underline}.post-content code,.post-content pre{padding:7px;font-size:13px;font-family:Consolas,Monaco,Menlo,Consolas,monospace}.post-content code{padding:3px 5px;border-radius:4px}.post-content figure.highlight{margin:1em 0;overflow-x:auto;position:relative}.post-content figure.highlight::-webkit-scrollbar{width:6px;height:6px}.post-content figure.highlight::-webkit-scrollbar-thumb{width:6px;background-color:#eee;border-radius:2px}.post-content figure.highlight table{position:relative}.post-content figure.highlight table,.post-content figure.highlight td,.post-content figure.highlight tr{margin:0;padding:0;border:0;width:100%;border-collapse:collapse}.post-content figure.highlight .code pre{margin:0 10px}.post-content figure.highlight .gutter{width:10px;color:#d0d0d0}.post-content figure.highlight .gutter pre{margin:0}.post-content ul{padding-left:2em}.post-content table{max-width:100%;margin:10px 0;border-spacing:0}.post-content table thead{background:#bce1ef}.dark-theme .post-content table thead{background:#626262}.post-content table td,.post-content table th{padding:5px 15px;border:.5px solid #e8e8e8}.post-content .image-caption:not(:empty){min-width:20%;max-width:80%;display:inline-block;padding:10px;margin:0 auto;border-bottom:1px solid #d9d9d9;font-size:14px;color:#969696;line-height:1.7}.post-content img{display:block;max-width:100%;height:auto;margin:0 auto;overflow:hidden}.post-content img[data-action=zoom]{cursor:zoom-in}.post-content blockquote{font-size:1rem;display:block;margin:1em 0;padding:1em 1.2em 1em 1.2em;position:relative;color:rgba(52,73,94,.8);background-color:#e9f5fa;border-left:2px solid #2d96bd}.post-content blockquote p{margin:0}.post-content blockquote footer strong{margin-right:.5em}.dark-theme .post-content blockquote{color:#a9a9b3;background-color:#3e3e3e;border-left:2px solid #dcdcdc}.post-content blockquote.pullquote{background-color:transparent;max-width:45%;border:0}.post-content blockquote.pullquote.left{float:left;text-align:left}.post-content blockquote.pullquote.right{float:right;text-align:right}.post-copyright{margin-top:5rem;border-top:1px solid #e8e8e8;border-bottom:1px solid #e8e8e8}.post-copyright a{color:#2d96bd}.dark-theme .post-copyright a{color:#eee}.post-copyright a:hover{color:#ef3982}.dark-theme .post-copyright a:hover{color:#fff}.post-copyright .copyright-item{margin:5px 0}.post-copyright .lincese{font-weight:700}.dark-theme .post-copyright{border-top:1px solid #909196;border-bottom:1px solid #909196}.post-content code,.post-content pre{line-height:1.7em;padding:7px;font-size:13px;font-family:Consolas,Monaco,Menlo,Consolas,monospace}.post-content code{line-height:1.7em;padding:3px 5px;border-radius:4px;color:#c7254e;background:#f8f5ec}.dark-theme .post-content code{color:#c7254e;background:#f7f7f7}.post-content figure.highlight{margin:1em 0;overflow-x:auto;position:relative}.post-content figure.highlight::-webkit-scrollbar{width:6px;height:6px}.post-content figure.highlight::-webkit-scrollbar-thumb{width:6px;background-color:#eee;border-radius:2px}.post-content figure.highlight figcaption{padding:0 .5em;text-align:right;font-size:13px}.post-content figure.highlight figcaption span{margin:0 .5em}.post-content figure.highlight table{position:relative}.post-content figure.highlight table,.post-content figure.highlight td,.post-content figure.highlight tr{margin:0;padding:0;border:0;width:100%;border-collapse:collapse}.post-content figure.highlight .code pre{margin:0 10px}.post-content figure.highlight .gutter{width:10px;color:#d0d0d0}.post-content figure.highlight .gutter pre{margin:0}.post-tags{padding:1rem 0 1rem;display:flex;justify-content:space-between}.post-nav:after,.post-nav:before{content:" ";display:table}.post-nav a.next,.post-nav a.prev{font-weight:600;font-size:16px;transition-property:transform;transition-timing-function:ease-out;transition-duration:.3s}.post-nav a.prev{float:left}.post-nav a.prev::before{content:"<";margin-right:.5em}.post-nav a.prev:hover{transform:translateX(-4px)}.post-nav a.next{float:right}.post-nav a.next::after{content:">";margin-left:.5em}.post-nav a.next:hover{transform:translateX(4px)}.post-nav a.next::after,.post-nav a.prev::before{font-weight:700}.tag:not(:last-child) a::after{content:" / "}.post-toc{position:fixed;top:95px;right:3rem;width:13em;font-size:.75rem}.post-toc .tocbot-list{max-height:450px;max-width:250px;overflow:auto;position:relative;padding-right:.875rem}.post-toc .tocbot-list::-webkit-scrollbar{width:6px;height:6px}.post-toc .tocbot-list::-webkit-scrollbar-thumb{width:6px;background-color:#eee;border-radius:2px}.post-toc .tocbot-list ul{list-style:none;position:inherit;overflow:hidden}.post-toc .tocbot-list ul li{margin-left:.25rem}.post-toc .toc-link::before{background-color:#fff}.post-toc .is-active-link::before{background-color:#2d96bd}.post-toc .tocbot-list-menu{margin:1rem .75rem;font-size:.75rem}.post-toc .tocbot-list-menu a{display:block;margin:.375rem 0;color:#999;cursor:pointer}.post-toc .tocbot-list-menu a:hover{color:grey}.toc{overflow-y:auto}.toc>.toc-list{overflow:hidden;position:relative}.toc>.toc-list li{list-style:none}.toc-list{margin:0;padding-left:10px}a.toc-link{color:currentColor;height:100%}.is-collapsible{max-height:1000px;overflow:hidden;transition:all .3s ease-in-out}.is-collapsed{max-height:0}.is-position-fixed{position:fixed!important;top:0}.is-active-link{font-weight:700}.toc-link::before{background-color:#eee;content:' ';display:inline-block;height:inherit;left:0;margin-top:-1px;position:absolute;width:2px}.is-active-link::before{background-color:#54bc4b}@media screen and (max-width:479px){.post-main{padding-top:40pt}.main{padding-top:40pt}.navbar{display:none}.navbar-mobile{display:block!important;position:fixed;width:100%;z-index:100;transition:all .6s ease 0s}.navbar-mobile .container{padding:0;margin:0;line-height:5.5em;background:#fff}.navbar-mobile .container .navbar-header{display:flex;justify-content:space-between;align-items:center;width:100%;padding-right:1em;padding-left:1em;box-sizing:border-box;position:relative}.navbar-mobile .container .navbar-header .search-input{cursor:pointer;width:100px}.navbar-mobile .container .navbar-header .menu-toggle{cursor:pointer;line-height:5.5em;padding:auto 2em}.navbar-mobile .container .navbar-header .menu-toggle span{display:block;background:#000;width:36px;height:2px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-transition:.25s margin .25s,.25s transform;-moz-transition:.25s margin .25s,.25s transform;transition:.25s margin .25s,.25s transform}.dark-theme .navbar-mobile .container .navbar-header .menu-toggle span{background:#a9a9b3}.navbar-mobile .container .navbar-header .menu-toggle span:nth-child(1){margin-bottom:8px}.navbar-mobile .container .navbar-header .menu-toggle span:nth-child(3){margin-top:8px}.navbar-mobile .container .navbar-header .menu-toggle.active span{-webkit-transition:.25s margin,.25s transform .25s;-moz-transition:.25s margin,.25s transform .25s;transition:.25s margin,.25s transform .25s}.navbar-mobile .container .navbar-header .menu-toggle.active span:nth-child(1){-moz-transform:rotate(45deg) translate(4px,6px);-ms-transform:rotate(45deg) translate(4px,6px);-webkit-transform:rotate(45deg) translate(4px,6px);transform:rotate(45deg) translate(4px,6px)}.navbar-mobile .container .navbar-header .menu-toggle.active span:nth-child(2){opacity:0}.navbar-mobile .container .navbar-header .menu-toggle.active span:nth-child(3){-moz-transform:rotate(-45deg) translate(8px,-10px);-ms-transform:rotate(-45deg) translate(8px,-10px);-webkit-transform:rotate(-45deg) translate(8px,-10px);transform:rotate(-45deg) translate(8px,-10px)}.navbar-mobile .container .menu{text-align:center;background:#fff;border-top:1px solid #000;padding-top:1em;padding-bottom:1em;display:none;box-shadow:0 2px 4px rgba(0,0,0,.1),0 4px 8px rgba(0,0,0,.1)}.navbar-mobile .container .menu a{display:inline-block;margin:0 1em;line-height:2.5em}.navbar-mobile .container .menu.active{display:block;white-space:nowrap;box-sizing:border-box;overflow-x:auto}.dark-theme .navbar-mobile .container .menu{background:#292a2d;border-top:2px solid #87878d}.dark-theme .navbar-mobile .container{background:#292a2d!important}.archive{width:90%}.archive .archive-item .archive-item-date{display:none}#dynamic-to-top{display:none!important}.footer{height:3rem;width:100%;text-align:center;line-height:1.5rem;padding-top:2em}.post-warp{padding-top:6em}.post-warp .archive-item-date{display:none}.categories .categories-card .card-item{width:100%;display:flex;min-height:0}.categories .categories-card .card-item .categories{overflow:hidden}}@media screen and (max-width:1023px){.navbar-mobile{display:none}}@media screen and (min-width:1024px){.navbar-mobile{display:none}}@media screen and (max-width:1279px){.post-toc{display:none}}.post-content figure.highlight{margin:2em 0;background:#f7f7f7;color:#4d4d4c;font-size:12px;overflow:scroll;overflow-y:hidden;overflow-x:auto}.post-content figure.highlight .gutter{color:hight-gutter}.post-content figure.highlight pre{background:#f7f7f7;margin:0}.post-content code{padding:2px 4px;background:#f7f7f7;font-family:Menlo,Monaco,Consolas,Courier New,monospace;font-size:12px}.post-content pre{padding:10px;overflow:auto;background:#f7f7f7;font-family:Menlo,Monaco,Consolas,Courier New,monospace}.post-content pre code{padding:0}.post-content pre .deletion{background:#fdd}.post-content pre .addition{background:#dfd}.post-content pre .meta{color:#8959a8}.post-content pre .comment{color:#8e908c}.post-content pre .attribute,.post-content pre .css .class,.post-content pre .css .id,.post-content pre .css .pseudo,.post-content pre .html .doctype,.post-content pre .regexp,.post-content pre .ruby .constant,.post-content pre .tag,.post-content pre .variable,.post-content pre .xml .doctype,.post-content pre .xml .pi,.post-content pre .xml .tag .title{color:#c82829}.post-content pre .built_in,.post-content pre .command,.post-content pre .constant,.post-content pre .literal,.post-content pre .number,.post-content pre .params,.post-content pre .preprocessor{color:#f5871f}.post-content pre .css .rules .attribute,.post-content pre .formula,.post-content pre .header,.post-content pre .inheritance,.post-content pre .number,.post-content pre .ruby .class .title,.post-content pre .ruby .symbol,.post-content pre .special,.post-content pre .string,.post-content pre .value,.post-content pre .xml .cdata{color:#718c00}.post-content pre .css .hexcolor,.post-content pre .title{color:#3e999f}.post-content pre .coffeescript .title,.post-content pre .function,.post-content pre .javascript .title,.post-content pre .perl .sub,.post-content pre .python .decorator,.post-content pre .python .title,.post-content pre .ruby .function .title,.post-content pre .ruby .title .keyword{color:#4271ae}.post-content pre .javascript .function,.post-content pre .keyword{color:#8959a8} \ No newline at end of file diff --git a/assets/styles/main.less b/assets/styles/main.less index 15dbf5c..be5b100 100644 --- a/assets/styles/main.less +++ b/assets/styles/main.less @@ -1,4 +1,122 @@ @charset "UTF-8"; + +/*Reward*/ +.reward { + padding: 5px 0; + float: right; + margin-right: 5px; + margin-top: 5px; +} + +.reward .reward-notice { + font-size: 18px; + line-height: 14px; + margin: 15px auto; + text-align: center +} + +.reward .reward-button { + font-size: 14px; + line-height: 27.5px; + position: relative; + display: block; + width: 30px; + height: 30px; + margin: 0 auto; + padding: 0; + -webkit-user-select: none; + text-align: center; + vertical-align: middle; + color: #fff; + border: 1px solid #f1b60e; + border-radius: 50%; + background: #fccd60; + background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fccd60), color-stop(100%, #fbae12), color-stop(100%, #2989d8), color-stop(100%, #207cca)); + background: -webkit-linear-gradient(top, #fccd60 0, #fbae12 100%, #2989d8 100%, #207cca 100%); + background: linear-gradient(to bottom, #fccd60 0, #fbae12 100%, #2989d8 100%, #207cca 100%) +} + +.reward .reward-code { + position: absolute; + top: -230px; + left: 50%; + display: none; + width: 350px; + height: 200px; + margin-left: -195px; + padding: 15px; + border: 1px solid #e6e6e6; + background: #fff; + box-shadow: 0 1px 1px 1px #efefef +} + +.reward .reward-button:hover .reward-code { + display: block +} + +.reward .reward-code span { + display: inline-block; + width: 150px; + height: 150px +} + +.reward .reward-code span.alipay-code { + float: left +} + +.reward .reward-code span.alipay-code a { + padding: 0 +} + +.reward .reward-code span.wechat-code { + float: right +} + +.reward .reward-code img { + display: inline-block; + float: left; + width: 150px; + height: 150px; + margin: 0 auto; + border: 0 +} + +.reward .reward-code b { + font-size: 14px; + line-height: 26px; + display: block; + margin: 0; + text-align: center; + color: #666 +} + +.reward .reward-code b.notice { + line-height: 2rem; + margin-top: -1rem; + color: #999 +} + +.reward .reward-code:after, +.reward .reward-code:before { + position: absolute; + content: ''; + border: 10px solid transparent +} + +.reward .reward-code:after { + bottom: -19px; + left: 50%; + margin-left: -5px; + border-top-color: #fff +} + +.reward .reward-code:before { + bottom: -20px; + left: 50%; + margin-left: -5px; + border-top-color: #e6e6e6 +} + /*pagination*/ .pagination-container { overflow: hidden; @@ -7,16 +125,20 @@ max-width: 780px; margin: 0 auto; padding-top: 2rem; - .prev, .next { + + .prev, + .next { display: flex; align-items: center; padding: 2px 8px; - background: linear-gradient(180deg,transparent 90%,rgba(101,125,225,.4) 0); + background: linear-gradient(180deg, transparent 90%, rgba(101, 125, 225, .4) 0); } + .prev { - + float: left; } + .next { margin-left: 20px; float: left; @@ -64,95 +186,112 @@ @-webkit-keyframes glitch-loop-1 { 0% { - clip: rect(36px, 9999px, 9px, 0) + clip: rect(36px, 9999px, 9px, 0) } + 25% { - clip: rect(25px, 9999px, 99px, 0) + clip: rect(25px, 9999px, 99px, 0) } + 50% { - clip: rect(50px, 9999px, 102px, 0) + clip: rect(50px, 9999px, 102px, 0) } + 75% { - clip: rect(30px, 9999px, 92px, 0) + clip: rect(30px, 9999px, 92px, 0) } + 100% { - clip: rect(91px, 9999px, 98px, 0) + clip: rect(91px, 9999px, 98px, 0) } } @keyframes glitch-loop-1 { 0% { - clip: rect(36px, 9999px, 9px, 0) + clip: rect(36px, 9999px, 9px, 0) } + 25% { - clip: rect(25px, 9999px, 99px, 0) + clip: rect(25px, 9999px, 99px, 0) } + 50% { - clip: rect(50px, 9999px, 102px, 0) + clip: rect(50px, 9999px, 102px, 0) } + 75% { - clip: rect(30px, 9999px, 92px, 0) + clip: rect(30px, 9999px, 92px, 0) } + 100% { - clip: rect(91px, 9999px, 98px, 0) + clip: rect(91px, 9999px, 98px, 0) } } @-webkit-keyframes glitch-loop-2 { 0% { - top: -1px; - left: 1px; - clip: rect(65px, 9999px, 119px, 0) + top: -1px; + left: 1px; + clip: rect(65px, 9999px, 119px, 0) } + 25% { - top: -6px; - left: 4px; - clip: rect(79px, 9999px, 19px, 0) + top: -6px; + left: 4px; + clip: rect(79px, 9999px, 19px, 0) } + 50% { - top: -3px; - left: 2px; - clip: rect(68px, 9999px, 11px, 0) + top: -3px; + left: 2px; + clip: rect(68px, 9999px, 11px, 0) } + 75% { - top: 0; - left: -4px; - clip: rect(95px, 9999px, 53px, 0) + top: 0; + left: -4px; + clip: rect(95px, 9999px, 53px, 0) } + 100% { - top: -1px; - left: -1px; - clip: rect(31px, 9999px, 149px, 0) + top: -1px; + left: -1px; + clip: rect(31px, 9999px, 149px, 0) } } @keyframes glitch-loop-2 { 0% { - top: -1px; - left: 1px; - clip: rect(65px, 9999px, 119px, 0) + top: -1px; + left: 1px; + clip: rect(65px, 9999px, 119px, 0) } + 25% { - top: -6px; - left: 4px; - clip: rect(79px, 9999px, 19px, 0) + top: -6px; + left: 4px; + clip: rect(79px, 9999px, 19px, 0) } + 50% { - top: -3px; - left: 2px; - clip: rect(68px, 9999px, 11px, 0) + top: -3px; + left: 2px; + clip: rect(68px, 9999px, 11px, 0) } + 75% { - top: 0; - left: -4px; - clip: rect(95px, 9999px, 53px, 0) + top: 0; + left: -4px; + clip: rect(95px, 9999px, 53px, 0) } + 100% { - top: -1px; - left: -1px; - clip: rect(31px, 9999px, 149px, 0) + top: -1px; + left: -1px; + clip: rect(31px, 9999px, 149px, 0) } } + /*Like*/ .Like { width: 100px; @@ -322,7 +461,6 @@ -webkit-transform: translateY(-8px); transform: translateY(-8px); } - .post-item { display: flex; border-radius: 5px; @@ -454,6 +592,7 @@ padding: 1px 0px 0px 0px; line-height: 1.2em; letter-spacing: 0.05em; + &:before { content: ""; position: absolute; diff --git a/config.json b/config.json index 0ee8343..e348145 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,6 @@ { "name": "Chic-给我的主题来个Star呗!🎉", - "version": "1.6.8", + "version": "1.6.9", "author": "@ITJoker (原作者:@Bentham)", "repository": "https://github.com/ITJoker233/Gridea-theme-Chic", "customConfig": [{ @@ -43,6 +43,22 @@ } ] }, + { + "name": "list", + "label": "目录显示", + "group": "网站信息", + "value": "off", + "type": "select", + "options": [{ + "label": "开", + "value": "on" + }, + { + "label": "关", + "value": "off" + } + ] + }, { "name": "icpinfo", "label": "* 备案信息", @@ -209,11 +225,11 @@ "name": "version", "label": "主题版本", "group": "主题设置", - "value": "1.6.8", + "value": "1.6.9", "type": "select", "options": [{ "label": "最新版本", - "value": "1.6.8" + "value": "1.6.9" }] }, { @@ -249,6 +265,7 @@ } ] }, + { "name": "ga", "label": "跟踪 ID", @@ -435,6 +452,70 @@ "value": "off" } ] + }, + { + "name": "donate", + "label": "赞助插件", + "group": "赞助插件", + "value": "on", + "type": "select", + "options": [{ + "label": "开", + "value": "on" + }, + { + "label": "关", + "value": "off" + } + ] + }, + { + "name": "donate_wechat", + "label": "微信支付二维码链接", + "group": "赞助插件", + "value": "https://blog.itjoker.cn/wechat.jpg", + "type": "input", + "note": "请输入微信支付二维码链接(支持base64格式)" + }, + { + "name": "donate_alipay", + "label": "支付宝收钱二维码链接", + "group": "赞助插件", + "value": "https://blog.itjoker.cn/alipay.jpg", + "type": "input", + "note": "请输入支付宝收钱二维码链接(支持base64格式)" + }, + { + "name": "love_click_animation", + "label": "爱心点击特效", + "group": "点击特效插件", + "value": "on", + "type": "select", + "options": [{ + "label": "开", + "value": "on" + }, + { + "label": "关", + "value": "off" + } + ] + }, + { + "name": "support_author", + "label": "🎉支持作者", + "group": "🎉支持作者", + "value": "on", + "type": "select", + "options": [{ + "label": "开", + "value": "on" + }, + { + "label": "关", + "value": "off" + } + ] } ] } \ No newline at end of file diff --git a/templates/include/footer.ejs b/templates/include/footer.ejs index 1fa57c6..8dc8b68 100644 --- a/templates/include/footer.ejs +++ b/templates/include/footer.ejs @@ -3,39 +3,38 @@ <% } %>