From 48b6f1a9db0d1688d29ed6050509cbfed80165d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Tue, 7 Jun 2022 15:14:35 +0200 Subject: [PATCH] Add dedicated button background class to simplify theming --- .../ep_theme/Configuration/RTE/Default.yaml | 4 +- .../Assets/scss/components/_buttons.scss | 28 ++- .../Private/Partials/City/Teaser.html | 2 +- .../Private/Partials/ContactForm/Error.html | 2 +- .../Private/Partials/ContactForm/Full.html | 91 --------- .../Private/Partials/ContactForm/Simple.html | 60 ------ .../Private/Partials/ContactForm/Success.html | 2 +- .../Private/Partials/Disrupter/Large.html | 2 +- .../Private/Partials/Disrupter/Small.html | 2 +- .../Private/Partials/Disturber/Large.html | 2 +- .../Private/Partials/Disturber/Small.html | 2 +- .../Private/Partials/EventDisturber.html | 2 +- .../Partials/Form/Form/Navigation.html | 6 +- .../Private/Partials/HeaderSlider.html | 4 +- .../Private/Partials/HeaderSliderSmall.html | 2 +- .../Private/Partials/Hotel/Details.html | 4 +- .../Private/Partials/Hotel/Teaser.html | 2 +- .../Partials/Hotel/TeaserExtended.html | 32 ---- .../Private/Partials/Hotel/TeaserSimple.html | 30 --- .../Private/Partials/Hotel/TeaserWide.html | 173 ------------------ .../Private/Partials/Menu/Type-3.html | 24 --- .../Resources/Private/Partials/Mobilenav.html | 6 +- .../Private/Partials/News/List/Item.html | 2 +- .../Private/Partials/Pricetable.html | 2 +- .../Private/Partials/Product/Details.html | 2 +- .../Partials/Product/HeaderDetail.html | 2 +- .../Private/Partials/Product/Teaser.html | 2 +- .../Private/Partials/Region/Details.html | 2 +- .../Private/Partials/Region/Teaser.html | 2 +- .../Private/Partials/Search/Main.html | 2 +- .../Private/Partials/Teaser/OneColumn.html | 2 +- .../Private/Partials/Teaser/TwoColumn.html | 2 +- .../Templates/AjaxFilterPanel/Index.html | 2 +- .../Templates/AjaxTable/Pricetable.html | 6 +- .../Private/Templates/City/Detail.html | 6 +- .../Private/Templates/Concept/Detail.html | 4 +- .../Private/Templates/Country/Detail.html | 6 +- .../Templates/FluidStyledContent/Button.html | 2 +- .../FluidStyledContent/MenuSection.html | 2 +- .../FluidStyledContent/MenuSectionPages.html | 4 +- .../FluidStyledContent/MenuSubpages.html | 2 +- .../FluidStyledContent/TeaserCountry.html | 2 +- .../Private/Templates/Hotel/Detail.html | 4 +- .../Private/Templates/News/News/Detail.html | 2 +- .../ViewHelpers/Widget/Paginate/Index.html | 16 +- .../Private/Templates/Product/Detail.html | 28 +-- .../Templates/Product/Teasergroup.html | 2 +- .../Private/Templates/Region/Detail.html | 4 +- .../Private/Templates/Searchbar/Index.html | 8 +- .../Private/Templates/Team/Show.html | 2 +- 50 files changed, 101 insertions(+), 503 deletions(-) delete mode 100644 public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Full.html delete mode 100644 public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Simple.html delete mode 100644 public/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/TeaserExtended.html delete mode 100644 public/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/TeaserSimple.html delete mode 100644 public/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/TeaserWide.html delete mode 100644 public/typo3conf/ext/ep_theme/Resources/Private/Partials/Menu/Type-3.html diff --git a/public/typo3conf/ext/ep_theme/Configuration/RTE/Default.yaml b/public/typo3conf/ext/ep_theme/Configuration/RTE/Default.yaml index 5c17d12e..0e2433e1 100644 --- a/public/typo3conf/ext/ep_theme/Configuration/RTE/Default.yaml +++ b/public/typo3conf/ext/ep_theme/Configuration/RTE/Default.yaml @@ -10,8 +10,8 @@ editor: - "EXT:ep_theme/Resources/Public/css/rte.css?v=2020.02-01" stylesSet: - - { name: "Button", element: "a", attributes: { 'class': 'button' } } - - { name: "Button (volle Breite)", element: "a", attributes: { 'class': 'button button--full' } } + - { name: "Button", element: "a", attributes: { 'class': 'button bg-button' } } + - { name: "Button (volle Breite)", element: "a", attributes: { 'class': 'button bg-button button--full' } } toolbarGroups: - { name: styles, groups: [ format, styles ] } diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/components/_buttons.scss b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/components/_buttons.scss index b8e9ebaa..89939a49 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/components/_buttons.scss +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/scss/components/_buttons.scss @@ -2,12 +2,23 @@ @apply inline-flex items-center justify-center space-x-2 px-4 py-2 md:px-8 cursor-pointer; @apply uppercase leading-none text-center; @apply transition-colors outline-none focus:outline-none; + + &--small { + @apply px-2 py-1 md:px-4 text-xs sm:text-sm; + } + + &--full { + @apply block w-full; + } +} + +.bg-button { @apply bg-ep-primary-light text-white; @apply sbw:bg-sbw-secondary; @apply snz:bg-snz-secondary; @apply uch:bg-uch-secondary; @apply ser:bg-ser-secondary; - @apply hover:bg-ep-primary-dark group-hover:bg-ep-primary-dark; + @apply hover:bg-ep-secondary group-hover:bg-ep-secondary; @apply sbw:hover:bg-sbw-primary-dark sbw:group-hover:bg-sbw-primary-dark; @apply snz:hover:bg-snz-primary-dark snz:group-hover:bg-snz-primary-dark; @apply uch:hover:bg-uch-primary-dark uch:group-hover:bg-uch-primary-dark; @@ -19,13 +30,18 @@ @apply sbw:bg-sbw-primary; @apply snz:bg-snz-primary; @apply uch:bg-uch-primary; - @apply ser:bg-ser-primary; + @apply ser:bg-ser-secondary; } &--muted { @apply bg-gray-300 hover:bg-gray-300; } + &--dark { + @apply bg-ep-primary-dark; + @apply ser:bg-ser-primary; + } + &--light { @apply bg-white border-2; @apply font-bold; @@ -45,12 +61,4 @@ @apply ser:bg-white ser:border-ser-secondary ser:text-ser-secondary; } } - - &--small { - @apply px-2 py-1 md:px-4 text-xs sm:text-sm; - } - - &--full { - @apply block w-full; - } } diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/City/Teaser.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/City/Teaser.html index d42b5a3b..80e9aedb 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/City/Teaser.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/City/Teaser.html @@ -41,7 +41,7 @@ {city.teaser -> f:format.crop(maxCharacters: settings.teaserTextMaxChars) -> f:format.html()} diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Error.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Error.html index 721ffac6..be31d827 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Error.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Error.html @@ -8,7 +8,7 @@

diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Full.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Full.html deleted file mode 100644 index c323a4fa..00000000 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Full.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - -

- - - - - - - - - - -
- -
- -
- Ich habe die Datenschutzbestimmungen gelesen und akzeptiert. -
-
- -
- - - diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Simple.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Simple.html deleted file mode 100644 index ab6b9995..00000000 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Simple.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - -
- Ich habe die Datenschutzbestimmungen gelesen und akzeptiert. -
-
- -
-
- - diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Success.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Success.html index f74b0183..570d878a 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Success.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/ContactForm/Success.html @@ -9,7 +9,7 @@

diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/Large.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/Large.html index 550f6848..cfe248c5 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/Large.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/Large.html @@ -50,7 +50,7 @@

+ class="button bg-button shadow-lg"> {button.container.label} diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/Small.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/Small.html index cb5ee59a..579d6c1d 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/Small.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disrupter/Small.html @@ -28,7 +28,7 @@
- + {button.container.label} diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/Large.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/Large.html index 037a1cc5..88a0da98 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/Large.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/Large.html @@ -51,7 +51,7 @@
+ class="button bg-button shadow-lg"> {button.container.label} diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/Small.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/Small.html index c17065af..7abf7b58 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/Small.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Disturber/Small.html @@ -28,7 +28,7 @@
- + {button.container.label} diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/EventDisturber.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/EventDisturber.html index bf8778ec..dc55413b 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/EventDisturber.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/EventDisturber.html @@ -21,7 +21,7 @@
- {buttonLabel -> f:format.raw()} diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Form/Navigation.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Form/Navigation.html index 9853c2a2..6436f012 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Form/Navigation.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Form/Form/Navigation.html @@ -3,14 +3,14 @@
- {formvh:translateElementProperty(element: form.currentPage, renderingOptionProperty: 'previousButtonLabel')} + {formvh:translateElementProperty(element: form.currentPage, renderingOptionProperty: 'previousButtonLabel')} - {formvh:translateElementProperty(element: form.currentPage, renderingOptionProperty: 'nextButtonLabel')} + {formvh:translateElementProperty(element: form.currentPage, renderingOptionProperty: 'nextButtonLabel')} - + {formvh:translateElementProperty(element: form, renderingOptionProperty: 'submitButtonLabel')} diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/HeaderSlider.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/HeaderSlider.html index a6f4b237..220b6edb 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/HeaderSlider.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/HeaderSlider.html @@ -34,12 +34,12 @@ diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/TeaserExtended.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/TeaserExtended.html deleted file mode 100644 index c1817f6c..00000000 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/TeaserExtended.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - -
- {hotel.country.name} - -
-
- {hotel.name -> f:format.nl2br()} - - Kategorie {hotel.category} - -
- {hotel.teaser -> f:format.crop(maxCharacters: settings.teaserTextMaxChars) -> f:format.html()} - -
- {f:if(condition: '{hotel.available} > 0', then: 'ab {hotel.minPrice} €', else: 'ausgebucht')} -
-
- -
-
- - diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/TeaserSimple.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/TeaserSimple.html deleted file mode 100644 index f72c3fa2..00000000 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/TeaserSimple.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - -
- {hotel.country.name} - -
-
- {hotel.name -> f:format.nl2br()} - - Kategorie {hotel.category} - - -
- {hotel.teaser -> f:format.crop(maxCharacters: settings.teaserTextMaxChars) -> f:format.html()} -
-
- -
-
- - diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/TeaserWide.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/TeaserWide.html deleted file mode 100644 index 1daddec1..00000000 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/TeaserWide.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - -
-
- {item.country.name} - - - - -
{product.concept.name}
-
-
-
-
-

