2014-02-11 17:18:59 +00:00
|
|
|
$zindex-modal-background: 500;
|
2014-01-24 17:34:26 +00:00
|
|
|
|
2014-06-16 11:59:43 +00:00
|
|
|
.fade {
|
2017-08-25 22:04:10 +00:00
|
|
|
@include transition(opacity 0.15s linear);
|
2015-11-03 12:15:33 +00:00
|
|
|
opacity: 0;
|
2017-08-10 23:13:57 +00:00
|
|
|
|
2014-06-16 11:59:43 +00:00
|
|
|
&.in {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-01-24 17:34:26 +00:00
|
|
|
// Kill the scroll on the body
|
|
|
|
.modal-open {
|
|
|
|
overflow: hidden;
|
|
|
|
|
2015-09-25 13:17:39 +00:00
|
|
|
.content-wrapper {
|
|
|
|
transform: none;
|
2014-01-24 17:34:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Container that the modal scrolls within
|
|
|
|
.modal {
|
2015-11-03 17:12:12 +00:00
|
|
|
box-sizing: border-box;
|
2014-01-24 17:34:26 +00:00
|
|
|
display: none;
|
|
|
|
overflow: auto;
|
|
|
|
overflow-y: scroll;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2014-02-11 17:18:59 +00:00
|
|
|
z-index: $zindex-modal-background;
|
2014-01-24 17:34:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Shell div to position the modal with bottom padding
|
|
|
|
.modal-dialog {
|
2015-11-03 17:12:12 +00:00
|
|
|
box-sizing: border-box;
|
2014-01-24 17:34:26 +00:00
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2015-09-25 16:14:46 +00:00
|
|
|
padding: 0;
|
2014-02-11 17:18:59 +00:00
|
|
|
z-index: ($zindex-modal-background + 10);
|
2015-09-25 13:17:39 +00:00
|
|
|
height: 90%;
|
|
|
|
width: 85%;
|
2014-04-02 15:48:26 +00:00
|
|
|
|
2015-09-25 13:17:39 +00:00
|
|
|
&:before {
|
2014-01-24 17:34:26 +00:00
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
height: 100%;
|
|
|
|
vertical-align: middle;
|
|
|
|
margin-right: -0.25em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Actual modal
|
|
|
|
.modal-content {
|
2015-11-03 17:12:12 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
border-radius: 3px;
|
2015-11-03 12:15:33 +00:00
|
|
|
width: 98.7%;
|
2014-01-24 17:34:26 +00:00
|
|
|
position: relative;
|
2015-11-03 12:15:33 +00:00
|
|
|
background-color: $color-white;
|
2015-09-25 13:17:39 +00:00
|
|
|
margin-top: 2em;
|
|
|
|
padding-bottom: 3em;
|
|
|
|
display: inline-block;
|
2014-01-24 17:34:26 +00:00
|
|
|
vertical-align: middle;
|
2015-09-25 13:17:39 +00:00
|
|
|
overflow: hidden;
|
2014-01-24 17:34:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Modal background
|
|
|
|
.modal-backdrop {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2014-02-11 17:18:59 +00:00
|
|
|
z-index: ($zindex-modal-background - 10);
|
2015-11-03 12:15:33 +00:00
|
|
|
background-color: $color-black;
|
2017-08-10 23:13:57 +00:00
|
|
|
|
2014-01-24 17:34:26 +00:00
|
|
|
// Fade for backdrop
|
2015-09-25 13:17:39 +00:00
|
|
|
&.fade { opacity: 0; }
|
2017-08-18 00:28:38 +00:00
|
|
|
|
2015-09-25 13:17:39 +00:00
|
|
|
&.in { opacity: 0.5; }
|
2014-01-24 17:34:26 +00:00
|
|
|
}
|
|
|
|
|
2015-09-25 13:17:39 +00:00
|
|
|
.modal .close {
|
|
|
|
padding: 0;
|
|
|
|
position: absolute;
|
|
|
|
width: 50px;
|
|
|
|
height: 50px;
|
|
|
|
top: 10px;
|
|
|
|
right: 10px;
|
|
|
|
z-index: 1;
|
2014-01-24 17:34:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Where all modal content resides
|
|
|
|
.modal-body {
|
|
|
|
position: relative;
|
2015-09-25 13:17:39 +00:00
|
|
|
padding-bottom: 2em;
|
2014-02-05 12:04:24 +00:00
|
|
|
|
2015-09-25 13:17:39 +00:00
|
|
|
header {
|
2016-10-25 18:22:38 +00:00
|
|
|
padding-left: 2em;
|
2015-09-25 13:17:39 +00:00
|
|
|
padding-right: 100px;
|
2020-06-16 15:53:57 +00:00
|
|
|
|
|
|
|
&.tab-merged {
|
|
|
|
padding-left: 1.6em;
|
|
|
|
}
|
2014-02-05 12:04:24 +00:00
|
|
|
}
|
2016-10-25 18:22:38 +00:00
|
|
|
|
|
|
|
.header-title {
|
2017-08-25 22:04:10 +00:00
|
|
|
// stylelint-disable-next-line declaration-no-important
|
2016-10-27 20:26:22 +00:00
|
|
|
padding-left: 0 !important;
|
2016-10-27 19:27:35 +00:00
|
|
|
margin-left: -36px;
|
2016-10-25 18:22:38 +00:00
|
|
|
}
|
2020-06-16 15:53:57 +00:00
|
|
|
|
|
|
|
.tab-merged .header-title {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2014-01-24 17:34:26 +00:00
|
|
|
}
|
|
|
|
|
2018-11-04 21:46:42 +00:00
|
|
|
@include media-breakpoint-up(sm) {
|
2014-01-24 17:34:26 +00:00
|
|
|
.modal-dialog {
|
2015-09-25 16:14:46 +00:00
|
|
|
padding: 0 0 2em $menu-width;
|
2014-01-24 17:34:26 +00:00
|
|
|
}
|
2020-06-16 15:53:57 +00:00
|
|
|
|
|
|
|
.modal-body {
|
|
|
|
header.tab-merged {
|
|
|
|
padding-left: $desktop-nice-padding;
|
|
|
|
}
|
|
|
|
}
|
2014-02-05 11:31:31 +00:00
|
|
|
}
|
2015-11-03 12:15:33 +00:00
|
|
|
|
2018-11-04 21:46:42 +00:00
|
|
|
@include media-breakpoint-up(xl) {
|
2014-02-05 11:31:31 +00:00
|
|
|
.modal-dialog {
|
2018-11-04 21:46:42 +00:00
|
|
|
max-width: 100em;
|
2015-11-03 12:15:33 +00:00
|
|
|
padding: 0 0 2em;
|
2014-02-05 11:31:31 +00:00
|
|
|
}
|
2015-11-03 12:15:33 +00:00
|
|
|
}
|