You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
1.3 KiB
CSS
82 lines
1.3 KiB
CSS
@page {
|
|
size: A4;
|
|
margin: 0;
|
|
}
|
|
|
|
@media print {
|
|
body {
|
|
margin: 0;
|
|
border: none;
|
|
}
|
|
}
|
|
@media screen {
|
|
body {
|
|
margin: 5mm;
|
|
border: 1px solid #aaa;
|
|
}
|
|
}
|
|
|
|
html, body {
|
|
width: 210mm;
|
|
height: 297mm;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 6mm 6mm 6mm 12mm;
|
|
counter-reset: list;
|
|
}
|
|
|
|
header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
table#meta {
|
|
margin: 8mm 0;
|
|
width: 100%;
|
|
}
|
|
table#meta td {
|
|
padding: .5mm 2mm;
|
|
}
|
|
table#meta td:nth-child(odd) {
|
|
text-align: right;
|
|
font-style: italic;
|
|
}
|
|
|
|
table#attendance, table#days {
|
|
flex-grow: 1;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
table#attendance th,
|
|
table#attendance td,
|
|
table#days th,
|
|
table#days td {
|
|
border: 1px solid #000
|
|
}
|
|
|
|
table#attendance {
|
|
transform: rotate(180deg); /* Hack for rotating a table by 270 degrees */
|
|
writing-mode: vertical-rl; /* and scaling it relatively to page size. */
|
|
}
|
|
table#attendance td { min-height: 5mm; width: 8mm; }
|
|
table#attendance tr:nth-child(1) {
|
|
background-color: #ddd;
|
|
}
|
|
|
|
table#days th { height: 8mm }
|
|
table#days th, table#days td {
|
|
padding: 2mm 3mm;
|
|
}
|
|
table#days th:nth-child(2) { width: 55% }
|
|
table#days td:nth-child(2):before {
|
|
counter-increment: list;
|
|
content: counter(list)'.';
|
|
}
|
|
|
|
#wrap { flex-grow: 1 } /* Needed in order to scale the table in the Y axis */
|