Files
pretix_cgo/src/pretix/control/templates/pretixcontrol/pdf/webfonts.css
Raphael Michel afd766999c Upgrade to Django 2.1 (#710)
* Upgrade to Django 2.0

* more models

* i18n foo

* Update setup.py

* Fix Sentry exception PRETIXEU-JC

* Enforce slug uniqueness

* Import sorting

* Upgrade to Django 2.1

* Travis config

* Try to fix PostgreSQL failure

* Smaller test matrix

* staticfiles→static

* Include request in all authenticate() calls
2018-08-06 12:48:46 +02:00

37 lines
1.1 KiB
CSS

{% load static %}
{% for family, styles in fonts.items %}
{% for style, formats in styles.items %}
@font-face {
font-family: '{{ family }}';
{% if style == "italic" or style == "bolditalic" %}
font-style: italic;
{% else %}
font-style: normal;
{% endif %}
{% if style == "bold" or style == "bolditalic" %}
font-weight: bold;
{% else %}
font-weight: normal;
{% endif %}
src: {% if "woff2" in formats %}url('{% static formats.woff2 %}') format('woff2'),{% endif %}
{% if "woff" in formats %}url('{% static formats.woff %}') format('woff'),{% endif %}
{% if "truetype" in formats %}url('{% static formats.truetype %}') format('truetype'){% endif %};
}
.preload-font[data-family="{{family}}"][data-style="{{style}}"] {
font-family: '{{ family }}';
{% if style == "italic" or style == "bolditalic" %}
font-style: italic;
{% else %}
font-style: normal;
{% endif %}
{% if style == "bold" or style == "bolditalic" %}
font-weight: bold;
{% else %}
font-weight: normal;
{% endif %}
}
{% endfor %}
{% endfor %}