Files

145 lines
2.3 KiB
CSS
Raw Permalink Normal View History

.overlay {
position: fixed;
inset: 0;
background: rgba(26, 22, 18, 0.6);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
padding: 1rem;
animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.modal {
background: var(--bg-card, white);
border-radius: 16px;
box-shadow: 0 20px 40px rgba(26, 22, 18, 0.2);
max-height: 90vh;
overflow: hidden;
display: flex;
flex-direction: column;
animation: slideIn 0.3s ease;
border: 1px solid var(--border-color, #e5dfd5);
}
@keyframes slideIn {
from {
transform: translateY(-20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
.modal.small {
width: 100%;
max-width: 400px;
}
.modal.medium {
width: 100%;
max-width: 600px;
}
.modal.large {
width: 100%;
max-width: 900px;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem;
border-bottom: 1px solid var(--border-color, #e5dfd5);
}
.title {
margin: 0;
font-size: 1.25rem;
font-weight: 600;
color: var(--text-primary, #1a1612);
font-family: var(--font-playfair), 'Playfair Display', serif;
}
.closeButton {
padding: 0.5rem;
background: transparent;
border: none;
color: var(--text-muted, #8a847a);
cursor: pointer;
border-radius: 8px;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
}
.closeButton:hover {
background: var(--bg-secondary, #f3ede4);
color: var(--accent-coral, #e07256);
}
.content {
overflow-y: auto;
flex: 1;
}
/* Scrollbar styles */
.content::-webkit-scrollbar {
width: 8px;
}
.content::-webkit-scrollbar-track {
background: var(--bg-secondary, #f3ede4);
}
.content::-webkit-scrollbar-thumb {
background: var(--border-color, #e5dfd5);
border-radius: 4px;
}
.content::-webkit-scrollbar-thumb:hover {
background: var(--text-muted, #8a847a);
}
@media (max-width: 640px) {
.overlay {
padding: 0;
align-items: flex-end;
}
.modal {
width: 100%;
max-width: 100%;
max-height: 95vh;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
animation: slideUp 0.3s ease;
}
@keyframes slideUp {
from {
transform: translateY(100%);
}
to {
transform: translateY(0);
}
}
.header {
padding: 1rem;
}
}