Skip to content

Commit

Permalink
Merge pull request #507 from alphagov/rtl-grids
Browse files Browse the repository at this point in the history
Allow columns to be flipped for RTL content
  • Loading branch information
dsingleton committed Dec 8, 2014
2 parents d0a5ad3 + 3378a69 commit b151426
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions app/assets/stylesheets/helpers/_layouts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,38 @@

.column-quarter {
@include grid-column( 1/4 );

.direction-rtl & {
@include grid-column( 1/4, $float: right );
}
}
.column-half {
@include grid-column( 1/2 );

.direction-rtl & {
@include grid-column( 1/2, $float: right );
}
}
.column-three-quarters {
@include grid-column( 3/4 );

.direction-rtl & {
@include grid-column( 3/4, $float: right );
}
}

.column-third {
@include grid-column( 1/3 );

.direction-rtl & {
@include grid-column( 1/3, $float: right );
}
}
.column-two-thirds {
@include grid-column( 2/3 );

.direction-rtl & {
@include grid-column( 2/3, $float: right );
}
}
}

0 comments on commit b151426

Please sign in to comment.