Skip to content

Instantly share code, notes, and snippets.

@saeedseyfi
Created September 2, 2016 12:23
Show Gist options
  • Save saeedseyfi/368c339ecacc6d3d251d3ef13ffe2bc7 to your computer and use it in GitHub Desktop.
Save saeedseyfi/368c339ecacc6d3d251d3ef13ffe2bc7 to your computer and use it in GitHub Desktop.
How to support rtl and ltr in sass. (I'd suggest using this method: https://gist.github.com/saeedseyfi/4eb9f4634d5eb053da05375c59092da8)
.my-element {
padding: 50px;
background: yellow;
[dir=rtl] & {
float: right;
}
[dir=ltr] & {
float: left;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment