heelhook/chardin.js — pull request #17 by caleon (2013-04-09 10:50:04+00:00)
Title: Fixed-position elements, CoffeeScript 2.2.0

Various changes lifted from a project override to the fork:
* Specified dependency requirement versions
* Introduced data-intro-position to avoid clashes with other libraries' usage of the data attribute
* When $.fn.chardinJs is called, it also adds the class "chardinated" to that element
* Used the chardinated wrapper class to define a general style for dealing with existing fixed-position elements:
* Without this change, fixed items remain un sync'ed with the overlay help items
* Applies to items with class name including "-fixed", as in the Bootstrap case "navbar-fixed-top"
* Used that same class distinction to temporarily adjust those fixed wrappers' z-index
* If the item had a custom z-index and was fixed, it would not get displayed above the overlay even if it was intended to
* These things get reset to their originals simply by the removal of the "chardinated" class on the "chardinJs:stop" event
* Chardin help text text-aligned as befits the requested position of the help text:
* Default => text-align: center
* data-position: left => text-align: right
* data-position: right => text-align: left
* Recompiled assets with upgraded CoffeeScript 2.2.0, which most overtly removes the intial byline