spotnotes.app/static/assets/css/modals.css
2026-06-01 23:02:39 -05:00

49 lines
No EOL
1 KiB
CSS

/* Modals */
.modal {
position: fixed;
top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0,0,0,0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 2000;
backdrop-filter: blur(2px);
}
.modal.hidden { display: none; }
.modal-content {
background: white;
padding: 25px;
border-radius: 8px;
width: 90%;
max-width: 400px;
position: relative;
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
max-height: 90vh;
overflow-y: auto;
}
@media (max-width: 600px) {
.modal {
align-items: flex-end; /* Align to bottom for better mobile reach or use full height */
}
.modal-content {
width: 100%;
height: 100%;
max-width: none;
max-height: 100%;
border-radius: 0;
padding: 20px;
}
}
.close-modal {
position: absolute;
top: 10px; right: 15px;
font-size: 1.5rem;
cursor: pointer;
color: #aaa;
transition: color 0.2s;
}
.close-modal:hover { color: #333; }