-
-
Save greyhwndz/bb2cfcb6ea1de7da9eb5e8ae01262537 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
import { helper } from 'ember-helper'; | |
import $ from 'jquery'; | |
export default helper(function([selector, handler]) { | |
return function(event) { | |
if ($(event.target).is(selector) && handler) { | |
return handler(event); | |
} | |
}; | |
}); |
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
.modal-backdrop { | |
position: fixed; | |
top: 0; | |
width: 100vw; | |
height: 100vh; | |
background-color: black; | |
opacity: 0.8; | |
z-index: 12; | |
} | |
.modal-container { | |
position: fixed; | |
top: 0; | |
width: 100vw; | |
height: 100vh; | |
z-index: 13; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
} | |
.modal-dialog { | |
background-color: white; | |
border-radius: 4px; | |
max-height: 100vh; | |
overflow-y: auto; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment