From b6dcad2d71d77554b7c487e5cf41bfaae5306bc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Drago=C8=99-Cristian=20Bute?= <44490413+dnbute@users.noreply.github.com> Date: Mon, 4 Dec 2023 17:26:48 +0200 Subject: [PATCH] Fixed padding for text (#508) * fixed padding for text * refactored fix * added padded variant --------- Co-authored-by: Dragos Cristian Bute --- blocks/text/text.css | 7 +++++-- styles/styles.css | 8 ++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/blocks/text/text.css b/blocks/text/text.css index 41265fc1..ea8023a2 100644 --- a/blocks/text/text.css +++ b/blocks/text/text.css @@ -1,3 +1,7 @@ +main .block.text.padded { + padding: 0 1rem; +} + main .block.text.narrow { width: 100%; padding-right: 0; @@ -97,8 +101,7 @@ main .block.text.rounded-border h4 { main .block.text.lead { font-size: var(--body-font-size-xl); - margin: 1rem 1rem 1.25rem; - max-width: 90vw; + margin: 0 0 1.25rem; } main .block.text.colored { diff --git a/styles/styles.css b/styles/styles.css index ff64cb81..05a21cce 100644 --- a/styles/styles.css +++ b/styles/styles.css @@ -1049,6 +1049,14 @@ main .section.float-image-right picture { transform: translate(-50%, -50%); } +/* stylelint-disable-next-line no-descending-specificity */ +.section.with-background-image.align-top > .section-container { + margin-top: 1.5rem; + top: 0%; + left: 50%; + transform: translate(-50%, 0%); +} + /* END Section Styles END */ /* START Keyframes START */