added shadow to arkhamdb card gallery

This commit is contained in:
Chr1Z93 2024-10-29 14:38:05 +01:00
parent fc8723ba27
commit fc793b971c

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); }