diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2026-01-15 22:01:47 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2026-01-15 22:03:42 +0100 |
| commit | c8bc1513f9e459dc0c6761fc42f1ea77fce2654d (patch) | |
| tree | f332eb440846f1997d91df897248160ca3463fea /src/style.css | |
| parent | f32ec21c3a2aaef8435abab314176b03c07755b9 (diff) | |
| download | sebastiano.tronto.net-c8bc1513f9e459dc0c6761fc42f1ea77fce2654d.tar.gz sebastiano.tronto.net-c8bc1513f9e459dc0c6761fc42f1ea77fce2654d.zip | |
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.
Diffstat (limited to 'src/style.css')
| -rw-r--r-- | src/style.css | 11 |
1 files changed, 9 insertions, 2 deletions
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; } | |||
| 16 | a { color: #0f2899; text-decoration: none; } | 16 | a { color: #0f2899; text-decoration: none; } |
| 17 | a:hover { text-decoration: underline; } | 17 | a:hover { text-decoration: underline; } |
| 18 | img { display: block; margin-left: auto; margin-right: auto; max-width: 100%; } | 18 | img { display: block; margin-left: auto; margin-right: auto; max-width: 100%; } |
| 19 | pre { background-color: #eeeeee; border: 2px solid; padding: | 19 | pre { background-color: #eeeeee; border: 2px solid; |
| 20 | 6px; overflow-x: auto; } | 20 | padding: 6px; overflow-x: auto; } |
| 21 | pre code { padding: 0px; } | 21 | pre code { padding: 0px; } |
| 22 | code { background-color: #eeeeee; padding: 2px; } | 22 | code { background-color: #eeeeee; padding: 2px; } |
| 23 | #blob { background: #ffffff; border: none; } | 23 | #blob { background: #ffffff; border: none; } |
| @@ -29,3 +29,10 @@ td h1 { text-align: left; font-size: 1.5em; } | |||
| 29 | #log tr:hover td, #files tr:hover td { background-color: #eeeeee; } | 29 | #log tr:hover td, #files tr:hover td { background-color: #eeeeee; } |
| 30 | .url td { font-family: monospace; } | 30 | .url td { font-family: monospace; } |
| 31 | table tr td a img { min-width: 33px; } | 31 | table tr td a img { min-width: 33px; } |
| 32 | |||
| 33 | /* Page break for printing */ | ||
| 34 | @media print { | ||
| 35 | .page-break { break-before: always; } | ||
| 36 | img, p { break-inside: avoid; } | ||
| 37 | h1, h2, h3 { break-after: avoid; } | ||
| 38 | } | ||
