feat: style empty search results message for better visibility
This commit is contained in:
parent
c336345845
commit
5bde452437
@ -41,9 +41,9 @@ if ($searchTerm !== '' && $searchLen >= 2) {
|
||||
<h2>Suchergebnisse für „<?= htmlspecialchars($searchTerm) ?>“</h2>
|
||||
|
||||
<?php if ($resultSearch->num_rows <= 0): ?>
|
||||
<p style="color: var(--text-secondary); margin-top: 8px;">Keine Produkte gefunden.</p>
|
||||
<p class="search-empty">Keine Produkte gefunden.</p>
|
||||
<?php else: ?>
|
||||
<div class="product-grid" style="margin-top: 14px;">
|
||||
<div class="product-grid">
|
||||
<?php while ($product = $resultSearch->fetch_assoc()): ?>
|
||||
<?php $productId = (int)$product['productID']; ?>
|
||||
<a class="product-card" href="productpage.php?id=<?= $productId ?>">
|
||||
|
||||
@ -727,6 +727,12 @@ a:hover {
|
||||
gap: 1.6rem;
|
||||
}
|
||||
|
||||
/* Hinweistext bei leeren Suchergebnissen */
|
||||
.search-empty {
|
||||
color: var(--text-secondary);
|
||||
margin: 0.5rem 2rem 0;
|
||||
}
|
||||
|
||||
/* ==========================================================
|
||||
PRODUCT CARD (global)
|
||||
========================================================== */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user