mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed Firefox only printing the first page
This commit is contained in:
parent
fdea0a8a04
commit
cfebec40e8
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"assets/javascripts/bundle.js": "assets/javascripts/bundle.ed8df680.min.js",
|
"assets/javascripts/bundle.js": "assets/javascripts/bundle.94a68eae.min.js",
|
||||||
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.ed8df680.min.js.map",
|
"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": "assets/javascripts/vendor.c1fcc1cc.min.js",
|
||||||
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.c1fcc1cc.min.js.map",
|
"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": "assets/javascripts/worker/search.3bc815f0.min.js",
|
||||||
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.3bc815f0.min.js.map",
|
"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"
|
"assets/stylesheets/palette.css": "assets/stylesheets/palette.4444686e.min.css"
|
||||||
}
|
}
|
1
material/assets/stylesheets/main.6cfc3703.min.css
vendored
Normal file
1
material/assets/stylesheets/main.6cfc3703.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -41,7 +41,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% 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 %}
|
{% if palette.primary or palette.accent %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.4444686e.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.4444686e.min.css' | url }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -179,7 +179,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ 'assets/javascripts/vendor.c1fcc1cc.min.js' | url }}"></script>
|
<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 = {} -%}
|
{%- set translations = {} -%}
|
||||||
{%- for key in [
|
{%- for key in [
|
||||||
"clipboard.copy",
|
"clipboard.copy",
|
||||||
|
@ -58,8 +58,7 @@ kbd {
|
|||||||
.md-typeset {
|
.md-typeset {
|
||||||
font-size: ms(0);
|
font-size: ms(0);
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
// Colors should be kept when printing
|
color-adjust: exact;
|
||||||
-webkit-print-color-adjust: exact; // stylelint-disable-line
|
|
||||||
|
|
||||||
// Default spacing
|
// Default spacing
|
||||||
p,
|
p,
|
||||||
|
@ -80,6 +80,12 @@ body {
|
|||||||
position: fixed;
|
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
|
// Horizontal separators
|
||||||
@ -102,6 +108,12 @@ hr {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex-grow: 1;
|
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
|
// The main content should stretch to maximum height in the table
|
||||||
|
Loading…
Reference in New Issue
Block a user