diff --git a/layout/_partials/github-banner.swig b/layout/_partials/github-banner.swig index 1a66807b03..963d7a5e4e 100644 --- a/layout/_partials/github-banner.swig +++ b/layout/_partials/github-banner.swig @@ -1,10 +1,8 @@ {% if theme.github_banner.enable %} - {% set github_banner_bg_color = theme.android_chrome_color %} - {% set github_banner_fg_color = '#fff' %} {% set github_URL = theme.github_banner.permalink %} {% set github_title = theme.github_banner.title %} - {% set github_image = '' %} + {% set github_image = '' %} {{ next_url(github_URL, github_image, {class: 'github-corner', title: github_title, "aria-label": github_title}) }} {% endif %} diff --git a/source/css/_common/components/header/github-banner.styl b/source/css/_common/components/header/github-banner.styl index 043ee1fdcc..8219c17ea1 100644 --- a/source/css/_common/components/header/github-banner.styl +++ b/source/css/_common/components/header/github-banner.styl @@ -1,3 +1,15 @@ +@keyframes octocat-wave { + 0%, 100% { + transform: rotate(0); + } + 20%, 60% { + transform: rotate(-25deg); + } + 40%, 80% { + transform: rotate(10deg); + } +} + .github-corner { scheme = hexo-config('scheme'); bg_color = unquote(hexo-config('android_chrome_color')); @@ -6,22 +18,19 @@ :hover .octo-arm { animation: octocat-wave 560ms ease-in-out; } - @keyframes octocat-wave { - 0%, 100% { - transform: rotate(0); - } - 20%, 60% { - transform: rotate(-25deg); - } - 40%, 80% { - transform: rotate(10deg); - } + > svg { + fill: bg_color; + color: #fff; + position: absolute; + top: 0; + border: 0; + right: 0; } +tablet-mobile() { > svg { if (scheme == 'Pisces') || (scheme == 'Gemini') { - fill: #fff !important; - color: bg_color !important; + fill: #fff; + color: bg_color; } } .github-corner:hover .octo-arm { @@ -34,8 +43,7 @@ +mobile() { > svg { if (scheme == 'Mist') { - top: inherit !important; - margin-top: -50px; + top: inherit; if mobile_layout_economy { +mobile-small() { margin-top: initial; diff --git a/source/css/_common/components/post/post-eof.styl b/source/css/_common/components/post/post-eof.styl index a402bf9c9d..d1e984ff9b 100644 --- a/source/css/_common/components/post/post-eof.styl +++ b/source/css/_common/components/post/post-eof.styl @@ -1,6 +1,5 @@ .posts-expand { .post-eof { - show(); margin: $post-eof-margin-top auto $post-eof-margin-bottom; width: 8%; height: 1px; @@ -10,7 +9,7 @@ } .post:last-child { - .post-eof.post-eof.post-eof { + .post-eof { hide(); } } diff --git a/source/css/_schemes/Gemini/index.styl b/source/css/_schemes/Gemini/index.styl index e6be9689e4..d27a35d969 100644 --- a/source/css/_schemes/Gemini/index.styl +++ b/source/css/_schemes/Gemini/index.styl @@ -76,8 +76,7 @@ use_seo = hexo-config('seo'); } // Post delimiters. -.post-eof, -.post-spread { +.post-eof { hide(); }