mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-08-20 12:30:44 +02:00
fix animate bug
This commit is contained in:
parent
7f6d575c16
commit
b3e2e37929
@ -15,22 +15,20 @@
|
||||
@base-color: #111;
|
||||
|
||||
/* ----------------------------- General -------------------------------- */
|
||||
.nav-list{
|
||||
border: 1px solid rgba(255, 255, 255, 0.5);
|
||||
.nav-list {
|
||||
margin-top: -20px;
|
||||
}
|
||||
.nav-list a {
|
||||
border: 1px solid rgb(213, 207, 207);
|
||||
border-radius: 16px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
.nav-list li{
|
||||
.nav-list li {
|
||||
position: relative;
|
||||
width: 90%;
|
||||
}
|
||||
.nav-header {
|
||||
.nav-list a, .nav-header {
|
||||
margin-top: 4px;
|
||||
border: 1px solid rgb(213, 207, 207);
|
||||
border-radius: 16px;
|
||||
border-radius: 6px;
|
||||
box-shadow: 3px 3px 1px #888888;
|
||||
}
|
||||
.nav-header {
|
||||
background-color: #eee;
|
||||
}
|
||||
.active {
|
||||
|
@ -430,7 +430,9 @@ $(function () {
|
||||
};
|
||||
|
||||
$(document).on('click', '#foldersContainer li', function (event) {
|
||||
$('#foldersContainer .active').animate({left: '-=8px'}, 'fast');
|
||||
if (!$(this).is($('#foldersContainer .active'))) {
|
||||
$('#foldersContainer .active').animate({left: '-=8px'}, 'fast');
|
||||
}
|
||||
|
||||
// Deselect previous option ...
|
||||
$('#foldersContainer li').removeClass('active');
|
||||
|
Loading…
Reference in New Issue
Block a user