- {product.region.name} | {product.name} -

-

{item.hotel.name -> f:format.nl2br()}

- - Kategorie {item.hotel.category} - -
- - -
    - -
  • {item.hotel.fact}
  • -
    - -
  • {item.product.fact}
  • -
    - - -
  • {product.region.feature}
  • -
    - - -
  • {item.region.fact}
  • -
    -
    -
    -
-
    -
  • Skipass
  • - -
  • {item.board}
  • -
    - -
  • {product.feature}
  • -
    -
-
- - {item.hotel.teaser -> f:format.html()} - -
-
-
- - -
- {f:if(condition: '{item.dates -> f:count()} > 1', then: 'Zeitraum', else: 'Termin')} - {ep:dateRange(dateFrom: item.minDateStart, dateTo: item.maxDateEnd, includeLabel: 0)} - - - - {item.dates -> f:count()} Termin{f:if(condition: '{item.dates -> f:count()} > 1', then: 'e')} - - - -
- {ep:nightsOptions(options: item.nights)} -
-
- ab {item.minPrice} € - - Details & Buchen - -
-
- -
 
-
- ausgebucht - - Details - -
-
-
-
- -
-
- - - - - - - - - - {image.alternative} - - - - - - - - - - - - - - - diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Menu/Type-3.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Menu/Type-3.html deleted file mode 100644 index 8304246b..00000000 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Menu/Type-3.html +++ /dev/null @@ -1,24 +0,0 @@ - - - -
    - - -
  • - -
  • -
    -
    -
