Active
Project:
Twitter bootstrap UI
Version:
7.x-2.x-dev
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2012 at 01:06 UTC
Updated:
11 Jul 2012 at 18:59 UTC
Adding LESS support would give access to variables and mixins for easier theme customization. Is there any opposition or argument against adding LESS support? If not, I'd like to help add this feature.
Comments
Comment #1
Docc commentedDraw me a picture here. Basicly you mean a UI for creating less?
Why not just include your own compiled css files or include less files with http://drupal.org/project/less
Comment #2
mjhale commentedNot creating a UI, just allowing people to include LESS files instead of CSS files. Allowing users to include Bootstrap's default LESS files to the library means they can import them to their custom theme LESS files in order to fully utilize what Bootstrap has to offer. Here are some example uses:
.#gradient > .horizontal()
.#translucent > .border()
#font > #family > .monospace()
and of course declaring your own @variables to override the default ones provided in Bootstrap
These all require the following imports in your theme's LESS file:
@import "twitter/bootstrap/variables";
@import "twitter/bootstrap/mixins";
Here is some more documentation on this: http://twitter.github.com/bootstrap/less.html
This may not be the best way of going about it, so any feedback + advice would be welcome.
Comment #3
Docc commentedWhy put in all the effort if one just can compile its own less files into a custom bootstrap.css?
Comment #4
mjhale commentedThat's a good point. The proposed addition to this project would require the LESS Drupal library and might add unnecessary complexity in comparison to the number of users who may benefit or prefer the inclusion. If it's okay with you I'll mark this as postponed for now to see if anyone else would be in support of this or would like to add their comments.
Comment #5
Percept commentedThis would indeed increase the complexity for some users but I don't see the point of converting this to a D7 theme if it doesn't support (subtheming with) LESS. The whole idea of twitter's bootstrap being built with LESS, is to use/override the variables, mixins, ...
If you can't do:
there's really no point to it, is there?
Comment #6
Melissamcewen commentedHas there been any work on this? I think this is important as if you use the default main fork of the Twitter Bootstrap project, it will not work with this module because of the LESS. Either it needs to work or it needs documentation for making it work.
Comment #7
Melissamcewen commentedmaybe support an option to include less.js? this is an option in the Twitter Bootstrap documentation:
Comment #7.0
Melissamcewen commentedUpdated wording