better ui for anilist entries & fixes

This commit is contained in:
2025-12-07 02:24:30 +01:00
parent 6ae823ac0b
commit 1973069949
15 changed files with 1723 additions and 668 deletions

View File

@@ -3,6 +3,7 @@
--bg-surface: #121215;
--bg-surface-hover: #1e1e22;
--accent: #8b5cf6;
--accent-glow: rgba(139, 92, 246, 0.4); /* Añadido */
--text-primary: #ffffff;
--text-secondary: #a1a1aa;
--radius-md: 12px;
@@ -11,6 +12,9 @@
--glass-border: 1px solid rgba(255, 255, 255, 0.1);
--glass-bg: rgba(20, 20, 23, 0.7);
--nav-height: 80px;
--danger: #ef4444; /* Añadido */
--bg-amoled: #0a0a0a; /* Añadido */
--bg-field: #0e0e0f; /* Añadido */
}
* { box-sizing: border-box; outline: none; }
@@ -219,144 +223,325 @@ body {
}
/* ==================================== */
/* MODAL STYLES (Add to Library Modal) */
/* MODAL STYLES (REEMPLAZO POR MODAL COMPLETO) */
/* ==================================== */
.modal-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(8px);
background: rgba(0, 0, 0, 0.9);
backdrop-filter: blur(10px);
z-index: 2000;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s;
padding: 2rem;
padding: 1rem;
}
.modal-overlay.active {
display: flex;
opacity: 1;
}
.modal-content {
background: #18181b;
background: var(--bg-amoled); /* Fondo AMOLED oscuro */
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 24px;
padding: 2.5rem;
max-width: 650px;
width: 90%;
max-height: 80vh;
overflow-y: auto;
border-radius: var(--radius-lg);
max-width: 900px; /* Ancho para el grid de 3 columnas */
width: 95%;
padding: 0;
position: relative;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
transform: scale(0.95);
transition: transform 0.3s;
}
.modal-overlay.active .modal-content {
transform: scale(1);
box-shadow: 0 20px 50px rgba(0,0,0,0.8);
max-height: 90vh;
display: flex;
flex-direction: column;
animation: modalSlideUp 0.3s ease;
}
.modal-content.modal-list {
max-width: 500px;
@keyframes modalSlideUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.modal-close {
position: absolute;
top: 1.5rem;
right: 1.5rem;
background: rgba(255, 255, 255, 0.1);
border: none;
top: 1rem;
right: 1rem;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.1);
color: white;
width: 32px;
height: 32px;
border-radius: 50%;
width: 36px;
height: 36px;
border-radius: 8px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
transition: 0.2s;
z-index: 2001;
}
.modal-close:hover {
background: var(--danger);
border-color: var(--danger);
}
.modal-title {
font-size: 1.8rem;
font-weight: 800;
padding: 1.5rem 2rem 0.5rem;
margin-bottom: 0;
color: var(--text-primary);
border-bottom: 1px solid rgba(255,255,255,0.05);
}
.modal-close:hover { background: rgba(255, 255, 255, 0.2); }
.modal-title { margin-top: 0; margin-bottom: 1.5rem; font-size: 1.5rem; font-weight: 800; }
.modal-body {
display: flex;
flex-direction: column;
gap: 1.5rem;
overflow-y: auto;
padding: 0 2rem;
flex-grow: 1;
}
.form-group {
/* GRUPO PRINCIPAL DE CAMPOS (GRID) */
.modal-fields-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem 2rem;
padding: 1.5rem 0;
}
.form-group { /* Agregado para consistencia con list.css */
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.form-group label {
font-size: 0.9rem;
font-weight: 600;
font-size: 0.8rem;
font-weight: 700;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.form-input {
background: var(--bg-base);
/* Ajustes de campos específicos */
.form-group.notes-group {
grid-column: 1 / span 2;
}
.form-group.checkbox-group {
grid-column: 3 / 4;
align-self: flex-end;
margin-bottom: 0.5rem;
flex-direction: row; /* Necesario para la checkbox en línea */
align-items: center;
justify-content: flex-end;
gap: 1rem;
}
.form-group.full-width {
grid-column: 1 / -1;
}
/* Date Input Styling */
.date-group {
display: flex;
gap: 1rem;
}
.date-input-pair {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
/* Input Styling dentro del modal */
.modal-content .form-input {
background: var(--bg-field); /* Fondo específico para campos */
border: 1px solid rgba(255,255,255,0.1);
color: var(--text-primary);
color: var(--text-primary); /* Asegura color del texto */
padding: 0.8rem 1rem;
border-radius: 8px;
font-family: inherit;
font-size: 1rem;
transition: 0.2s;
font-family: inherit; /* Asegura fuente consistente */
font-size: 1rem; /* Asegura tamaño de fuente */
transition: 0.2s; /* Asegura transiciones */
}
.form-input:focus {
outline: none;
.modal-content .form-input:focus {
border-color: var(--accent);
box-shadow: 0 0 10px rgba(139, 92, 246, 0.4); /* Usar el color acento */
box-shadow: 0 0 10px var(--accent-glow);
outline: none; /* Agregado */
}
.notes-textarea {
resize: vertical;
min-height: 100px;
}
/* Select Styling */
.modal-content select.form-input {
/* Reiniciar la apariencia por defecto para selects, si es necesario */
-webkit-appearance: menulist;
appearance: menulist;
}
/* Checkbox Styling */
.form-checkbox {
width: 18px;
height: 18px;
border: 1px solid rgba(255,255,255,0.2);
background: var(--bg-base);
border-radius: 4px;
cursor: pointer;
-webkit-appearance: none;
appearance: none;
position: relative;
transition: all 0.2s;
flex-shrink: 0;
}
.form-checkbox:checked {
background: var(--accent);
border-color: var(--accent);
}
.form-checkbox:checked::after {
content: '✓';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 14px;
}
/* ACCIONES (Barra inferior pegajosa) */
.modal-actions {
display: flex;
gap: 1rem;
margin-top: 1rem;
margin-top: 0;
justify-content: flex-end;
flex-shrink: 0;
padding: 1rem 2rem;
border-top: 1px solid rgba(255,255,255,0.05);
background: var(--bg-amoled); /* Fondo para la barra sticky */
position: sticky;
bottom: 0;
z-index: 10;
}
.btn-modal-primary, .btn-modal-secondary, .btn-modal-danger {
/* Botones con nuevas clases para el modal */
.btn-primary, .btn-secondary, .btn-danger {
padding: 0.8rem 1.5rem;
border-radius: 999px;
font-weight: 700;
font-size: 0.95rem;
border: none;
cursor: pointer;
transition: transform 0.2s, opacity 0.2s;
flex: 1;
transition: transform 0.2s, background 0.2s;
flex: none;
}
.btn-modal-primary {
/* Re-estilizar btn-primary/secondary para el contexto del modal, pero manteniendo la base existente */
/* El .btn-primary global en book.css es blanco/negro, aquí es el color de acento/blanco para el modal */
.modal-actions .btn-primary { /* Asegura que el botón primario del modal use el color de acento */
background: var(--accent);
color: white;
}
.btn-modal-primary:hover {
.modal-actions .btn-primary:hover {
transform: scale(1.05);
/* No hace falta redefinir el hover */
}
.btn-modal-secondary {
.modal-actions .btn-secondary { /* Asegura que el botón secundario del modal use los estilos de blur */
background: rgba(255,255,255,0.1);
color: white;
border: 1px solid rgba(255,255,255,0.2);
}
.btn-modal-secondary:hover {
background: rgba(255,255,255,0.15);
.modal-actions .btn-secondary:hover {
background: rgba(255,255,255,0.15); /* Cambiado para ser coherente con list.css */
}
.btn-modal-danger {
background: #ef4444; /* Usar el color danger */
.btn-danger {
background: var(--danger);
color: white;
margin-right: auto; /* Para alinear a la izquierda */
}
.btn-modal-danger:hover {
.btn-danger:hover {
opacity: 0.9;
}
/* --- Media Queries (Ajuste del Modal) --- */
@media (max-width: 900px) {
.modal-content {
max-width: 95%;
}
.modal-fields-grid {
grid-template-columns: repeat(2, 1fr);
}
.form-group.notes-group {
grid-column: 1 / -1;
}
.form-group.checkbox-group {
grid-column: 1 / -1;
align-self: auto;
justify-content: flex-start;
}
.modal-actions {
padding: 1rem 1.5rem;
}
.modal-title, .modal-body {
padding-left: 1.5rem;
padding-right: 1.5rem;
}
}
@media (max-width: 550px) {
.modal-content {
margin: 0.5rem;
width: auto;
}
.modal-fields-grid {
grid-template-columns: 1fr;
gap: 1rem;
padding-bottom: 0;
}
.date-group {
flex-direction: column;
gap: 1rem;
}
.form-group.notes-group,
.form-group.checkbox-group {
grid-column: auto;
}
.modal-actions {
flex-direction: column;
align-items: stretch;
}
.btn-danger {
margin-right: 0;
order: 3;
}
.btn-secondary {
order: 2;
}
.btn-primary {
order: 1;
}
}