170 lines
2.8 KiB
CSS
170 lines
2.8 KiB
CSS
* {
|
|
margin: 0; padding: 0; border: 0;
|
|
}
|
|
|
|
@page {
|
|
size: A4;
|
|
}
|
|
@media print {
|
|
body {
|
|
width: 21cm;
|
|
height: 29.7cm;
|
|
margin-top: 1.2cm;
|
|
margin-left: 1.2cm;
|
|
}
|
|
/*manual alignment ftw*/
|
|
|
|
article:nth-child(9n) {
|
|
margin-bottom: 4.55cm;
|
|
margin-bottom: 1.8cm;
|
|
margin-bottom: 2.93cm;
|
|
margin-bottom: 3.5cm;
|
|
}
|
|
|
|
}
|
|
:root {
|
|
font-family: sans-serif;
|
|
font-size: 3mm;
|
|
font-weight: 500;
|
|
}
|
|
|
|
|
|
article {
|
|
margin: 0.1mm 0.1mm;
|
|
display: block;
|
|
float: left;
|
|
width: 5.6cm;
|
|
height: 8.9cm;
|
|
|
|
display: grid;
|
|
grid-template-columns: 5fr 2fr;
|
|
grid-template-rows: 2em 18mm 1.3em auto 1.5em;
|
|
grid-template-areas:
|
|
"header header"
|
|
"figure figure"
|
|
"cost cost"
|
|
"info info"
|
|
"power cp";
|
|
|
|
border-radius: 2mm;
|
|
grid-gap: 1.5mm 1.5mm;
|
|
border-style: solid;
|
|
border-width: 2mm;
|
|
border-color: #333;
|
|
background-color: #333;
|
|
cursor: pointer;
|
|
}
|
|
article.effects {
|
|
grid-template-columns: 4fr 3fr;
|
|
grid-template-areas:
|
|
"header header"
|
|
"figure effects"
|
|
"cost cost"
|
|
"info info"
|
|
"power cp";
|
|
}
|
|
|
|
article >* {
|
|
background-color: #ddd;
|
|
text-align: center;
|
|
line-height: 1.4em;
|
|
padding: 0 1mm;
|
|
border-radius: 1mm;
|
|
}
|
|
|
|
article h1 {
|
|
grid-area: header;
|
|
padding: 1mm 0;
|
|
font-size: 1.2em;
|
|
line-height: 1.1em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
article figure {
|
|
grid-area: figure;
|
|
background: none;
|
|
overflow: hidden;
|
|
}
|
|
|
|
article figure * {
|
|
color: #999;
|
|
}
|
|
article figure img{
|
|
display: block;
|
|
height: 97%;
|
|
margin: auto auto;
|
|
}
|
|
article figure img.svg_filter{
|
|
filter:
|
|
brightness(0)
|
|
invert(1)
|
|
opacity(0.5);
|
|
}
|
|
article figure .mdi,
|
|
article figure .fa,
|
|
article figure .material-icons.figure {
|
|
font-size: 1.7cm;
|
|
line-height: 1.7cm;
|
|
}
|
|
|
|
article ul {
|
|
grid-area: effects;
|
|
list-style-type: none;
|
|
padding: 1mm 0;
|
|
}
|
|
|
|
article main {
|
|
padding: 2mm 1mm;
|
|
grid-area: info;
|
|
position: relative;
|
|
}
|
|
article main ol {
|
|
margin-top: 1mm;
|
|
text-align: left;
|
|
padding-left: 5mm;
|
|
}
|
|
article main ol li + li{
|
|
margin-top: 0.5mm;
|
|
}
|
|
article main big{
|
|
font-size: 1.5em;
|
|
}
|
|
article main .bottom {
|
|
width: 100%;
|
|
position: absolute;
|
|
bottom: 2mm;
|
|
left: 0;
|
|
}
|
|
|
|
article .power {
|
|
grid-area: power;
|
|
text-align: left;
|
|
}
|
|
article .power:before{
|
|
content: "Power: ";
|
|
font-size: 0.7em;
|
|
}
|
|
article .cost {
|
|
grid-area: cost;
|
|
}
|
|
article .cp,
|
|
article .gp {
|
|
grid-area: cp;
|
|
text-align: right;
|
|
}
|
|
article .cp:after{
|
|
content: " CP";
|
|
font-size: 0.7em;
|
|
}
|
|
article .gp:after{
|
|
content: " Gold";
|
|
font-size: 0.6em;
|
|
}
|
|
|
|
center.message {
|
|
font-size: 1.3em;
|
|
position: absolute;
|
|
bottom:0;
|
|
width: 100%;
|
|
}
|