]> git.ipfire.org Git - ipfire.org.git/commitdiff
blog: Center all images by default
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Nov 2018 16:02:08 +0000 (16:02 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Nov 2018 16:02:08 +0000 (16:02 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scss/style.scss

index 6dd9334000e4ffdbeefe5d472e3446b91fc56271..1cb803216d4516c0350912da7b71f73a645e36b7 100644 (file)
@@ -207,6 +207,14 @@ section {
 
                img {
                        @include img-fluid;
+
+                       // Center all images
+                       display: block;
+                       margin-left: auto;
+                       margin-right: auto;
+
+                       // Add some extra margin to the top & bottom
+                       padding: ($spacer * 2) 0 ($spacer * 2) 0;
                }
        }