Skip to content

Commit

Permalink
adding checkerboard css for white/transp. SVG
Browse files Browse the repository at this point in the history
  • Loading branch information
drfho committed Sep 6, 2023
1 parent 53bd2c0 commit de24c1d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/Products/CMFCore/dtml/custimage.dtml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,18 @@
<dtml-var "tag(css_class='img-thumbnail', id='preview')">
</dtml-if></span>
</figure>

<style>
/* <!-- Checkerboard background visualizing white and transparency */
figure#preview img {
background-color: #fff;
background-position: 0px 0px, 10px 10px;
background-size: 20px 20px;
background-image:
linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee 100%),
linear-gradient(45deg, #eee 25%, white 25%, white 75%, #eee 75%, #eee 100%);"
}
/* -->*/
</style>
</main>

<dtml-var manage_page_footer>

0 comments on commit de24c1d

Please sign in to comment.