From 1316053fa565e8ba21b51b7c89342821c2689563 Mon Sep 17 00:00:00 2001 From: Rakhat Jabagin <neilhem@hotmail.com> Date: Fri, 11 Mar 2016 14:44:17 +0600 Subject: [PATCH] remove empty sass @if directives --- scss/_input-group.scss | 8 ++------ scss/mixins/_grid.scss | 7 ++----- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/scss/_input-group.scss b/scss/_input-group.scss index 3b4ef632cb..adf30ae6fa 100644 --- a/scss/_input-group.scss +++ b/scss/_input-group.scss @@ -35,9 +35,7 @@ .input-group-addon, .input-group-btn, .input-group .form-control { - @if $enable-flex { - // do nothing - } @else { + @if not $enable-flex { display: table-cell; } @@ -48,9 +46,7 @@ .input-group-addon, .input-group-btn { - @if $enable-flex { - // do nothing - } @else { + @if not $enable-flex { width: 1%; } white-space: nowrap; diff --git a/scss/mixins/_grid.scss b/scss/mixins/_grid.scss index 585c80f27d..3fc45f41ed 100644 --- a/scss/mixins/_grid.scss +++ b/scss/mixins/_grid.scss @@ -7,8 +7,7 @@ margin-left: auto; padding-left: ($gutter / 2); padding-right: ($gutter / 2); - @if $enable-flex { - } @else { + @if not $enable-flex { @include clearfix(); } } @@ -36,9 +35,7 @@ @mixin make-col($gutter: $grid-gutter-width) { position: relative; - @if $enable-flex { - // Do nothing - } @else { + @if not $enable-flex { float: left; } min-height: 1px; -- GitLab