Fixed Firefox only printing the first page

This commit is contained in:
squidfunk 2020-04-02 09:57:55 +02:00
parent fdea0a8a04
commit cfebec40e8
8 changed files with 21 additions and 10 deletions

View File

@ -1,10 +1,10 @@
{
"assets/javascripts/bundle.js": "assets/javascripts/bundle.ed8df680.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.ed8df680.min.js.map",
"assets/javascripts/bundle.js": "assets/javascripts/bundle.94a68eae.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.94a68eae.min.js.map",
"assets/javascripts/vendor.js": "assets/javascripts/vendor.c1fcc1cc.min.js",
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.c1fcc1cc.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.3bc815f0.min.js",
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.3bc815f0.min.js.map",
"assets/stylesheets/main.css": "assets/stylesheets/main.c1451e9e.min.css",
"assets/stylesheets/main.css": "assets/stylesheets/main.6cfc3703.min.css",
"assets/stylesheets/palette.css": "assets/stylesheets/palette.4444686e.min.css"
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -41,7 +41,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.c1451e9e.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.6cfc3703.min.css' | url }}">
{% if palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.4444686e.min.css' | url }}">
{% endif %}
@ -179,7 +179,7 @@
</div>
{% block scripts %}
<script src="{{ 'assets/javascripts/vendor.c1fcc1cc.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.ed8df680.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.94a68eae.min.js' | url }}"></script>
{%- set translations = {} -%}
{%- for key in [
"clipboard.copy",

View File

@ -58,8 +58,7 @@ kbd {
.md-typeset {
font-size: ms(0);
line-height: 1.6;
// Colors should be kept when printing
-webkit-print-color-adjust: exact; // stylelint-disable-line
color-adjust: exact;
// Default spacing
p,

View File

@ -80,6 +80,12 @@ body {
position: fixed;
}
}
// Hack: we must not use flex, or Firefox will only print the first page
// see https://mzl.la/39DgR3m
@media print {
display: block;
}
}
// Horizontal separators
@ -102,6 +108,12 @@ hr {
display: flex;
flex-direction: column;
flex-grow: 1;
// Hack: we must not use flex, or Firefox will only print the first page
// see https://mzl.la/39DgR3m
@media print {
display: block;
}
}
// The main content should stretch to maximum height in the table