File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 734734
735735} // a
736736
737+ img {
738+ max-width : 100% ;
739+ }
740+
737741.post {
738742 h1 {
739743 margin-top : 3rem ;
@@ -823,20 +827,14 @@ div.post-content .table-wrapper {
823827 }
824828 p {
825829 font-size : 1.08rem ;
826- }
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% );
830+ > img {
831+ margin-top : .5rem ;
832+ margin-bottom : 1.5rem ;
833+ @include align-center ;
834+ }
836835 }
837836}
838837
839-
840838.tag :hover {
841839 @extend %tag-hover ;
842840}
Original file line number Diff line number Diff line change 9898 font-weight : $font-weight ;
9999 font-family : ' Roboto Condensed' , ' Microsoft Yahei' , sans-serif ;
100100}
101+
102+ @mixin align-center {
103+ position : relative ;
104+ left : 50% ;
105+ -webkit-transform : translateX (-50% );
106+ -ms-transform : translateX (-50% );
107+ transform : translateX (-50% );
108+ }
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
4545 .post-preview-img {
4646 margin-top : 0 ;
4747 margin-bottom : 2.5rem ;
48+ @include align-center ;
4849 }
4950}
5051
@@ -341,19 +342,10 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
341342
342343/* Hide SideBar and TOC */
343344@media all and (max-width : 830px ) {
344- .post img {
345- position : relative ;
346- left : 50% ;
347- -webkit-transform : translateX (-50% );
348- -ms-transform : translateX (-50% );
349- transform : translateX (-50% );
350- }
351-
352345 .post-navigation {
353346 padding-left : 0 ;
354347 padding-right : 0 ;
355348 margin-left : -.5rem ;
356349 margin-right : -.5rem ;
357350 }
358-
359351}
You can’t perform that action at this time.
0 commit comments