From 826cdcfbfbc3a0f8aacd66e5868eea60bc2e2e0a Mon Sep 17 00:00:00 2001 From: vrifox Date: Sun, 30 Jul 2023 21:47:21 +0200 Subject: [PATCH] add default base.html and style.css --- _base.html | 29 +++++++++++++++++++++++++++++ style.css | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 _base.html create mode 100644 style.css diff --git a/_base.html b/_base.html new file mode 100644 index 0000000..248f3ad --- /dev/null +++ b/_base.html @@ -0,0 +1,29 @@ + + + + + + + {% block title %}{% endblock %} + + {% block header %}{% endblock %} + + +
+ {% if app_name == "Riot" %} + [Riot] + {% elif app_name == "Vector" %} + [Vector] + {% elif app_name == "Element" %} + [Element] + {% else %} + [matrix] + {% endif %} +
+ +{% block body %}{% endblock %} + + + \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..0b1515b --- /dev/null +++ b/style.css @@ -0,0 +1,33 @@ +html { + height: 100%; +} + +body { + background: #f9fafb; + max-width: 680px; + margin: auto; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; +} + +.mx_Header { + border-bottom: 3px solid #ddd; + margin-bottom: 1rem; + padding-top: 1rem; + padding-bottom: 1rem; + text-align: center; +} + +@media screen and (max-width: 1120px) { + body { + font-size: 20px; + } + + h1 { font-size: 1rem; } + h2 { font-size: .9rem; } + h3 { font-size: .85rem; } + h4 { font-size: .8rem; } +} + +.error { + color: red; +}