fix animate bug

This commit is contained in:
Ezequiel Bergamaschi 2014-02-08 17:53:47 -03:00
parent 7f6d575c16
commit b3e2e37929
2 changed files with 11 additions and 11 deletions

View File

@ -15,22 +15,20 @@
@base-color: #111; @base-color: #111;
/* ----------------------------- General -------------------------------- */ /* ----------------------------- General -------------------------------- */
.nav-list{ .nav-list {
border: 1px solid rgba(255, 255, 255, 0.5);
margin-top: -20px; margin-top: -20px;
} }
.nav-list a { .nav-list li {
border: 1px solid rgb(213, 207, 207);
border-radius: 16px;
margin-top: 4px;
}
.nav-list li{
position: relative; position: relative;
width: 90%; width: 90%;
} }
.nav-header { .nav-list a, .nav-header {
margin-top: 4px;
border: 1px solid rgb(213, 207, 207); border: 1px solid rgb(213, 207, 207);
border-radius: 16px; border-radius: 6px;
box-shadow: 3px 3px 1px #888888;
}
.nav-header {
background-color: #eee; background-color: #eee;
} }
.active { .active {

View File

@ -430,7 +430,9 @@ $(function () {
}; };
$(document).on('click', '#foldersContainer li', function (event) { $(document).on('click', '#foldersContainer li', function (event) {
if (!$(this).is($('#foldersContainer .active'))) {
$('#foldersContainer .active').animate({left: '-=8px'}, 'fast'); $('#foldersContainer .active').animate({left: '-=8px'}, 'fast');
}
// Deselect previous option ... // Deselect previous option ...
$('#foldersContainer li').removeClass('active'); $('#foldersContainer li').removeClass('active');