diff options
author | Maya Gao <mayagao@users.noreply.github.com> | 2016-12-16 16:11:47 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-16 16:11:47 -0800 |
commit | 7f67a2926d30af8f3ea6f1f877850dc00fa2d87e (patch) | |
tree | c380b7457f28ebe3ba7def8088095ce91dea96a8 /platform/darwin/docs/theme/assets/js/jazzy.js | |
parent | 3f26e88c49d3afeb3754a877b8473deb4bf2cded (diff) | |
download | qtlocation-mapboxgl-7f67a2926d30af8f3ea6f1f877850dc00fa2d87e.tar.gz |
iOS jazzy theme improvements (#7422)
some small improvements to the theme
Diffstat (limited to 'platform/darwin/docs/theme/assets/js/jazzy.js')
-rwxr-xr-x | platform/darwin/docs/theme/assets/js/jazzy.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/darwin/docs/theme/assets/js/jazzy.js b/platform/darwin/docs/theme/assets/js/jazzy.js index 70d90890c7..2e42193e38 100755 --- a/platform/darwin/docs/theme/assets/js/jazzy.js +++ b/platform/darwin/docs/theme/assets/js/jazzy.js @@ -22,9 +22,11 @@ $(".token").click(function(event) { return; } var link = $(this); + var linkIcon = link.find('.token-icon'); var animationDuration = 300; - var tokenOffset = "-15px"; + var tokenOffset = "0px"; var original = link.css('marginLeft') == tokenOffset; + linkIcon.toggleClass('token-icon-minus'); link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration); $content = link.parent().parent().next(); $content.slideToggle(animationDuration); |