From d36a146cb897b21c6685e42a4fb4ca246a515148 Mon Sep 17 00:00:00 2001 From: elise Date: Mon, 12 Aug 2024 13:28:03 +0200 Subject: [PATCH] add styling for tables in rich text blocks --- .../blocks/richTextBlock.module.scss | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/web/src/components/blocks/richTextBlock.module.scss b/web/src/components/blocks/richTextBlock.module.scss index a8560db..4697702 100644 --- a/web/src/components/blocks/richTextBlock.module.scss +++ b/web/src/components/blocks/richTextBlock.module.scss @@ -125,4 +125,30 @@ height: 1px; background: var(--color-text); } + + table { + width: 100%; + max-width: var(--size-width-p); + border-collapse: collapse; + margin: 0 auto; + + tr { + border-top: var(--border); + + &:last-child { + border-bottom: var(--border); + } + } + + th { + text-align: left; + width: 11rem; + font-weight: 600; + } + + th, + td { + padding: var(--spacing-xs) 0; + } + } } \ No newline at end of file