Files
WaifuBoard/views/css/gallery/image.css
2025-11-30 21:18:19 +01:00

145 lines
2.9 KiB
CSS

/* Placeholder para la altura del navbar fijo */
.gallery-hero-placeholder {
height: var(--nav-height);
width: 100%;
}
.item-content {
display: flex;
gap: 3rem;
padding-top: 2rem;
min-height: 80vh;
}
.image-col {
flex: 2;
max-width: 65%;
display: flex;
justify-content: center;
align-items: flex-start;
position: relative;
padding-bottom: 2rem;
}
.item-image {
max-width: 100%;
max-height: 85vh;
height: auto;
border-radius: var(--radius-md);
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
object-fit: contain;
opacity: 0; /* Inicialmente oculto para fade-in */
transition: opacity 0.5s ease;
}
.item-image.loaded {
opacity: 1;
}
.info-col {
flex: 1;
max-width: 35%;
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.info-header h1 {
font-size: 2.2rem;
margin: 0 0 0.5rem 0;
}
.info-header .provider-name {
color: var(--text-secondary);
font-size: 1rem;
margin-bottom: 1rem;
display: block;
}
.tags-section {
border-top: 1px solid rgba(255,255,255,0.1);
padding-top: 1.5rem;
}
.tags-section h3 {
margin: 0 0 1rem 0;
font-size: 1.2rem;
color: var(--text-secondary);
}
.tag-list {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.tag-item {
background: rgba(139, 92, 246, 0.2);
color: var(--accent);
padding: 0.4rem 0.8rem;
border-radius: 99px;
font-size: 0.9rem;
text-decoration: none;
transition: background 0.2s;
}
.tag-item:hover {
background: rgba(139, 92, 246, 0.4);
}
.download-btn {
padding: 1rem 2rem;
background: var(--accent);
color: var(--text-primary);
border: none;
border-radius: var(--radius-md);
font-size: 1.1rem;
font-weight: bold;
cursor: pointer;
text-align: center;
text-decoration: none;
transition: background 0.2s, box-shadow 0.2s;
margin-top: 1rem; /* Espacio después de las etiquetas */
}
.download-btn:hover {
background: #7c4dff;
box-shadow: 0 5px 20px var(--accent-glow);
}
/* --- Skeleton Styles --- */
.item-skeleton {
display: flex;
gap: 3rem;
width: 100%;
}
.image-col-skeleton {
flex: 2;
max-width: 65%;
aspect-ratio: 16/9;
height: 500px;
border-radius: var(--radius-md);
background: var(--bg-surface);
}
.info-col .provider-skeleton { width: 30%; height: 18px; margin-bottom: 1rem; }
.info-col .title-skeleton { width: 90%; height: 36px; margin-bottom: 3rem; }
.info-col .tag-label-skeleton { width: 40%; height: 20px; margin-bottom: 1rem; }
.info-col .tags-skeleton { width: 80%; height: 50px; margin-bottom: 3rem; }
.info-col .download-skeleton { width: 100%; height: 50px; }
/* Media Queries */
@media (max-width: 900px) {
.item-content, .item-skeleton {
flex-direction: column;
}
.image-col, .info-col, .image-col-skeleton {
max-width: 100%;
}
.item-image {
max-height: 80vh; /* Ajustar en móviles */
}
}