Skip to content

Commit

Permalink
Add shapeless indicator to recipe widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed Apr 2, 2024
1 parent d0288f5 commit bac8bd1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
5 changes: 5 additions & 0 deletions public/_includes/mc/crafting.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
</li>
{%- endfor -%}
</{{ grid_tag }}>
{%- unless include.shaped -%}
<div class="shapeless-icon" data-minetip-title="Shapeless Recipe" tabindex="0">
<img src="/img/wiki-crafting-shapeless.png" alt="Shapeless Recipe" width="39" height="31"/>
</div>
{%- endunless -%}
<div class="invslot invslot-large">
{%- itemstack item=include.result count=include.count alt_prefix="Result: " large=true -%}
</div>
Expand Down
14 changes: 14 additions & 0 deletions public/_sass/parts/mc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Binary file added public/img/wiki-crafting-shapeless.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/wiki/requiem/opus_daemonium.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ vitam vagrate" inside it and sign it.

## Recipe

<img class="recipe" alt="crafting recipe" src="img/recipes/opus_daemonium.png">
{% recipe "requiem:opus_daemonium" %}

0 comments on commit bac8bd1

Please sign in to comment.