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

124 lines
2.2 KiB
SCSS
Raw Normal View History

.modal-overlay,
.error-modal-overlay {
2017-04-12 22:23:20 +02:00
position: fixed;
display: flex;
justify-content: center;
align-items: center;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
background-color: var(--modal-overlay-bg);
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;
align-items: center;
border: var(--modal-border);
background: var(--modal-bg);
2017-04-12 22:23:20 +02:00
overflow: auto;
border-radius: 4px;
padding: $spacing-vertical;
box-shadow: var(--box-shadow-layer);
max-width: var(--modal-width);
2017-07-29 18:59:47 +02:00
word-break: break-word;
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;
background: var(--modal-bg);
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 {
transition: height var(--animation-style) var(--animation-style);
height: 0;
}
&--after-open {
.modal--fullscreen {
height: 100vh;
}
}
&--before-close {
height: 0;
}
}
2017-04-12 22:23:20 +02:00
.modal__header {
2017-07-28 03:13:12 +02:00
margin-bottom: $spacing-vertical * 2/3;
2017-04-12 22:23:20 +02:00
text-align: center;
}
.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 {
margin: 0px 6px;
}
.error-modal-overlay {
background: var(--modal-overlay-bg);
2017-04-12 22:23:20 +02:00
}
.error-modal__content {
display: flex;
padding: 0px 8px 10px 10px;
}
.error-modal__warning-symbol {
margin-top: 6px;
margin-right: 7px;
}
.download-started-modal__file-path {
word-break: break-all;
}
.error-modal {
max-width: none;
width: var(--modal-width);
2017-04-12 22:23:20 +02:00
}
2018-03-26 23:32:43 +02:00
.error-modal__error-list {
/*shitty hack/temp fix for long errors making modal unusable*/
2017-08-22 04:23:38 +02:00
border: 1px solid var(--input-border-color);
2017-04-12 22:23:20 +02:00
padding: 8px;
list-style: none;
max-height: 400px;
max-width: var(--modal-width);
2017-04-12 22:23:20 +02:00
overflow-y: hidden;
2017-07-29 18:59:47 +02:00
}
2018-03-26 23:32:43 +02:00
.error-modal__content p {
padding: 0 0 $spacing-vertical $spacing-vertical;
}