Skip to content

Commit

Permalink
Allow columns to be flipped for RTL content
Browse files Browse the repository at this point in the history
For right to left locales the reading edge is on the other side of the
page. In reality this means that the most important content should be
against the right side of the page and the columns should be flipped.
This makes it easy to have all the columns on the page flipped by
adding a wrapping class to the page.
  • Loading branch information
edds committed Dec 4, 2014
1 parent d0a5ad3 commit 3378a69
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 3378a69

Please sign in to comment.