2019-01-14 19:40:06 +01:00
|
|
|
.modal-overlay {
|
2018-10-17 00:29:55 +02:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
2018-10-17 19:14:24 +02:00
|
|
|
right: 0;
|
|
|
|
|
|
|
|
align-items: center;
|
2018-10-17 00:29:55 +02:00
|
|
|
background-color: rgba($lbry-white, 0.7);
|
2018-10-17 19:14:24 +02:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
position: fixed;
|
2017-04-12 22:23:20 +02:00
|
|
|
z-index: 9999;
|
2018-12-19 06:44:53 +01:00
|
|
|
|
|
|
|
html[data-theme='dark'] & {
|
|
|
|
background-color: rgba($lbry-black, 0.7);
|
|
|
|
}
|
2017-04-12 22:23:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.modal {
|
2018-10-19 22:16:39 +02:00
|
|
|
background-color: $lbry-white;
|
|
|
|
border: 1px solid $lbry-gray-3;
|
2018-10-17 19:14:24 +02:00
|
|
|
border-radius: 4px;
|
2018-12-19 06:44:53 +01:00
|
|
|
line-height: 1.55;
|
2018-10-17 19:14:24 +02:00
|
|
|
max-width: var(--modal-width);
|
2017-04-12 22:23:20 +02:00
|
|
|
overflow: auto;
|
2018-12-19 06:44:53 +01:00
|
|
|
padding: var(--spacing-vertical-large);
|
2017-07-29 18:59:47 +02:00
|
|
|
word-break: break-word;
|
2018-04-17 04:21:19 +02:00
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
@media (min-width: 501px) {
|
|
|
|
min-width: 500px;
|
|
|
|
}
|
|
|
|
|
|
|
|
html[data-theme='dark'] & {
|
|
|
|
background-color: $lbry-black;
|
|
|
|
border-color: $lbry-gray-5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card__content:not(:last-child) {
|
|
|
|
margin-bottom: var(--spacing-vertical-large);
|
|
|
|
}
|
|
|
|
|
2018-04-17 04:21:19 +02:00
|
|
|
.btn.btn--alt {
|
2018-10-17 19:14:24 +02:00
|
|
|
background-color: $lbry-white; // Set modal buttons bg color
|
2018-12-19 06:44:53 +01:00
|
|
|
|
|
|
|
html[data-theme='dark'] & {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
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 {
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
2018-10-17 19:14:24 +02:00
|
|
|
right: 0;
|
|
|
|
|
|
|
|
background-color: rgba($lbry-gray-1, 0.5);
|
2018-12-19 06:44:53 +01:00
|
|
|
padding: var(--spacing-vertical-large);
|
2018-03-26 23:32:43 +02:00
|
|
|
overflow-y: scroll;
|
2018-10-17 19:14:24 +02:00
|
|
|
position: absolute;
|
2018-03-26 23:32:43 +02:00
|
|
|
|
|
|
|
.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
|
2018-10-17 19:14:24 +02:00
|
|
|
// Slide down isn"t possible without doing a lot of re-work to the modal component
|
2018-03-26 23:32:43 +02:00
|
|
|
.ReactModal__Overlay {
|
|
|
|
.modal--fullscreen {
|
|
|
|
height: 0;
|
2018-10-17 19:14:24 +02:00
|
|
|
transition: height var(--animation-duration) var(--animation-style);
|
2018-03-26 23:32:43 +02:00
|
|
|
}
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
2018-03-26 23:32:43 +02:00
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.ReactModal__Overlay--after-open {
|
|
|
|
.modal--fullscreen {
|
|
|
|
height: 100vh;
|
2018-03-26 23:32:43 +02:00
|
|
|
}
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
2018-03-26 23:32:43 +02:00
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.ReactModal__Overlay--before-close {
|
|
|
|
height: 0;
|
2018-03-26 23:32:43 +02:00
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
.error-modal__content {
|
|
|
|
display: flex;
|
2018-12-19 06:44:53 +01:00
|
|
|
padding: 0 var(--spacing-vertical-medium) var(--spacing-vertical-medium)
|
|
|
|
var(--spacing-vertical-medium);
|
2017-04-12 22:23:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.error-modal__warning-symbol {
|
2018-09-26 19:48:07 +02:00
|
|
|
height: 28px;
|
2018-10-17 19:14:24 +02:00
|
|
|
margin-top: -5px;
|
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);
|
2019-02-01 09:23:34 +01:00
|
|
|
white-space: pre-wrap;
|
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-10-17 19:14:24 +02:00
|
|
|
max-width: var(--modal-width);
|
|
|
|
max-height: 400px;
|
2018-12-19 06:44:53 +01:00
|
|
|
margin-top: var(--spacing-vertical-small);
|
|
|
|
padding: var(--spacing-vertical-small);
|
2018-10-17 19:14:24 +02:00
|
|
|
|
2018-10-17 00:29:55 +02:00
|
|
|
background-color: $lbry-red-1;
|
|
|
|
border-left: 2px solid $lbry-red-5;
|
2018-10-17 19:14:24 +02:00
|
|
|
color: $lbry-red-5;
|
|
|
|
list-style: none;
|
|
|
|
overflow-y: scroll;
|
2019-02-01 09:23:34 +01:00
|
|
|
white-space: pre-wrap;
|
2018-03-26 23:32:43 +02:00
|
|
|
}
|