Merge pull request #943 from argonui/instruction-generator

Added shadow to arkhamdb card gallery
This commit is contained in:
dscarpac 2024-10-29 08:53:14 -05:00 committed by GitHub
commit c487309e4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,7 +13,13 @@ local sliceRotateScale = 0.714 -- 1 / cardRatio
-- template for the description -- template for the description
local galleryTemplateStart = [[<style> local galleryTemplateStart = [[<style>
.sced-spacer { height: 60px; } .sced-spacer { height: 60px; }
.sced-card { width: ]] .. cardWidth .. [[px; border-radius: 5px; margin: 0; transition: transform 0.25s ease-in-out; } .sced-card {
width: ]] .. cardWidth .. [[px;
border-radius: 5px;
margin: 0;
transition: transform 0.25s ease-in-out;
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.4);
}
.sced-slice { background-repeat: no-repeat; height: ]] .. cardHeight .. [[px; } .sced-slice { background-repeat: no-repeat; height: ]] .. cardHeight .. [[px; }
.sced-card:hover { transform: scale(]] .. hoverScale .. [[); } .sced-card:hover { transform: scale(]] .. hoverScale .. [[); }
.sced-rotate { transform: scale(]] .. sliceRotateScale .. [[) rotate(270deg); } .sced-rotate { transform: scale(]] .. sliceRotateScale .. [[) rotate(270deg); }