From 1de5410a563038c8f4a91bc7761e1772754b2159 Mon Sep 17 00:00:00 2001 From: Tomasz Dziezyk Date: Thu, 22 Aug 2024 12:39:25 +0200 Subject: [PATCH] Css fixes --- blocks/footer/footer.css | 2 +- blocks/table/table.css | 1 + blocks/table/table.js | 4 ++++ blocks/text/text.css | 4 ++++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/blocks/footer/footer.css b/blocks/footer/footer.css index b6f30e2..fb981eb 100644 --- a/blocks/footer/footer.css +++ b/blocks/footer/footer.css @@ -127,7 +127,7 @@ footer { justify-content: space-between; } - .footer .footer-column { + .footer .columns .footer-column { width: calc(50% - 30px); padding-bottom: 0; margin-top: 30px; diff --git a/blocks/table/table.css b/blocks/table/table.css index c2453dd..265034c 100644 --- a/blocks/table/table.css +++ b/blocks/table/table.css @@ -6,6 +6,7 @@ .table .table-element { border-collapse: collapse; + width: 100%; } .table td { diff --git a/blocks/table/table.js b/blocks/table/table.js index a94b4d9..a5d44c4 100644 --- a/blocks/table/table.js +++ b/blocks/table/table.js @@ -20,5 +20,9 @@ export default async function decorate(block) { block.innerHTML = ''; table.append(tBody); + + // links should be displayed as links - no buttons in table + table.querySelectorAll('.button').forEach((link) => link.classList.remove('button')); + block.append(table); } diff --git a/blocks/text/text.css b/blocks/text/text.css index 554b5e3..bf1f7d8 100644 --- a/blocks/text/text.css +++ b/blocks/text/text.css @@ -7,6 +7,10 @@ margin: auto; } +.text.center .button-container { + text-align: center; +} + /* centering by set the text aling in the document */ .section-center .text { text-align: center;