make outer `.modal-dialog` pass through events for custom click
handling, counteract it for the actual `.modal-content`
position: relative;
width: auto;
margin: $modal-dialog-margin;
+ // allow clicks to pass through for custom click handling to close modal
+ pointer-events: none;
}
// Actual modal
position: relative;
display: flex;
flex-direction: column;
+ // counteract the pointer-events: none; in the .modal-dialog
+ pointer-events: auto;
background-color: $modal-content-bg;
background-clip: padding-box;
border: $modal-content-border-width solid $modal-content-border-color;