Fix/STAY-133 * fix: Add static summary buttons row on add ancillary flow * fix: refactor handling of modals * fix: refactor file structure for add ancillary flow * Merged in chore/replace-deprecated-body (pull request #3300) Replace deprecated <Body> with <Typography> * chore: replace deprecated body component * refactor: replace Body component with Typography across various components * merge Approved-by: Bianca Widstam Approved-by: Matilda Landström Approved-by: Bianca Widstam Approved-by: Matilda Landström
97 lines
1.7 KiB
CSS
97 lines
1.7 KiB
CSS
.overlay {
|
|
background: rgba(0, 0, 0, 0.5);
|
|
height: var(--visual-viewport-height);
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
z-index: var(--default-modal-overlay-z-index);
|
|
}
|
|
|
|
.modal {
|
|
background-color: var(--Base-Surface-Primary-light-Normal);
|
|
border-radius: var(--Corner-radius-md) var(--Corner-radius-md) 0 0;
|
|
box-shadow: var(--modal-box-shadow);
|
|
width: 100%;
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: 0;
|
|
z-index: var(--default-modal-z-index);
|
|
}
|
|
|
|
.dialog {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
/* For removing focus outline when modal opens first time */
|
|
outline: 0 none;
|
|
|
|
max-height: 90dvh;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
position: relative;
|
|
padding: var(--Space-x2) var(--Space-x7) var(--Space-x1) var(--Space-x2);
|
|
}
|
|
|
|
.content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: var(--Space-x2);
|
|
overflow: auto;
|
|
}
|
|
|
|
.contentWithActions {
|
|
padding: 0;
|
|
}
|
|
|
|
.contentWithoutActions {
|
|
padding: 0 var(--Space-x2) var(--Space-x3);
|
|
}
|
|
|
|
.close {
|
|
position: absolute;
|
|
top: var(--Space-x1);
|
|
right: var(--Space-x1);
|
|
}
|
|
|
|
.verticalCenter {
|
|
align-items: center;
|
|
}
|
|
|
|
@media screen and (min-width: 768px) {
|
|
.overlay {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal {
|
|
left: auto;
|
|
bottom: auto;
|
|
width: auto;
|
|
border-radius: var(--Corner-radius-md);
|
|
max-width: var(--max-width-page);
|
|
}
|
|
|
|
.dialog {
|
|
max-height: 90dvh;
|
|
}
|
|
|
|
.header {
|
|
padding: var(--Space-x3) var(--Space-x7) var(--Space-x1) var(--Space-x3);
|
|
}
|
|
|
|
.contentWithoutActions {
|
|
padding: 0 var(--Space-x3) var(--Space-x4);
|
|
}
|
|
|
|
.close {
|
|
top: var(--Space-x2);
|
|
right: var(--Space-x2);
|
|
}
|
|
}
|