summaryrefslogtreecommitdiff
path: root/css/post
diff options
context:
space:
mode:
Diffstat (limited to 'css/post')
-rw-r--r--css/post/code.css22
-rw-r--r--css/post/post_comment.css2
-rw-r--r--css/post/post_footer.css2
-rw-r--r--css/post/post_head.css2
-rw-r--r--css/post/table.css28
5 files changed, 18 insertions, 38 deletions
diff --git a/css/post/code.css b/css/post/code.css
index 7bd8e748..e69de29b 100644
--- a/css/post/code.css
+++ b/css/post/code.css
@@ -1,22 +0,0 @@
-.highlight {
- margin: 0 0 $margin-m-2 0;
-}
-.highlight .line {
- width: $margin-l-2;
-}
-td.gutter {
- width: $margin-m-2;
- position: -webkit-sticky;
- position: sticky;
- left: 0;
-}
-td.gutter pre {
- overflow-x: visible;
-}
-td span {
- line-height: $margin-s-2;
-}
-pre {
- margin: 0;
- overflow-x: auto;
-}
diff --git a/css/post/post_comment.css b/css/post/post_comment.css
index a1523871..b37fcc29 100644
--- a/css/post/post_comment.css
+++ b/css/post/post_comment.css
@@ -1,5 +1,5 @@
.post-comment {
- margin-top: $margin-primary;
+ margin-top: $margin-l-1;
}
.v[data-class="v"] .vsys {
display: none !important;
diff --git a/css/post/post_footer.css b/css/post/post_footer.css
index 5ee366d0..ffdecf3b 100644
--- a/css/post/post_footer.css
+++ b/css/post/post_footer.css
@@ -1,5 +1,5 @@
.post-footer {
- margin-top: $margin-primary;
+ margin-top: $margin-l-1;
}
.post-nav {
margin-top: $margin-m-1;
diff --git a/css/post/post_head.css b/css/post/post_head.css
index 61715567..f71f025a 100644
--- a/css/post/post_head.css
+++ b/css/post/post_head.css
@@ -1,5 +1,5 @@
.post-head {
- margin-top: $margin-primary;
+ margin-top: $margin-l-1;
}
.post-head .post-info {
width: 100%;
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 {