Created
September 2, 2016 12:23
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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