Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #10 from IBM/9-fallback-props
Browse files Browse the repository at this point in the history
9 fallback props
  • Loading branch information
seejamescode authored Jan 25, 2018
2 parents 733e018 + ed4ab5f commit e1bfad7
Show file tree
Hide file tree
Showing 23 changed files with 39 additions and 38 deletions.
7 changes: 4 additions & 3 deletions bin/src/scss/_core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,16 @@ body {
margin-left: auto;
margin-right: auto;
max-width: #{map-get($last, breakpoint)}rem;
width: 100vw;
@if $includeFlexFallback {
overflow-x: hidden;
width: 100vw;
}
}

@if $includeFlexFallback {
@supports (display: grid) {
.#{$prefix}-container {
overflow-x: initial;
width: initial;
}
}
}
Expand All @@ -38,7 +37,9 @@ body {
.#{$prefix}-grid {
align-items: flex-start;
box-sizing: border-box;
display: flex;
@if $includeFlexFallback {
display: flex;
}
display: grid;
flex-wrap: wrap;
position: relative;
Expand Down
Binary file modified examples/bootstrap/css-gridish/bootstrap-grid.sketch
Binary file not shown.
7 changes: 3 additions & 4 deletions examples/bootstrap/css-gridish/css/bootstrap-grid-legacy.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ body {
margin-left: auto;
margin-right: auto;
max-width: 100rem;
overflow-x: hidden;
width: 100vw; }
width: 100vw;
overflow-x: hidden; }

@supports (display: grid) {
.bootstrap-container {
overflow-x: initial;
width: initial; } }
overflow-x: initial; } }

.bootstrap-container--left {
margin-left: 0; }
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/bootstrap/css-gridish/css/bootstrap-grid.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ body {
box-sizing: border-box;
margin-left: auto;
margin-right: auto;
max-width: 100rem; }
max-width: 100rem;
width: 100vw; }

.bootstrap-container--left {
margin-left: 0; }
Expand All @@ -17,7 +18,6 @@ body {
.bootstrap-grid {
align-items: flex-start;
box-sizing: border-box;
display: flex;
display: grid;
flex-wrap: wrap;
position: relative; }
Expand Down
Loading

0 comments on commit e1bfad7

Please sign in to comment.