Skip to content

Commit

Permalink
Fix figcaption style
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Nov 19, 2024
1 parent fec615c commit 17b57da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion source/css/_common/components/post/post-body.styl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
}

// https://github.com/hexojs/hexo-renderer-marked/pull/264
img + figcaption, .fancybox + figcaption {
// https://github.com/next-theme/hexo-next-exif
figure:not(.highlight) figcaption {
color: $grey-dark;
font-size: $font-size-small;
font-weight: bold;
Expand Down
2 changes: 1 addition & 1 deletion source/css/_common/outline/mobile.styl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ if (hexo-config('mobile_layout_economy')) {
}

// Fix issue #641
img + figcaption, .fancybox + figcaption {
figure:not(.highlight) figcaption {
margin: -5px auto 15px !important;
}

Expand Down
2 changes: 1 addition & 1 deletion source/css/_common/scaffolding/highlight/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ figure.highlight {
}

// See https://github.com/hexojs/hexo-util/pull/229
pre .caption, pre figcaption {
pre .caption {
@extend $figcaption;
margin-bottom: 10px;
}
Expand Down

0 comments on commit 17b57da

Please sign in to comment.