Skip to content

Commit

Permalink
Merge pull request #23 from torounit/issues/#22
Browse files Browse the repository at this point in the history
#22 move and rename grid.
  • Loading branch information
inc2734 committed Jan 31, 2016
2 parents e4fd268 + 017870d commit 92bdf55
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.#{$bs-prefix}container, .#{$bs-prefix}container-fluid {
.#{$bs-prefix}c-container, .#{$bs-prefix}c-container-fluid {
margin-right: auto;
margin-left: auto;
padding-right: $bs-margin * 2;
padding-left: $bs-margin * 2;
overflow: hidden;
}

.#{$bs-prefix}container {
.#{$bs-prefix}c-container {
@include bs-bp-min( $bs-screen-lg-min ) {
max-width: $bs-max-width;
}
Expand All @@ -15,13 +15,13 @@
/**
* flex container
*/
.#{$bs-prefix}row {
.#{$bs-prefix}c-row {
display: flex;
flex-wrap: wrap;
overflow: hidden;

&--auto {
> .#{$bs-prefix}row__col {
> .#{$bs-prefix}c-row__col {
flex: auto;
}
}
Expand Down Expand Up @@ -77,30 +77,30 @@
&#{$prefix}-collapse {
@include bs-row-gutter(0);

> .#{$bs-prefix}row__col {
> .#{$bs-prefix}c-row__col {
@include bs-col-gutter(0);
}
}

&#{$prefix}-margin {
@include bs-row-gutter($bs-margin * -2);

> .#{$bs-prefix}row__col {
> .#{$bs-prefix}c-row__col {
@include bs-col-gutter($bs-margin * 2);
}

&-s {
@include bs-row-gutter($bs-margin * -1);

> .#{$bs-prefix}row__col {
> .#{$bs-prefix}c-row__col {
@include bs-col-gutter($bs-margin * 1);
}
}

&-l {
@include bs-row-gutter($bs-margin * -3);

> .#{$bs-prefix}row__col {
> .#{$bs-prefix}c-row__col {
@include bs-col-gutter($bs-margin * 3);
}
}
Expand All @@ -112,7 +112,7 @@
/**
* flex item
*/
.#{$bs-prefix}row__col {
.#{$bs-prefix}c-row__col {
flex: 1;
}

Expand All @@ -124,7 +124,7 @@
@for $i from 1 through $max_columns {
$gcd: bs-gcd( $i, $max_columns );

.#{$bs-prefix}row__col#{$prefix}-#{$i}-#{$max_columns} {
.#{$bs-prefix}c-row__col#{$prefix}-#{$i}-#{$max_columns} {
@if $i != $max_columns {
@extend %bs-item#{$prefix}-gcd-#{$i / $gcd}-#{$max_columns / $gcd};
} @else {
Expand Down Expand Up @@ -170,7 +170,7 @@
@for $i from 1 through $max_columns - 1 {
$gcd: bs-gcd( $i, $max_columns );

.#{$bs-prefix}row__col#{$prefix}-offset-#{$i}-#{$max_columns} {
.#{$bs-prefix}c-row__col#{$prefix}-offset-#{$i}-#{$max_columns} {
@extend %bs-item#{$prefix}-offset-gcd-#{$i / $gcd}-#{$max_columns / $gcd};
}
}
Expand Down Expand Up @@ -201,7 +201,7 @@
@include bs-bp-min( $bs-screen-min ) {
$prefix: bs-bp-prefix( $bs-size );

.#{$bs-prefix}row__col#{$prefix}-offset-0 {
.#{$bs-prefix}c-row__col#{$prefix}-offset-0 {
margin-left: 0;
}
}
Expand All @@ -217,7 +217,7 @@
/**
* child element height 100%
*/
.#{$bs-prefix}row__col#{$prefix}-flex {
.#{$bs-prefix}c-row__col#{$prefix}-flex {
display: flex;

> * {
Expand Down
5 changes: 1 addition & 4 deletions assets/src/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@
@import 'foundation/normalize';
@import 'foundation/base';

/* ========================================
* layout
======================================= */
@import 'layout/grid';

/* ========================================
* object - component
Expand All @@ -48,6 +44,7 @@
@import 'object/component/btn';
@import 'object/component/media';
@import 'object/component/form';
@import 'object/component/grid';

/* ========================================
* object - utility
Expand Down

0 comments on commit 92bdf55

Please sign in to comment.