@memori.ai/memori-react
Version:
[](https://www.npmjs.com/package/@memori.ai/memori-react)   • 4.28 kB
CSS
.memori-drawer {
position: relative;
z-index: 1001;
}
.memori-drawer--backdrop {
position: fixed;
z-index: 1000;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.3);
}
.memori-drawer--container {
position: fixed;
z-index: 1001;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow-y: auto;
}
.memori-drawer--container-scrollable {
display: flex;
min-height: 100%;
align-items: center;
justify-content: center;
}
.memori-drawer--panel {
position: relative;
display: flex;
width: var(--memori-drawer--width, 100%);
max-width: 80vw;
height: 100%;
min-height: 100vh;
box-sizing: border-box;
flex-direction: column;
padding: 1rem 1.5rem 1.5rem;
margin-right: 0;
margin-left: auto;
background-color: #fff;
font-family: var(--memori-font-family);
}
@media (max-width: 767px) {
.memori-drawer--panel {
width: 100%;
max-width: 100%;
}
}
@media (min-width: 1024px) {
.memori-drawer--panel {
width: var(--memori-drawer--width--lg, 60%);
}
}
.memori-drawer--panel.memori-drawer--with-footer {
padding-bottom: 0;
}
.memori-drawer--panel .memori-spin {
display: flex;
width: 100%;
height: 100%;
flex: 1;
flex-direction: column;
overflow-y: auto;
}
.memori-drawer--panel > .memori-spin {
margin-top: -1.75rem;
}
.memori-drawer--panel p {
margin: 0 0 1em;
}
h2.memori-drawer--title {
margin: 0 0 1rem;
font-size: 1.5rem;
font-weight: 700;
}
.memori-drawer--title-with-closable {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.5rem 0;
margin-bottom: 1rem;
}
.memori-drawer--title-with-closable-title {
flex: 1;
margin: 0;
font-size: 1.5rem;
font-weight: 700;
}
.memori-drawer--title-with-closable-actions {
display: flex;
align-items: center;
margin-left: 1rem;
gap: 0.5rem;
}
.memori-drawer--panel-left {
margin-right: auto;
margin-left: 0;
}
.memori-drawer--close {
position: sticky;
z-index: 70;
top: 0;
left: 0;
padding: 0.5rem;
margin-top: -1.5rem;
margin-left: -5.5rem;
}
.memori-drawer--title-with-closable-actions-close{
position: absolute;
z-index: 70;
top: 1.5rem;
left: -3.5rem;
background: var(--memori-primary);
color: #fff;
}
@media (max-width: 767px) {
.memori-drawer--title-with-closable-actions-close{
position: relative;
top: 0;
left: 0;
margin-top: 0;
}
}
@media (max-width: 767px) {
.memori-drawer--close {
/* position: absolute; */
position: relative;
top: 0;
right: 0.5rem;
left: auto;
margin-top: 0;
margin-bottom: 0.5rem;
margin-left: 0;
}
}
.memori-drawer--close button {
border-color: #fff;
color: #fff;
}
@media (max-width: 767px) {
.memori-drawer--close button {
color: #000;
}
}
.memori-drawer--panel-left .memori-drawer--close {
right: -3.5rem;
left: auto;
}
@media (max-width: 767px) {
.memori-drawer--panel-left .memori-drawer--close {
right: 0.5rem;
left: auto;
}
}
.memori-drawer--footer {
position: sticky;
bottom: 0;
left: 0;
display: flex;
width: 100%;
justify-content: flex-end;
padding-top: 1rem;
padding-bottom: 1rem;
border-top: 1px solid rgba(0, 0, 0, 0.25);
margin-top: auto;
background-color: #fff;
}
.memori-drawer--footer-left-action {
margin-right: auto;
}
.memori-drawer--footer-actions {
display: flex;
gap: 0.5rem;
}
.memori-drawer--footer button + button {
margin-left: 0.5em;
}
.memori-drawer--content{
flex: 1;
padding-top: 12px;
overflow-y: auto;
}
.memori-drawer--content--header{
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 0px 12px;
}
.memori-drawer--content--scrollable{
flex: 1;
overflow-y: auto;
}
/* Transition classes */
.ease-out {
transition-timing-function: ease-out;
}
.ease-in {
transition-timing-function: ease-in;
}
.duration-300 {
transition-duration: 300ms;
}
.duration-200 {
transition-duration: 200ms;
}
.duration-400 {
transition-duration: 400ms;
}
.duration-500 {
transition-duration: 500ms;
}
.opacity-0 {
opacity: 0;
}
.opacity-100 {
opacity: 1;
}
.max-w-0 {
max-width: 0;
}
.max-w-80 {
max-width: 80%;
}
.max-w-100 {
max-width: 100%;
}