-
- - diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Mobilenav.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Mobilenav.html index 4073a581..ac9a4927 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Mobilenav.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Mobilenav.html @@ -50,7 +50,7 @@

- +
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Pricetable.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Pricetable.html index a5f2fb8c..3761e0e3 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Pricetable.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Pricetable.html @@ -90,7 +90,7 @@ - diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Details.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Details.html index 571844b1..48da8470 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Details.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Details.html @@ -7,7 +7,7 @@
- + {ep:icon(icon: 'chevron-left', class: 'w-4 h-4 text-white')} {backlinkLabel} diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Teaser.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Teaser.html index d24f133b..56d970f7 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Teaser.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Teaser.html @@ -93,7 +93,7 @@
-
+
ab {minPrice} €
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Region/Details.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Region/Details.html index 18449eb0..b213580e 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Region/Details.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Region/Details.html @@ -96,7 +96,7 @@
- Alle anzeigen diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Region/Teaser.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Region/Teaser.html index 83f3e7ef..3df65537 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Region/Teaser.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Region/Teaser.html @@ -21,7 +21,7 @@ {region.teaser -> f:format.crop(maxCharacters: settings.teaserTextMaxChars) -> f:format.html()}
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Search/Main.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Search/Main.html index e1aff20f..01ce3c3e 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Search/Main.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Search/Main.html @@ -16,7 +16,7 @@
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Teaser/OneColumn.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Teaser/OneColumn.html index dfa021dc..55ca112b 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Teaser/OneColumn.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Teaser/OneColumn.html @@ -25,7 +25,7 @@
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Teaser/TwoColumn.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Teaser/TwoColumn.html index c5eafe44..bcfc90a7 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Teaser/TwoColumn.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Teaser/TwoColumn.html @@ -16,7 +16,7 @@ {data.bodytext -> f:format.html()}
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxFilterPanel/Index.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxFilterPanel/Index.html index 229395ad..9aad6b6b 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxFilterPanel/Index.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxFilterPanel/Index.html @@ -22,7 +22,7 @@
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxTable/Pricetable.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxTable/Pricetable.html index c835c054..d6588c8d 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxTable/Pricetable.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/AjaxTable/Pricetable.html @@ -111,14 +111,14 @@ + class="button bg-button button--small"> Reisen-Alert - @@ -132,7 +132,7 @@ -
- @@ -89,7 +89,7 @@
@@ -61,14 +61,14 @@ data-action="tabs#select" data-tabs-target="button" data-tab="dates" - class="col-span-2 py-2 uppercase bg-ep-primary-dark"> + class="col-span-2 py-2 uppercase bg-button bg-button--dark"> Termine/Preise @@ -77,14 +77,14 @@ data-action="tabs#select" data-tabs-target="button" data-tab="region" - class="py-2 uppercase bg-ep-primary-dark"> + class="py-2 uppercase bg-button bg-button--dark"> Gebiet @@ -92,7 +92,7 @@ data-action="tabs#select" data-tabs-target="button" data-tab="journey" - class="py-2 uppercase bg-ep-primary-dark"> + class="py-2 uppercase bg-button bg-button--dark"> Anreise @@ -152,7 +152,7 @@