From 7456799a58fcbb63c193a1e793a92e6aca17ebfd Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 11 Dec 2023 10:59:51 +0200 Subject: (presentation) Big overhaul, presentation.css is now always included, loading an article-mode page happens without slides flash, fixed certain cases where slides wouldn't resize but needed to --- src/presentation.css | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'src/presentation.css') diff --git a/src/presentation.css b/src/presentation.css index 7de2346..cc82b04 100644 --- a/src/presentation.css +++ b/src/presentation.css @@ -28,7 +28,6 @@ /* Stylesheet override */ -article { overflow: hidden; } /* Presentation controller */ #presentCont { margin: 0.5em 0.5em 0.5em 0; } @@ -161,19 +160,10 @@ absolute-slide {...} */ } @media print { - article, body { - border: none !important; - margin: 0; - max-width: none; - padding: 0; - } - nav, article > :not(.slide), #pagenav { - display: none !important; - } - .slide { - height: 210mm; - width: 297mm; - margin: 0; - } + /* The contents of this rule are inserted from presentation.js + * because we need to do changes to non-presentation elements + * (like article or #pagenav) when the current page is trully + * a presentation, while presentation.css is inserted in every + * page. + */ } - -- cgit v1.3.1-23-gd82d