documenti/test-da-stampare.md + stile-stampa.css -> test-da-stampare.pdf (5 pagine A4, 43 prove, 129 caselle, colonna 'sotto' per cio' che il banco ha gia' provato, spazio per le note, limiti noti in fondo).
102 lines
2.2 KiB
CSS
102 lines
2.2 KiB
CSS
/* Foglio di stampa per le prove da fare a mano: A4, caselle da barrare,
|
|
righe compatte ma leggibili su carta. */
|
|
@page {
|
|
size: A4;
|
|
margin: 1.6cm 1.5cm 1.6cm 1.5cm;
|
|
@bottom-center {
|
|
content: "prove GrumpyDove · pagina " counter(page) " di " counter(pages);
|
|
font-family: "DejaVu Sans", sans-serif;
|
|
font-size: 8pt;
|
|
color: #777;
|
|
}
|
|
}
|
|
|
|
body {
|
|
font-family: "DejaVu Sans", sans-serif;
|
|
font-size: 10pt;
|
|
line-height: 1.35;
|
|
color: #1a1a1a;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 17pt;
|
|
margin: 0 0 0.2em 0;
|
|
color: #14416b;
|
|
border-bottom: 2px solid #14416b;
|
|
padding-bottom: 0.2em;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 12pt;
|
|
margin: 1.1em 0 0.35em 0;
|
|
color: #14416b;
|
|
border-bottom: 1px solid #c9d6e4;
|
|
padding-bottom: 0.1em;
|
|
page-break-after: avoid;
|
|
}
|
|
|
|
p { margin: 0.3em 0; }
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 0.3em 0 0.8em 0;
|
|
}
|
|
|
|
/* La tabella può spezzarsi tra due pagine; la singola riga no, altrimenti
|
|
una prova finisce metà di qua e metà di là. */
|
|
tr { page-break-inside: avoid; }
|
|
thead { display: table-header-group; }
|
|
|
|
th {
|
|
background: #14416b;
|
|
color: #fff;
|
|
font-size: 8.5pt;
|
|
text-align: left;
|
|
padding: 3px 4px;
|
|
border: 1px solid #14416b;
|
|
}
|
|
|
|
td {
|
|
font-size: 9.5pt;
|
|
padding: 3px 4px;
|
|
border: 1px solid #ccd6e0;
|
|
vertical-align: top;
|
|
}
|
|
|
|
tbody tr:nth-child(even) td { background: #f4f7fa; }
|
|
|
|
/* Le colonne delle caselle strette e centrate; il numero della prova in
|
|
grassetto; la colonna «sotto» come segno discrete. */
|
|
td:nth-child(1), td:nth-child(2), td:nth-child(3) {
|
|
width: 1.25cm;
|
|
text-align: center;
|
|
font-size: 17pt; /* casella grande abbastanza per la penna */
|
|
line-height: 1;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
td:nth-child(4) {
|
|
width: 1.2cm;
|
|
font-weight: bold;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
td:nth-child(7) {
|
|
width: 1.1cm;
|
|
text-align: center;
|
|
color: #1a7f37;
|
|
font-weight: bold;
|
|
}
|
|
|
|
code {
|
|
font-family: "DejaVu Sans Mono", monospace;
|
|
font-size: 8.5pt;
|
|
background: #eef2f6;
|
|
padding: 0 2px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
ul { margin: 0.3em 0 0.6em 1.1em; padding: 0; }
|
|
li { margin: 0.15em 0; font-size: 9.5pt; }
|