Fixed-position elements, CoffeeScript 2.2.0 #17

Open
wants to merge 3 commits into
from

Projects

None yet

2 participants

@caleon
caleon commented Apr 9, 2013

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
caleon added some commits Apr 9, 2013
@caleon caleon Tying down Gemfile dependencies, which comes with coffee-script upgrade 31fe0cf
@caleon caleon Updated coffee-script gem no longer provides `coffee` binary. `compil…
…e` task revised to use CoffeeScript.compile.
64d6eff
@caleon caleon Various changes lifted from a project override to the fork:
 * 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 remval 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 notably removes the intial byline
9626648
@ericuldall

Updated my local version with chardinjs.css changes and chardinjs.min.js changes and they successfully fixed the fixed elements issue. Thanks for the commit!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment