From de5f43dbd74f638685d2c554f7caedd3ef3ff934 Mon Sep 17 00:00:00 2001 From: robin Date: Wed, 20 Sep 2023 08:15:27 +0000 Subject: [PATCH] v.1.0 --- api/collections/fields/pagebuilder.yml | 4 ++ frontend/src/lib/assets/css/teaserSwiper.less | 0 .../lib/components/pagebuilder/image.svelte | 37 +++++++++++++------ .../components/pagebuilder/pagebuilder.svelte | 10 ++--- 4 files changed, 35 insertions(+), 16 deletions(-) create mode 100644 frontend/src/lib/assets/css/teaserSwiper.less diff --git a/api/collections/fields/pagebuilder.yml b/api/collections/fields/pagebuilder.yml index 6c2daa8..5b79f38 100644 --- a/api/collections/fields/pagebuilder.yml +++ b/api/collections/fields/pagebuilder.yml @@ -3,6 +3,7 @@ name: row meta: label: Zeile addElementLabel: Zeile hinzufügen + widget: grid folding: previewFolded: titleForWork previewUnfolded: titleForWork @@ -35,6 +36,7 @@ subFields: type: object[] meta: label: Spalte + widget: grid addElementLabel: weitere Spalte folding: previewFolded: contentType @@ -349,6 +351,7 @@ subFields: type: object[] meta: label: Zeile + widget: grid addElementLabel: Zeile Hinzufügen dependsOn: eval: $parent.contentType == "form" @@ -367,6 +370,7 @@ subFields: folding: previewFolded: titleForWork previewUnfolded: titleForWork + widget: grid direction: horizontal subFields: - !include titleForWork.yml diff --git a/frontend/src/lib/assets/css/teaserSwiper.less b/frontend/src/lib/assets/css/teaserSwiper.less new file mode 100644 index 0000000..e69de29 diff --git a/frontend/src/lib/components/pagebuilder/image.svelte b/frontend/src/lib/components/pagebuilder/image.svelte index 4903f01..b7f8a66 100644 --- a/frontend/src/lib/components/pagebuilder/image.svelte +++ b/frontend/src/lib/components/pagebuilder/image.svelte @@ -26,7 +26,7 @@ {#if siteImages.length > 1} -
+
{#each siteImages as image, i (i)} - +
span { + background-color: var(--opposite-bg-color); + } + } diff --git a/frontend/src/lib/components/pagebuilder/pagebuilder.svelte b/frontend/src/lib/components/pagebuilder/pagebuilder.svelte index 767a1f0..4701f78 100644 --- a/frontend/src/lib/components/pagebuilder/pagebuilder.svelte +++ b/frontend/src/lib/components/pagebuilder/pagebuilder.svelte @@ -185,12 +185,12 @@ textarea, .data-protection { margin: 5px 0px; - box-shadow: 0 0 25px 10px rgba(0, 0, 0, 0.05); + box-shadow: 0 0 25px 10px var(--opposite-bg-color-5); } .success-message { h1 { - color: var(--banner-color); + color: var(--heading-font-color); font-size: 36px; margin-top: 50px; } @@ -399,10 +399,10 @@ textarea, .data-protection { padding: 10px 20px; - border: 0px solid black; + border: 0px solid var(--opposite-bg-color); border-bottom: 3px solid var(--heading-font-color); - outline: 0px solid black; - + outline: 0px solid var(--opposite-bg-color); + color: var(--opposite-bg-color); background-color: var(--background-color); resize: none; }