full image card fix

This commit is contained in:
Torsten 2023-02-15 14:12:07 +02:00
parent 38810859c5
commit 78f47614fa
1 changed files with 7 additions and 6 deletions

View File

@ -1,9 +1,10 @@
.group.m-8.overflow-hidden.relative.flex.h-96.items-end .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") = 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")} .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)} -unless card.header.blank? and card.text.blank?
.relative.w-full.m-2.p-4 %div.transition-colors.group-hover:bg-black.group-hover:text-white{options(card , :text_align , :text_color , :background)}
%h3.text-lg .relative.w-full.m-2.p-4
= card.header %h3.text-lg
.mt-1.text-xs.font-medium{ prose_classes } = card.header
= markdown(card) .mt-1.text-xs.font-medium{ prose_classes }
= markdown(card)