From 00c3b9aa4b7efb4f77a0dd1d7f3b01fa48847e85 Mon Sep 17 00:00:00 2001 From: yscoder <634206017@qq.com> Date: Mon, 6 Jun 2016 10:35:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E7=AB=A0=E4=B8=8A=E4=B8=8B=E6=96=87?= =?UTF-8?q?=E5=AF=BC=E8=88=AA=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- layout/_partial/post/nav.ejs | 40 +++++++++++----------- package.json | 7 ++-- source/css/_partial/article.less | 51 ++++++++++++---------------- source/css/_partial/fontawesome.less | 10 ++++-- source/css/_partial/highlight.less | 2 +- 6 files changed, 53 insertions(+), 59 deletions(-) diff --git a/README.md b/README.md index 94c8fa4d..bdd67139 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Material Design 风格的Hexo主题,基于 Hexo 3.0+ 制作。预览 [我的 ## 使用 -[document](https://github.com/yscoder/hexo-theme-indigo/wiki) +[Document](https://github.com/yscoder/hexo-theme-indigo/wiki) ## 截图 diff --git a/layout/_partial/post/nav.ejs b/layout/_partial/post/nav.ejs index 23605056..4aa095b1 100644 --- a/layout/_partial/post/nav.ejs +++ b/layout/_partial/post/nav.ejs @@ -1,25 +1,25 @@ <% if (post.prev || post.next){ %> - <% } %> diff --git a/package.json b/package.json index 46e0ac95..531c337e 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,5 @@ { "name": "hexo-theme-material-indigo", - "version": "0.1.0", - "private": true, - "dependencies": { - "hexo-renderer-less": "*" - } + "version": "0.3.0", + "private": true } diff --git a/source/css/_partial/article.less b/source/css/_partial/article.less index 937a79e7..5344c8e4 100644 --- a/source/css/_partial/article.less +++ b/source/css/_partial/article.less @@ -42,59 +42,50 @@ .post-main { overflow: hidden; + .post-content { + min-height: 100px; + } } .post-nav { - border-top: 1px solid @borderColor; + border-top: 3px solid @borderColor; + padding: 16px 0 0; + overflow: hidden; - .prev, - .next { - padding: 10px 0; + .prev, .next { + width: 47%; + padding-bottom: 300px; + margin-bottom: -300px; + background: @codeBg; } .next { text-align: right; - - .post-nav-link:hover .article-nav-title { - .transform(translateX(-20px)); - } - - } - - .prev { - .post-nav-link:hover .article-nav-title { - .transform(translateX(20px)); - } - } } .post-nav-link { - display: inline-block; + display: block; line-height: 2em; - font-size: 14px; - color: @secondaryTextColor; - white-space: nowrap; + font-size: 16px; + padding: 10px 16px; - .icon { - font-size: 14px; - padding: 0 12px; + .title { + .hoverLine(@primaryColor); } - .article-nav-title { - display: inline-block; - .transition(.4s) + .icon { + vertical-align: -9%; } - &:hover { - color: @accentColor; + .tips { + color: @secondaryTextColor; } } .post-content { - min-height: 100px; line-height: 1.8; p, @@ -114,7 +105,7 @@ } strong { - font-weight: 500; + font-weight: 700; border-bottom: 1px solid @accentColor; a { border-color: @accentColor diff --git a/source/css/_partial/fontawesome.less b/source/css/_partial/fontawesome.less index ea1c4768..a0f88224 100644 --- a/source/css/_partial/fontawesome.less +++ b/source/css/_partial/fontawesome.less @@ -8,7 +8,7 @@ /* FONT PATH * -------------------------- */ - + @font-face { font-family: 'FontAwesome'; src: url('@{fa-font-path}/fontawesome-webfont.woff2?v=@{fa-version}') format('woff2'), @@ -48,6 +48,12 @@ .@{fa-css-prefix}-5x { font-size: 5em; } +.@{fa-css-prefix}-pl { + padding-left: 5px; +} +.@{fa-css-prefix}-pr { + padding-right: 5px; +} /* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen readers do not read off random characters that represent icons */ @@ -1188,7 +1194,7 @@ .@{fa-css-prefix}-gratipay:before { content: @fa-var-gratipay; } .@{fa-css-prefix}-sun-o:before { content: @fa-var-sun-o; } .@{fa-css-prefix}-moon-o:before { content: @fa-var-moon-o; } -.@{fa-css-prefix}-archive:before, +.@{fa-css-prefix}-archive:before, .@{fa-css-prefix}-archives:before { content: @fa-var-archive; } .@{fa-css-prefix}-bug:before { content: @fa-var-bug; } .@{fa-css-prefix}-vk:before { content: @fa-var-vk; } diff --git a/source/css/_partial/highlight.less b/source/css/_partial/highlight.less index ccf23cb8..63ba607c 100644 --- a/source/css/_partial/highlight.less +++ b/source/css/_partial/highlight.less @@ -16,7 +16,7 @@ overflow-x: auto; position: relative; background: @h-background; - padding: 10px 15px; + padding: 15px; line-height: @h-fs*1.6; border-radius: 2px; }