Skip to content

Commit

Permalink
add :only-child
Browse files Browse the repository at this point in the history
  • Loading branch information
AndPuQing committed Apr 28, 2022
1 parent 3f175a5 commit d3e5eb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ html[data-theme='dark'] .docusaurus-highlight-code-line {
}
}

.markdown p img {
/* Centers every image that is the only child in a paragraph. */
.markdown p img:only-child {
max-width: 100%;
margin:0 auto;
display:block;
Expand Down

0 comments on commit d3e5eb3

Please sign in to comment.