From 70fbefd317e6f84954381981ed64f2040ab8afe9 Mon Sep 17 00:00:00 2001 From: Roland Schneider Date: Tue, 16 Sep 2025 08:59:32 +0200 Subject: [PATCH] [yoga-12] serviceList page improvements - improve css --- .../block.with.left.image.component.tsx | 11 +++++-- .../src/styles/block-with-left-image.scss | 32 +++++++++++++++++-- .../src/styles/block-with-right-image.scss | 22 ++++++++++--- 3 files changed, 56 insertions(+), 9 deletions(-) diff --git a/yoga-app/src/components/block.with.left.image.component.tsx b/yoga-app/src/components/block.with.left.image.component.tsx index 4864773..1c84ae3 100644 --- a/yoga-app/src/components/block.with.left.image.component.tsx +++ b/yoga-app/src/components/block.with.left.image.component.tsx @@ -15,11 +15,18 @@ export default function BlockWithLeftImage ( { return (
-
+
+ { url &&
+
+ +
+
+ }
- {url &&
+ {url &&
} diff --git a/yoga-app/src/styles/block-with-left-image.scss b/yoga-app/src/styles/block-with-left-image.scss index e100d4d..5f54bd8 100644 --- a/yoga-app/src/styles/block-with-left-image.scss +++ b/yoga-app/src/styles/block-with-left-image.scss @@ -5,7 +5,7 @@ padding: 45px 0 130px; position: relative; } -.block_with_left_image .block_with_image_box{ +.block_with_left_image .block_with_left_image_box{ width: 100%; background-color: var(--e-global-color-white); border-radius: 200px 0 200px 0; @@ -80,6 +80,12 @@ } } +.block_with_left_image_image img{ + border-top-left-radius: 200px; + border-bottom-right-radius: 200px; + margin: -150px 12px 12px -40px; + max-width: 50%; +} @@ -120,6 +126,11 @@ .block_with_left_image_section .vision_left_shape { display: none; } + + .block_with_left_image_image img{ + margin-top: -80px; + } + } @media screen and (max-width: 991px){ .block_with_left_image_section { @@ -147,6 +158,12 @@ line-height: 18px; padding: 20px 35px; } + + .block_with_left_image_image img { + margin-top: -40; + margin-left: 0; + } + } @media screen and (max-width: 767px){ @@ -178,10 +195,15 @@ padding: 18px 32px; } + .block_with_left_image_image img{ + margin-top: 0; + max-width: 100%; + } + } @media screen and (max-width: 575px) { - .block_with_left_image_section .block_with_image_box { + .block_with_left_image_section .block_with_left_image_box { border-radius: 118px 0 118px 0; } .block_with_left_image_content p { @@ -193,4 +215,10 @@ line-height: 14px; padding: 16px 30px; } + .block_with_left_image_image img{ + margin-top: 0; + max-width: 100%; + //border-top-left-radius: 200px; + //border-bottom-right-radius: 200px; + } } \ No newline at end of file diff --git a/yoga-app/src/styles/block-with-right-image.scss b/yoga-app/src/styles/block-with-right-image.scss index c845069..5d55b54 100644 --- a/yoga-app/src/styles/block-with-right-image.scss +++ b/yoga-app/src/styles/block-with-right-image.scss @@ -13,8 +13,8 @@ &_image img { max-width: 50%; - border-top-left-radius: 200px; - border-bottom-right-radius: 200px; + border-top-left-radius: var(--y-box-border-radius); + border-bottom-right-radius: var(--y-box-border-radius); margin: calc(-1 * var(--y-block-with-right-image-top-spacing)) 0 12px 12px; } @@ -120,6 +120,9 @@ &_content { padding-left: 70px; + p, h2, h3, h4, h5, h6{ + padding-right: 70px; + } h5 { margin-bottom: 8px; } @@ -128,7 +131,6 @@ } p { margin-bottom: 28px; - padding-right: 18px; } } &_right_shape { @@ -147,6 +149,11 @@ padding: 70px 0 35px; &_content { + + p, h2, h3, h4, h5, h6{ + padding-right: 45px; + } + padding-left: 45px; h5 { margin-bottom: 5px; @@ -156,7 +163,6 @@ } p { margin-bottom: 22px; - padding-right: 0px; } } &_image img { @@ -175,7 +181,8 @@ padding-left: 0; text-align: center; margin-bottom: 30px; - h2 { + h2,h3,h4,h5,h6 { + padding-right: 0; margin-bottom: 8px; } p { @@ -185,6 +192,7 @@ } &_image img { margin-top: 0; + margin-bottom: 0; max-width: 100%; } } @@ -196,6 +204,9 @@ --y-btn-padding: 16px 30px; &_content { + h2,h3,h4,h5,h6{ + padding-right: 0; + } p { margin-bottom: 15px; padding: 0 10px; @@ -203,6 +214,7 @@ } &_image img { margin-top: 0; + margin-bottom: 0; max-width: 100%; } }