From b03f3340b9d6a6fb06384a9fc9c33fe1be12ea62 Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Sun, 15 Dec 2024 21:49:56 +0100 Subject: [PATCH] fix: make textimage size real 50% --- .../ContentElements/textimage/assets/frontend.css | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/base/ContentBlocks/ContentElements/textimage/assets/frontend.css b/packages/base/ContentBlocks/ContentElements/textimage/assets/frontend.css index af72376..2955744 100644 --- a/packages/base/ContentBlocks/ContentElements/textimage/assets/frontend.css +++ b/packages/base/ContentBlocks/ContentElements/textimage/assets/frontend.css @@ -3,9 +3,10 @@ } .textimage-container { - display: flex; - flex-direction: column; - gap: 2rem; + --gap: 2rem; + display: flex; + flex-direction: column; + gap: var(--gap); } .textimage-wrapper { @@ -62,11 +63,11 @@ } .textimage-image-wrapper.size-25 { - flex: 0 0 25%; + flex: 0 0 calc(25% - (var(--gap) / 2)); } .textimage-image-wrapper.size-50 { - flex: 0 0 50%; + flex: 0 0 calc(50% - (var(--gap) / 2)); } .textimage-wrapper {