From 3d6bd4df3983e3cbd0ce5f3f6629419d6d84035a Mon Sep 17 00:00:00 2001 From: Ian Dunn Date: Sun, 11 Jan 2015 11:23:26 -0800 Subject: [PATCH] Remove unnecessary margin-top and margin-bottom from center-block mixin. Setting top and bottom margins is not necessary to center the element, and it can potentially override the margins set by another rule. --- sass/mixins/_mixins-master.scss | 3 ++- style.css | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sass/mixins/_mixins-master.scss b/sass/mixins/_mixins-master.scss index 60fe1853..35160454 100644 --- a/sass/mixins/_mixins-master.scss +++ b/sass/mixins/_mixins-master.scss @@ -7,7 +7,8 @@ // Center block @mixin center-block { display: block; - margin: 0 auto; + margin-left: auto; + margin-right: auto; } // Clearfix diff --git a/style.css b/style.css index 587ad554..578d54b7 100644 --- a/style.css +++ b/style.css @@ -579,7 +579,8 @@ a:active { .aligncenter { clear: both; display: block; - margin: 0 auto; + margin-left: auto; + margin-right: auto; } /*--------------------------------------------------------------