Skip to content

Instantly share code, notes, and snippets.

@rohmann
Last active March 10, 2016 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohmann/f9c3dbf4fbbdbe1d2612 to your computer and use it in GitHub Desktop.
Save rohmann/f9c3dbf4fbbdbe1d2612 to your computer and use it in GitHub Desktop.
/**
* Add the cs-row-flip class to a row, and the column direction will be reversed.
*/
.x-container.marginless-columns.cs-row-flip {
direction: rtl;
}
.x-container.marginless-columns.cs-row-flip > .x-column {
direction: ltr;
}
.rtl .x-container.marginless-columns.cs-row-flip {
direction: ltr;
}
.rtl .x-container.marginless-columns.cs-row-flip > .x-column {
direction: rtl;
}
.x-container.cs-row-flip > .x-column {
float: right;
}
.x-container.cs-row-flip > .x-column:last-of-type {
margin-right: 4%;
}
.x-container.cs-row-flip > .x-column:first-of-type {
margin-right: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment