MDL-67154 theme_boost: fixing firefox printing
authorFerran Recio <ferran@moodle.com>
Tue, 3 Dec 2019 13:07:15 +0000 (14:07 +0100)
committerFerran Recio <ferran@moodle.com>
Tue, 3 Dec 2019 15:44:23 +0000 (16:44 +0100)
theme/boost/templates/columns1.mustache
theme/boost/templates/columns2.mustache
theme/upgrade.txt

index eef017b..024b958 100644 (file)
 <body {{{ bodyattributes }}}>
 {{> core/local/toast/wrapper}}
 
-<div id="page-wrapper">
+<div id="page-wrapper" class="d-print-block">
 
     {{{ output.standard_top_of_body_html }}}
 
-    <div id="page" class="container-fluid">
-        <div id="page-content" class="row pb-3">
+    <div id="page" class="container-fluid d-print-block">
+        <div id="page-content" class="row pb-3 d-print-block">
             <div id="region-main-box" class="col-12">
                 <section id="region-main" aria-label="{{#str}}content{{/str}}">
                     {{{ output.course_content_header }}}
index 4fca4fb..28a50ad 100644 (file)
 <body {{{ bodyattributes }}}>
 {{> core/local/toast/wrapper}}
 
-<div id="page-wrapper">
+<div id="page-wrapper" class="d-print-block">
 
     {{{ output.standard_top_of_body_html }}}
 
     {{> theme_boost/navbar }}
 
-    <div id="page" class="container-fluid">
+    <div id="page" class="container-fluid d-print-block">
         {{{ output.full_header }}}
 
-        <div id="page-content" class="row pb-3">
+        <div id="page-content" class="row pb-3 d-print-block">
             <div id="region-main-box" class="col-12">
                 {{#hasregionmainsettingsmenu}}
                 <div id="region-main-settings-menu" class="d-print-none {{#hasblocks}}has-blocks{{/hasblocks}}">
index 84fc644..3d2651d 100644 (file)
@@ -1,6 +1,10 @@
 This files describes API changes in /theme/* themes,
 information provided here is intended especially for theme designer.
 
+=== 3.9 ===
+
+* Add class .d-print-block to #page, #page-wrapper and #page content to fix Firefox printing problems
+
 === 3.8 ===
 
 * Moodle does not produce chunked CSS anymore, instead an unique css fils is generated and served (MDL-55751). This implies: