Skip to content

Commit

Permalink
fix(style): margin issues of layout "poetry"
Browse files Browse the repository at this point in the history
...which are caused by `display: table`.
  • Loading branch information
reuixiy committed Apr 10, 2020
1 parent 28f26c0 commit bbef0de
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
22 changes: 22 additions & 0 deletions assets/scss/base/_data-attributes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,28 @@
display: table;
margin: 0 auto;
}
.post-body > p:first-child {
img, video {
margin-top: 0;
}
}
.post-body > blockquote:first-child {
margin-top: 0;
}
.post-body > blockquote:last-child {
margin-bottom: 0;
}
.post-body > p:last-child {
margin: 0;
}
.post-body > p:last-child {
img, video {
margin-bottom: 0;
}
}
section.footnotes > ol > li:last-child > p:last-child {
margin: 0;
}
}

[data-toc-num="true"] {
Expand Down
Loading

0 comments on commit bbef0de

Please sign in to comment.