]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Rename RTL files and add some basic docs
authorMark Otto <otto@github.com>
Tue, 4 Mar 2014 07:50:04 +0000 (23:50 -0800)
committerMark Otto <otto@github.com>
Tue, 4 Mar 2014 07:50:04 +0000 (23:50 -0800)
Gruntfile.js
dist/css/bootstrap-rtl.css [moved from dist/css/bootstrap.rtl.css with 100% similarity]
dist/css/bootstrap-rtl.min.css [moved from dist/css/bootstrap.rtl.min.css with 100% similarity]
docs/_includes/nav-css.html
docs/css.html
docs/dist/css/bootstrap-rtl.min.css [moved from docs/dist/css/bootstrap.rtl.min.css with 100% similarity]

index e7c489f017e44fe3b15534481bc25a3beaa9c3dd..72577914634cbef4bae5abefc754be44dee8a021 100644 (file)
@@ -192,7 +192,7 @@ module.exports = function (grunt) {
         },
         files: {
           'dist/css/<%= pkg.name %>.min.css': 'dist/css/<%= pkg.name %>.css',
-          'dist/css/<%= pkg.name %>.rtl.min.css': 'dist/css/<%= pkg.name %>.rtl.css',
+          'dist/css/<%= pkg.name %>-rtl.min.css': 'dist/css/<%= pkg.name %>-rtl.css',
           'dist/css/<%= pkg.name %>-theme.min.css': 'dist/css/<%= pkg.name %>-theme.css'
         }
       }
@@ -201,7 +201,7 @@ module.exports = function (grunt) {
     cssFlip: {
       rtl: {
         files: {
-          'dist/css/<%= pkg.name %>.rtl.css': 'dist/css/<%= pkg.name %>.css'
+          'dist/css/<%= pkg.name %>-rtl.css': 'dist/css/<%= pkg.name %>.css'
         }
       }
     },
@@ -231,9 +231,9 @@ module.exports = function (grunt) {
         files: {
           src: [
             'dist/css/<%= pkg.name %>.css',
-            'dist/css/<%= pkg.name %>.rtl.css',
+            'dist/css/<%= pkg.name %>-rtl.css',
             'dist/css/<%= pkg.name %>.min.css',
-            'dist/css/<%= pkg.name %>.rtl.min.css',
+            'dist/css/<%= pkg.name %>-rtl.min.css',
             'dist/css/<%= pkg.name %>-theme.css',
             'dist/css/<%= pkg.name %>-theme.min.css'
           ]
@@ -248,7 +248,7 @@ module.exports = function (grunt) {
       dist: {
         files: {
           'dist/css/<%= pkg.name %>.css': 'dist/css/<%= pkg.name %>.css',
-          'dist/css/<%= pkg.name %>.rtl.css': 'dist/css/<%= pkg.name %>.rtl.css',
+          'dist/css/<%= pkg.name %>-rtl.css': 'dist/css/<%= pkg.name %>-rtl.css',
           'dist/css/<%= pkg.name %>-theme.css': 'dist/css/<%= pkg.name %>-theme.css'
         }
       },
index 15025da0cf2874e0bb6c1646feab63f2f44ef067..6da0b11dd7208f948862fd6baebfe0566ace2c3b 100644 (file)
     <li><a href="#sass-installation">Rails install</a></li>
   </ul>
 </li>
+<li>
+  <a href="#rtl">RTL version</a>
+  <ul class="nav">
+    <li><a href="#rtl-overview">Overview</a></li>
+    <li><a href="#rtl-how-to">How to use</a></li>
+    <li><a href="#rtl-css-flip">CSS Flip</a></li>
+  </ul>
+</li>
index e1af6985e0e18b6facf4ce8c26d3090fbfd775be..8baf8f42dc380ff90a2375c7e3574007f57d0c82 100644 (file)
@@ -3345,3 +3345,28 @@ a {
     <a class="btn btn-lg btn-outline" href="{{ site.sass_repo }}">Bootstrap for Sass</a>
   </p>
 </div>
+
+
+
+<!-- RTL
+================================================== -->
+<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>