twitter/bootstrap — pull request #2644 by elebetsamer (2012-03-16 06:53:48+00:00)
Title: Added stacking to Modal

I've made two tweaks to Modal.

First, I've added a "modal-backdrop-transparent" class and it gets applied to modal backdrops if there is already a backdrop present in the dom. This makes the backdrop transparent, that way the site can still be seen under the modal.

Second, I've added stacking to Modal that send already opened modals behind the backdrop if another modal is opened. Then when the second (or third or fourth) modal is closed it brings the next layer lower Modals back in front of the backdrop.

While I don't know if my implementation is optimal, it is working. If anyone has any feedback, let me know.

The first Modal:
![The first Modal](https://img.skitch.com/20120316-thhrs3tmfmk15a8pbehp7yqi5y.jpg)

The second Modal:
![The second Modal](https://img.skitch.com/20120316-qnnfxx3m9k2hacm34a9gyf49be.jpg)

The third Modal:
![The third Modal](https://img.skitch.com/20120316-ftrp7metuqxuridiidtjrhci8f.jpg)