summaryrefslogtreecommitdiff
path: root/css/post/table.css
diff options
context:
space:
mode:
authormuqiuhan <[email protected]>2026-03-15 11:36:53 +0000
committermuqiuhan <[email protected]>2026-03-15 11:36:53 +0000
commite7adfc645c5624bc3b827d7233f6e78b33a90e79 (patch)
treec3b18fe41d0b1aff3f0a944318cab31565593590 /css/post/table.css
parent95b14c8fca55b8c78a9968006f1ea0a46afb3b1b (diff)
downloadblog-e7adfc645c5624bc3b827d7233f6e78b33a90e79.tar.gz
deploy: 18bce0f2b548121e7298c164c463df00e2f9ff78
Diffstat (limited to 'css/post/table.css')
-rw-r--r--css/post/table.css28
1 files changed, 15 insertions, 13 deletions
diff --git a/css/post/table.css b/css/post/table.css
index bfefa58c..b8fd1da8 100644
--- a/css/post/table.css
+++ b/css/post/table.css
@@ -1,32 +1,34 @@
-table,
-td,
-th {
+.post-content table {
border: $color-text-primary solid $line-third;
width: 100%;
text-align: left;
-}
-table {
border-collapse: collapse;
table-layout: fixed;
}
-td,
-th {
+.post-content table td,
+.post-content table th {
padding: $margin-m-1;
}
-th {
+.post-content table th {
font-variation-settings: 'wght' $font-weight-medium;
}
-td {
+.post-content table td {
font-variation-settings: 'wght' $font-weight-light;
}
-table,
-tboby,
-tr,
-td {
+.post-content table table,
+.post-content table tboby,
+.post-content table tr,
+.post-content table td {
background-color: inherit;
}
.highlight>table {
+ width: auto;
min-width: fit-content;
+ border: none;
+}
+.highlight>table td {
+ padding: 0;
+ border: none;
}
@media (max-width: 480px) {
.block-table {