UNPKG

react-hook-modal

Version:

A custom modal, with a custom hook for modal handling in React App

90 lines (82 loc) 1.86 kB
._3Dl45 ._2LNQS { position: fixed; height: 100vh; width: 100vw; background-color: rgba(0, 0, 0, 0.32); top: 0; left: 0; } ._3Dl45 ._2S9Jb { z-index: 999; max-height: 94vh; max-width: 94vw; min-width: 150px; min-height: 300px; width: 15cm; overflow: hidden; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); box-shadow: 0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12); border-radius: 4px; background-color: #fff; color: inherit; -webkit-animation: _1YXGy .375s ease 0s 1; animation: _1YXGy .375s ease 0s 1; } ._3Dl45 ._20Bo6 { position: relative; font-weight: 500; font-size: 1.4rem; padding: 1rem 1.5rem; min-height: 24px; background-color: #fafafa; } ._3Dl45 ._20Bo6 ._3QJal { position: absolute; top: 50%; transform: translateY(-50%); right: 1rem; } ._3Dl45 ._20Bo6 ._3QJal button { height: 32px; width: 32px; border-radius: 50%; background-color: inherit; border: none; color: inherit; display: grid; place-items: center; cursor: pointer; font-size: 1.2rem; } ._3Dl45 ._20Bo6 ._3QJal button:active { transform: scale(0.94); } ._3Dl45 ._3JTUa { padding: 1rem 1rem; max-height: 64vh; overflow-y: auto; display: flex; flex-direction: column; } ._3Dl45 ._3775X { position: fixed; bottom: 0; width: 100%; z-index: 99; padding: 1rem; box-sizing: border-box; } ._3Dl45 ._21zHL { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; } @-webkit-keyframes _1YXGy { 0% { opacity: 0; top: 60%; } 100% { opacity: 1; top: 50%; } } @keyframes _1YXGy { 0% { opacity: 0; top: 60%; } 100% { opacity: 1; top: 50%; } }