From bac8bd1327057ab332f1edcc05d65af89965fad1 Mon Sep 17 00:00:00 2001 From: Pyrofab Date: Tue, 2 Apr 2024 22:27:31 +0200 Subject: [PATCH] Add shapeless indicator to recipe widgets --- public/_includes/mc/crafting.liquid | 5 +++++ public/_sass/parts/mc.scss | 14 ++++++++++++++ public/img/wiki-crafting-shapeless.png | Bin 0 -> 656 bytes public/wiki/requiem/opus_daemonium.md | 2 +- 4 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 public/img/wiki-crafting-shapeless.png diff --git a/public/_includes/mc/crafting.liquid b/public/_includes/mc/crafting.liquid index fc4204f7..59d5424c 100644 --- a/public/_includes/mc/crafting.liquid +++ b/public/_includes/mc/crafting.liquid @@ -25,6 +25,11 @@ {%- endfor -%} +{%- unless include.shaped -%} +
+ Shapeless Recipe +
+{%- endunless -%}
{%- itemstack item=include.result count=include.count alt_prefix="Result: " large=true -%}
diff --git a/public/_sass/parts/mc.scss b/public/_sass/parts/mc.scss index 2ac0e420..502ab252 100644 --- a/public/_sass/parts/mc.scss +++ b/public/_sass/parts/mc.scss @@ -151,6 +151,20 @@ figure.recipes { grid-template-columns: min-content min-content min-content; } +// more specificity to override the data-minetip-title position +.shapeless-icon, .shapeless-icon[data-minetip-title] { + width: 2.7em; + height: 2.15em; + left: 8.7em; + position: absolute; + + & > img { + image-rendering: pixelated; + width: 100%; + height: auto; + } +} + [data-minetip-title] { position: relative; } diff --git a/public/img/wiki-crafting-shapeless.png b/public/img/wiki-crafting-shapeless.png new file mode 100644 index 0000000000000000000000000000000000000000..cb478c313c86400f3072ee0ad6a2a1c15eaeeda0 GIT binary patch literal 656 zcmV;B0&o3^P)*zzG0004lX+uL$Nkc;* zaB^>EX>4Tx04R}tkv&MmKpe$i(@I4u4rUN>$WWc^q9Pq@6^c+H)C#RSm|Xe=O#E0ZoJ%eXJX18YnR#N7SSt0f+QY1D>clg|QB5}}U&wi^ zao*yrR~xKzPyWJ4!B|=5I?XYpu!tqdkf5T03aYRXqtzhALWcH}KK@bHFOy3pR|Sk5 z3#dVd;`+h=;CHuHaeB&2iX?%)7svS+2g18RyXiRJ$BxrJ0fNuKmC^OrT0s1h^k!F! z9sxt!z{Pb}Q}=+&9bn|Cu9%7|1!)S!BJh4j-;@W2Z-Id|ueZ)VP9K0Qb(OvW4i15d z5@oOZyt}`*w|~!c`uhRIHFC%HnGK8p000SaNLh0L01m(a01m(bYSxJf00007bV*G` z2j~O>6#)bDwOnKX005v#L_t(Y$L*Iv4uBvG1dHKUJdt;mcX{AqKxz@COSDI7Ak&py zbtxr!t(cjJLI}nBMiw>WRA$c5#;h*JD70%yE>)B(ZwSe%B-T*c>*`0YT`!`su3pxx zMRU3?598Q{)K#gaJTMd=cKXbzDZ8BO8<{iY5;taxmFj+kvgo!3P!j_uU6*70slLEF qth|@`G5D{w34a`mr1~R;;=?<72T(QVAp#8m0000 +{% recipe "requiem:opus_daemonium" %}