This is a heavily WIP pull request to add RTL support to v3.1.
Strategy
There are two primary ways to implement RTL: rewrite the core files to include mixins for directional properties, or a separate optional file. I've opted for the latter here.
Implementation
This stubs out the ground work for adding RTL by updating the Gruntfile to compile and minify the CSS files for bootstrap-rtl.css
from rtl.less
. It also adds an example, based on the Theme example, to showcase the changes. Currently it looks like this:
Feedback
I'm pausing here to get feedback from folks. This results in a lot of duplicate code, which sucks in some ways and doesn't in others. I'd love for folks to weigh in on things to be aware of, alternate implementations, bugs in what I've done thus far, oversights, etc.