52 lines
1.5 KiB
HTML
52 lines
1.5 KiB
HTML
{% load static %}
|
|
<!DOCTYPE html>
|
|
<html lang="ar" dir="rtl">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>{% block title %}Document{% endblock %}</title>
|
|
<style>
|
|
/* Use system fonts that support Arabic */
|
|
@font-face {
|
|
font-family: 'Noto Sans Arabic';
|
|
src: local('Noto Sans Arabic'), local('NotoSansArabic-Regular');
|
|
}
|
|
|
|
body {
|
|
font-family: 'Noto Sans Arabic', 'Arial', sans-serif !important;
|
|
font-size: 12px;
|
|
}
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-family: 'Noto Sans Arabic', 'Arial', sans-serif !important;
|
|
font-weight: bold;
|
|
}
|
|
@page {
|
|
size: A4;
|
|
margin: 1cm;
|
|
@bottom-center {
|
|
content: "Page " counter(page) " of " counter(pages);
|
|
font-family: 'Noto Sans Arabic', 'Arial', sans-serif;
|
|
font-size: 10px;
|
|
}
|
|
}
|
|
table {
|
|
width: 100%;
|
|
table-layout: fixed;
|
|
word-wrap: break-word;
|
|
}
|
|
.badge {
|
|
color: black !important;
|
|
border: 1px solid #ccc;
|
|
background: transparent !important;
|
|
}
|
|
/* WeasyPrint specific fixes */
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
</style>
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.rtl.min.css">
|
|
{% block extra_css %}{% endblock %}
|
|
</head>
|
|
<body>
|
|
{% block content %}{% endblock %}
|
|
</body>
|
|
</html> |