fi margins and order
This commit is contained in:
parent
bd9b0ece5f
commit
3660f9e8e2
@ -1,7 +1,7 @@
|
|||||||
%section.m-5.md:m-12.lg:m-20{ options(section , :background , :text_color)}
|
%section.m-8.md:m-12.lg:m-20{ options(section , :background , :text_color)}
|
||||||
.flex.justify-center
|
.flex.justify-center
|
||||||
- unless section.header.blank? and section.text.blank?
|
- unless section.header.blank? and section.text.blank?
|
||||||
.max-w-prose.px-4.py-16{ options(section , :text_align)}
|
.px-4.py-16{ options(section , :text_align)}
|
||||||
- unless section.header.blank?
|
- unless section.header.blank?
|
||||||
%h1.text-2xl.font-bold.tracking-tight.sm:text-4xl
|
%h1.text-2xl.font-bold.tracking-tight.sm:text-4xl
|
||||||
= section.header
|
= section.header
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
.m-4.md:m-8.lg:m-12{background_option(card)}
|
.flex.flex-col.justify-between{background_option(card)}
|
||||||
%div{ order_option(card)}
|
%div{ order_option(card , "align-bottom")}
|
||||||
= image_for( card , "h-full w-full object-cover")
|
= image_for( card , "h-full w-full object-cover")
|
||||||
.m-6{options(card , :text_align , :text_color , :order)}
|
.m-6{options(card , :text_align , :text_color )}
|
||||||
%h3.p-4.text-2xl.font-bold= card.header
|
%h3.p-4.text-2xl.font-bold= card.header
|
||||||
-if card.has_option?("subheader")
|
-if card.has_option?("subheader")
|
||||||
%h4.p-4.text-xl= card.option("subheader")
|
%h4.p-4.text-xl= card.option("subheader")
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
.flex.m-2.flex-col.lg:flex-row.md:m-4.lg:m-6{background_option(card)}
|
.flex.flex-col.lg:flex-row{background_option(card)}
|
||||||
= image_for( card , "object-cover lg:w-3/5")
|
= image_for( card , "object-cover lg:w-3/5")
|
||||||
.mx-6{options(card , :text_align , :text_color , :order , "lg:w-2/5")}
|
.ml-0.lg:ml-10.mt-6.lg:mt0{options(card , :text_align , :text_color , :order , "lg:w-2/5")}
|
||||||
%h3.px-4.mt-2.text-2xl.font-bold= card.header
|
%h3.text-2xl.font-bold= card.header
|
||||||
-if card.has_option?("subheader")
|
-if card.has_option?("subheader")
|
||||||
%h4.p-4.text-xl= card.option("subheader")
|
%h4.py-4.text-xl= card.option("subheader")
|
||||||
.mt-2.p-4{prose_classes}= markdown(card)
|
.py-4{prose_classes}= markdown(card)
|
||||||
=view_button(card , "mb-2")
|
=view_button(card , "mb-2")
|
||||||
|
Loading…
Reference in New Issue
Block a user