diff options
author | Francesco <tomaselli.fr@gmail.com> | 2025-04-17 22:53:19 +0200 |
---|---|---|
committer | Francesco <tomaselli.fr@gmail.com> | 2025-04-17 22:53:19 +0200 |
commit | 52e58abda7e2af16e47dd4fb089eac41c1220ea8 (patch) | |
tree | 076dc073fc842f858baa0e37c71c58932486f9ed | |
parent | bfc6b2e9d728e5bba3ed48d2fd4725ec064f2429 (diff) |
Update table style
-rw-r--r-- | assets/css/main.css | 10 | ||||
-rw-r--r-- | assets/css/vars.css | 4 |
2 files changed, 11 insertions, 3 deletions
diff --git a/assets/css/main.css b/assets/css/main.css index f685c59..b2a95af 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -566,12 +566,16 @@ table { font-size: var(--p-font-size); line-height: var(--p-line-height); color: var(--content-primary); + width: fit-content; + margin-left: auto; + margin-right: auto; + border: 1px solid var(--code-border); + border-radius: var(--code-border-radius); } th, td { padding: var(--table-cell-padding); - border: 1px solid var(--code-border); text-align: left; } @@ -580,6 +584,10 @@ th { font-weight: bold; } +tbody tr { + border-top: 1px solid var(--code-border); +} + /* Quotes */ blockquote { diff --git a/assets/css/vars.css b/assets/css/vars.css index 8a010ee..7f9a8a9 100644 --- a/assets/css/vars.css +++ b/assets/css/vars.css @@ -61,8 +61,8 @@ /* Tables */ --table-cell-padding: .5rem; - --table-margin-top: 1.5rem; - --table-margin-bottom: 1.5rem; + --table-margin-top: 2rem; + --table-margin-bottom: 2rem; } @media screen and (max-width: 1024px) { |