Skip to content
Snippets Groups Projects
Commit fba54dec authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Add landscape print stylesheet and ability to switch between landscape and portrait mode

parent dc647698
No related branches found
No related tags found
1 merge request!469Resolve "Provide landscape print template"
Pipeline #5631 passed
@page {
size: A4 landscape;
}
header {
width: 277mm;
}
.print-layout-table, .print-layout-td {
width: 277mm;
max-width: 277mm;
min-width: 277mm;
}
footer {
width: 277mm;
}
......@@ -18,11 +18,13 @@
{% include_css "paper-css" %}
<link rel="stylesheet" href="{% sass_src 'style.scss' %}"/>
<link rel="stylesheet" href="{% static "print.css" %}"/>
{% if landscape %}
<link rel="stylesheet" href="{% static 'print_landscape.css' %}"/>
{% endif %}
{% block extra_head %}{% endblock %}
</head>
<body class="A4 print-body">
<body class="A4 {% if landscape %}landscape{% endif %} print-body">
<main class="sheet infinite">
<div style="margin-top: -10mm;"></div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment