diff --git a/gulpfile.mjs b/gulpfile.mjs index b364eb42..abf76fdf 100644 --- a/gulpfile.mjs +++ b/gulpfile.mjs @@ -25,10 +25,15 @@ function buildStyles() { }; function copySource() { - return src(['src/**/*', '!src/style/**/*.scss', '!src/packs/**/*']) + return src(['src/**/*', '!src/assets/**/*', '!src/style/**/*.scss', '!src/packs/**/*']) .pipe(dest('dist/')); } +function copyAssets() { + return src(['src/assets/**/*'], {encoding: false}) + .pipe(dest('dist/assets/')) +} + function updateManifestFile() { return src('dist/system.json') .pipe(replace('{{VERSION}}', process.env.VERSION)) @@ -61,6 +66,7 @@ function buildDB() { export default series( cleanDist, copySource, + copyAssets, buildStyles, buildDB, updateManifestFile diff --git a/src/style/_equipment-sheet.scss b/src/style/_equipment-sheet.scss index dc8ddbc0..3ef907d3 100644 --- a/src/style/_equipment-sheet.scss +++ b/src/style/_equipment-sheet.scss @@ -31,6 +31,26 @@ grid-area: name; } + .name { + position: relative; + + .img { + position: absolute; + right: 0; + bottom: 6px; + width: 24px; + height: 24px; + } + + label { + position: absolute; + left: 0; + top: 0; + right: 26px; + bottom: 0; + } + } + .bottomline { grid-area: bottomline; display: grid; diff --git a/src/templates/item/item-equipment-sheet.hbs b/src/templates/item/item-equipment-sheet.hbs index ed248076..7f97ecf5 100644 --- a/src/templates/item/item-equipment-sheet.hbs +++ b/src/templates/item/item-equipment-sheet.hbs @@ -22,6 +22,7 @@
+