Fixed hidden content tabs when printing

This commit is contained in:
squidfunk 2020-10-17 16:37:40 +02:00
parent c7fd099895
commit c6a67ec093
6 changed files with 12 additions and 6 deletions

View File

@ -5,8 +5,8 @@
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.a018d6bb.min.js.map", "assets/javascripts/vendor.js.map": "assets/javascripts/vendor.a018d6bb.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.4ac00218.min.js", "assets/javascripts/worker/search.js": "assets/javascripts/worker/search.4ac00218.min.js",
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.4ac00218.min.js.map", "assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.4ac00218.min.js.map",
"assets/stylesheets/main.css": "assets/stylesheets/main.498e8cd6.min.css", "assets/stylesheets/main.css": "assets/stylesheets/main.ce7da9e3.min.css",
"assets/stylesheets/main.css.map": "assets/stylesheets/main.498e8cd6.min.css.map", "assets/stylesheets/main.css.map": "assets/stylesheets/main.ce7da9e3.min.css.map",
"assets/stylesheets/overrides.css": "assets/stylesheets/overrides.2a4bbe42.min.css", "assets/stylesheets/overrides.css": "assets/stylesheets/overrides.2a4bbe42.min.css",
"assets/stylesheets/overrides.css.map": "assets/stylesheets/overrides.2a4bbe42.min.css.map", "assets/stylesheets/overrides.css.map": "assets/stylesheets/overrides.2a4bbe42.min.css.map",
"assets/stylesheets/palette.css": "assets/stylesheets/palette.3f72e892.min.css", "assets/stylesheets/palette.css": "assets/stylesheets/palette.3f72e892.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

@ -34,7 +34,7 @@
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block styles %} {% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.498e8cd6.min.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/main.ce7da9e3.min.css' | url }}">
{% if config.theme.palette %} {% if config.theme.palette %}
{% set palette = config.theme.palette %} {% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.3f72e892.min.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/palette.3f72e892.min.css' | url }}">

View File

@ -34,6 +34,12 @@
width: 100%; width: 100%;
box-shadow: 0 px2rem(-1px) var(--md-default-fg-color--lightest); box-shadow: 0 px2rem(-1px) var(--md-default-fg-color--lightest);
// Show all tabs when printing
@media print {
display: block;
order: initial;
}
// Mirror old superfences behavior, if there's only a single code block. // Mirror old superfences behavior, if there's only a single code block.
> pre:only-child, > pre:only-child,
> .codehilite:only-child pre, > .codehilite:only-child pre,