kern

White space theme for Hugo
Log | Files | Refs | LICENSE

print.css (1519B)


      1 @media print {
      2   :root {
      3     --primary-fg-color: #000;
      4     --primary-bg-color: #fff;
      5     --secondary-fg-color: #000;
      6     --secondary-bg-color: #fff;
      7     --ui-element-color: #000;
      8   }
      9 
     10   html {
     11     font-size: 12pt;
     12     line-height: 1.5;
     13   }
     14 
     15   main {
     16     margin-top: 0;
     17     margin-bottom: 0;
     18   }
     19 
     20   article > * { padding: 0; }
     21 
     22   a,
     23   p {
     24     overflow-wrap: break-word;
     25     hyphens: auto;
     26     text-align: justify;
     27   }
     28 
     29   .citation .source { font: italic 12pt/1.5 serif; }
     30 
     31   a:visited,
     32   a:link { color: #00f; }
     33 
     34   .footnotes * {
     35     font: 12pt/1.5 'Linux Libertine', serif;
     36     text-align: start;
     37   }
     38 
     39   .recent-posts,
     40   .footnotes hr,
     41   .post-nav,
     42   .tag-section,
     43   .micro-post-footer,
     44   .regular-post-footer,
     45   header,
     46   footer { display: none; }
     47 
     48   
     49   .hint,
     50   blockquote { border: none; }
     51 
     52   blockquote > * { padding: 0 3rem; }
     53   
     54   pre,
     55   figure,
     56   .footnotes,
     57   table,
     58   tr,
     59   td,
     60   th { page-break-inside: avoid; }
     61 
     62   .footnotes { font-size: 12pt; }
     63 
     64   .footnotes:before {
     65     content: "Fußnoten & Quellen";
     66     font-size: 18pt;
     67     font-family: 'Linux Libertine Display', serif;
     68     font-weight: bold;
     69   }
     70 
     71   pre {
     72     font-size: 10pt;
     73     line-height: 1.1;
     74     display: block;
     75     white-space: pre-wrap;
     76     overflow-wrap: anywhere;
     77     padding: 0;
     78   }
     79   
     80   video,
     81   img {
     82     margin-left: auto;
     83     margin-right: auto;
     84   }
     85 
     86   figure { max-width: 500px; }
     87 
     88   figcaption { font: 12pt/1.5  "Linux Libertine", serif; }
     89 
     90   pre.chroma,
     91   .highlight { padding: 0; }
     92 
     93   @page {
     94     size: A4;
     95     margin: 20mm;
     96   }
     97 }