shx-3d-render

main
Jan Umbach 2024-06-22 14:17:11 +02:00
parent 51056be2ab
commit 18063d1fbc
1 changed files with 14 additions and 1 deletions

View File

@ -91,6 +91,16 @@
overflow: hidden;
}
.shx-mat-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
.shx-mat-matte, .shx-mat-silk {
position: absolute;
top: 0;
@ -356,7 +366,9 @@
<input type="radio" id="${inputID}-${color}" form="product-form-${section_id}" name="properties[${inputName}]" value="${FilamentList[color].name} #${color}" ${inputVal === color ? 'checked' : ''}>
<label for="${inputID}-${color}" style="background-color: ${FilamentList[color].hex};">
`;
html += `<div class="shx-mat-container">`;
if(FilamentList[color].matte) {
html += `<span class="shx-mat-matte"></span>`;
}
@ -364,6 +376,7 @@
if(FilamentList[color].silk) {
html += `<span class="shx-mat-silk"></span>`;
}
html += `</div>`;
html += `</label>`;
}