Skip to content

Commit

Permalink
Merge pull request #12863 from Sojaner/master
Browse files Browse the repository at this point in the history
Fix for issue #12854 on push and pull resets
  • Loading branch information
mdo committed Mar 4, 2014
2 parents 8f2a787 + 77cd015 commit 56c6525
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions less/mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -826,16 +826,26 @@
width: percentage((@index / @grid-columns));
}
}
.calc-grid-column(@index, @class, @type) when (@type = push) {
.calc-grid-column(@index, @class, @type) when (@type = push) and (@index > 0) {
.col-@{class}-push-@{index} {
left: percentage((@index / @grid-columns));
}
}
.calc-grid-column(@index, @class, @type) when (@type = pull) {
.calc-grid-column(@index, @class, @type) when (@type = push) and (@index = 0) {
.col-@{class}-push-0 {
left: auto;
}
}
.calc-grid-column(@index, @class, @type) when (@type = pull) and (@index > 0) {
.col-@{class}-pull-@{index} {
right: percentage((@index / @grid-columns));
}
}
.calc-grid-column(@index, @class, @type) when (@type = pull) and (@index = 0) {
.col-@{class}-pull-0 {
right: auto;
}
}
.calc-grid-column(@index, @class, @type) when (@type = offset) {
.col-@{class}-offset-@{index} {
margin-left: percentage((@index / @grid-columns));
Expand Down

0 comments on commit 56c6525

Please sign in to comment.