Skip to content

Commit

Permalink
Merge branch 'gh-pages' of https://github.com/Jayin/silentor into gh-…
Browse files Browse the repository at this point in the history
…pages
  • Loading branch information
Jayin committed Jan 23, 2015
2 parents 74358b0 + 5652123 commit 64cca5e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 29 deletions.
3 changes: 0 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@
<script src="vendor/jquery-1.11.1.min.js"></script>
<script src="vendor/marked-0.3.2.min.js"></script>
<script src="vendor/blog.js"></script>
<!-- 可选的动画 -->
<script src="vendor/anim.js"></script>

<!-- code highlight-->
<script src="vendor/highlight/highlight.pack.js"></script>

Expand Down
26 changes: 0 additions & 26 deletions vendor/anim.js

This file was deleted.

9 changes: 9 additions & 0 deletions vendor/blog.css
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@ blockquote {
border-radius: 90px;
padding: 3px;
}
.sidebar-item{
transition:margin-left 0.5s;
-moz-transition:margin-left 0.5s;
-webkit-transition:margin-left 0.5s;
-o-transition:margin-left 0.5s;
}
.sidebar-item:hover{
margin-left:13px;
}
@media (max-width: 480px){
.sidebar-inner li {
display: inline-block;
Expand Down
5 changes: 5 additions & 0 deletions vendor/blog.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@
}
//sidebar-avatar
if (isSidebar){
//round avatar
$(selector).find('img').first().addClass('avatar');
//add animation in item
$.each($(selector).find('li'),function(index,item){
$(item).addClass('sidebar-item');
});
}

}).fail(function(err) {
Expand Down

0 comments on commit 64cca5e

Please sign in to comment.