mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 14:57:18 +10:00
70 lines
1.3 KiB
CSS
70 lines
1.3 KiB
CSS
/* Content is visible as modal layer */
|
|
.isOpen {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
position: fixed;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
z-index: 100;
|
|
background-color: white;
|
|
|
|
/* Mobile frame fix - this needs to be removed */
|
|
max-width: 375px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Content is explicitly hidden (this default can be overridden with passed-in class) */
|
|
/* The use case for having both .isOpen and .isClosed is ModalInMobile use case */
|
|
/* where desktop layout should not get any styling from Modal component. */
|
|
.isClosed {
|
|
display: none;
|
|
}
|
|
|
|
/* This class is passed to page layout level to fix scrolling while modal is open */
|
|
.modalIsOpen {
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Header section for Modal */
|
|
.header {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.title {
|
|
margin: 1rem;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.close {
|
|
width: auto;
|
|
height: 3em;
|
|
background-color: transparent;
|
|
padding: 1em;
|
|
color: #999;
|
|
border: 0;
|
|
|
|
&:enabled:hover {
|
|
background-color: transparent;
|
|
color: #666;
|
|
}
|
|
&:enabled:active {
|
|
background-color: transparent;
|
|
color: #000;
|
|
}
|
|
&:disabled {
|
|
background-color: transparent;
|
|
}
|
|
}
|
|
|
|
.content {
|
|
flex-grow: 1;
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
overflow: auto;
|
|
}
|