Skip to content

Commit

Permalink
Extend the image style to the layout page (cotes2020#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed Aug 28, 2020
1 parent 44476f2 commit 5d7931b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 10 additions & 0 deletions assets/css/_addon/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,16 @@ div.post-content .table-wrapper {
p {
font-size: 1.08rem;
}
img {
max-width: 100%;
margin-top: .5rem;
margin-bottom: 1.5rem;
position: relative;
left: 50%;
-webkit-transform: translateX(-50%);
-ms-transform: translateX(-50%);
transform: translateX(-50%);
}
}


Expand Down
10 changes: 0 additions & 10 deletions assets/css/post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,6 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
}

.post-content {
img {
max-width: 100%;
margin-top: .5rem;
margin-bottom: 1.5rem;
position: relative;
left: 50%;
-webkit-transform: translateX(-50%);
-ms-transform: translateX(-50%);
transform: translateX(-50%);
}
> ol, > ul, > dl {
padding-left: 2rem;
li+li {
Expand Down

0 comments on commit 5d7931b

Please sign in to comment.