01月14, 2019

对 Firekylin 的一些小修改

最近 Firekylin 又出新版本了,我看了看,没有关乎安全方面的更新。考虑到我已经做了一些花里胡哨的小修改,就没有升级到新版本。

(2019-01-21) 感谢公子学长的提醒!!!打包成主题就可以更新了。


取消代码折叠(Chrome)

手机上代码折叠啥的简直反人类,于是取消了。改为滑动浏览,仅限 Chrome 浏览器。

article.css下添加如下部分:

article .firekylin-code > ul {
  width: max-content;
}
article .entry-content pre code {
  max-width: fit-content;
}

取消表格溢出

在手机端浏览时,过宽的表格会撑开页面,所以溢出的部分改用滑动浏览。

用 JS 给所有table套一层div,把div样式中的overflow-x设置为auto即可。

代码如下:

var divtable = document.getElementsByTagName('table'); 
var len = divtable.length;
for(var i=0;i<len;i++)
{
    var div = document.createElement('div');
    div.setAttribute("style", "overflow-x:auto");
    divtable[i].parentNode.insertBefore(div, divtable[i].nextSibling);
    div.appendChild(divtable[i]);
}

加入图片放大浏览功能

在手机上看博客的时候,图片很小,却没有办法放大,影响使用体验。于是增加了点击图片时放大浏览的功能。


post.html 修改部分
......
<div class="entry-content">
        ......
</div>
<div id="outerdiv" style="position:fixed;top:0;left:0;background:rgba(0,0,0,0.7);z-index:2;width:100%;height:100%;display:none;">
    <p class="x-scroll" id="left-scroll"><b>&lt;&lt;</b></p>
    <p class="x-scroll" id="right-scroll"><b>&gt;&gt;</b></p>
    <p class="y-scroll" id="top-scroll"><b></b></p>
    <p class="y-scroll" id="bottom-scroll"><b></b></p>
    <div id="innerdiv" style="position:fixed;overflow:auto;top:0;left:0;width:100%;height:100%;">
        <img id="bigimg" src=""/>
    </div>
</div>
......

article.css 添加部分
article #bigimg { 
  padding: 0;
  display:block;
  margin:0 0 0 0;
  max-width: none;
}

article #left-scroll {
    position: fixed;
    left: 1%;
    top: 50%;
    transform: translateY(-50%);
    color: crimson;
    z-index: 10;
}

article #right-scroll {
    position: fixed;
    right: 1%;
    top: 50%;
    transform: translateY(-50%);
    color: crimson;
    z-index: 10;
}

article #top-scroll {
    position: fixed;
    left: 50%;
    top: 1%;
    transform: translateX(-50%);
    color: crimson;
    font-size: larger;
    z-index: 10;
}

article #bottom-scroll {
    position: fixed;
    left: 50%;
    bottom: 1%;
    transform: translateX(-50%);
    color: crimson;
    font-size: larger;
    z-index: 10;
}

JS(jquery1.8.0)
$(function(){  
    $(".pimg").click(function(){  
        var _this = $(this);
        imgShow("#outerdiv", "#innerdiv", "#bigimg", _this);  
    });  
});  
function imgShow(outerdiv, innerdiv, bigimg, _this){
        var src = _this.attr("src");
        var body = $("body");
        $(bigimg).attr("src", src);
        $("<img/>").attr("src", src).load(function(){
                body.attr("style", "overflow: hidden");
                var windowW = $(window).width();
                var windowH = $(window).height();
                var realWidth = this.width;
                var realHeight = this.height;
                var imgWidth, imgHeight;
                imgWidth = realWidth;
                imgHeight = realHeight;
                var w = (windowW-imgWidth)/2;
                var h = (windowH-imgHeight)/2;
                $(outerdiv).css({"z-index":10});
                if(windowW>imgWidth) {
                        $("p.x-scroll").css({"display":"none"});
                        $(innerdiv).css({"width":imgWidth, "left":w});
                }
                else {
                        $("p.x-scroll").css({"display":"inline"});
                        $(innerdiv).css({"width":"90%", "left":"5%"});
                }
                if(windowH>imgHeight) {
                        $("p.y-scroll").css({"display":"none"});
                        $(innerdiv).css({"height":imgHeight, "top":h});
                }
                else {
                        $("p.y-scroll").css({"display":"inline"});
                        $(innerdiv).css({"height":"80%", "top":"10%"});
                }
                $(outerdiv).fadeIn("fast");
        });
        $(outerdiv).click(function(){
                $(this).fadeOut("fast");
                body.removeAttr("style");
        });
}

