Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

Latest commit

 

History

History
48 lines (30 loc) · 1.3 KB

README.md

File metadata and controls

48 lines (30 loc) · 1.3 KB

Twitter Bootstrap RTL

Right-to-left version of Twitter's Bootstrap: https://github.com/twitter/bootstrap/

Created using: https://github.com/ded/R2

Usage

Just replace the original bootstrap.min.css and bootstrap-responsive.min.css files when displaying RTL pages.

<link rel="stylesheet" href="bootstrap-rtl.min.css">
<link rel="stylesheet" href="bootstrap-responsive-rtl.min.css">

The last thing you need to do, if you haven't already, is specifying the direction on the body element.

<body dir="rtl">

Or using CSS:

body {
  direction: rtl;
}

How it was made

Follow instructions on the R2 project page to install it: https://github.com/ded/R2

r2 bootstrap.css bootstrap-rtl.min.css r2 bootstrap.responsive bootstrap-responsive-rtl.min.css

Notes:

Special Thanks

Mark Otto and Jacob Thornton for working on and maintaining Twitter Bootstrap.

Dustin Diaz for creating R2.

Without these tools, writing CSS and reversing it for right to left would be a pain in the ass :D