From 0b34f934bec31e2e3130c313b395d1a8d67ab119 Mon Sep 17 00:00:00 2001 From: Giorgio Garofalo Date: Thu, 5 Sep 2024 19:45:36 +0200 Subject: [PATCH] Remove CSS-based page margin contents for paged documents --- .../main/resources/render/theme/global.css | 87 +------------------ .../resources/render/theme/layout/latex.css | 2 - 2 files changed, 1 insertion(+), 88 deletions(-) diff --git a/core/src/main/resources/render/theme/global.css b/core/src/main/resources/render/theme/global.css index 87133d9d..a3563f7f 100644 --- a/core/src/main/resources/render/theme/global.css +++ b/core/src/main/resources/render/theme/global.css @@ -32,24 +32,6 @@ --r-heading-font: var(--qd-heading-font); --r-block-margin: var(--qd-block-margin); --r-heading-margin: var(--qd-slides-heading-margin); - - /* Overridable paged margin content */ - --page-margin-top-left-corner-content: ""; - --page-margin-top-left-content: ""; - --page-margin-top-center-content: ""; - --page-margin-top-right-content: ""; - --page-margin-top-right-corner-content: ""; - --page-margin-right-top-content: ""; - --page-margin-right-middle-content: ""; - --page-margin-right-bottom-content: ""; - --page-margin-bottom-right-corner-content: ""; - --page-margin-bottom-right-content: ""; - --page-margin-bottom-center-content: ""; - --page-margin-bottom-left-content: ""; - --page-margin-bottom-left-corner-content: ""; - --page-margin-left-bottom-content: ""; - --page-margin-left-middle-content: ""; - --page-margin-left-top-content: ""; } .reveal .slides > :is(section, .pdf-page) { @@ -412,8 +394,8 @@ span.current-page-number, span.total-page-number { /* Fixed page margins */ -/* For non-paged documents */ .page-margin-content:not(.pagedjs_page .page-margin-content) { + /* Paged documents have dedicated areas for each margin. Others use absolute positions. */ position: absolute; } @@ -501,70 +483,3 @@ span.current-page-number, span.total-page-number { /* Removes translations from the margin content of paged documents */ transform: none; } - -/* For paged documents */ -@page { - @top-left-corner { - content: var(--page-margin-top-left-corner-content); - } - - @top-left { - content: var(--page-margin-top-left-content); - } - - @top-center { - content: var(--page-margin-top-center-content); - } - - @top-right { - content: var(--page-margin-top-right-content); - } - - @top-right-corner { - content: var(--page-margin-top-right-corner-content); - } - - @right-top { - content: var(--page-margin-right-top-content); - } - - @right-middle { - content: var(--page-margin-right-middle-content); - } - - @right-bottom { - content: var(--page-margin-right-bottom-content); - } - - @bottom-right-corner { - content: var(--page-margin-bottom-right-corner-content); - } - - @bottom-right { - content: var(--page-margin-bottom-right-content); - } - - @bottom-center { - content: var(--page-margin-bottom-center-content); - } - - @bottom-left { - content: var(--page-margin-bottom-left-content); - } - - @bottom-left-corner { - content: var(--page-margin-bottom-left-corner-content); - } - - @left-bottom { - content: var(--page-margin-left-bottom-content); - } - - @left-middle { - content: var(--page-margin-left-middle-content); - } - - @left-top { - content: var(--page-margin-left-top-content); - } -} \ No newline at end of file diff --git a/core/src/main/resources/render/theme/layout/latex.css b/core/src/main/resources/render/theme/layout/latex.css index 8d0c20a3..24b71ded 100644 --- a/core/src/main/resources/render/theme/layout/latex.css +++ b/core/src/main/resources/render/theme/layout/latex.css @@ -14,8 +14,6 @@ --qd-line-height: 1.5; --qd-slides-horizontal-alignment: start; - --page-margin-bottom-center-content: counter(page); - --border-width-thick: 2px; --border-width-thin: 1px; --table-border-color: black;