外观修改

修改了大部分配色,改成了以红黑为主的色调。(好吧其实是我不想复习近代史。)


文章样式

article.css
article {
  border-bottom:1px solid #DC143C;
  border-top:1px solid #202020;
  position:relative;
  padding:30px 0;
  word-wrap: break-word;
}


article .meta {
  position:relative;
  float:right;
  color:#ccc;
  font-size: .9em;
  line-height: 2;
  width:auto;
  text-align:right;
}

article .meta a {
  color:#999;
}

article .meta .date,
article .meta .comment,
article .meta .tags {
  position:relative;
}

article h1.title {
  color:#fff;
  font-size:2em;
  font-weight:300;
  line-height:35px;
  margin-bottom:25px;
}

article h1.title a {
  color:#fff;
}

article h1.title a:hover {
  color:crimson;
  transition:color .3s;
}

article button,
article input.runcode { 
  line-height: 1;
  border: none;
  cursor: pointer; 
  padding: 0.625em 0.5em;
  box-shadow: inset 0 -5px 20px rgba(0, 0, 0, .1);
  background:#12b0e6;
  color:#fff;
  font-size:14px;
  margin-top:10px;
  -webkit-appearance: button;
}

article input.runcode:hover,
article input.runcode:focus,
article input.runcode:active {
  background: #f6ad08;
}

article strong {
  font-weight:700;
}

article em {
  font-style:italic;
}

article blockquote {
  margin:10px 0 0 0;
  padding:15px 20px;
  border-left:5px solid crimson;
  background-color: #303030;
}

article blockquote p{
  margin-bottom: 0;
}

article blockquote a{
  word-break: break-all;
  word-wrap: break-word;
}

article code {
    font-family: "Consolas","Courier New",Courier,mono,serif;
  font-size: 80%;
  margin: 0 2px;
  padding: 4px 5px;
  background-color: #444444;
  vertical-align: middle;
  border-radius: 5px;
}

article pre {    
  font-family: "Consolas","Liberation Mono",Courier,monospace;
    font-size: 14px;
    line-height: 1.6;
  color: #5d6a6a;
  padding: 0.6em;
  border-left:5px solid #ccc;
  word-break: break-all;
  word-wrap: break-word;
  white-space: pre-wrap;
  position: relative;
  overflow: hidden;
}

article pre code{
  border-radius: 0 0 0 0 ;
  background-color: transparent ;
  border: 0 ;
  padding: 0;
  margin: 0;
  font-size: 100%;
  display: block;
  position: relative;
}

article pre b.name {
  position: absolute;
  line-height: 1;
  top: 10px;
  right: 10px;
  font-size: 30px;
  color: white;
  opacity: 0.3;
  pointer-events: none;
}
@media screen and (max-width:768px) {
  article pre b.name {
    font-size: 30px;
  }
}

article img { 
  padding: 0;
  display:block;
  margin:10px 0 5px 0;
  max-width: 100%;
}

article table {
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
}

article table th,
article table td {
  border: 0;
}

article table th { 
  border: 1px solid #aaa; 
  text-align: left; 
  padding: 6px 20px;
}

article table td {
  border: 1px solid #aaa; 
  padding: 6px 20px;
}

article hr {
  background-color: crimson;
  border:none;
  height:1px;
}

article .expire-tips {
  padding: 5px 10px;
  font-size: 15px;
  border: 1px solid #e2e2e2;
  background-color: #ffffc0;
  border-left: 5px solid #fff000;
  color: #333;
}

article .aliyun-tips {
  padding: 5px 10px;
  font-size: 15px;
  border: 1px solid #e2e2e2;
  background-color:#f0f8f4;
    border-left: 5px solid #7cc4a0;
}

