2017-10-05 19:22:41 +00:00
|
|
|
@import 'common/sass/variables';
|
|
|
|
@import 'common/sass/mixins';
|
2017-07-15 06:26:43 +00:00
|
|
|
|
|
|
|
$m-background: #fff;
|
2018-01-13 08:26:08 +00:00
|
|
|
$m-window-padding-w: 20px;
|
|
|
|
$m-window-padding-h: 30px;
|
2017-07-15 06:26:43 +00:00
|
|
|
$m-header-height: 62px;
|
2018-02-07 04:39:24 +00:00
|
|
|
$m-header-padding: 1rem 2rem 0.5rem 2rem;
|
|
|
|
$m-content-padding: 1.5rem 2rem;
|
|
|
|
$m-footer-padding: 0.5rem 2rem 1rem 2rem;
|
2017-08-23 06:57:18 +00:00
|
|
|
$m-close-size: 26px;
|
2017-07-15 06:26:43 +00:00
|
|
|
$m-anim-speed: 400ms;
|
|
|
|
|
|
|
|
.Modalshade {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
2018-02-07 04:39:24 +00:00
|
|
|
background-color: rgba(#000, 0.54);
|
2017-07-15 06:26:43 +00:00
|
|
|
z-index: $zindex-modal-background;
|
2018-02-07 04:39:24 +00:00
|
|
|
display: block;
|
2017-07-15 06:26:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.Modal {
|
|
|
|
position: fixed;
|
2018-02-07 04:39:24 +00:00
|
|
|
top: 50%;
|
2017-07-15 06:26:43 +00:00
|
|
|
left: 50%;
|
2018-02-07 04:39:24 +00:00
|
|
|
width: initial;
|
2017-07-15 06:26:43 +00:00
|
|
|
max-width: 95%;
|
2018-01-13 08:26:08 +00:00
|
|
|
max-width: calc(100% - #{$m-window-padding-w * 2});
|
2017-07-15 06:26:43 +00:00
|
|
|
max-height: 95%;
|
2018-01-13 08:26:08 +00:00
|
|
|
max-height: calc(100% - #{$m-window-padding-h * 2});
|
2017-07-15 06:26:43 +00:00
|
|
|
background: $m-background;
|
2018-02-07 04:39:24 +00:00
|
|
|
border-radius: 2px;
|
|
|
|
transform: translate(-50%, -50%);
|
2017-07-15 06:26:43 +00:00
|
|
|
z-index: $zindex-modal;
|
|
|
|
overflow: hidden;
|
2018-02-07 04:39:24 +00:00
|
|
|
display: flex;
|
2017-07-15 06:26:43 +00:00
|
|
|
flex-direction: column;
|
|
|
|
animation: modal-open $m-anim-speed ease 1;
|
2017-08-28 17:43:57 +00:00
|
|
|
text-align: left;
|
2018-02-07 04:39:24 +00:00
|
|
|
box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14),
|
|
|
|
0px 6px 30px 5px rgba(0, 0, 0, 0.12);
|
|
|
|
|
|
|
|
&-fade {
|
|
|
|
background: linear-gradient(to bottom, #fff0, #fff);
|
|
|
|
position: fixed;
|
|
|
|
height: 25px;
|
|
|
|
width: calc(100% - 3rem);
|
|
|
|
bottom: 4.5rem;
|
|
|
|
left: 50%;
|
|
|
|
transform: translateX(-50%);
|
2017-07-15 06:26:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-header {
|
2018-02-07 04:39:24 +00:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
padding: $m-header-padding;
|
|
|
|
align-items: center;
|
2017-07-15 06:26:43 +00:00
|
|
|
|
|
|
|
&-title {
|
2018-02-07 04:39:24 +00:00
|
|
|
font-size: 1.625rem;
|
|
|
|
font-weight: 400;
|
2017-07-15 06:26:43 +00:00
|
|
|
margin: 0;
|
2017-08-23 06:57:18 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2018-02-07 04:39:24 +00:00
|
|
|
letter-spacing: 0;
|
2017-07-15 06:26:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-close {
|
|
|
|
@include reset-button;
|
2017-08-23 06:57:18 +00:00
|
|
|
height: $m-close-size;
|
|
|
|
width: $m-close-size;
|
2018-02-07 04:39:24 +00:00
|
|
|
opacity: 0.3;
|
|
|
|
transition: opacity 120ms;
|
2017-07-15 06:26:43 +00:00
|
|
|
|
|
|
|
&:hover {
|
2018-02-07 04:39:24 +00:00
|
|
|
opacity: 0.87;
|
2017-07-15 06:26:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-icon {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-content {
|
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
flex-direction: column;
|
|
|
|
padding: $m-content-padding;
|
|
|
|
overflow: auto;
|
2018-02-07 04:39:24 +00:00
|
|
|
> .Spinner {
|
|
|
|
margin: 2.5rem auto;
|
|
|
|
}
|
2017-07-15 06:26:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-footer {
|
2018-02-07 04:39:24 +00:00
|
|
|
padding: $m-footer-padding;
|
2017-07-15 06:26:43 +00:00
|
|
|
background: $m-background;
|
|
|
|
|
|
|
|
// Selector needs a little extra oomph to override bootstrap
|
|
|
|
&-btn.btn {
|
|
|
|
float: right;
|
|
|
|
margin: 0 0 0 8px;
|
|
|
|
min-width: 100px;
|
|
|
|
}
|
|
|
|
}
|
2018-02-07 04:39:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.animate-modal {
|
|
|
|
&-enter,
|
|
|
|
&-exit {
|
|
|
|
position: relative;
|
|
|
|
z-index: 3;
|
|
|
|
transition: opacity 300ms;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-enter {
|
|
|
|
opacity: 0;
|
|
|
|
|
|
|
|
&-active {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-exit {
|
|
|
|
opacity: 1;
|
2017-10-05 19:22:41 +00:00
|
|
|
|
2018-02-07 04:39:24 +00:00
|
|
|
&-active {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2017-10-05 19:22:41 +00:00
|
|
|
}
|
2018-01-13 08:26:08 +00:00
|
|
|
}
|