@ -26,6 +26,7 @@ body {
display : flex ;
flex-direction : column ;
padding : 6mm 6mm 6mm 12mm ;
counter-reset : list ;
}
header {
@ -45,16 +46,36 @@ table#meta td:nth-child(odd) {
font-style : italic ;
}
table # attendance {
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. */
border-collapse : collapse ;
}
table # attendance th , table # attendance td { border : 1 px solid #000 }
table # attendance td { min-height : 5 mm ; width : 8 mm ; }
table # attendance tr : nth-child ( 1 ) {
background-color : # ddd ;
}
table # days th { height : 8 mm }
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 */