pretix_whitelabel/signals.py aktualisiert
This commit is contained in:
1 parent
8843b1e653
commit
f831fc166e
1 file changed
+44
-21
@@ -1,9 +1,3 @@
|
||||
from django.dispatch import receiver
|
||||
from django.templatetags.static import static
|
||||
from django.utils.safestring import mark_safe
|
||||
from pretix.control.signals import html_head as control_html_head
|
||||
from pretix.presale.signals import html_head as presale_html_head
|
||||
|
||||
FALKENTHAL_INJECTION = """
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
@@ -12,6 +6,46 @@ FALKENTHAL_INJECTION = """
|
||||
<link rel="stylesheet" type="text/css" href="{css_url}?v=1.7.3">
|
||||
|
||||
<style>
|
||||
/* Grundlegendes Layout-Fixing für Kalender- und Veranstalter-Übersichten */
|
||||
body {
|
||||
background-color: #03060d !important;
|
||||
color: #cbd5e1 !important;
|
||||
font-family: 'Plus Jakarta Sans', sans-serif !important;
|
||||
}
|
||||
|
||||
/* Container-Korrektur, damit nichts oben verschwimmt */
|
||||
.container, .container-fluid, .content {
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
/* Kalender- und Tabellen-Wrapper in den Glassmorphism-Look hüllen */
|
||||
.tab-content, .panel, .card, table.table, .calendar-table {
|
||||
background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
|
||||
backdrop-filter: blur(16px);
|
||||
border: 1px solid rgba(0, 210, 255, 0.12) !important;
|
||||
border-radius: 12px;
|
||||
color: #e2e8f0 !important;
|
||||
}
|
||||
|
||||
/* Tabellen- und Textfarben in der Übersicht anpassen */
|
||||
table th, table td {
|
||||
border-color: rgba(255, 255, 255, 0.06) !important;
|
||||
color: #cbd5e1 !important;
|
||||
}
|
||||
|
||||
/* Navigations-Buttons (List, Week, Month, Day) optisch anpassen */
|
||||
.nav-pills > li > a, .btn-default, .btn-group .btn {
|
||||
background: rgba(255, 255, 255, 0.03) !important;
|
||||
border: 1px solid rgba(0, 210, 255, 0.15) !important;
|
||||
color: #94a3b8 !important;
|
||||
}
|
||||
|
||||
.nav-pills > li.active > a, .btn-primary {
|
||||
background: rgba(0, 210, 255, 0.15) !important;
|
||||
border-color: #00d2ff !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
/* Veranstalter-Badge im Footer */
|
||||
.falkenthal-organizer-badge {
|
||||
display: inline-block;
|
||||
@@ -30,8 +64,9 @@ FALKENTHAL_INJECTION = """
|
||||
|
||||
/* Untere Plattform-Leiste (System-Ebene) */
|
||||
.falkenthal-platform-bar {
|
||||
margin-top: 14px;
|
||||
padding: 12px 16px;
|
||||
margin-top: 30px;
|
||||
margin-bottom: 20px;
|
||||
padding: 14px 16px;
|
||||
border-top: 1px solid rgba(0, 210, 255, 0.12);
|
||||
text-align: center;
|
||||
font-family: 'Plus Jakarta Sans', sans-serif;
|
||||
@@ -110,16 +145,4 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||
}
|
||||
});
|
||||
</script>
|
||||
"""
|
||||
|
||||
|
||||
@receiver(presale_html_head, dispatch_uid="falkenthal_presale_html_head")
|
||||
def html_head_presale(sender, request=None, **kwargs):
|
||||
css_url = static("pretix_whitelabel/custom.css")
|
||||
return mark_safe(FALKENTHAL_INJECTION.format(css_url=css_url))
|
||||
|
||||
|
||||
@receiver(control_html_head, dispatch_uid="falkenthal_control_html_head")
|
||||
def html_head_control(sender, request=None, **kwargs):
|
||||
css_url = static("pretix_whitelabel/custom.css")
|
||||
return mark_safe(FALKENTHAL_INJECTION.format(css_url=css_url))
|
||||
"""
|
||||
Reference in new issue
Block a user