UNPKG

@memori.ai/memori-react

Version:

[![npm version](https://img.shields.io/github/package-json/v/memori-ai/memori-react)](https://www.npmjs.com/package/@memori.ai/memori-react) ![Tests](https://github.com/memori-ai/memori-react/workflows/CI/badge.svg?branch=main) ![TypeScript Support](https

205 lines (173 loc) 3.22 kB
.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 (min-width: 768px) { .memori-drawer--panel { width: var(--memori-drawer--width-md, 80%); max-width: none; padding-top: 1.5rem; padding-right: 2rem; padding-left: 2rem; } } @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--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; } @media (max-width: 767px) { .memori-drawer--close { left: 0.5rem; } } .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--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; } .opacity-0 { opacity: 0; } .opacity-100 { opacity: 1; } .max-w-0 { max-width: 0; } .max-w-80 { max-width: 80%; }