From 9cf746e016e1fe73738721f567e087bfb3afc877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Sat, 21 Aug 2021 17:30:06 +0200 Subject: [PATCH] WIP Migrate to stimulus.js and tailwind --- .../Assets/scss/components/_datepicker.scss | 15 ++----- .../Private/Partials/Search/FilterPanel.html | 36 +++++++---------- .../Private/Partials/Search/Main.html | 2 +- .../Private/Partials/Search/Result.html | 3 +- .../Templates/Search/Searchresult.html | 39 ++++++++----------- .../Private/Templates/Searchbar/Index.html | 4 +- .../typo3conf/ext/ep_theme/ext_localconf.php | 2 + 7 files changed, 40 insertions(+), 61 deletions(-) diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/components/_datepicker.scss b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/components/_datepicker.scss index 7abc8b1f..f7d7fc04 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/components/_datepicker.scss +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/components/_datepicker.scss @@ -5,7 +5,7 @@ } .flatpickr-calendar { - box-shadow: none; + @apply shadow-none; &.inline { border: none !important; @@ -15,22 +15,15 @@ .flatpickr-calendar { &.inline { - border: 1px solid theme('colors.gray.400'); + @apply border border-gray-400; } - - &.centered { - margin: 0 auto 16px; - } - } .flatpickr-day { - border-radius: 4px; - margin: 3px 0; + @apply rounded my-2 mx-0; &.available:not(.inRange) { - color: white; - background-color: theme('colors.green.500'); + @apply text-white bg-green-500; } } diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Search/FilterPanel.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Search/FilterPanel.html index ce67cd88..b4d503da 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Search/FilterPanel.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Search/FilterPanel.html @@ -9,19 +9,14 @@ data="{'search-target': 'form'}">
-
- -
- + data-collapse-collapsed-value="true"> + +