]> Git — Sourcephile - julm/worksheets.git/blob - data/styles/Page.css
update
[julm/worksheets.git] / data / styles / Page.css
1 body {
2 background:rgb(204,204,204);
3 display:grid;
4 font-size:12pt;
5 grid-template-columns:1 / -1;
6 height:100%;
7 justify-content:center;
8 justify-items:center;
9 line-height:1.4;
10 margin:0 auto;
11 padding:0;
12 width:300mm;
13 }
14 * {
15 box-sizing:border-box;
16 -moz-box-sizing:border-box;
17 }
18 .main-page {
19 margin:10mm auto;
20 background-color:white;
21 box-shadow:0 0 0.5cm rgba(0,0,0,0.5);
22 }
23 .sub-page {
24 padding:1cm;
25 }
26 .page-PageSizeA4-PageOrientationPortrait {
27 height:297mm;
28 width:210mm;
29 /* ExplanationNote: to bind the paper for easy writing. */
30 margin-top:1cm;
31 }
32 .page-PageSizeA4-PageOrientationLandscape {
33 height:210mm;
34 width:297mm;
35 }
36 @page {
37 margin:0;
38 }
39 @media print {
40 .main-page {
41 padding:0;
42 margin:0;
43 border:initial;
44 border-radius:initial;
45 width:initial;
46 min-height:initial;
47 box-shadow:initial;
48 background:white;
49 page-break-after:always;
50 }
51 }