UNPKG

@jackiemacklein/nettz-utils

Version:

Serviços de imagem, e-mail, códigos de barras, utilitários numéricos e componentes React para apps Node.js com TypeScript

177 lines (149 loc) 2.69 kB
.nettz-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1050; padding: 20px; } .nettz-modal { background: white; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); max-width: 90vw; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; width: 100%; } .nettz-modal-sm { max-width: 400px; } .nettz-modal-md { max-width: 600px; } .nettz-modal-lg { max-width: 800px; } .nettz-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #e9ecef; background-color: #374995; color: white; flex-shrink: 0; } .nettz-modal-title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.2; } .nettz-modal-close { background: none; border: none; color: white; font-size: 24px; cursor: pointer; padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: background-color 0.2s; flex-shrink: 0; } .nettz-modal-close:hover { background-color: rgba(255, 255, 255, 0.1); } .nettz-modal-body { padding: 24px; overflow-y: auto; flex: 1; } .nettz-modal-footer { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-top: 1px solid #e9ecef; background-color: #f8f9fa; flex-shrink: 0; } /* Responsividade */ @media (max-width: 768px) { .nettz-modal-overlay { padding: 10px; } .nettz-modal { max-width: 95vw; max-height: 95vh; } .nettz-modal-header { padding: 16px 20px; } .nettz-modal-title { font-size: 16px; } .nettz-modal-close { width: 28px; height: 28px; font-size: 20px; } .nettz-modal-body { padding: 20px; } .nettz-modal-footer { padding: 16px 20px; flex-direction: column; gap: 12px; } .nettz-modal-footer .nettz-btn { width: 100%; } } @media (max-width: 480px) { .nettz-modal-overlay { padding: 5px; } .nettz-modal { max-width: 98vw; max-height: 98vh; } .nettz-modal-header { padding: 12px 16px; } .nettz-modal-title { font-size: 14px; } .nettz-modal-close { width: 24px; height: 24px; font-size: 18px; } .nettz-modal-body { padding: 16px; } .nettz-modal-footer { padding: 12px 16px; } } @media (max-height: 600px) { .nettz-modal-overlay { align-items: flex-start; padding-top: 20px; } .nettz-modal { max-height: calc(100vh - 40px); } }