From 5767399a42ae21013ae7e783327760db2eef9387 Mon Sep 17 00:00:00 2001 From: ITJoker233 <649258008@qq.com> Date: Sun, 12 Jan 2020 15:31:46 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89Update=20Version=201.5.8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +- assets/media/css/style.css | 3 + assets/media/css/style.min.css | 2 +- assets/styles/main.less | 148 ++++++++++++++++++ config.json | 6 +- templates/friends.ejs | 85 +++++----- templates/include/post-list.ejs | 69 ++++++++ templates/posts.ejs | 24 +++ ...3\346\215\267\346\226\271\345\274\217.lnk" | Bin 815 -> 0 bytes 9 files changed, 298 insertions(+), 49 deletions(-) create mode 100644 templates/include/post-list.ejs create mode 100644 templates/posts.ejs delete mode 100644 "themes - \345\277\253\346\215\267\346\226\271\345\274\217.lnk" diff --git a/README.md b/README.md index 8ed00d6..60f3eca 100644 --- a/README.md +++ b/README.md @@ -44,15 +44,17 @@ - [ ] 增加相关的Web特效~ - More... -## 📌当前版本:1.5.7 +## 📌当前版本:1.5.8 1. (刚开始使用这个主题的请忽略这句话) 2. 由于Gridea客户端不支持直接获取主题版本,所以换了一个方法获取当前主题的版本号,(如果Gridea的客户端一直不支持获取的话,那么就采用这个方法,如果支持了就不必这一步。) 3. 因此在旧版本的基础上的解决方法:```请重新启动Gridea客户端,然后点击下主题->自定义配置->主题版本->选择最新版本->保存``` 4. 音乐插件------(详细教程见:https://blog.itjoker.cn/post/azQ6rNbFG/) +5. 文章列表------在菜单里面添加的link为:```/posts``` ## 🌈下载地址 -- [v1.5.7(当前版本)](https://github.com/ITJoker233/Gridea-theme-Chic/releases/tag/1.5.7) +- [v1.5.8(当前版本)](https://github.com/ITJoker233/Gridea-theme-Chic/releases/tag/1.5.8) +- [v1.5.7](https://github.com/ITJoker233/Gridea-theme-Chic/releases/tag/1.5.7) - [v1.5.6](https://github.com/ITJoker233/Gridea-theme-Chic/releases/tag/1.5.6) - [v1.5.5](https://github.com/ITJoker233/Gridea-theme-Chic/releases/tag/1.5.5) - [v1.5.4](https://github.com/ITJoker233/Gridea-theme-Chic/releases/tag/1.5.4) @@ -70,9 +72,9 @@ ## 🔖本次更新日志 ### 本次更新了以下内容: -1. 在文章目录支持显示阅读时间和文章字数,以及显示目录 +1. 增加了显示文章列表 2. 下次更新未知.... -3. 本次更新时间为:2020.01.12 01:26 +3. 本次更新时间为:2020.01.12 15:30 ## 📢作者留言 diff --git a/assets/media/css/style.css b/assets/media/css/style.css index 0c311df..66ea1d5 100644 --- a/assets/media/css/style.css +++ b/assets/media/css/style.css @@ -1193,6 +1193,9 @@ a.toc-link { } @media screen and (max-width: 479px) { + .post-main { + padding-top: 40pt; + } .main { padding-top: 40pt; } diff --git a/assets/media/css/style.min.css b/assets/media/css/style.min.css index d309e9f..6594a1e 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:100vh;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:.8em}.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:12rem;width:15rem;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){.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 .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: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:100vh;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:.8em}.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:12rem;width:15rem;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 .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 df7bc03..f2e1f28 100644 --- a/assets/styles/main.less +++ b/assets/styles/main.less @@ -79,6 +79,154 @@ transform: translate(-50%, -.2rem) } +/*Posts*/ +.post-main { + flex-grow: 1; + flex-shrink: 0; + flex-basis: auto; + margin-top: 80px; +} + +.post-list { + border-radius: 5px; + max-width: 800px; + padding: 0 10px; + margin-left: auto; + margin-right: auto; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.dark-theme { + .post-item { + background-color: #424242; + box-shadow: 1px 5px 10px -5px #444; + + &:hover { + background-color: #e0e0e0; + box-shadow: 1px 5px 10px -5px #888; + -webkit-transform: translateY(-8px); + transform: translateY(-8px); + + span { + color: #161209; + } + + a { + color: #161209; + text-decoration: none; + transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease; + + &:hover { + color: #2d96bd; + text-decoration: none; + transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease; + } + } + } + } +} + +.post-item { + display: flex; + border-radius: 5px; + justify-content: space-between; + margin-top: 25px; + padding: 32px 10px; + max-height: 200px; + box-shadow: 1px 5px 10px -5px #444; + position:relative; + .content { + flex: 1; + + .post-abstract { + font-size: 14px; + margin: 16px 0 8px; + flex: 1; + color: #4E616C; + overflow: hidden; + line-height: 24px; + position: relative; + display: -webkit-box; + overflow: hidden; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical; + + strong { + font-weight: bolder; + } + + a { + font-weight: 600; + background-color: transparent; + color: #161209; + text-decoration: none; + transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease; + cursor: pointer; + + &:hover { + color: #2d96bd; + text-decoration: none; + transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease; + } + } + + code { + padding: 0 3px; + margin: 0 2px; + background: rgba(195, 195, 195, 0.41); + font-size: 0.9em; + border-radius: 2px; + } + + } + } + + .feature-container { + margin-left: 16px; + flex-shrink: 0; + width: 240px; + height: 135px; + position: relative; + overflow: hidden; + background-size: cover; + background-position: center; + border-radius: 5px; + } + + @media screen and (max-width: 479px) { + .feature-container { + width: 160px; + height: 90px; + margin-top: 25%; + } + } + + &:hover { + background-color: #424242; + box-shadow: 1px 5px 10px -5px #888; + -webkit-transform: translateY(-8px); + transform: translateY(-8px); + + span { + color: #bdbdbd; + } + + a { + color: #bdbdbd; + text-decoration: none; + transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease; + + &:hover { + color: #fafafa; + text-decoration: none; + transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease; + } + } + } +} + /*Friends*/ .friend-box { float: left; diff --git a/config.json b/config.json index c2c94d6..4ba4fc2 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,6 @@ { "name": "Chic-给我的主题来个Star呗!🎉", - "version": "1.5.7", + "version": "1.5.8", "author": "@ITJoker (原作者:@Bentham)", "repository": "https://github.com/ITJoker233/Gridea-theme-Chic", "customConfig": [{ @@ -60,11 +60,11 @@ "name": "version", "label": "主题版本", "group": "网站信息", - "value": "1.5.7", + "value": "1.5.8", "type": "select", "options": [{ "label": "最新版本", - "value": "1.5.7" + "value": "1.5.8" }] }, { diff --git a/templates/friends.ejs b/templates/friends.ejs index 6417a47..64359a0 100644 --- a/templates/friends.ejs +++ b/templates/friends.ejs @@ -1,54 +1,57 @@ + <% if(site.customConfig.language == "zh"){%> - <%- include('./include/head', { siteTitle: `友链 | ${themeConfig.siteName}` }) %> - <% }else{%> - <%- include('./include/head', { siteTitle: `Friends | ${themeConfig.siteName}` }) %> - <%}%> + <%- include('./include/head', { siteTitle: `\u53CB\u94FE | ${themeConfig.siteName}` }) %> + <% }else{%> + <%- include('./include/head', { siteTitle: `Friends | ${themeConfig.siteName}` }) %> + <%}%> +
<%- include('./include/header') %> -
-
-
-
-

