arthur.bebou

Le site arthur.bebou.netlib.re - retour accueil

git clone git://bebou.netlib.re/arthur.bebou
Log | Files | Refs |

commit 1e07261cbf613b4d16e6c1eab2622e6be95bb6e2
parent c56d1a0ea98d3fdca366856be8980cfdc9bcfc4c
Auteurice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Fri, 29 Nov 2024 12:50:56 +0100

CSS bon pour print

En avant première mondiale sur bebou, merci Timothée :)

Diffstat:
Mcontents/style.css | 42++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+), 0 deletions(-)

diff --git a/contents/style.css b/contents/style.css @@ -490,3 +490,45 @@ sub { top: 0.3em; } +@media print { + @page { + margin: 1cm; + } + * { + background: none !important; + } + body { + display: block; + } + body > header nav, + body > footer, + a[href="/"], + a[href^="#fn"] { + display: none; + } + a[href^="http"]::after { + content: " <" attr(href) ">"; + } + abbr[title]:after { + content: " (" attr(title) ")"; + } + a { + text-decoration: none; + } + p { + widows: 3; + orphans: 3; + } + hr { + border-top: 1px solid var(--border); + } + pre, table, figure, img, svg { + break-inside: avoid; + } + pre code { + white-space: pre-wrap; + } + button, .button { + color: var(--text) !important; + } +}