From a0bf6416c1fb9634eb9bf3835e9bb92ec02b804e Mon Sep 17 00:00:00 2001 From: Tomasz Dziezyk Date: Mon, 19 Aug 2024 09:23:35 +0200 Subject: [PATCH] Add css fixes for text centering --- blocks/footer/footer.css | 2 +- blocks/text/text.css | 8 +++++++- styles/styles.css | 7 ++++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/blocks/footer/footer.css b/blocks/footer/footer.css index 5281b93..b6f30e2 100644 --- a/blocks/footer/footer.css +++ b/blocks/footer/footer.css @@ -119,7 +119,7 @@ footer { @media (width >= 768px) { .footer .section { - padding: 10px 30px 40px; + padding: 40px 30px; } .footer .columns > div { diff --git a/blocks/text/text.css b/blocks/text/text.css index 43029d3..b3a54d3 100644 --- a/blocks/text/text.css +++ b/blocks/text/text.css @@ -2,6 +2,12 @@ max-width: 750px; } +/* centering by variant */ .text.center > div { margin: auto; -} \ No newline at end of file +} + +/* centering by set the text aling in the document */ +.text [data-align="center"] { + text-align: center; +} diff --git a/styles/styles.css b/styles/styles.css index 8848524..a01bb8c 100644 --- a/styles/styles.css +++ b/styles/styles.css @@ -251,7 +251,12 @@ main .section { padding: var(--section-y-padding) var(--section-x-padding); } -main .section:last-child { +main .section:first-child { + padding-top: 0; +} + +main .section:last-child, +main .section.padding-bottom-0 { padding-bottom: 0; }