style: Add hover border to filter and sort buttons in post list

This commit is contained in:
Kerby Martino (aider) committed 2025-05-10 20:10:49 +08:00
1 parent 9d32377466
commit 483a91ba3e
1 file changed
+8 -8
+8 -8
View File
@@ -6,7 +6,7 @@
<div class="flex flex-wrap gap-4 items-center">
<!-- Geolocation Filter -->
<div class="relative">
<button onclick="toggleDropdown('location-filter-dropdown')" class="w-full bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between">
<button onclick="toggleDropdown('location-filter-dropdown')" class="w-full bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between hover:border hover:border-indigo-700">
<span>Location</span>
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/></svg>
</button>
@@ -23,7 +23,7 @@
<!-- Availability Filter -->
<div class="relative">
<button onclick="toggleDropdown('availability-filter-dropdown')" class="w-full bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between">
<button onclick="toggleDropdown('availability-filter-dropdown')" class="w-full bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between hover:border hover:border-indigo-700">
<span>Availability</span>
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/></svg>
</button>
@@ -42,7 +42,7 @@
<!-- Rates Filter -->
<div class="relative">
<button onclick="toggleDropdown('rates-filter-dropdown')" class="w-full bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between">
<button onclick="toggleDropdown('rates-filter-dropdown')" class="w-full bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between hover:border hover:border-indigo-700">
<span>Rates</span>
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/></svg>
</button>
@@ -60,7 +60,7 @@
<!-- Type of Spaces Filter -->
<div class="relative">
<button onclick="toggleDropdown('spacetype-filter-dropdown')" class="w-full bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between">
<button onclick="toggleDropdown('spacetype-filter-dropdown')" class="w-full bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between hover:border hover:border-indigo-700">
<span>Space Type</span>
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/></svg>
</button>
@@ -93,7 +93,7 @@
<!-- Pricing Range Filter -->
<div class="relative">
<button onclick="toggleDropdown('pricerange-filter-dropdown')" class="w-full bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between">
<button onclick="toggleDropdown('pricerange-filter-dropdown')" class="w-full bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between hover:border hover:border-indigo-700">
<span>Price Range</span>
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/></svg>
</button>
@@ -122,13 +122,13 @@
<!-- Sorting Group -->
<div class="flex gap-4 md:gap-8 items-center">
<button class="bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-2 px-4 rounded-lg focus:outline-none cursor-pointer capitalize border border-indigo-700">
<button class="bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-2 px-4 rounded-lg focus:outline-none cursor-pointer capitalize border border-indigo-700 hover:border hover:border-indigo-700">
Relevance
</button>
<button class="bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-2 px-4 rounded-lg focus:outline-none cursor-pointer capitalize">
<button class="bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-2 px-4 rounded-lg focus:outline-none cursor-pointer capitalize hover:border hover:border-indigo-700">
Newest
</button>
<button class="bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-2 px-4 rounded-lg focus:outline-none cursor-pointer inline-flex items-center capitalize lg:border-none">
<button class="bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-2 px-4 rounded-lg focus:outline-none cursor-pointer inline-flex items-center capitalize lg:border-none hover:border hover:border-indigo-700">
Price
<span class="inline-flex flex-col items-center justify-center ml-1.5">
<img alt="Sort price up" class="h-2 w-2" src="assets/svg/icon_price_up.svg">