article .post-info {
  font-size:14px;
  color:#ddd;
}

article .entry-content {
  font-size: 16px;
  line-height:1.8;
  word-wrap:break-word;
  color: #ddd;
  background-color: #202020;
}

article .entry-content .date {
  color:#999;
  font-size:14px;
  font-style:italic;
}

/*article .entry-content a:hover {
  text-decoration:underline;
}*/

article .entry-content p,
article .entry-content blockquote,
article .entry-content ul,
article .entry-content ol,
article .entry-content dl,
article .entry-content table,
article .entry-content iframe,
article .entry-content h1,
article .entry-content h2,
article .entry-content h3,
article .entry-content h4,
article .entry-content h5,
article .entry-content h6,
article .entry-content p,
article .entry-content pre {
  margin-top:15px;
}

article .entry-content ul ul,
article .entry-content ul ol,
article .entry-content ul dl,
article .entry-content ol ul,
article .entry-content ol ol,
article .entry-content ol dl,
article .entry-content dl ul,
article .entry-content dl ol,
article .entry-content dl dl,
article .entry-content blockquote > p:first-of-type {
  margin-top:0;
}

article .entry-content ul,
article .entry-content ol,
article .entry-content dl {
  margin-left:25px;
}



/*** page-tag ***/


article.tags section a {
  display: inline-block;
  font-size: 14px;
  padding: 0 15px;
  height: 40px;
  line-height: 40px;
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(220,20,60,.8);
  border-radius: 4px;
  margin: 0 15px 10px 0;
  text-decoration: none;
  -webkit-transition: color .2s cubic-bezier(.4,.01,.165,.99),border .2s cubic-bezier(.4,.01,.165,.99);
  transition: color .2s cubic-bezier(.4,.01,.165,.99),border .2s cubic-bezier(.4,.01,.165,.99);
}
article.tags section a:hover {
  color: crimson;
  border: 1px solid crimson;
}
a.anchor {
  display: block;
  position: relative;
  visibility: hidden;
}

/* 文章内代码行号高亮 */
article .firekylin-code > ul {
  list-style: decimal;
  background-color: #232323;
  margin: 0;
  margin-left: 40px;
  padding: 0;
}
article .firekylin-code li {
  list-style: decimal-leading-zero;
  border-left: 1px solid #323232;
  padding-left: 2px;
  position: relative;
}
article .firekylin-code li.mark {
  background-color: #434343 !important;
}
article .firekylin-code li:hover {
  background-color: #434343 !important;
}
article .firekylin-code .line-num {
  width: 40px;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  left: -40px;
  cursor: pointer;
}
article .firekylin-code li:nth-of-type(even) {
  background-color: #181818;
  color: inherit;
}
article .entry-content pre .firekylin-code {
  background-color: #323232;
}
/*下面是覆盖默认样式, 为了防闪动*/
article pre {
  border-left: none;
  padding: 0;  
}
article .entry-content pre code {
  font-size: 12px;
  background-color: #202020;
  border: 1px solid  #202020;
  padding: 0;
  line-height: 26px;
}
/** toc 目录样式 **/
.toc {
  float: right;
  border: 1px solid crimson;
  font-size: 14px;
  margin: 0 0 15px 20px;
  max-width: 260px;
  min-width: 120px;
  padding: 6px;
  background: #FFF;
  background-color: #202020;
}
.toc::before {
  content: '文章目录';
  font-weight: bold;
  border-bottom: 1px solid crimson;
  display: block;
}
.toc:empty {
    display: none;
}
@media screen and (max-width: 640px) {
  .toc {
      float: none;
  }
}
.toc a{
    color: #ddd;
}
progress {
    border: none;
    border-top-right-radius: 100px;
    border-bottom-right-radius: 100px;
    background-color:#fff;
    color: crimson; /*IE10*/
}

