168 lines
2.8 KiB
CSS
168 lines
2.8 KiB
CSS
:root {
|
|
--ifx-font-family: "Source Sans 3";
|
|
font-family: var(--ifx-font-family, sans-serif);
|
|
}
|
|
|
|
:host {
|
|
display: block;
|
|
}
|
|
|
|
.modal-container {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 1060;
|
|
overflow-y: auto;
|
|
font-family: var(--ifx-font-family);
|
|
}
|
|
|
|
.modal-container.open {
|
|
display: block;
|
|
}
|
|
|
|
.modal-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: #1D1D1D;
|
|
opacity: 0.5;
|
|
z-index: 0;
|
|
}
|
|
|
|
.modal-content-container {
|
|
position: absolute;
|
|
display: flex;
|
|
justify-content: center;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 90%;
|
|
min-height: 218px;
|
|
background-color: #fff;
|
|
border-radius: 0;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
box-sizing: border-box;
|
|
align-items: stretch;
|
|
}
|
|
|
|
/* Add desktop size here */
|
|
@media screen and (min-width: 768px) {
|
|
.modal-content-container {
|
|
width: 540px;
|
|
min-height: 132px;
|
|
}
|
|
}
|
|
.modal-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.modal-icon-container {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
background-color: #0A8276;
|
|
align-self: stretch;
|
|
}
|
|
.modal-icon-container.danger {
|
|
background-color: #CD002F;
|
|
}
|
|
.modal-icon-container ifx-icon {
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 24px;
|
|
height: 76px;
|
|
box-sizing: border-box;
|
|
border-radius: 1px 1px 0px 0px;
|
|
border-bottom: 1px solid #EEEDED;
|
|
}
|
|
|
|
.modal-header h2 {
|
|
margin: 0;
|
|
font-weight: 600;
|
|
font-size: 1.25rem;
|
|
line-height: 28px;
|
|
}
|
|
|
|
.modal-header button {
|
|
background: none;
|
|
border: none;
|
|
font-size: 1.5em;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 16px 24px;
|
|
min-height: 56px;
|
|
box-sizing: border-box;
|
|
flex: 1;
|
|
max-height: 70vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.modal-footer.buttons-present ::slotted(*) {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 16px;
|
|
padding: 16px 24px 32px 16px;
|
|
}
|
|
|
|
.modal-border {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
font-size: 1.5em;
|
|
flex-grow: 1;
|
|
}
|
|
.modal-border.primary {
|
|
background-color: #0A8276;
|
|
}
|
|
.modal-border.secondary {
|
|
background-color: #575352;
|
|
}
|
|
.modal-border.danger {
|
|
background-color: #CD002F;
|
|
}
|
|
.modal-border.success {
|
|
background-color: #4CA460;
|
|
}
|
|
.modal-border.warning {
|
|
background-color: #E16B25;
|
|
}
|
|
.modal-border.orange {
|
|
background-color: #E16B25;
|
|
}
|
|
.modal-border.ocean {
|
|
background-color: #0A8276;
|
|
}
|
|
.modal-border.grey {
|
|
background-color: #575352;
|
|
}
|
|
.modal-border.grey-200 {
|
|
background-color: #EEEDED;
|
|
}
|
|
.modal-border.red {
|
|
background-color: #CD002F;
|
|
}
|
|
.modal-border.green {
|
|
background-color: #4CA460;
|
|
}
|
|
.modal-border.berry {
|
|
background-color: #9C216E;
|
|
} |