lbry-desktop/src/ui/scss/component/_modal.scss

87 lines
1.6 KiB
SCSS
Raw Normal View History

.modal-overlay {
top: 0;
left: 0;
bottom: 0;
2018-10-17 19:14:24 +02:00
right: 0;
align-items: center;
2019-06-11 20:10:58 +02:00
background-color: rgba($lbry-black, 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;
2019-06-29 00:21:21 +02:00
[data-mode='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;
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;
2019-06-11 20:10:58 +02:00
padding: var(--spacing-large);
2017-07-29 18:59:47 +02:00
word-break: break-word;
2018-04-17 04:21:19 +02:00
@media (min-width: 501px) {
min-width: 500px;
}
2019-06-29 00:21:21 +02:00
[data-mode='dark'] & {
background-color: $lbry-black;
border-color: $lbry-gray-5;
}
.card__content:not(:last-child) {
2019-06-11 20:10:58 +02:00
margin-bottom: var(--spacing-large);
}
2019-02-13 17:27:20 +01:00
.button.button--alt {
2018-10-17 19:14:24 +02:00
background-color: $lbry-white; // Set modal buttons bg color
2019-06-29 00:21:21 +02:00
[data-mode='dark'] & {
background-color: transparent;
}
2018-04-17 04:21:19 +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;
2019-06-11 20:10:58 +02:00
padding: 0 var(--spacing-medium) var(--spacing-medium) var(--spacing-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;
width: var(--modal-width);
white-space: pre-wrap;
2017-04-12 22:23:20 +02:00
}
2018-03-26 23:32:43 +02:00
.error-modal__error-list {
2018-10-17 19:14:24 +02:00
max-width: var(--modal-width);
max-height: 400px;
2019-06-11 20:10:58 +02:00
margin-top: var(--spacing-small);
padding: var(--spacing-small);
2018-10-17 19:14:24 +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;
white-space: pre-wrap;
2018-03-26 23:32:43 +02:00
}