summaryrefslogtreecommitdiff
path: root/css/post/table.css
diff options
context:
space:
mode:
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 {