fix the fixed prose

This commit is contained in:
Torsten 2023-01-05 00:11:55 +02:00
parent 000d90171c
commit 7b67a61d02
6 changed files with 12 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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)

View File

@ -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