- 友链 -

-

- Friends -

-
-
- <% if (site.customConfig.friends) { %> - <% site.customConfig.friends.forEach(function(friend) { %> -
- -
- -
-
- <% if (typeof commentSetting !== 'undefined' && commentSetting.showComment) { %> - <% if (commentSetting.commentPlatform === 'gitalk') { %> - <%- include('./include/gitalk') %> - <% } %> - <% if (commentSetting.commentPlatform === 'disqus') { %> - <%- include('./include/disqus') %> - <% } %> - <% } %> + + <% if (typeof commentSetting !== 'undefined' && commentSetting.showComment) { %> + <% if (commentSetting.commentPlatform === 'gitalk') { %> + <%- include('./include/gitalk') %> + <% } %> + <% if (commentSetting.commentPlatform === 'disqus') { %> + <%- include('./include/disqus') %> + <% } %> + <% } %> <%- include('./include/footer') %> - + + \ No newline at end of file diff --git a/templates/include/post-list.ejs b/templates/include/post-list.ejs new file mode 100644 index 0000000..af186b3 --- /dev/null +++ b/templates/include/post-list.ejs @@ -0,0 +1,69 @@ +<% site.posts.forEach(function(post) { %> +<% if(!post.hideInList){%> +<%if(post.isTop){ %> +
+
+ +

+ <%= post.title %> +

+
+
+ <%- post.abstract %> +
+ +
+ <% if (themeConfig.showFeatureImage && post.feature) { %> + +
+
+
+ <% } %> +
+<% } %> +<% } %> +<% }); %> +<% site.posts.forEach(function(post) { %> +<% if(!post.hideInList){%> +
+
+ +

+ <%= post.title %> +

+
+
+ <%- post.abstract %> +
+ +
+ <% if (themeConfig.showFeatureImage && post.feature) { %> + +
+
+
+ <% } %> +
+<% } %> +<% }); %> \ No newline at end of file diff --git a/templates/posts.ejs b/templates/posts.ejs new file mode 100644 index 0000000..f95acb2 --- /dev/null +++ b/templates/posts.ejs @@ -0,0 +1,24 @@ + + + + + <% if(site.customConfig.language == "zh"){%> + <%- include('./include/head', { siteTitle: `\u6587\u7AE0 | ${themeConfig.siteName}` }) %> + <% }else{%> + <%- include('./include/head', { siteTitle: `Posts | ${themeConfig.siteName}` }) %> + <%}%> + + + +
+ <%- include('./include/header') %> +
+
+ <%- include('./include/post-list') %> +
+
+
+ <%- include('./include/footer') %> + + + \ No newline at end of file diff --git "a/themes - \345\277\253\346\215\267\346\226\271\345\274\217.lnk" "b/themes - \345\277\253\346\215\267\346\226\271\345\274\217.lnk" deleted file mode 100644 index 96e1236e1740fb8d0bb6a7da1fd800555704fdcc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 815 zcmeZaU|?VrVFHp23{;&q9C!^Xd639$V8Ibcu5ypX8^Ean6lrUrf&C3O1pjM!n3=FP7ECa+K z9U$5mh(W*wh{b`J8APAu1c%F&En9vadd&dzGQ>wQFh?*k=mB8@MEQaUAPoYUC0Y5| zsYMVDkgPlDTv|{a?y^VAPwdCVb&>D8%