From ffc7e611d72e8da0d549b0b7784083a124b3f887 Mon Sep 17 00:00:00 2001 From: Stephen Kerr Date: Sun, 9 Jun 2024 21:21:48 +0200 Subject: [PATCH] sidenotes slightly better buuuut --- print/print_style.css | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/print/print_style.css b/print/print_style.css index 6b346d4..7a20dd8 100644 --- a/print/print_style.css +++ b/print/print_style.css @@ -72,7 +72,6 @@ a{ font-size: 7pt; line-height: 3mm; text-align: left; - width: 35mm; display: inline-block; text-align-last: initial; box-sizing: border-box; @@ -80,13 +79,18 @@ a{ margin: 5mm 5mm 5mm -15mm; color: var(--spot-color-1); } -@page:right{ - .margin-note{ +body .pagedjs_left_page .margin-note{ + width: 35mm; +} +body .pagedjs_right_page .margin-note{ + width: 35mm; float:right; margin: 5mm -15mm 5mm 5mm; - } } body .margin-note{ + /* This is overriding position absolute in the plugin, + it breaks side notes that are too close to the bottom + of the page which is sad */ position: static; } .code pre{