styling and fond sweetalert font override

This commit is contained in:
2026-04-23 15:13:49 +02:00
parent 2993a443a7
commit ade9ca2128
2 changed files with 23 additions and 5 deletions

View File

@@ -331,6 +331,14 @@ body {
flex-shrink: 0;
}
.badge-category {
background: #e0e0e0;
color: #5a5a7a;
display: inline-flex;
align-items: center;
gap: 4px;
}
.badge-pending { background: #fff3cd; color: #856404; }
.badge-approved { background: #d4edda; color: #155724; }
.badge-rejected { background: #f8d7da; color: #721c24; }
@@ -486,6 +494,16 @@ body {
.back-link a { color: #5a5a7a; }
/* -----------------------------------------------------------------
SweetAlert2 Font Override
----------------------------------------------------------------- */
.swal2-input,
.swal2-textarea,
.swal2-select {
font-family: 'Segoe UI', system-ui, sans-serif !important;
}
/* -----------------------------------------------------------------
Mobile Responsive
----------------------------------------------------------------- */

View File

@@ -234,6 +234,10 @@ $counts['total'] = count($all_contributions);
<div class="contribution-row-header" onclick="toggleRow(this.parentElement)">
<div class="contribution-row-summary">
<span class="title"><?= htmlspecialchars($item['title']) ?></span>
<span class="badge badge-category">
<i class="fa-solid <?= $cat['faIcon'] ?>"></i>
<?= $cat['label'] ?>
</span>
<span class="badge badge-<?= $item['status'] ?>"><?= $status_label[$item['status']] ?? $item['status'] ?></span>
</div>
<i class="fa-solid fa-chevron-down collapse-icon"></i>
@@ -256,10 +260,6 @@ $counts['total'] = count($all_contributions);
<?php endif; ?>
<div class="detail-meta">
<span>
<i class="fa-solid <?= $cat['faIcon'] ?>" style="color:<?= $cat['color'] ?>;"></i>
<?= $cat['label'] ?>
</span>
<span><i class="fa-solid fa-user"></i> <?= htmlspecialchars($item['author_name']) ?></span>
<span><i class="fa-solid fa-calendar"></i> <?= date('d.m.Y, H:i', strtotime($item['created_at'])) ?> Uhr</span>
<span>
@@ -670,7 +670,7 @@ function show_login_page($municipality, $error = null) {
<h1><i class="fa-solid fa-shield-halved"></i> Moderationsportal</h1>
<p>Bitte geben Sie das Moderationspasswort ein.</p>
<?php if ($error): ?>
<div class="login-error"><?= htmlspecialchars($error) ?></div>
<div class="login-error"><i class="fa-solid fa-triangle-exclamation"></i> <?= htmlspecialchars($error) ?></div>
<?php endif; ?>
<form method="POST" action="admin.php?page=login">
<input type="password" name="password" placeholder="Passwort" autofocus>