Skip to content

Commit aea4bbf

Browse files
committed
Extend the image style to the layout page (cotes2020#113)
1 parent 4643aa0 commit aea4bbf

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

assets/css/_addon/main.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,16 @@ div.post-content .table-wrapper {
824824
p {
825825
font-size: 1.08rem;
826826
}
827+
img {
828+
max-width: 100%;
829+
margin-top: .5rem;
830+
margin-bottom: 1.5rem;
831+
position: relative;
832+
left: 50%;
833+
-webkit-transform: translateX(-50%);
834+
-ms-transform: translateX(-50%);
835+
transform: translateX(-50%);
836+
}
827837
}
828838

829839

assets/css/post.scss

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,6 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
2828
}
2929

3030
.post-content {
31-
img {
32-
max-width: 100%;
33-
margin-top: .5rem;
34-
margin-bottom: 1.5rem;
35-
position: relative;
36-
left: 50%;
37-
-webkit-transform: translateX(-50%);
38-
-ms-transform: translateX(-50%);
39-
transform: translateX(-50%);
40-
}
4131
> ol, > ul, > dl {
4232
padding-left: 2rem;
4333
li+li {

0 commit comments

Comments
 (0)