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
|
||||
- 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?
|
||||
%h1.text-2xl.font-bold.tracking-tight.sm:text-4xl
|
||||
= section.header
|
||||
|
@ -1,7 +1,7 @@
|
||||
.m-4.md:m-8.lg:m-12{background_option(card)}
|
||||
%div{ order_option(card)}
|
||||
.flex.flex-col.justify-between{background_option(card)}
|
||||
%div{ order_option(card , "align-bottom")}
|
||||
= 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
|
||||
-if card.has_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")
|
||||
.mx-6{options(card , :text_align , :text_color , :order , "lg:w-2/5")}
|
||||
%h3.px-4.mt-2.text-2xl.font-bold= card.header
|
||||
.ml-0.lg:ml-10.mt-6.lg:mt0{options(card , :text_align , :text_color , :order , "lg:w-2/5")}
|
||||
%h3.text-2xl.font-bold= card.header
|
||||
-if card.has_option?("subheader")
|
||||
%h4.p-4.text-xl= card.option("subheader")
|
||||
.mt-2.p-4{prose_classes}= markdown(card)
|
||||
%h4.py-4.text-xl= card.option("subheader")
|
||||
.py-4{prose_classes}= markdown(card)
|
||||
=view_button(card , "mb-2")
|
||||
|
Loading…
Reference in New Issue
Block a user