Right to left
FlatifyCSS supports the right to left layout, it is done by using inline features of CSS therefore elements are automatically positioned based on the document direction.
Note that you need to set dir="rtl" attribute for <html> tag and .rtl class as well.
Here are the list of CSS properties that is used to dynamically position elements based on direction:
inset-inlinemargin-inlinepadding-inlineborder-inlineborder-start-start-radiusborder-start-end-radiusborder-end-start-radiusborder-end-end-radiusfloat: inline-start/inline-endtext-align: start/end
For some cases like transform there is not inline option, the :dir(rtl/ltr) CSS pseudo-class will be a saviour here.
This is one example of the usage:
&:dir(rtl) .inline:before,
.rtl &.inline:before {
transform: rotate(3deg) scale(1.1, 1.2) skew(10deg);
}
&:dir(ltr) .inline:before,
.ltr &.inline:before {
transform: rotate(-3deg) scale(1.1, 1.2) skew(-10deg);
}
For backward compatibility also the .ltr and .rtl classes are added.
Upgrading from version 1
In version 1 there were separate flatify-rtl.css files. Since version 2 the same flatify.css works for both directions, just set dir="rtl" on the <html> tag. The old flatify-rtl*.css files are still in /dist as copies of the main files so your links keep working, but they will be removed in version 3, so switch to flatify.css when you can.