2021-10-15 14:08:27 +00:00
|
|
|
{% extends "settings.html" %}
|
|
|
|
|
|
|
|
{% block pagetitle %}Custom CSS - {{'SITE_NAME' | app_config}}{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
2021-12-06 19:13:53 +00:00
|
|
|
<div class="flex flex-col space-y-4 sm:py-4 my-2.5 sm:my-0">
|
|
|
|
|
|
|
|
<!-- Custom website CSS -->
|
|
|
|
<div class="rounded-lg divide-y divide-gray-300 bg-gray-100 border border-gray-300 shadow-inset-t-white-10">
|
|
|
|
<div class="px-4 py-4">
|
|
|
|
<h2 class="label text-black">Custom site CSS</h2>
|
|
|
|
<form id="profile-settings" action="/settings/css" method="post">
|
|
|
|
<input type="hidden" name="formkey" value="{{v.formkey}}">
|
2021-12-06 19:16:29 +00:00
|
|
|
<div class="rounded border border-gray-300 border-dashed bg-white w-full">
|
|
|
|
<textarea class="p-2 shadow-inner w-full" placeholder="i.e. .custom-class {...}" rows="36" name="css" form="profile-settings" maxlength="4000">{% if v.css %}{{v.csslazy}}{% endif %}</textarea>
|
|
|
|
</div>
|
|
|
|
<small class="block mt-2 text-gray-400">Limit of 4000 characters</small>
|
|
|
|
<div class="mt-4">
|
|
|
|
<input id="submit-btn" class="ml-auto btn btn-gray" type="submit" value="Save">
|
2021-10-15 14:08:27 +00:00
|
|
|
</div>
|
2021-12-06 19:13:53 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
2021-10-15 14:08:27 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2021-12-06 19:13:53 +00:00
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block scripts %}
|
2021-10-15 14:08:27 +00:00
|
|
|
{% if v.agendaposter %}
|
|
|
|
<script>
|
2021-12-04 22:43:42 +00:00
|
|
|
const flip = (e) => {
|
|
|
|
e.preventDefault();
|
|
|
|
document.getElementsByTagName("body")[0].setAttribute("style", "-moz-transform: scale(-1, -1);-o-transform: scale(-1, -1);-webkit-transform: scale(-1, -1);transform: scale(-1, -1);");
|
|
|
|
};
|
2021-10-15 14:08:27 +00:00
|
|
|
|
2021-12-04 22:43:42 +00:00
|
|
|
document.getElementById("submit-btn").onclick = flip;
|
2021-10-15 14:08:27 +00:00
|
|
|
</script>
|
|
|
|
{% endif %}
|
2021-12-06 19:14:17 +00:00
|
|
|
{% endblock %}
|