From 3e561184c2b3765c2610f2fda9a3b8ab9cdf8771 Mon Sep 17 00:00:00 2001 From: Gustavo Date: Mon, 30 Mar 2026 09:12:23 +0000 Subject: [PATCH] add style img portada --- style.css | 14 +++++++++----- views/templates/page-portada.twig | 4 ++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/style.css b/style.css index 01ee7f8..3cf8b65 100644 --- a/style.css +++ b/style.css @@ -354,9 +354,9 @@ button[type="reset"] { } /* PORTADA -> SECTION CAMPAÑA */ -.section-campana-conflictos .card-img-fixed { - min-height: 300px; - max-height: 300px; +.page-portada .section-campana-conflictos .card-img-fixed { + min-height: 350px; + max-height: 350px; object-fit: cover; width: 100%; } @@ -386,13 +386,17 @@ button[type="reset"] { /* efecto img */ .page-portada .img-noticias, -.posts-noticias .img-noticias { +.page-portada .img-noticias-small, +.posts-noticias .img-noticias, +.page-portada .section-campana-conflictos .card-img-fixed { transition: filter 0.3s ease; } /* efecto img */ .page-portada .img-noticias:hover, -.posts-noticias .img-noticias:hover { +.page-portada .img-noticias-small:hover, +.posts-noticias .img-noticias:hover, +.page-portada .section-campana-conflictos .card-img-fixed:hover { filter: grayscale(100%); } diff --git a/views/templates/page-portada.twig b/views/templates/page-portada.twig index d230d8d..e817417 100644 --- a/views/templates/page-portada.twig +++ b/views/templates/page-portada.twig @@ -96,7 +96,7 @@ {{ alt }} + class="card-img card-img-fixed" />

{{ main_article.title }} @@ -122,7 +122,7 @@ {{ alt }} + class="card-img card-img-fixed"/>