Fix some FA / JS issues

This commit is contained in:
Oliver Falk
2025-09-26 16:11:46 +02:00
parent fbcda13c5a
commit a43719e760
6 changed files with 1771 additions and 685 deletions

View File

@@ -8,12 +8,13 @@
<style>
input[type=checkbox] {display:none}
input[type=checkbox].image + label:before {
font-family: FontAwesome;
font-family: "Font Awesome 7 Free";
font-weight: 900;
display: inline-block;
}
input[type=checkbox].image + label:before {content: "\f096"}
input[type=checkbox].image + label:before {content: "\f0c8"}
input[type=checkbox].image + label:before {letter-spacing: 5px}
input[type=checkbox].image:checked + label:before {content: "\f046"}
input[type=checkbox].image:checked + label:before {content: "\f14a"}
input[type=checkbox].image:checked + label:before {letter-spacing: 3px}
</style>
<h1>{% trans 'Choose items to be imported' %}</h1>

View File

@@ -7,12 +7,13 @@
<style>
input[type=checkbox] {display:none}
input[type=checkbox] + label:before {
font-family: FontAwesome;
font-family: "Font Awesome 7 Free";
font-weight: 900;
display: inline-block;
}
input[type=checkbox] + label:before {content: "\f096"}
input[type=checkbox] + label:before {content: "\f0c8"}
input[type=checkbox] + label:before {letter-spacing: 5px}
input[type=checkbox]:checked + label:before {content: "\f046"}
input[type=checkbox]:checked + label:before {content: "\f14a"}
input[type=checkbox]:checked + label:before {letter-spacing: 3px}
</style>
<h1>{% trans 'Email confirmation' %}</h1>

View File

@@ -7,12 +7,13 @@
<style>
input[type=checkbox] {display:none}
input[type=checkbox] + label:before {
font-family: FontAwesome;
font-family: "Font Awesome 7 Free";
font-weight: 900;
display: inline-block;
}
input[type=checkbox] + label:before {content: "\f096"}
input[type=checkbox] + label:before {content: "\f0c8"}
input[type=checkbox] + label:before {letter-spacing: 5px}
input[type=checkbox]:checked + label:before {content: "\f046"}
input[type=checkbox]:checked + label:before {content: "\f14a"}
input[type=checkbox]:checked + label:before {letter-spacing: 3px}
</style>
<h1>{% trans 'Import photo' %}</h1>

View File

@@ -1319,7 +1319,8 @@ form p {
}
.checkbox input + label:before,
.radio input + label:before {
font-family: FontAwesome;
font-family: "Font Awesome 7 Free";
font-weight: 900;
display: inline-block;
letter-spacing: 5px;
font-size: 20px;

View File

@@ -28,7 +28,7 @@
<!-- Viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<script src="{% static '/js/jquery-3.7.1.slim.min.js' %}"></script>
<script src="{% static '/js/jquery-3.7.1.min.js' %}"></script>
{% if user.is_authenticated %}
{% if user.userpreference and user.userpreference.theme != 'default' %}
{% with 'css/'|add:user.userpreference.theme|add:'.css' as theme_css %}