better ui for anilist entries & fixes
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
--radius-full: 9999px;
|
||||
--danger: #ef4444;
|
||||
--success: #22c55e;
|
||||
--bg-amoled: #0a0a0a; /* Añadido de list.css */
|
||||
--bg-field: #0e0e0f; /* Añadido de list.css */
|
||||
}
|
||||
|
||||
body {
|
||||
@@ -271,92 +273,144 @@ body {
|
||||
.sidebar { display: none; }
|
||||
}
|
||||
|
||||
/* Modal Styles */
|
||||
/* --- ESTILOS DE MODAL (INCLUIDOS DE LIST.CSS) --- */
|
||||
.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); /* Más oscuro */
|
||||
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;
|
||||
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;
|
||||
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);
|
||||
|
||||
@keyframes modalSlideUp {
|
||||
from { opacity: 0; transform: translateY(20px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.modal-content.modal-list {
|
||||
max-width: 500px;
|
||||
.modal-content {
|
||||
background: var(--bg-amoled); /* AMOLED */
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: var(--radius-lg);
|
||||
max-width: 900px; /* Ancho para el grid de 3 columnas */
|
||||
width: 95%;
|
||||
padding: 0; /* padding se moverá al título y cuerpo */
|
||||
position: relative;
|
||||
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 { /* Usamos esto para sobrescribir el ancho genérico del modal de descripción */
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
.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: rgba(255, 255, 255, 0.2); }
|
||||
.modal-text {
|
||||
line-height: 1.8;
|
||||
font-size: 1.1rem;
|
||||
color: #e4e4e7;
|
||||
|
||||
.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-top: 0;
|
||||
margin-bottom: 0;
|
||||
color: var(--text-primary);
|
||||
border-bottom: 1px solid rgba(255,255,255,0.05);
|
||||
}
|
||||
.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;
|
||||
}
|
||||
|
||||
/* 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 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
/* Grid layout overrides */
|
||||
.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;
|
||||
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;
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
font-size: 0.8rem; /* Tamaño más pequeño */
|
||||
font-weight: 700;
|
||||
color: var(--text-secondary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.form-input {
|
||||
background: var(--bg-base);
|
||||
background: var(--bg-field); /* Fondo específico para campos */
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
color: var(--text-primary);
|
||||
padding: 0.8rem 1rem;
|
||||
@@ -372,10 +426,52 @@ body {
|
||||
box-shadow: 0 0 10px var(--accent-glow);
|
||||
}
|
||||
|
||||
.notes-textarea {
|
||||
resize: vertical;
|
||||
min-height: 100px;
|
||||
}
|
||||
|
||||
/* 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 {
|
||||
@@ -385,15 +481,14 @@ body {
|
||||
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; /* Asegura que no se estiren */
|
||||
}
|
||||
|
||||
.btn-modal-primary {
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-modal-primary:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
@@ -403,7 +498,6 @@ body {
|
||||
color: white;
|
||||
border: 1px solid rgba(255,255,255,0.2);
|
||||
}
|
||||
|
||||
.btn-modal-secondary:hover {
|
||||
background: rgba(255,255,255,0.15);
|
||||
}
|
||||
@@ -411,12 +505,34 @@ body {
|
||||
.btn-modal-danger {
|
||||
background: var(--danger);
|
||||
color: white;
|
||||
margin-right: auto; /* Para alinear a la izquierda */
|
||||
}
|
||||
|
||||
.btn-modal-danger:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
/* Media Queries para el 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-modal-danger { margin-right: 0; order: 3; }
|
||||
.btn-modal-secondary { order: 2; }
|
||||
.btn-modal-primary { order: 1; }
|
||||
}
|
||||
|
||||
|
||||
.read-more-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
|
||||
Reference in New Issue
Block a user