summaryrefslogtreecommitdiffstats
path: root/plugins/55/wrap/print_or_pdf.less
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-12-01 21:17:14 +0100
committerDaniel Baumann <daniel@debian.org>2024-12-12 11:27:45 +0100
commitbf596cbb426bd672a46484bca3bd07cfa6662919 (patch)
tree41ef466309f3e567f63e8e68ef272b0a4e214138 /plugins/55/wrap/print_or_pdf.less
parentInitial commit. (diff)
downloaddokuwiki-plugins-extra-bf596cbb426bd672a46484bca3bd07cfa6662919.tar.xz
dokuwiki-plugins-extra-bf596cbb426bd672a46484bca3bd07cfa6662919.zip
Adding upstream version 20241201.upstream/20241201upstream
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'plugins/55/wrap/print_or_pdf.less')
-rw-r--r--plugins/55/wrap/print_or_pdf.less31
1 files changed, 31 insertions, 0 deletions
diff --git a/plugins/55/wrap/print_or_pdf.less b/plugins/55/wrap/print_or_pdf.less
new file mode 100644
index 0000000..1d20a9e
--- /dev/null
+++ b/plugins/55/wrap/print_or_pdf.less
@@ -0,0 +1,31 @@
+/********************************************************************
+Styles shared between print.css and pdf.css
+********************************************************************/
+
+.dokuwiki {
+
+/* miscellaneous
+********************************************************************/
+
+/*____________ pagebreak ____________*/
+
+.wrap_pagebreak {
+ break-after: page; /* CSS 3 */
+ page-break-after: always; /* CSS 2.1 */
+}
+
+/*____________ avoid page break ____________*/
+/* not yet supported by most browsers */
+
+.wrap_nopagebreak {
+ break-inside: avoid; /* CSS 3 */
+ page-break-inside: avoid; /* CSS 2.1 */
+}
+
+/*____________ no print ____________*/
+
+.wrap_noprint {
+ display: none;
+}
+
+} /* /.dokuwiki */