Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use bootstrap-rtl with custom version of bootstrap #109

Open
MahdiZareie opened this issue Apr 5, 2016 · 2 comments
Open

How to use bootstrap-rtl with custom version of bootstrap #109

MahdiZareie opened this issue Apr 5, 2016 · 2 comments
Labels
Milestone

Comments

@MahdiZareie
Copy link

I've got a custom build of twitter bootstrap with 16 columns and I'd like to know how to compile LESS files in order to produce 16-column version of bootstrap-rtl ?

@xitclub
Copy link

xitclub commented Sep 21, 2016

I have same issue, can author look into this question?

@morteza
Copy link
Owner

morteza commented Sep 21, 2016

The RTL theme uses the same less/variables.less file provided by bootstrap project itself. So if you change the default grid values inside bootstrap/ folder, rtl version would turn into 16 columns too. No need to change any RTL variable.

Here are those variables you need to change (in bootstrap/less/variables.less):

//== Grid system
//
//## Define your custom responsive grid.

//** Number of columns in the grid.
@grid-columns:              12;
//** Padding between columns. Gets divided in half for the left and right.
@grid-gutter-width:         30px;
// Navbar collapse
//** Point at which the navbar becomes uncollapsed.
@grid-float-breakpoint:     @screen-sm-min;
//** Point at which the navbar begins collapsing.
@grid-float-breakpoint-max: (@grid-float-breakpoint - 1);

Change the @grid-columns of the bootstrap itself, and recompile RTL theme using npm install and grunt. That is all. However, I haven't checked yet if it works as expected. Let me know :-)

@morteza morteza added this to the 3.3.6 milestone Sep 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants