card_fields rewrite and magic-modules.mse-include (#21)

Overhauls the card_fields file to allow for template designers more freedom in manipulating data.

Adds magic-modules.mse-include, a large scale include file for building templates in a standardized way. Applying this to existing frames will be coming in future updates.
This commit is contained in:
GenevensiS
2024-05-25 00:57:47 +02:00
committed by GitHub
parent 44b059e2f7
commit fd4b8e4c89
1195 changed files with 13325 additions and 3633 deletions

View File

@@ -918,7 +918,7 @@ card style:
styling.center_text == "always"
then "middle center"
else "middle left"
z index: 2
z index: 3
padding left: 6
padding right: 4
line height hard: {if is_modal(card.rule_text) then 0.9 else 1.2 }
@@ -949,7 +949,7 @@ card style:
styling.center_text == "always"
then "middle center"
else "middle left"
z index: 2
z index: 3
padding left: 6
padding right: 4
line height hard: {if is_modal(card.rule_text_2) then 0.9 else 1.2 }
@@ -980,7 +980,7 @@ card style:
styling.center_text == "always"
then "middle center"
else "middle left"
z index: 2
z index: 3
padding left: 6
padding right: 4
line height hard: {if is_modal(card.rule_text) then 0.9 else 1.2 }
@@ -989,11 +989,11 @@ card style:
line height hard max: {if is_modal(card.rule_text) then 1.0 else 1.3 }
line height line max: 1.6
watermark:
left: { min(page_coords[page_1_side()][(if is_spot() then "spot_watermark" else "watermark")], page_coords[page_3_side()][(if is_spot() then "spot_watermark" else "watermark")]) }
top: { if is_spot() then 330 else max(page_1_top(), page_3_top()) }
left: { page_coords[page_1_side()][(if is_spot() then "spot_watermark" else "watermark")] }
top: { if is_spot() then 330 else page_1_top() }
width: { if is_spot() then 150 else 168}
bottom: {if is_spot() then 470 else 481}
z index: 1
z index: 2
render style: image
popup style: in place
alignment: middle center
@@ -1003,11 +1003,21 @@ card style:
top: { page_2_top() }
width: { if is_spot() then 154 else 167}
bottom: {if is_spot() then 470 else 481}
z index: 1
z index: 2
render style: image
popup style: in place
alignment: middle center
include file: /magic-watermarks.mse-include/watermarks
include file: /magic-watermarks.mse-include/watermarks_back
watermark 3:
left: { page_coords[page_3_side()][(if is_spot() then "spot_watermark" else "watermark")] }
top: { if is_spot() then 330 else page_3_top() }
width: { if is_spot() then 154 else 167}
bottom: {if is_spot() then 470 else 481}
z index: 2
render style: image
popup style: in place
alignment: middle center
include file: /magic-watermarks.mse-include/watermarks_third
############################# PT
pt:
z index: 2