progress::-moz-progress-bar { background: crimson; border-bottom-right-radius: 100px; border-top-right-radius: 100px; }
progress::-moz-progress-inner-element { border-bottom-right-radius: 100px; border-top-right-radius: 100px; }
progress::-webkit-progress-bar { background: #fff; border-bottom-right-radius: 100px; border-top-right-radius: 100px; }
progress::-webkit-progress-value  { background: crimson; border-bottom-right-radius: 100px; border-top-right-radius: 100px; }
progress::-webkit-progress-inner-element { border-radius: 4px; }

::selection {
  background-color:black;
  color:crimson;
}
::-moz-selection {
  background-color:black;
  color:crimson;
}

article #left-scroll {
    position: fixed;
    left: 1%;
    top: 50%;
    transform: translateY(-50%);
    color: crimson;
    z-index: 10;
}
article #right-scroll {
    position: fixed;
    right: 1%;
    top: 50%;
    transform: translateY(-50%);
    color: crimson;
    z-index: 10;
}
article #top-scroll {
    position: fixed;
    left: 50%;
    top: 1%;
    transform: translateX(-50%);
    color: crimson;
    font-size: larger;
    z-index: 10;
}
article #bottom-scroll {
    position: fixed;
    left: 50%;
    bottom: 1%;
    transform: translateX(-50%);
    color: crimson;
    font-size: larger;
    z-index: 10;
}

基本主体样式

base.css
body {
  margin: 0;
  padding: 0;
  color: #666;
  background-color: #202020;
  -webkit-text-size-adjust: none;
  -webkit-transition: -webkit-transform .2s cubic-bezier(.4,.01,.165,.99);
  transition: -webkit-transform .2s cubic-bezier(.4,.01,.165,.99);
  transition: transform .2s cubic-bezier(.4,.01,.165,.99);
  transition: transform .2s cubic-bezier(.4,.01,.165,.99),-webkit-transform .2s cubic-bezier(.4,.01,.165,.99);
  -webkit-tap-highlight-color: transparent;
  font-family: "Helvetica Neue",Arial,"Hiragino Sans GB",STHeiti,"Microsoft YaHei";
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
}
body,
html {
  width: 100%;
  height: 100%;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}
a,a:hover {
  color: #DC143C;
  text-decoration: none;
}
ul,ol{padding: 0}
* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
body.side {
  position: fixed;
  -webkit-transform: translate3D(250px,0,0);
  -ms-transform: translate3D(250px,0,0);
  transform: translate3D(250px,0,0);
}

#main {
  color: #ddd;
  background-color: #202020;
  padding-left: 290px;
  padding-right: 40px;
  max-width: 1390px;
  -webkit-overflow-scrolling: touch;
}
h1.intro{
    padding: 20px 30px;
  background-color: #202020;
  text-align: center;
  color: #999;
  border-bottom: 1px solid crimson;
}

底部样式

footer.css
#footer {
  line-height:1.8;
  text-align:center;
  padding:15px;
  border-top:1px solid #DC143C;
  font-size:.9em;
  color:#888;
}

#footer .beian {
  color:#888;
}

头部样式

header.css
#header {
  display: none;
}

#header {
  width: 100%;
  height: 50px;
  line-height: 50px;
  overflow: hidden;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9;
  background-color: #323436;
}
body.side #header .btn-bar:before {
  width: 24px;
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
  top: 25px;
}
body.side #header .btn-bar:after {
  width: 24px;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  bottom: 24px;
}
body.side #header .btn-bar i {
  opacity: 0;
}
#header h1 {
  background-color: #101010;
  text-align: center;
  font-size: 16px;
}
#header h1 a {
  color: #bbbbbb;
}
#header .btn-bar {
  width: 50px;
  height: 50px;
  position: absolute;
  left: 0;
  top: 0;
}
#header .btn-bar i,
#header .btn-bar:after,
#header .btn-bar:before {
  width: 22px;
  height: 1px;
  position: absolute;
  left: 14px;
  background-color: crimson;
  -webkit-transition: all .2s cubic-bezier(.4,.01,.165,.99) .3s;
  transition: all .2s cubic-bezier(.4,.01,.165,.99) .3s;
}

