Skip to content

Instantly share code, notes, and snippets.

@ewillhite
Created January 23, 2014 15:53
Show Gist options
  • Save ewillhite/8581000 to your computer and use it in GitHub Desktop.
Save ewillhite/8581000 to your computer and use it in GitHub Desktop.
remove superfish for mobile
# disable superfish on mobile and add mobile interaction
if $("#main-content").css("float") isnt "left"
$(".block-superfish > ul").removeClass("sf-menu").addClass "mobile"
$(".block-superfish li").unbind()
$(".block-superfish > ul > li > a").click ->
$(".block-superfish li").removeClass "sfHover"
$(".block-superfish a").removeClass "sf-clicked"
$(this).addClass("sf-clicked").parent().addClass("sfHover")
$(".block-superfish li ul").removeAttr "style"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment