diff options
| author | muqiuhan <[email protected]> | 2026-03-15 11:36:53 +0000 |
|---|---|---|
| committer | muqiuhan <[email protected]> | 2026-03-15 11:36:53 +0000 |
| commit | e7adfc645c5624bc3b827d7233f6e78b33a90e79 (patch) | |
| tree | c3b18fe41d0b1aff3f0a944318cab31565593590 /css/post | |
| parent | 95b14c8fca55b8c78a9968006f1ea0a46afb3b1b (diff) | |
| download | blog-e7adfc645c5624bc3b827d7233f6e78b33a90e79.tar.gz | |
deploy: 18bce0f2b548121e7298c164c463df00e2f9ff78
Diffstat (limited to 'css/post')
| -rw-r--r-- | css/post/code.css | 22 | ||||
| -rw-r--r-- | css/post/post_comment.css | 2 | ||||
| -rw-r--r-- | css/post/post_footer.css | 2 | ||||
| -rw-r--r-- | css/post/post_head.css | 2 | ||||
| -rw-r--r-- | css/post/table.css | 28 |
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 { |
