feat: Style filter/sort buttons with 2px border, prevent wiggle
This commit is contained in:
1 parent
005d5ffcbe
commit
86ffc9a10b
2 files changed
+9
-9
No files matched your search
@@ -6,7 +6,7 @@
|
|||||||
<div class="flex flex-wrap gap-4 items-center">
|
<div class="flex flex-wrap gap-4 items-center">
|
||||||
<!-- Geolocation Filter -->
|
<!-- Geolocation Filter -->
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
<button onclick="toggleDropdown('location-filter-dropdown')" class="w-full bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between hover:border hover:border-indigo-700">
|
<button onclick="toggleDropdown('location-filter-dropdown')" class="w-full bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700">
|
||||||
<span>Location</span>
|
<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>
|
<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>
|
</button>
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
<!-- Availability Filter -->
|
<!-- Availability Filter -->
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
<button onclick="toggleDropdown('availability-filter-dropdown')" class="w-full bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between hover:border hover:border-indigo-700">
|
<button onclick="toggleDropdown('availability-filter-dropdown')" class="w-full bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700">
|
||||||
<span>Availability</span>
|
<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>
|
<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>
|
</button>
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
<!-- Rates Filter -->
|
<!-- Rates Filter -->
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
<button onclick="toggleDropdown('rates-filter-dropdown')" class="w-full bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between hover:border hover:border-indigo-700">
|
<button onclick="toggleDropdown('rates-filter-dropdown')" class="w-full bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700">
|
||||||
<span>Rates</span>
|
<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>
|
<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>
|
</button>
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
|
|
||||||
<!-- Type of Spaces Filter -->
|
<!-- Type of Spaces Filter -->
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
<button onclick="toggleDropdown('spacetype-filter-dropdown')" class="w-full bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between hover:border hover:border-indigo-700">
|
<button onclick="toggleDropdown('spacetype-filter-dropdown')" class="w-full bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700">
|
||||||
<span>Space Type</span>
|
<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>
|
<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>
|
</button>
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
|
|
||||||
<!-- Pricing Range Filter -->
|
<!-- Pricing Range Filter -->
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
<button onclick="toggleDropdown('pricerange-filter-dropdown')" class="w-full bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between hover:border hover:border-indigo-700">
|
<button onclick="toggleDropdown('pricerange-filter-dropdown')" class="w-full bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg inline-flex items-center justify-between border-2 border-transparent hover:border-indigo-700">
|
||||||
<span>Price Range</span>
|
<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>
|
<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>
|
</button>
|
||||||
@@ -122,13 +122,13 @@
|
|||||||
|
|
||||||
<!-- Sorting Group -->
|
<!-- Sorting Group -->
|
||||||
<div class="flex gap-4 md:gap-8 items-center">
|
<div class="flex gap-4 md:gap-8 items-center">
|
||||||
<button class="bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg focus:outline-none cursor-pointer capitalize border border-indigo-700 hover:border hover:border-indigo-700">
|
<button class="bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg focus:outline-none cursor-pointer capitalize border-2 border-indigo-700 hover:border-indigo-700">
|
||||||
Relevance
|
Relevance
|
||||||
</button>
|
</button>
|
||||||
<button class="bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg focus:outline-none cursor-pointer capitalize hover:border hover:border-indigo-700">
|
<button class="bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg focus:outline-none cursor-pointer capitalize border-2 border-transparent hover:border-indigo-700">
|
||||||
Newest
|
Newest
|
||||||
</button>
|
</button>
|
||||||
<button class="bg-gray-100 text-indigo-900 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">
|
<button class="bg-gray-100 text-indigo-900 font-semibold py-2 px-4 rounded-lg focus:outline-none cursor-pointer inline-flex items-center capitalize border-2 border-transparent hover:border-indigo-700">
|
||||||
Price
|
Price
|
||||||
<span class="inline-flex flex-col items-center justify-center ml-1.5">
|
<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">
|
<img alt="Sort price up" class="h-2 w-2" src="assets/svg/icon_price_up.svg">
|
||||||
|
|||||||
+1
-1
@@ -159,7 +159,7 @@ module.exports = {
|
|||||||
screen: '100vw',
|
screen: '100vw',
|
||||||
}),
|
}),
|
||||||
borderWidth: {
|
borderWidth: {
|
||||||
default: '1px',
|
DEFAULT: '1px',
|
||||||
'0': '0',
|
'0': '0',
|
||||||
'2': '2px',
|
'2': '2px',
|
||||||
'3': '3px',
|
'3': '3px',
|
||||||
|
|||||||
Reference in new issue
Block a user