mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
fix animate bug
This commit is contained in:
parent
7f6d575c16
commit
b3e2e37929
@ -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 {
|
||||||
|
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user