full image card fix
This commit is contained in:
parent
38810859c5
commit
78f47614fa
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user