RPGs3_card_insanity/templates/all.html.j2

50 lines
720 B
Plaintext
Raw Permalink Normal View History

<style>
@page
{
size: auto;
margin: 0.5cm;
}
body {
background-color: white;
margin: 0;
padding: 0;
-webkit-print-color-adjust: exact;
}
.card_wrapper {
width: 2.5in;
height: 3.5in;
float: left;
border: 1px solid transparent;
page-break-inside: avoid;
2020-03-07 02:29:20 +01:00
position: relative;
}
2020-03-07 02:29:20 +01:00
.card_cover,
iframe {
2020-03-07 02:29:20 +01:00
position: absolute;
top:0;
left:0;
width:2.5in;
height:3.5in;
2020-03-07 02:29:20 +01:00
margin: none;
padding: none;
border: none;
}
.card_cover {
cursor: pointer;
}
</style>
<div>
{% for cardname in cards %}
<div class="card_wrapper">
<iframe src="{{ cardname }}" scrolling=no></iframe>
2020-03-07 02:29:20 +01:00
<div class="card_cover" onclick='window.location = {{cardname|tojson}}'></div>
</div>
{% endfor %}
</div>