#header .btn-bar i {
  top: 25px;
  opacity: 1;
}
#header .btn-bar:before {
  content: '';
  top: 17px;
}
#header .btn-bar:after {
  content: '';
  bottom: 16px;
}
#header a.me,
#header a.me img {
  width: 30px;
  height: 30px;
  border-radius: 30px;
  overflow: hidden;
}
#header a.me {
  position: absolute;
  right: 10px;
  top: 10px;
}

代码高亮(使用 VS 的经典配色)

highlight.css
/*
 * Visual Studio 2015 dark style
 * Author: Nicolas LLOBERA <nllobera@gmail.com>
 */

.hljs {
  display: block;
  overflow-x: auto;
  padding: 0.5em;
  background: #1E1E1E;
  color: #DCDCDC;
}

.hljs-keyword,
.hljs-literal,
.hljs-symbol,
.hljs-name {
  color: #569CD6;
}
.hljs-link {
  color: #569CD6;
  text-decoration: underline;
}

.hljs-built_in,
.hljs-type {
  color: #4EC9B0;
}

.hljs-number,
.hljs-class {
  color: #B8D7A3;
}

.hljs-string,
.hljs-meta-string {
  color: #D69D85;
}

.hljs-regexp,
.hljs-template-tag {
  color: #9A5334;
}

.hljs-subst,
.hljs-function,
.hljs-title,
.hljs-params,
.hljs-formula {
  color: #DCDCDC;
}

.hljs-comment,
.hljs-quote {
  color: #57A64A;
  font-style: italic;
}

.hljs-doctag {
  color: #608B4E;
}

.hljs-meta,
.hljs-meta-keyword,
.hljs-tag {
  color: #9B9B9B;
}

.hljs-variable,
.hljs-template-variable {
  color: #BD63C5;
}

.hljs-attr,
.hljs-attribute,
.hljs-builtin-name {
  color: #9CDCFE;
}

.hljs-section {
  color: gold;
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: bold;
}

/*.hljs-code {
  font-family:'Monospace';
}*/

.hljs-bullet,
.hljs-selector-tag,
.hljs-selector-id,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo {
  color: #D7BA7D;
}

.hljs-addition {
  background-color: #144212;
  display: inline-block;
  width: 100%;
}

.hljs-deletion {
  background-color: #600;
  display: inline-block;
  width: 100%;
}

图标样式

icon.css
@font-face {
  font-family: iconfont;
  src: url(../font/iconfont.eot);
  src: url(../font/iconfont.eot?#iefix) format("embedded-opentype"),url(../font/iconfont.ttf) format("truetype"),url(../font/iconfont.svg#iconfont) format("svg");
}
.iconfont {
  font-family: iconfont!important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: .2px;
  -moz-osx-font-smoothing: grayscale;
}

.icon-weibo:before {
  content: "\e600";
}
.icon-archive:before {
  content: "\e601";
  color: crimson;
}
.icon-user:before {
  content: "\e602";
  color: crimson;
}
.icon-rss-v:before {
  content: "\e603";
}
.icon-tags:before {
  content: "\e604";
}
.icon-home:before {
  content: "\e605";
}
.icon-search:before {
  content: "\e606";
}
.icon-googleplus:before {
  content: "\e607";
}
.icon-weixin:before {
  content: "\e608";
}
.icon-mail:before {
  content: "\e609";
}
.icon-twitter-v:before {
  content: "\e60a";
}
.icon-linkedin:before {
  content: "\e60b";
}
.icon-stackoverflow:before {
  content: "\e60c";
}
.icon-github-v:before {
  content: "\e60d";
}
.icon-facebook:before {
  content: "\e60e";
}
.icon-right:before {
  content: "\e60f";
}
.icon-left:before {
  content: "\e610";
}
.icon-link:before {
  content: "\e611";
}
.icon-https:before {
  content: "\e612";
}

换页选项样式

pagination.css
.pagination {
  width:100%;
  line-height:20px;
  position:relative;
  border-top:1px solid #202020;
  padding:20px 0;
  overflow:hidden;
}

.pagination .prev {
  float:left;
}

.pagination .next {
  float:right;
}
.pagination .center {
  text-align:center;
  width:80px;
  margin:auto;
}

.pagination a {
  color:#bbbbbb;
}

响应部分样式

responsive.css
@media screen and (max-width:768px) {
  #header {
    -webkit-transform: translate3D(0,0,0);
    -ms-transform: translate3D(0,0,0);
    transform: translate3D(0,0,0);
    -webkit-transition: all .2s cubic-bezier(.4,.01,.165,.99);
    transition: all .2s cubic-bezier(.4,.01,.165,.99);
    display: block;
  }
  a.anchor {
    top: -50px;
  }
}

