diff --git a/themes/red/assets/css/site.css b/themes/red/assets/css/site.css index 8b930af..78e8573 100644 --- a/themes/red/assets/css/site.css +++ b/themes/red/assets/css/site.css @@ -163,6 +163,81 @@ body { } } +/* printers */ +@media print { + :root { + --link: blue; + --secondary-accent: #c99192; + --border-color: black; + --background-primary: #fff !important; + --background-secondary: #fdfdfd; + --background-tertiary: #f0f0f0; + --text-color: #222; + --link-visited: #460b0b; + --extra-color: #efe4e4; + --border: 0px single transparent; + --shadow: 0px 0px 0px transparent; + } + + aside { + visibility: hidden; + height: 0 !important; + padding: 0 !important; + } + + @page { + margin: 0.5in; + } + + h1, h2, h3, h4, h5, h6 { + page-break-after: avoid !important; + } + + p, li, blockquote, figure, img { + page-break-inside: avoid !important; + } + + #content { + display: block !important; + } + + .breadcrumbs { + visibility: hidden; + height: 0; + } + + header { + visibility: hidden; + height: 0; + } + + .external-link { + visibility: hidden; + width: 0; + } + + footer { + visibility: hidden; + height: 0; + padding: 0 !important; + } + + .header-link { + visibility: hidden; + height: 0; + } + + details { + visibility: hidden; + height: 0; + } + + .voting-container { + visibility: hidden; + height: 0; + } +} + a:link { color: var(--link); } diff --git a/themes/red/layouts/_default/_markup/render-heading.html b/themes/red/layouts/_default/_markup/render-heading.html index 998e381..6f530da 100644 --- a/themes/red/layouts/_default/_markup/render-heading.html +++ b/themes/red/layouts/_default/_markup/render-heading.html @@ -1 +1 @@ -{{ .Text | safeHTML }} # +{{ .Text | safeHTML }} # diff --git a/themes/red/layouts/partials/fake-heading.html b/themes/red/layouts/partials/fake-heading.html index 23d61df..6bc4c5f 100644 --- a/themes/red/layouts/partials/fake-heading.html +++ b/themes/red/layouts/partials/fake-heading.html @@ -4,6 +4,6 @@ {{ $id := urlize $header_name }} {{ printf "<%s id=\"%s\">" $header_type $id | safeHTML }} {{ $header_name }} -# +# {{ printf "" $header_type | safeHTML }}