mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-06 08:46:34 +00:00
Initial Commit Rework
This commit is contained in:
79
frontend/src/Components/Modal/Modal.css
Normal file
79
frontend/src/Components/Modal/Modal.css
Normal file
@@ -0,0 +1,79 @@
|
||||
.modalContainer {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.modalBackdrop {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: $modalBackdropBackgroundColor;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.modal {
|
||||
position: relative;
|
||||
display: flex;
|
||||
max-height: 90%;
|
||||
border-radius: 6px;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.modalOpen {
|
||||
/* Prevent the body from scrolling when the modal is open */
|
||||
overflow: hidden !important;
|
||||
}
|
||||
|
||||
/*
|
||||
* Sizes
|
||||
*/
|
||||
|
||||
.small {
|
||||
composes: modal;
|
||||
|
||||
width: 480px;
|
||||
}
|
||||
|
||||
.medium {
|
||||
composes: modal;
|
||||
|
||||
width: 720px;
|
||||
}
|
||||
|
||||
.large {
|
||||
composes: modal;
|
||||
|
||||
width: 1080px;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: $breakpointLarge) {
|
||||
.modal.large {
|
||||
width: 90%;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: $breakpointMedium) {
|
||||
.modal.small,
|
||||
.modal.medium {
|
||||
width: 90%;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: $breakpointSmall) {
|
||||
.modalContainer {
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
.modal.small,
|
||||
.modal.medium,
|
||||
.modal.large {
|
||||
max-height: 100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user