@media screen and (max-width:768px) {
  #sidebar.behavior_1 {
    -webkit-transform: translate3D(-250px,0,0);
    -ms-transform: translate3D(-250px,0,0);
    transform: translate3D(-250px,0,0);
  }
  #sidebar.behavior_2 {
    -webkit-transform: translate3D(0,0,0);
    -ms-transform: translate3D(0,0,0);
    transform: translate3D(0,0,0);
  }
  #sidebar {
    -webkit-transition: -webkit-transform .2s cubic-bezier(.4,.01,.165,.99);
    transition: -webkit-transform .2s cubic-bezier(.4,.01,.165,.99);
    transition: transform .2s cubic-bezier(.4,.01,.165,.99);
    transition: transform .2s cubic-bezier(.4,.01,.165,.99),-webkit-transform .2s cubic-bezier(.4,.01,.165,.99);
  }
  #sidebar .profile {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  #sidebar .profile a,
  #sidebar .profile img {
    width: 100px;
    height: 100px;
    border-radius: 100px;
  }
  #sidebar .profile span {
    display: none;
  }
}

@media screen and (min-width:769px) and (max-width:1024px) {
  #sidebar {
    width: 75px;
  }
  #sidebar .profile {
    padding-top: 20px;
  }
  #sidebar .profile a,
  #sidebar .profile img {
    width: 40px;
    height: 40px;
    border-radius: 40px;
  }
  #sidebar .profile span {
    display: none;
  }
  #sidebar .buttons li a {
    padding: 0;
  }
  #sidebar .buttons li a.inline {
    width: 100%;
  }
  #sidebar .buttons li a i {
    font-size: 18px;
    display: block;
    margin: 0 auto;
  }
  #sidebar .buttons li a span {
    display: none;
  }
}

@media screen and (min-width:768px) and (max-width:1024px) {
  #main {
    padding-left: 115px;
  }
}

@media screen and (max-width:769px) {
  #main {
    width: 100%;
    min-height: 100%;
    padding-top: 50px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media screen and (max-width:769px) {
  article {
    background-color: #202020;
    padding: 10px;
  }
  article .meta {
    display: none;
  }
  article h1 {
    font-size: 22px;
    padding: 5px 0 10px;
    margin: 0;
  }
  article .desc {
    color: #999;
    font-size: 14px;
  }
  article p.more {
    font-size: 14px;
    margin: 5px 0;
  }
}

搜索栏样式

search.css
#search .wrapper {
  margin-right: 72px;
}

#search form {
  position:relative;
}

#search .wrapper input {
  -webkit-appearance: none;
  border: 1px solid crimson;
  background:rgba(0, 0, 0, 0);
  border-radius: 0;
  box-sizing: border-box;
  display: block;
  font-size: 16px;
  height: 40px;
  outline: 0;
  padding: 4px 6px;
  width: 100%;
  color: crimson;
}

#search .submit {
  -webkit-appearance: none;
  background-color:rgba(0, 0, 0, 0);
  border: 1px solid crimson;
  border-left: 0;
  border-radius: 0;
  color: #bbb;
  display: block;
  font-size: 16px;
  height: 40px;
  outline: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 72px;
}

#searchResult {
  min-height:350px;
  overflow-x:hidden;
}

#searchResult .info {
  color: #999;
  font-size: 13px;
  padding: 15px 0;
  border-bottom:1px solid crimson;
}

#searchResult .no-result {
  padding: 5px;
  margin: 15px 0;
  border: 1px solid crimson;
  background-color: 0;
  font-size:13px;
}

