full image card fix

This commit is contained in:
Torsten 2023-02-15 14:12:07 +02:00
parent 38810859c5
commit 78f47614fa

View File

@ -1,9 +1,10 @@
.group.m-8.overflow-hidden.relative.flex.h-96.items-end
= image_for( card , "absolute inset-0 h-full w-full object-cover hover:scale-110 ease-in duration-700")
.relative.w-full.m-2.p-4.tracking-widest{text_align_option(card ,"sm:w-1/2")}
%div.transition-colors.group-hover:bg-black.group-hover:text-white{options(card , :text_align , :text_color , :background)}
.relative.w-full.m-2.p-4
%h3.text-lg
= card.header
.mt-1.text-xs.font-medium{ prose_classes }
= markdown(card)
-unless card.header.blank? and card.text.blank?
%div.transition-colors.group-hover:bg-black.group-hover:text-white{options(card , :text_align , :text_color , :background)}
.relative.w-full.m-2.p-4
%h3.text-lg
= card.header
.mt-1.text-xs.font-medium{ prose_classes }
= markdown(card)