From 43c3eb92e04a5594fdbb7b85aab87f29ae342fdf Mon Sep 17 00:00:00 2001 From: moris Date: Sun, 8 Dec 2024 00:13:38 +0900 Subject: [PATCH] add: markdown tale layout --- src/lib/components/Markdown.css | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/lib/components/Markdown.css b/src/lib/components/Markdown.css index 5aee02c..314fe45 100644 --- a/src/lib/components/Markdown.css +++ b/src/lib/components/Markdown.css @@ -78,6 +78,22 @@ background-color: #fff0; } } + & table { + margin: 1rem auto; + font-size: 1.2em; + border-collapse: collapse; + + & thead { + border-bottom: solid 1px var(--black-white); + } + & tbody tr:nth-child(2n) { + background-color: color-mix(in srgb, var(--black-white) 10%, var(--back-color)); + } + & td,th { + border-width: 0px; + padding: .3em .6em; + } + } & blockquote { position: relative; font-style: italic;