Closed (won't fix)
Project:
Omega Bootstrap
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Feb 2012 at 23:03 UTC
Updated:
28 Sep 2012 at 22:26 UTC
Sorry I'll post a patch in the future. Here's some additional work I did - you probably want to replace the whole directory with this code. It's nowhere near finished but its an improvement.
It assumes that a subtheme loads the bootstrap lib. I'll post more thoughts later tonight.
Any chance I can get git access? I'm interested in working on this with you.
Thanks,
Ben
| Comment | File | Size | Author |
|---|---|---|---|
| omega_bootstrap.tgz | 152 bytes | bensnyder |
Comments
Comment #1
realityloop commentedthis just contains a symlink file??
Comment #2
iaminawe commentedPlease post your code and would be happy to test it out. As pointed out by realityloop, the tar just contains a symlink. Thanks
Comment #3
rerooting commentedsounds good, if someone wants to take over this project, let me know. I have decided to abandon this project as I consider it unnecessary.
Comment #4
rerooting commentedBen, I have given you git access, take it!
Comment #5
rerooting commentedAlso, a quick suggestion for folks is to use the less module with this, and to compile it with your own variables.less file, and to include your contrib .less in the bootstrap.less file. This makes it way easier to use existing parametric mixins, custom variables, and other awesome things that are already built into boostrap as you use it. I did this with the twitter_boostrap theme and it made my life a million times easier! There's really no need to go around using LESS, it makes things go much more smoothly.
Comment #6
bensnyder commented@rerooting: thanks! I'll spend some time and do what I can this weekend.
I have primarily switched to SASS/Compass as I've found it to be waaaaay, waaay better and easier.
I'll likely create two branches: one to post the updated code, LESS based. One for SASS/COMPASS. Omega 4.x is switching to SASS so this will likely be the way forward.
More to come. Stay tuned.
Comment #7
rerooting commentedA bit off topic, but how is SASS/COMPASS easier? Just wondering. I use LESS with Omega almost exclusively now.
Comment #8
bensnyder commentedTake this code as a sample:
No need to change the markup. Just extend! Plus I prefer to run "compass watch" on the server, rather than having Drupal do the work.
Comment #9
rerooting commentedSo @extend is just like mixins in LESS, so for example I can do with bootstrap + LESS :
aside {
.well;
}
or I had to do this originally, because overriding default node links templates was a pain:
ul li.read-more a {
.btn;
.btn-primary;
.btn-large;
}
Though I find that this approach leads to a bunch of extra css after you compile, and is a hack compared to just getting those css classes in there in the markup. On our new site, which I built using this approach: http://flywheelcollective.com, I used the core_library module to minify and gzip all the stylesheets because I had to use these workarounds to make a quick deadline on launching it.
Basically, SASS, Stylus and LESS all do the same thing in different ways (great blog post discussing this - http://net.tutsplus.com/tutorials/html-css-techniques/sass-vs-less-vs-st... ). I just like using LESS with bootstrap because you can do lots of fun stuff with what Bootstrap already provides, and extend it to create new components, javascript widgets and mixins. I use SASS with ruby projects and sometimes use Stylus for specific node.js frameworks we use as well.
As far as having drupal do the work, I've never experienced substantial slow-downs, and plus drupal doesn't have to do the work once the site goes into production.
I guess I'm just a javascript lover, so LESS is my favorite :)
Comment #10
bensnyder commentedComment #11
rerooting commentedUpdate: It looks like Omega 4.x will actually be a good candidate for this. Go for it!
Comment #12
bensnyder commentedI'm planning on it :)... Taking on 2 new simultaneous projects soon and this project will get a lot of love.