#searchResult .loading {
  margin-top:20px;
}

#searchResult .hot-words {
  margin-top:20px;
}

#searchResult .hot-words a {
  margin-right:20px;
}

#searchResult .item {
  padding:.5em 0 0.3em 0;
}

#searchResult .item .title a {
  font-size:16px;
  text-decoration:underline;
}

#searchResult .item .title .type {
  display:inline-block;
  background-color:#eee;
  color:#888;
  margin-right:8px;
  padding:0 5px;
  font-size: 13px;
  border-radius: 3px; 
}

#searchResult .item .desc {
  font-size:14px;
  line-height:1.6;      
}

#searchResult .item .tags {
  font-size: 14px;
  line-height:1.8;
}

#searchResult .item .tags a {
  margin-right:12px;
  color: #666;
}

#searchResult .item .title b,
#searchResult .item .desc b {
  color:#C00;
  font-weight:normal;
}

菜单栏样式

sidebar.css
#sidebar {
  width: 250px;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  background-color: #202020;
  overflow: auto;
  z-index: 1;
  -webkit-overflow-scrolling: touch;
}
#sidebar li,
#sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
#sidebar .profile {
  padding-top: 40px;
  padding-bottom: 10px;
}
#sidebar .profile a,
#sidebar .profile img {
  width: 140px;
  height: 140px;
  border-radius: 70px;
  overflow: hidden;
}
#sidebar .profile a {
  display: block;
  margin: 0 auto;
}
#sidebar .profile span {
  display: block;
  padding: 10px 0;
  font-size: 18px;
  color: #999;
  text-align: center;
}
#sidebar .buttons {
  margin: 0 0 20px;
}
#sidebar .buttons li {
  display: block;
  width: 100%;
  height: 45px;
  line-height: 45px;
  font-size: 16px;
}
#sidebar .buttons li a {
  padding-left: 25px;
  display: block;
  color: #999;
  -webkit-transition: color .2s cubic-bezier(.4,.01,.165,.99);
  transition: color .2s cubic-bezier(.4,.01,.165,.99);
  text-decoration: none;
}
#sidebar .buttons li a i,
#sidebar .buttons li a span {
  display: inline-block;
  vertical-align: middle;
}
#sidebar .buttons li a i {
  font-size: 20px;
  width: 25px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  margin-right: 20px;
}
#sidebar .buttons li a:hover {
  color: rgba(153,153,153,.8);
}
#sidebar .buttons li a.inline{
  display: inline-block;
  width: 40px;
}
#sidebar-mask {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  overflow: hidden;
  display: none;
  background-color: rgba(255,255,255,0);
}

layout.html
<head>
  <meta name="theme-color" content="#101010" />
  ......
</head>
......
<footer id="footer" class="inner">
  ......
  Powered by&nbsp;<a target="_blank" rel="nofollow" class="external" href="https://firekylin.org">FireKylin {{VERSION}}</a>&nbsp;|&nbsp;Theme by&nbsp;<a target="_blank" href="https://blog.cindemor.com">Cindemor</a>
</footer>
......

post.html
......
{%if post.prev.title or post.next.title %}
    <nav class="pagination">
        {% if post.prev.title %}
            <a href="/post/{{ post.prev.pathname }}.html" class="prev"><div style="color:crimson;float:left">&laquo;</div>&nbsp{{ post.prev.title }}</a>
        {% endif %}
        {% if post.next.title %}
            <a href="/post/{{ post.next.pathname }}.html" class="next">{{ post.next.title }}&nbsp<div style="color:crimson;float:right">&raquo;</div></a>
        {% endif %}
    </nav>
{% endif %}
......

pagination.html
......
{% set prev = pagination.currentPage - 1 %}
    <a href="{{prev | pagination(ctx.url)}}" class="prev"><div style="color:crimson;float:left">&laquo;</div>&nbsp上一页</a>
......
    <a href="{{next | pagination(ctx.url)}}" class="next">下一页&nbsp<div style="color:crimson;float:right">&raquo;</div></a>
{% endif %}
......

本文链接:https://blog.cindemor.com/post/Firekylin.html

-- EOF --