Browse Source

Small optimization

Fechin 7 years ago
parent
commit
f41e2c73c7
3 changed files with 2 additions and 3 deletions
  1. 1 1
      layout/_partial/menu.ejs
  2. 1 1
      source/css/diaspora.css
  3. 0 1
      source/js/diaspora.js

+ 1 - 1
layout/_partial/menu.ejs

@@ -6,7 +6,7 @@
         </li>
         <%}%>
     </ul>
-    <p id="copyright" class="hide">
+    <p id="copyright">
         &copy; <%= date(new Date(), 'YYYY') %> <%= config.author || config.title %>.
         Powered by <%- link_to("http://hexo.io/", "Hexo", {external: true})%>
         Theme <%- link_to("https://github.com/Fechin/hexo-theme-diaspora", "Diaspora", {external: true})%>

+ 1 - 1
source/css/diaspora.css

@@ -80,7 +80,7 @@ body.touch #top {position:relative;}
 .bar {position:absolute;height:100%;background:rgba(0,0,0,.07);z-index:-1;width:0;-webkit-transition:width .5s ease;-moz-transition:width .5s ease;transition:width .5s ease;}
 .scrollbar {position:absolute;height:2px;width:30px;top:0;background-color:#50bcb6;-webkit-transition:width .5s ease;-moz-transition:width .5s ease;transition:width .5s ease;}
 body.touch .scrollbar {display:none;}
-.nav {position:fixed;height:100%;width:100%;background:rgba(255,255,255,.97);z-index:3;top:-100%;-webkit-transition:top 0.3s cubic-bezier(0.25,0.5,0.5,0.9);-moz-transition:top 0.3s cubic-bezier(0.25,0.5,0.5,0.9);transition:top 0.3s cubic-bezier(0.25,0.5,0.5,0.9);}
+.nav{position:fixed;height:100%;width:100%;background:rgba(255,255,255,.97);z-index:3;top:-100%;-webkit-transition:top 0.3s cubic-bezier(0.4,0,0.2,1);-moz-transition:top 0.3s cubic-bezier(0.4,0,0.2,1);transition:top 0.3s cubic-bezier(0.4,0,0.2,1);}
 body.mu {overflow:hidden;height:100%;}
 html.mu {height:100%;}
 body.mu .icon-menu {color:#333;}

+ 0 - 1
source/js/diaspora.js

@@ -391,7 +391,6 @@ $(function() {
             case (tag.indexOf('switchmenu') != -1):
                 window.scrollTo(0, 0)
                 $('html, body').toggleClass('mu');
-                $('#copyright').toggleClass('show');
 
                 break;