fonteva-design-guide
Version:
## Dev, Build and Test
120 lines (103 loc) • 2.91 kB
CSS
.slds-modal__header.pfm-drawer__header {
padding: 1.5rem;
background-color: #f7f8f7;
text-align: left;
}
.pfm-drawer__header-content {
display: flex;
justify-content: space-between;
}
.pfm-modal_drawer .slds-button.slds-modal__close {
top: 0;
right: 0;
transform: scale(0.75);
}
.pfm-modal_drawer .slds-modal__header {
border-top-right-radius: 0;
border-top-left-radius: 0;
border-bottom: none;
}
.pfm-modal_drawer .slds-modal__footer {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
background-color: white;
text-align: center;
}
.pfm-modal_drawer .pfm-drawer_actions {
display: flex;
align-items: center;
}
.pfm-modal_drawer .slds-modal__container .slds-modal__content {
padding-top: 0;
height: 100%;
position: relative;
}
.pfm-modal_drawer.slds-modal {
transform: translateX(100%);
transition: transform 0.25s cubic-bezier(0.9, -0.01, 0.2, 1);
opacity: 1;
}
.pfm-modal_drawer.slds-modal.slds-fade-in-open {
transform: translateX(0%);
transition: transform 0.25s cubic-bezier(0.9, -0.01, 0.2, 1);
}
.pfm-modal_drawer {
pointer-events: none;
}
/* responsive states */
.pfm-modal_drawer .slds-modal__container {
margin: auto;
margin-right: 0;
padding: 0;
width: 100vw;
max-width: 100vw;
pointer-events: all;
}
@media (min-width: 769px) {
.pfm-modal_drawer .slds-modal__container {
width: calc((100vw / 3) * 2);
max-width: calc((100vw / 3) * 2);
}
}
@media (min-width: 1200px) {
.pfm-modal_drawer.pfm-modal_drawer-small .slds-modal__container {
width: 35vw;
max-width: 35vw;
}
.pfm-modal_drawer .slds-modal__container,
.pfm-modal_drawer.pfm-modal_drawer-medium .slds-modal__container {
width: 50vw;
max-width: 50vw;
}
.pfm-modal_drawer.pfm-modal_drawer-medium .slds-modal__container {
width: 75vw;
max-width: 75vw;
}
.pfm-modal_drawer.pfm-modal_drawer-large .slds-modal__container {
width: 90vw;
max-width: 90vw;
}
.pfm-modal_drawer.pfm-modal_drawer-full .slds-modal__container {
width: 100vw;
max-width: 100vw;
}
}
@media (max-width: 768px) {
.pfm-modal_drawer.slds-modal {
transform: translateX(0);
opacity: 0;
visibility: hidden;
transition: opacity 0.25s cubic-bezier(1, 0, 1, 1);
}
.pfm-modal_drawer.slds-modal.slds-fade-in-open {
transform: translateX(0);
opacity: 1;
visibility: visible;
transition: opacity 0.25s cubic-bezier(1, 0, 1, 1);
}
}
/* BACKEND STYLES */
.pfm-modal_drawer .slds-modal__container .slds-modal__content,
.pfm-modal_drawer .slds-modal__footer {
background-color: #f7f8f7;
}