fix the fixed prose
This commit is contained in:
parent
000d90171c
commit
7b67a61d02
BIN
app/assets/images/merged/card_preview/card_feature.png
Normal file
BIN
app/assets/images/merged/card_preview/card_feature.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
@ -14,7 +14,7 @@ module Merged
|
||||
|
||||
def prose_classes
|
||||
classes = "prose lg:prose-lg "
|
||||
classes += "prose-headings:text-inherit"
|
||||
classes += "prose-headings:text-inherit "
|
||||
{ class: classes }
|
||||
end
|
||||
|
||||
|
@ -31,6 +31,11 @@ module Merged
|
||||
"#{attr} of #{date.strftime('%B')} #{date.year}"
|
||||
end
|
||||
|
||||
# adds prose irrespective of options
|
||||
def prose_option(section)
|
||||
prose_classes
|
||||
end
|
||||
|
||||
def order_option(section , clazz = "")
|
||||
if section.has_option?("order")
|
||||
clazz += " md:order-last" if section.option('order') == "right"
|
||||
|
@ -24,9 +24,9 @@
|
||||
%td.whitespace-nowrap.px-4.py-2.text-gray-700
|
||||
= type.to_s.capitalize
|
||||
-[:Page , :Section , :Card , :Image].each do |element|
|
||||
%td.whitespace-nowrap.px-4.py-2.text-gray-700
|
||||
%td.px-4.py-2.text-gray-700
|
||||
- changeset(type , element).each do |name|
|
||||
%span=name.last
|
||||
=name.last
|
||||
|
||||
.grid.grid-cols-3.bg-white
|
||||
.items-center.justify-center.col-span-2
|
||||
|
@ -8,6 +8,5 @@
|
||||
.text-xl.pb-6{ prose_classes }
|
||||
= section.option("subheader")
|
||||
|
||||
.max-w-full.mt-4.gap-16{ text_column_option(section)}
|
||||
%div{ prose_classes }
|
||||
= markdown_image(section)
|
||||
.max-w-full.mt-4.gap-16{ options(section , :text_column , :prose ) }
|
||||
= markdown_image(section)
|
||||
|
@ -77,7 +77,7 @@
|
||||
shade_color: black_25
|
||||
color: solid_blue
|
||||
align: left
|
||||
:updated_at: 2023-01-01 14:31:09.419445755 +02:00
|
||||
:updated_at: 2023-01-04 23:50:28.275902275 +02:00
|
||||
:page_id: 6
|
||||
:index: 2
|
||||
:image_id: 16
|
||||
|
Loading…
Reference in New Issue
Block a user