Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !6423

Add RTL (right to left) support to 3.0.0-wip

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/malekpour/3.0.0-wip into 3.0.0-wip Dec 30, 2012
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 3

Created by: malekpour

As we discussed on pull request #6409, RTL added in a separate rtl.less file on branch 3.0.0-wip. All components supported. The page rtl.html, loads Bootstrap documentation .mustache templates on the fly and renders RTL/LTR contents correctly without any modification. Tested and worked with Chrome 23, FireFox 17 and IE10.

Developers can add RTL layout support to their current Bootstrap websites, simply by adding .rtl CSS class to any HTML element. e.g:

<body class="rtl">...</body>

or dynamically

function switchLayout() {
  $(document.body).toggleClass('rtl')
}

Another class, .mirror is useful to change direction of arrows and font icons. See its functionality in 'Icons by Glyphicons' section of the demo.

Online Demo (buttons on navigation bar added to compare RTL/LTR layouts, F2 [RTL/LTR] and F3 [Mirror/Normal] keys also works and when modal popup is visible only hot keys will work)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/malekpour/3.0.0-wip