Created
July 15, 2016 12:29
-
-
Save arjun00231/34599094d93053a8c522fe8426fde9f8 to your computer and use it in GitHub Desktop.
bs_modal_scroll_fix.css
This file contains 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
<style> | |
body.modal-open > .wrap { | |
overflow: hidden; | |
height: 100%; | |
} | |
.modal-content, | |
.modal-dialog, | |
.modal-body { | |
height: inherit; | |
min-height: 100%; | |
} | |
.modal { | |
min-height: 100%; | |
} | |
//mozilla fix | |
@-moz-document url-prefix() { | |
.modal-body { height: auto; min-height: 100%; } | |
.modal { height: auto; min-height: 100%; } | |
.modal-dialog { | |
width: 100%; | |
height: 100%; | |
min-height: 100%; | |
padding: 0; | |
margin: 0; | |
top: 0; | |
left: 0; | |
} | |
.modal-content { | |
height: auto; | |
min-height: 100%; | |
border-radius: 0; | |
border: 0px solid #000; | |
margin: 0; | |
padding: 0; | |
top: 0; | |
left: 0; | |
} | |
} | |
</style> | |
<body> | |
<div class="wrap">All non-modal content</div> | |
<div class="modal"></div> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment