From b21d97d17954053beb60bf490e982d87b3237e1a Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Sat, 17 Jan 2026 20:22:43 -0500 Subject: [PATCH] feat: Add Shaarli Professional Theme with modern sidebar layout, light/dark mode, and pagination template. --- shaarli-pro/css/style.css | 84 ++++++++++++++++++++++++++++++++ shaarli-pro/linklist.paging.html | 8 +-- 2 files changed, 88 insertions(+), 4 deletions(-) diff --git a/shaarli-pro/css/style.css b/shaarli-pro/css/style.css index 891caf0..3287f94 100644 --- a/shaarli-pro/css/style.css +++ b/shaarli-pro/css/style.css @@ -3172,3 +3172,87 @@ select:focus { .filter-clear-btn i { font-size: 1rem; } + +/* ===== Filter Info Banner ===== */ +.filter-info-banner { + display: flex; + align-items: center; + justify-content: space-between; + background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); + color: white; + padding: 0.75rem 1.25rem; + border-radius: 8px; + margin: 1rem 0; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); +} + +.filter-info-banner.empty-results { + background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); +} + +.filter-info-content { + display: flex; + align-items: center; + gap: 0.75rem; + font-size: 0.95rem; +} + +.filter-info-content i { + font-size: 1.25rem; + opacity: 0.9; +} + +.filter-info-content strong { + background: rgba(255, 255, 255, 0.25); + padding: 0.15rem 0.5rem; + border-radius: 4px; + font-weight: 600; +} + +.filter-clear-btn { + display: flex; + align-items: center; + gap: 0.35rem; + background: rgba(255, 255, 255, 0.2); + border: 1px solid rgba(255, 255, 255, 0.3); + color: white; + padding: 0.4rem 0.75rem; + border-radius: 6px; + cursor: pointer; + font-size: 0.85rem; + font-weight: 500; + transition: background 0.2s ease; +} + +.filter-clear-btn:hover { + background: rgba(255, 255, 255, 0.35); +} + +.filter-clear-btn i { + font-size: 1rem; +} + +/* Filter Badge on button */ +.filter-badge { + position: absolute; + top: -2px; + right: -2px; + width: 10px; + height: 10px; + background: #ef4444; + border-radius: 50%; + border: 2px solid var(--header-bg); +} + +.header-action-btn.has-active-filter { + position: relative; +} + +/* Single page pagination - centered stats only */ +.paging.single-page { + justify-content: center; +} + +.paging.single-page .paging-stats { + margin: 0; +} diff --git a/shaarli-pro/linklist.paging.html b/shaarli-pro/linklist.paging.html index 1369be2..a9081b5 100644 --- a/shaarli-pro/linklist.paging.html +++ b/shaarli-pro/linklist.paging.html @@ -1,4 +1,3 @@ -{if="$page_max > 1"} {if="isset($result_count) && $result_count > 0"} {$total=$result_count} {else} @@ -14,12 +13,14 @@ {/if} {$from=($page_current - 1) * $links_per_page + 1} {$to=min($total, ($page_current - 1) * $links_per_page + $links_per_page)} -
+
+ {if="$page_max > 1"} + {/if}
Bookmarks {$from} - {$to} / {$total}
@@ -28,5 +29,4 @@ {$value.html}
{/loop} -
-{/if} \ No newline at end of file + \ No newline at end of file