Last active
August 29, 2015 14:06
-
-
Save alexmccabe/34da7ba14f2dd1f707b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- The background that prevents the user from doing anything unwanted --> | |
<div class="overlayPanel"></div> | |
<!-- | |
The modal itself | |
This will give you a basic modal with a fixed width | |
--> | |
<div class="modal"> | |
<header class="modal-head"> | |
... | |
</header> | |
<div class="modal-body"> | |
... | |
</div> | |
<footer class="modal-footer"> | |
... | |
</footer> | |
</div> | |
<!-- | |
Modifier classes can be added to change how the modal looks/behaves | |
--> | |
<div class="modal large"> ... </div> <!-- full width of container --> | |
<div class="modal medium"> ... </div> <!-- 50% width of container --> | |
<div class="modal small"> ... </div> <!-- 25% width of container --> | |
<div class="modal animate"> ... </div> <!-- animate the modal into view --> | |
<div class="modal"> ... </div> <!-- no modifier gives width of max-width: 500px --> | |
<a href="#" class="modal-close">Close</a> <!-- close the modal --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment