From 9fe69c1da687e24a3d85d4163b99048af5c552a9 Mon Sep 17 00:00:00 2001 From: Ciabas Date: Tue, 1 Jul 2025 10:52:28 +0200 Subject: [PATCH] (fix#3615): Fix CSS for markdown tables --- .../components/molecules/tableMarkdown.css | 44 +++++++++---------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/govtool/frontend/src/components/molecules/tableMarkdown.css b/govtool/frontend/src/components/molecules/tableMarkdown.css index 6a76a446c..acc270f75 100644 --- a/govtool/frontend/src/components/molecules/tableMarkdown.css +++ b/govtool/frontend/src/components/molecules/tableMarkdown.css @@ -1,28 +1,26 @@ -.markdown { - & table { - display: block; - overflow-x: auto; - margin: 32px 0; - border-spacing: 0; - border-collapse: collapse; - max-width: 100%; +.markdown table { + display: block; + overflow-x: auto; + margin: 32px 0; + border-spacing: 0; + border-collapse: collapse; + max-width: 100%; +} - & thead { - background-color: #d6e2ff80; - } +.markdown thead { + background-color: #d6e2ff80; +} - & th, - & td { - padding: 6px 13px; - border: 1px solid #d6e2ff; - } +.markdown th, +.markdown td { + padding: 6px 13px; + border: 1px solid #d6e2ff; +} - & td > :last-child { - margin-bottom: 0; - } +.markdown td > :last-child { + margin-bottom: 0; +} - & tr:nth-child(2n) { - background-color: #d6e2ff80; - } - } +.markdown tr:nth-child(2n) { + background-color: #d6e2ff80; }