Skip to content
Snippets Groups Projects
Verified Commit 9de0e724 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Add base templates for plain prints

(cherry picked from commit 19434b3e)
parent 8a62779a
No related branches found
No related tags found
No related merge requests found
@page {
padding: 0;
margin: 0;
}
table.small-print, td.small-print, th.small-print {
font-size: 10pt;
}
tr {
border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}
td, th {
padding: 1px;
}
td.rotate, th.rotate {
text-align: center;
transform: rotate(-90deg);
}
{% load static i18n any_js sass_tags %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="{{ LANGUAGE_CODE }}">
<head>
{% include "core/partials/meta.html" %}
<title>
{% block no_browser_title %}
{% block browser_title %}{% endblock %} —
{% endblock %}
{{ SITE_PREFERENCES.general__title }}
</title>
{% include_css "material-design-icons" %}
{% include_css "Roboto100" %}
{% include_css "Roboto300" %}
{% include_css "Roboto400" %}
{% include_css "Roboto500" %}
{% include_css "Roboto700" %}
{% include_css "Roboto900" %}
{% include_css "paper-css" %}
<link rel="stylesheet" href="{% sass_src 'public/style.scss' %}"/>
<link rel="stylesheet" href="{% static "print-simple.css" %}"/>
{% block size %}
<style>
@page {
size: {{ width }}mm {{ height }}mm;
}
@media print {
html, body {
width: {{ width }}mm;
}
}
.sheet {
width: {{ width }}mm;
height: {{ height|add:-1 }}.83mm;
}
</style>
{% endblock %}
{% block extra_head %}{% endblock %}
</head>
<body>
{% block content %}{% endblock %}
</body>
</html>
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