Skip to content

Commit e005ded

Browse files
committed
perf: remove condensed argument
1 parent c71ac62 commit e005ded

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

docs/index.html

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ <h3 class="reference"><span class="small">@include</span> <span class="big">grid
504504
</tr>
505505
</table>
506506

507-
<h3 class="reference"><span class="small">@include</span> <span class="big">grid-col</span>($col: null, $grid-columns: 12, $col-offset: null, $gutter: null, $condensed: false, $align-self: null, $flex-grow: 0, $flex-shrink: 1, $flex-basis: auto, $order: null, $shorthand: true, $last-child: false, $width: null, $max-width: null, $min-width: null, $height: null, $max-height: null, $min-height: null);</h3>
507+
<h3 class="reference"><span class="small">@include</span> <span class="big">grid-col</span>($col: null, $grid-columns: 12, $col-offset: null, $gutter: null, $align-self: null, $flex-grow: 0, $flex-shrink: 1, $flex-basis: auto, $order: null, $shorthand: true, $last-child: false, $width: null, $max-width: null, $min-width: null, $height: null, $max-height: null, $min-height: null);</h3>
508508

509509
<p>Generate the grid columns.</p>
510510

@@ -547,13 +547,6 @@ <h3 class="reference"><span class="small">@include</span> <span class="big">grid
547547
<td class="example"><a href="example/example.html#flexbox-grid-mixins-example"><i class="fas fa-external-link-alt"></i></a> <a href="example/unit-set.html"><i class="fas fa-external-link-alt"></i></a></td>
548548
</tr>
549549
<tr>
550-
<td>$condensed</td>
551-
<td>false</td>
552-
<td>&lt;boolean&gt;</td>
553-
<td>cutting the top and bottom margins of the columns, if <code>true</code>.</td>
554-
<td class="example"><a href="example/example.html#condensed-grid"><i class="fas fa-external-link-alt"></i></a></td>
555-
</tr>
556-
<tr>
557550
<td>$align-self</td>
558551
<td>null</td>
559552
<td>null | auto | flex-start | flex-end | center | baseline | stretch</td>

sass/_flexbox-grid-mixins.scss

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $flexbox-grid-mixins-box-sizing: border-box !default;
5252
@content;
5353
}
5454

55-
@mixin grid-col($col: null, $grid-columns: 12, $col-offset: null, $gutter: null, $condensed: false, $align-self: null, $flex-grow: 0, $flex-shrink: 1, $flex-basis: auto, $order: null, $shorthand: true, $last-child: false, $width: null, $max-width: null, $min-width: null, $height: null, $max-height: null, $min-height: null)
55+
@mixin grid-col($col: null, $grid-columns: 12, $col-offset: null, $gutter: null, $align-self: null, $flex-grow: 0, $flex-shrink: 1, $flex-basis: auto, $order: null, $shorthand: true, $last-child: false, $width: null, $max-width: null, $min-width: null, $height: null, $max-height: null, $min-height: null)
5656
{
5757
@if $flexbox-grid-mixins-box-sizing == 'border-box' or $flexbox-grid-mixins-box-sizing == 'content-box' {
5858
box-sizing: $flexbox-grid-mixins-box-sizing;
@@ -173,11 +173,7 @@ $flexbox-grid-mixins-box-sizing: border-box !default;
173173

174174
@if $gutter and unitless($gutter) == false {
175175
@if $flexbox-grid-mixins-grid-type == skeleton {
176-
@if type-of($condensed) == bool and $condensed == true {
177-
@include grid-col-margin($margin: 0 $gutter / 2);
178-
} @else {
179176
@include grid-col-margin($margin: 0 $gutter / 2 $gutter);
180-
}
181177
} @else if $flexbox-grid-mixins-grid-type == margin-offset {
182178
@if type-of($col) == string and $col == 'breakpoint' {
183179
@include grid-col-margin($margin-right: 0);
@@ -187,9 +183,6 @@ $flexbox-grid-mixins-box-sizing: border-box !default;
187183
@include grid-col-margin($margin-right: $gutter);
188184
}
189185

190-
@if $condensed == false {
191-
@include grid-col-margin($margin-bottom: $gutter);
192-
}
193186
}
194187
}
195188

0 commit comments

Comments
 (0)