2017-12-21 18:32:51 +01:00
|
|
|
.modal-overlay,
|
|
|
|
.error-modal-overlay {
|
2017-04-12 22:23:20 +02:00
|
|
|
position: fixed;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
2018-10-17 00:29:55 +02:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
background-color: rgba($lbry-white, 0.7);
|
2017-04-12 22:23:20 +02:00
|
|
|
z-index: 9999;
|
|
|
|
}
|
|
|
|
|
|
|
|
.modal-overlay--clear {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.modal {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
2018-10-17 00:29:55 +02:00
|
|
|
border: $lbry-gray-1;
|
|
|
|
background-color: rgba($lbry-gray-1, 0.5);
|
2017-04-12 22:23:20 +02:00
|
|
|
overflow: auto;
|
|
|
|
border-radius: 4px;
|
|
|
|
padding: $spacing-vertical;
|
2018-10-17 00:29:55 +02:00
|
|
|
// box-shadow: var(--box-shadow-layer);
|
2017-11-07 15:35:49 +01:00
|
|
|
max-width: var(--modal-width);
|
2017-07-29 18:59:47 +02:00
|
|
|
word-break: break-word;
|
2018-04-17 04:21:19 +02:00
|
|
|
|
|
|
|
.btn.btn--alt {
|
|
|
|
// Set modal buttons bg color
|
2018-10-17 00:29:55 +02:00
|
|
|
background-color: $lbry-white;
|
2018-04-17 04:21:19 +02:00
|
|
|
}
|
2017-04-12 22:23:20 +02:00
|
|
|
}
|
|
|
|
|
2018-03-26 23:32:43 +02:00
|
|
|
.modal--fullscreen {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
padding: $spacing-vertical;
|
2018-10-17 00:29:55 +02:00
|
|
|
background: rgba($lbry-gray-1, 0.5);
|
2018-03-26 23:32:43 +02:00
|
|
|
overflow-y: scroll;
|
|
|
|
|
|
|
|
.main {
|
|
|
|
// I will come back to these when I do media queries
|
|
|
|
// They should be variables
|
|
|
|
padding: 130px 80px 0 80px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// For slide down animation on the search modal
|
|
|
|
// Slide down isn't possible without doing a lot of re-work to the modal component
|
|
|
|
.ReactModal__Overlay {
|
|
|
|
.modal--fullscreen {
|
2018-04-17 04:21:19 +02:00
|
|
|
transition: height var(--animation-duration) var(--animation-style);
|
2018-03-26 23:32:43 +02:00
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--after-open {
|
|
|
|
.modal--fullscreen {
|
|
|
|
height: 100vh;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--before-close {
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-04-12 22:23:20 +02:00
|
|
|
.modal__header {
|
2018-09-26 02:12:07 +02:00
|
|
|
font-size: 2em;
|
2017-04-12 22:23:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.modal__buttons {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
2017-07-28 03:13:12 +02:00
|
|
|
margin-top: $spacing-vertical * 2/3;
|
2017-04-12 22:23:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.modal__button {
|
2018-10-17 00:29:55 +02:00
|
|
|
margin: 0 $spacing-vertical * 1/3;
|
2018-04-24 03:15:15 +02:00
|
|
|
|
|
|
|
&.btn--link {
|
|
|
|
// So the text isn't bigger than the text inside the button
|
|
|
|
font-size: 0.8em;
|
|
|
|
}
|
2017-04-12 22:23:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.error-modal-overlay {
|
2018-10-17 00:29:55 +02:00
|
|
|
background: rgba($lbry-white, 0.7);
|
2017-04-12 22:23:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.error-modal__content {
|
|
|
|
display: flex;
|
2018-10-17 00:29:55 +02:00
|
|
|
padding: 0 8px 10px 10px;
|
2017-04-12 22:23:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.error-modal__warning-symbol {
|
2018-09-26 19:48:07 +02:00
|
|
|
margin-top: -5px;
|
|
|
|
height: 28px;
|
2017-04-12 22:23:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.download-started-modal__file-path {
|
|
|
|
word-break: break-all;
|
|
|
|
}
|
|
|
|
|
|
|
|
.error-modal {
|
|
|
|
max-width: none;
|
2017-11-07 15:35:49 +01:00
|
|
|
width: var(--modal-width);
|
2017-04-12 22:23:20 +02:00
|
|
|
}
|
2018-03-26 23:32:43 +02:00
|
|
|
|
2017-12-21 18:32:51 +01:00
|
|
|
.error-modal__error-list {
|
2018-09-26 19:48:07 +02:00
|
|
|
margin-top: $spacing-vertical * 1/3;
|
|
|
|
padding: $spacing-vertical * 1/3;
|
2017-04-12 22:23:20 +02:00
|
|
|
list-style: none;
|
|
|
|
max-height: 400px;
|
2017-12-21 18:32:51 +01:00
|
|
|
max-width: var(--modal-width);
|
2018-04-24 03:15:15 +02:00
|
|
|
overflow-y: scroll;
|
2018-10-17 00:29:55 +02:00
|
|
|
color: $lbry-red-5;
|
|
|
|
background-color: $lbry-red-1;
|
|
|
|
border-left: 2px solid $lbry-red-5;
|
2018-03-26 23:32:43 +02:00
|
|
|
}
|