kenkeiter / skeuocard

Skeuocard progressively enhances credit card inputs to provide a skeuomorphic interface.
http://kenkeiter.com/skeuocard/
MIT License
3.23k stars 231 forks source link

Make _conformDOM work with nested elements #151

Open mhluska opened 9 years ago

mhluska commented 9 years ago

I was having trouble using this with Bootstrap since Bootstrap relies on nested form elements. This fixes it.

mhluska commented 9 years ago

On a side note I had a hell of a time getting this to play nice with Rails. I had to patch the compiled CSS like so:

SKEUOCARD_PATH='./vendor/assets/components/skeuocard/styles/skeuocard.css'

perl -pe 's,url\("\.\./(.*?)"\),url("''<%= asset_path "skeuocard/\1" %>''"),g' ${SKEUOCARD_PATH} > ${SKEUOCARD_PATH}.erb
rm ${SKEUOCARD_PATH}

The skeuocard-rails gem seems outdated.