Theme the crafting panel and align ingredient icons

This commit is contained in:
Dev 2026-11-27 07:34:24 +01:00
commit e76ed616a3
4 changed files with 21 additions and 4 deletions

View file

@ -47,3 +47,18 @@
#recipe-item-card{margin-top:20px}
#recipe-item-card .item-lore-card{max-width:100%}
#recipe-station-layout{background:#2e2317 url('/recipe-icons/dune-crafting-panel.webp') center/100% 100% no-repeat;border-color:#7f5e32;box-shadow:0 4px 12px #34231466;padding:clamp(10px,2.6vw,24px)}
#recipe-grid li,#recipe-result{background:#23463c;box-shadow:inset 2px 2px #142820,inset -1px -1px #a7834b}
#recipe-grid li[aria-label="Empty slot"]{background:#172c27d9}
#recipe-result{outline-color:#d9ae61}
.recipe-arrow{background:#dcaf64}
#recipe-ingredients{padding:0;list-style:none}
#recipe-ingredients li{display:grid;grid-template-columns:max-content minmax(0,1fr) 26px;align-items:center;gap:8px}
.ingredient-icon{width:26px;height:26px;display:grid;place-items:center}
.ingredient-icon img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.ingredient-quantity{white-space:nowrap}
#recipe-ingredients{padding:6px 14px;border:1px solid #b39155;border-radius:5px;background:#fff4d440;box-shadow:inset 0 0 0 2px #faedca}
#recipe-ingredients li{margin:0;padding:9px 0}
#recipe-ingredients li+li{border-top:1px solid #b3915566}

View file

@ -4,8 +4,8 @@
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>Imperial Recipe Book · DuneRealms</title>
<meta name="description" content="Browse DuneRealms crafting, furnace and smoker recipes in the Imperial Recipe Book.">
<link rel="stylesheet" href="/styles.css"><link rel="stylesheet" href="/imperial-recipe-book.css?v=6">
<script type="module" src="/imperial-recipe-book.js?v=6"></script>
<link rel="stylesheet" href="/styles.css"><link rel="stylesheet" href="/imperial-recipe-book.css?v=7">
<script type="module" src="/imperial-recipe-book.js?v=7"></script>
<link rel="stylesheet" href="/portal-navigation.css"><script src="/portal-navigation.js" defer></script></head>
<body><header class="dune-site-header"></header>
<main id="main" class="realm-handbook">

View file

@ -56,8 +56,10 @@ try {
ingredients.set(item.id, row);
}
get('recipe-ingredients').replaceChildren(...[...ingredients.values()].map(({ item, count }) => {
const row = node('li', count + ' × ');
row.append(label(item));
const row = node('li', '');
const artwork = node('span', ''); artwork.className = 'ingredient-icon'; artwork.append(icon(item));
const quantity = node('span', count + ' ×'); quantity.className = 'ingredient-quantity';
row.append(quantity, label(item), artwork);
return row;
}));

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB