diff options
| author | Mark Otto <[email protected]> | 2014-03-16 19:03:53 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-03-16 19:03:53 -0700 |
| commit | 2a43e7e78a59c70e217383c12c9ef0482cabb163 (patch) | |
| tree | 8fc0b4560d171f63efb353d4c9965aa5c761d82c /docs/_includes/css/rtl.html | |
| parent | bdb70fa471965728609d86c001384791fa44398b (diff) | |
| download | bootstrap-2a43e7e78a59c70e217383c12c9ef0482cabb163.tar.xz bootstrap-2a43e7e78a59c70e217383c12c9ef0482cabb163.zip | |
Break up docs into includes
Diffstat (limited to 'docs/_includes/css/rtl.html')
| -rw-r--r-- | docs/_includes/css/rtl.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/_includes/css/rtl.html b/docs/_includes/css/rtl.html new file mode 100644 index 000000000..050c429b1 --- /dev/null +++ b/docs/_includes/css/rtl.html @@ -0,0 +1,20 @@ +<div class="bs-docs-section"> + <h1 id="rtl" class="page-header">RTL</h1> + <p class="lead">As of Bootstrap 3.2, a right-to-left version of Bootstrap ships as part of the repository. It's powered by Twitter's <a href="https://github.com/twitter/css-flip">CSS Flip project</a> and is generated via our Gruntfile.</p> + + <h2 id="rtl-how-to">How to use</h2> + <p>Bootstrap is by default a left-to-right project. For right-to-left projects, you'll need to set your language and replace the default Bootstrap CSS with an RTL version. First, set your language and text direction:</p> +{% highlight html %} +<!-- Example: Arabic language with direction set to RTL --> +<html lang="ar" dir="rtl"> +{% endhighlight %} + <p>Then, include the right-to-left CSS file in place of the default Bootstrap CSS:</p> +{% highlight html %} +<!-- Bootstrap RTL --> +<link rel="stylesheet" href="bootstrap-rtl.css"> +{% endhighlight %} + <p>Alternatively, you may use the minified RTL file, <code>bootstrap-rtl.min.css</code>.</p> + + <h2 id="rtl-css-flip">CSS Flip</h2> + <p><a href="https://github.com/twitter/css-flip">CSS Flip</a> is a project for converting left-to-right CSS files into right-to-left CSS files. We use it in our Gruntfile to automate the generation of Bootstrap's RTL CSS files.</p> +</div> |
