From 57f054348223ff48a344eb93cdaddd945a412fa6 Mon Sep 17 00:00:00 2001 From: luanfreitasdev Date: Sun, 5 Nov 2023 09:46:23 -0300 Subject: [PATCH 1/2] add classes --- resources/css/style.css | 12 ++++++++++++ .../tailwind/header/enabled-filters.blade.php | 8 +++----- .../frameworks/tailwind/header/filters.blade.php | 3 ++- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/resources/css/style.css b/resources/css/style.css index 1912d5cd..cfee0b21 100644 --- a/resources/css/style.css +++ b/resources/css/style.css @@ -168,3 +168,15 @@ table thead { .pg-filter-container { @apply py-3; } + +.pg-enabled-filters-base { + @apply flex items-center gap-2 mt-2 md:mt-0 flex-wrap +} + +.pg-enabled-filters-span-clear-all { + @apply outline-none inline-flex justify-center items-center group rounded gap-x-1 text-xs font-semibold px-2.5 py-0.5 text-pg-primary-100 bg-pg-primary-500 dark:bg-pg-primary-700 +} + +.pg-enabled-filters-span { + @apply outline-none inline-flex justify-center items-center group rounded gap-x-1 text-xs font-semibold px-2.5 py-0.5 text-pg-primary-600 dark:text-pg-primary-200 bg-pg-primary-100 dark:bg-pg-primary-600 +} diff --git a/resources/views/components/frameworks/tailwind/header/enabled-filters.blade.php b/resources/views/components/frameworks/tailwind/header/enabled-filters.blade.php index df6044f9..ecfe2b03 100644 --- a/resources/views/components/frameworks/tailwind/header/enabled-filters.blade.php +++ b/resources/views/components/frameworks/tailwind/header/enabled-filters.blade.php @@ -1,9 +1,7 @@ @if (count($enabledFilters)) -
+
@if (count($enabledFilters) > 1) - + {{ trans('livewire-powergrid::datatable.buttons.clear_all_filters') }}