diff options
| author | Mark Otto <[email protected]> | 2014-05-07 15:30:27 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-05-07 15:30:27 -0700 |
| commit | f0daa64a29a66a663f6fedb9d8687524af754436 (patch) | |
| tree | 62de3cabeecfced3b39c72388fff0564b2703252 /docs/_includes/getting-started | |
| parent | 7408917887bc3c722ff5c4f892c2ba2f992e0cfd (diff) | |
| download | bootstrap-f0daa64a29a66a663f6fedb9d8687524af754436.tar.xz bootstrap-f0daa64a29a66a663f6fedb9d8687524af754436.zip | |
move rtl to getting started, per @cvrebert's feedback
Diffstat (limited to 'docs/_includes/getting-started')
| -rw-r--r-- | docs/_includes/getting-started/rtl.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/_includes/getting-started/rtl.html b/docs/_includes/getting-started/rtl.html new file mode 100644 index 000000000..55568ccd6 --- /dev/null +++ b/docs/_includes/getting-started/rtl.html @@ -0,0 +1,25 @@ +<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 <strong>instead of</strong> 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> + + <div class="bs-callout bs-callout-danger"> + <h4>Do not use in combination with <code>bootstrap.css</code></h4> + <p><code>bootstrap-rtl.css</code> must not be used together with <code>bootstrap.css</code>. Use either one or the other, but not both. <code>bootstrap-rtl.css</code> includes all of Bootstrap's styles, including those not affected by writing direction.</p> + </div> + + <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> |
