From c8bc1513f9e459dc0c6761fc42f1ea77fce2654d Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 15 Jan 2026 22:01:47 +0100 Subject: av2 singlepage + stuff - Added single-page version of the Alta Via 2 pages, optimized for printing in A4 format. - Added .noheadermd extension to build.sh (treated like .md, but without header and footer). - Added versioning for css file. - Resized some Alta Via 2 pictures for fitting in pdf page. --- src/style.css | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/style.css') diff --git a/src/style.css b/src/style.css index 81cde7f..b0bc3e7 100644 --- a/src/style.css +++ b/src/style.css @@ -16,8 +16,8 @@ body { margin: auto 8px 20px 8px; } a { color: #0f2899; text-decoration: none; } a:hover { text-decoration: underline; } img { display: block; margin-left: auto; margin-right: auto; max-width: 100%; } -pre { background-color: #eeeeee; border: 2px solid; padding: - 6px; overflow-x: auto; } +pre { background-color: #eeeeee; border: 2px solid; + padding: 6px; overflow-x: auto; } pre code { padding: 0px; } code { background-color: #eeeeee; padding: 2px; } #blob { background: #ffffff; border: none; } @@ -29,3 +29,10 @@ td h1 { text-align: left; font-size: 1.5em; } #log tr:hover td, #files tr:hover td { background-color: #eeeeee; } .url td { font-family: monospace; } table tr td a img { min-width: 33px; } + +/* Page break for printing */ +@media print { + .page-break { break-before: always; } + img, p { break-inside: avoid; } + h1, h2, h3 { break-after: avoid; } +} -- cgit v1.3