|
| 1 | +{# Cover page template for mkdocs-print-site-plugin. |
| 2 | + Rendered as the first page of /print_page/. Context exposes `config`. #} |
| 3 | +<style> |
| 4 | + .print-cover-page { |
| 5 | + page-break-after: always; |
| 6 | + break-after: page; |
| 7 | + height: 100vh; |
| 8 | + display: flex; |
| 9 | + flex-direction: column; |
| 10 | + justify-content: space-between; |
| 11 | + align-items: stretch; |
| 12 | + padding: 3cm 2.5cm; |
| 13 | + box-sizing: border-box; |
| 14 | + font-family: Roboto, "Helvetica Neue", Arial, sans-serif; |
| 15 | + color: #1a1a1a; |
| 16 | + } |
| 17 | + .print-cover-page__brand { |
| 18 | + display: flex; |
| 19 | + align-items: center; |
| 20 | + gap: 0.6em; |
| 21 | + } |
| 22 | + .print-cover-page__brand img { |
| 23 | + width: 1.8cm; |
| 24 | + height: 1.8cm; |
| 25 | + } |
| 26 | + .print-cover-page__brand span { |
| 27 | + font-size: 14pt; |
| 28 | + font-weight: 500; |
| 29 | + color: #555; |
| 30 | + } |
| 31 | + .print-cover-page__body { |
| 32 | + margin-top: 4cm; |
| 33 | + } |
| 34 | + .print-cover-page__title { |
| 35 | + font-size: 34pt; |
| 36 | + font-weight: 700; |
| 37 | + margin: 0 0 0.3em 0; |
| 38 | + line-height: 1.15; |
| 39 | + } |
| 40 | + .print-cover-page__subtitle { |
| 41 | + font-size: 16pt; |
| 42 | + color: #555; |
| 43 | + font-weight: 400; |
| 44 | + margin: 0; |
| 45 | + } |
| 46 | + .print-cover-page__rule { |
| 47 | + border: none; |
| 48 | + border-top: 3px solid #0a6cb2; |
| 49 | + width: 6cm; |
| 50 | + margin: 1.5cm 0 1cm 0; |
| 51 | + } |
| 52 | + .print-cover-page__edition { |
| 53 | + display: grid; |
| 54 | + grid-template-columns: auto 1fr; |
| 55 | + column-gap: 1.2em; |
| 56 | + row-gap: 0.3em; |
| 57 | + margin: 0; |
| 58 | + font-size: 11pt; |
| 59 | + } |
| 60 | + .print-cover-page__edition dt { |
| 61 | + color: #666; |
| 62 | + font-weight: 500; |
| 63 | + } |
| 64 | + .print-cover-page__edition dd { |
| 65 | + margin: 0; |
| 66 | + color: #1a1a1a; |
| 67 | + } |
| 68 | + .print-cover-page__meta { |
| 69 | + font-size: 10pt; |
| 70 | + color: #666; |
| 71 | + line-height: 1.5; |
| 72 | + } |
| 73 | + .print-cover-page__meta a { color: inherit; text-decoration: none; } |
| 74 | + .print-cover-page__meta p { margin: 0.1em 0; } |
| 75 | +</style> |
| 76 | + |
| 77 | +<article class="print-cover-page"> |
| 78 | + <header class="print-cover-page__brand"> |
| 79 | + <img src="../assets/favicon.svg" alt=""> |
| 80 | + <span>eccenca</span> |
| 81 | + </header> |
| 82 | + |
| 83 | + <section class="print-cover-page__body"> |
| 84 | + <h1 class="print-cover-page__title">{{ config.site_name }}</h1> |
| 85 | + <p class="print-cover-page__subtitle">Corporate Memory Documentation</p> |
| 86 | + <hr class="print-cover-page__rule"> |
| 87 | + <dl class="print-cover-page__edition"> |
| 88 | + <dt>Version</dt> |
| 89 | + <dd><span id="print-cover-version">unset</span></dd> |
| 90 | + <dt>Generated</dt> |
| 91 | + <dd><span id="print-cover-date">unset</span></dd> |
| 92 | + </dl> |
| 93 | + </section> |
| 94 | + |
| 95 | + <footer class="print-cover-page__meta"> |
| 96 | + <p><a href="{{ config.site_url }}">{{ config.site_url }}</a></p> |
| 97 | + <p>{{ config.copyright | safe }}</p> |
| 98 | + </footer> |
| 99 | +</article> |
0 commit comments