Extend the image style to the layout page (#113)

This commit is contained in:
Cotes Chung 2020-08-28 23:01:35 +08:00
parent e439e65258
commit cb461df071
2 changed files with 10 additions and 10 deletions

View file

@ -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%);
}
}

View file

@ -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 {