2018-12-26 08:45:53 +01:00
|
|
|
.modal {
|
|
|
|
position: fixed;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
font-size: 1em;
|
|
|
|
width: 45em;
|
|
|
|
max-width: calc(100% - 6em);
|
|
|
|
min-width: 10em;
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
opacity: 0;
|
|
|
|
perspective: 1000px;
|
2019-01-03 23:30:27 +01:00
|
|
|
transition: opacity var(--animation-speed-fast) ease-in-out;
|
2019-01-05 21:57:21 +01:00
|
|
|
z-index: var(--z-index-modal);
|
2018-12-26 08:45:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.modal-large {
|
|
|
|
width: 65em;
|
|
|
|
max-width: calc(100% - 2em);
|
|
|
|
}
|
|
|
|
|
|
|
|
.modal-small {
|
2019-05-11 09:33:19 +02:00
|
|
|
width: 30em;
|
2018-12-26 08:45:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.modal-wrapper {
|
|
|
|
box-sizing: border-box;
|
|
|
|
position: relative;
|
|
|
|
transition: all var(--animation-speed-fast);
|
|
|
|
}
|
|
|
|
|
|
|
|
.modal-wrapper .container {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.is-transition-end .modal-wrapper {
|
2019-01-03 23:30:27 +01:00
|
|
|
transition: all var(--animation-speed-fast) ease-in-out;
|
2018-12-26 08:45:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.modal-body {
|
2019-01-24 21:28:11 +01:00
|
|
|
background-color: rgb(var(--gray-01));
|
2018-12-26 08:45:53 +01:00
|
|
|
border-radius: var(--radius) var(--radius) 0 0;
|
|
|
|
padding: 2em;
|
|
|
|
max-height: calc(90vh - 3.6666666667em);
|
2019-06-04 20:34:04 +02:00
|
|
|
overflow-y: auto;
|
2018-12-26 08:45:53 +01:00
|
|
|
box-sizing: border-box;
|
|
|
|
z-index: 1;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2019-06-04 20:34:04 +02:00
|
|
|
.modal-heading {
|
|
|
|
overflow-x: hidden;
|
|
|
|
}
|
2018-12-26 08:45:53 +01:00
|
|
|
|
|
|
|
.modal-heading:focus {
|
2019-01-24 21:28:11 +01:00
|
|
|
outline: none;
|
2018-12-26 08:45:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.modal-controls {
|
2019-01-24 21:28:11 +01:00
|
|
|
background-color: rgb(var(--gray-01));
|
2018-12-26 08:45:53 +01:00
|
|
|
position: relative;
|
|
|
|
z-index: 2;
|
|
|
|
border-radius: 0 0 var(--radius) var(--radius);
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
2019-01-24 21:28:11 +01:00
|
|
|
.modal-button {
|
|
|
|
background-color: transparent;
|
2018-12-26 08:45:53 +01:00
|
|
|
border-radius: 0;
|
|
|
|
margin: 0;
|
|
|
|
padding-top: 1.5em;
|
|
|
|
padding-bottom: 1.5em;
|
|
|
|
flex-basis: 50%;
|
|
|
|
}
|
|
|
|
|
2019-01-24 21:28:11 +01:00
|
|
|
.modal-controls .modal-button:first-child {
|
2018-12-26 08:45:53 +01:00
|
|
|
border-radius: 0 0 0 var(--radius);
|
|
|
|
}
|
|
|
|
|
2019-01-24 21:28:11 +01:00
|
|
|
.modal-controls .modal-button:last-child {
|
2018-12-26 08:45:53 +01:00
|
|
|
border-radius: 0 0 var(--radius) 0
|
|
|
|
}
|