This commit is contained in:
pika 2025-03-24 14:32:57 +01:00
parent 7823be6481
commit e99b2745bd
8 changed files with 147 additions and 894 deletions

View file

@ -8,49 +8,45 @@
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1000;
justify-content: center;
align-items: center;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.active {
display: flex;
opacity: 1;
visibility: visible;
align-items: center;
justify-content: center;
}
.modal-content {
background-color: var(--card-bg);
border-radius: 8px;
width: 450px;
max-width: 90%;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
transform: translateY(0);
animation: modal-appear 0.3s ease;
width: 90%;
max-width: 500px;
transform: translateY(-20px);
transition: transform 0.3s ease;
overflow: hidden;
}
@keyframes modal-appear {
from {
opacity: 0;
transform: translateY(-30px);
}
to {
opacity: 1;
transform: translateY(0);
}
.modal.active .modal-content {
transform: translateY(0);
}
.modal-header {
padding: 1.25rem 1.5rem;
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
border-bottom: 1px solid var(--border-color);
}
.modal-header h3 {
margin: 0;
font-weight: 600;
color: var(--text);
font-size: 1.25rem;
color: var(--text-color);
}
.modal-close {
@ -58,62 +54,48 @@
border: none;
font-size: 1.5rem;
cursor: pointer;
color: var(--text-secondary);
color: var(--text-muted);
transition: color 0.2s ease;
line-height: 1;
padding: 0;
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
}
.modal-close:hover {
color: var(--danger-color);
background-color: rgba(var(--danger-color-rgb), 0.1);
}
.modal-body {
padding: 1.5rem;
padding: 1rem;
}
.form-group {
margin-bottom: 1.25rem;
margin-bottom: 1rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: var(--text);
color: var(--text-color);
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
.form-group input {
width: 100%;
padding: 0.75rem 1rem;
border-radius: 8px;
padding: 0.75rem;
border-radius: 4px;
border: 1px solid var(--border-color);
background-color: var(--bg);
color: var(--text);
font-size: 1rem;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
background-color: var(--background-color);
color: var(--text-color);
transition: border-color 0.2s ease;
}
.form-group input:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
outline: none;
}
.form-actions {
display: flex;
justify-content: flex-end;
gap: 0.75rem;
margin-top: 1.5rem;
gap: 0.5rem;
margin-top: 1rem;
}
.form-actions .btn {