UNPKG

react-modals-kit

Version:

A lightweight and customizable modal library for React, providing various types of modals with simple API

84 lines (74 loc) 1.49 kB
.container { position: fixed; top: 0; right: 0; height: 100%; width: 100%; background-color: #0000001e; z-index: 1000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); z-index: 99999999; } .overlay { position: absolute; height: 100%; width: 100%; transition: transform 0.3s ease-in-out; } .body { max-width: 90vw; min-width: 300px; max-height: 95vh; position: relative; border-radius: 16px; } .hight { max-height: 95vh; overflow-x: auto; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #4444443a #f1f1f1; } .hight::-webkit-scrollbar { width: 4px; height: 4px; } .hight::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 8px; } .hight::-webkit-scrollbar-thumb { background: rgba(255, 0, 0, 0); border-radius: 8px; } .hight::-webkit-scrollbar-thumb:hover { background: rgba(139, 0, 0, 0); } .btn { background-color: #da2739; position: absolute; display: flex; align-items: center; justify-content: center; top: -15px; right: -15px; border-radius: 8px; width: 40px; height: 40px; cursor: pointer; transition: transform 0.3s ease-in-out; /* إضافة تأثير الانتقال */ } .btn:hover { transform: scale(1.1); } .btn:focus { outline: none; } .btn svg { color: #fff !important; width: 20px; }