Closed cmpsoares91 closed 10 years ago
I use /less/bootstrap.less to turn off/on bootstrap features - less bloat for stuff I don't need and I can simply update bootstrap in public/lib via bower and not edit any of the bootstrap files directly.
You will have to uncomment the appropriate items below:
// NOTE: By copying the main bootstrap.less file and importing
// this one instead we can turn on/off components here
// without changing any of the bootstrap source files (EASY TO UPDATE)
// NOTE: we overide bootstrap variables and styles directly in our
// styles.less file
// NOTE: I generally recommend commenting out all of the
// "Components" and "Components w/ JavaScript" and only
// turning them back on as needed - fight bloat!
// Core variables and mixins
@import "../public/lib/bootstrap/less/variables.less";
@import "../public/lib/bootstrap/less/mixins.less";
// Reset
@import "../public/lib/bootstrap/less/normalize.less";
// @import "../public/lib/bootstrap/less/print.less";
// Core CSS
@import "../public/lib/bootstrap/less/scaffolding.less";
@import "../public/lib/bootstrap/less/type.less";
// @import "../public/lib/bootstrap/less/code.less";
@import "../public/lib/bootstrap/less/grid.less";
@import "../public/lib/bootstrap/less/tables.less";
@import "../public/lib/bootstrap/less/forms.less";
@import "../public/lib/bootstrap/less/buttons.less";
// Components
@import "../public/lib/bootstrap/less/component-animations.less";
// @import "../public/lib/bootstrap/less/glyphicons.less";
@import "../public/lib/bootstrap/less/dropdowns.less";
// @import "../public/lib/bootstrap/less/button-groups.less";
// @import "../public/lib/bootstrap/less/input-groups.less";
@import "../public/lib/bootstrap/less/navs.less";
@import "../public/lib/bootstrap/less/navbar.less";
// @import "../public/lib/bootstrap/less/breadcrumbs.less";
// @import "../public/lib/bootstrap/less/pagination.less";
// @import "../public/lib/bootstrap/less/pager.less";
// @import "../public/lib/bootstrap/less/labels.less";
// @import "../public/lib/bootstrap/less/badges.less";
@import "../public/lib/bootstrap/less/jumbotron.less";
// @import "../public/lib/bootstrap/less/thumbnails.less";
@import "../public/lib/bootstrap/less/alerts.less";
@import "../public/lib/bootstrap/less/progress-bars.less";
// @import "../public/lib/bootstrap/less/media.less";
// @import "../public/lib/bootstrap/less/list-group.less";
@import "../public/lib/bootstrap/less/panels.less";
@import "../public/lib/bootstrap/less/wells.less";
@import "../public/lib/bootstrap/less/close.less";
// Components w/ JavaScript
@import "../public/lib/bootstrap/less/modals.less";
// @import "../public/lib/bootstrap/less/tooltip.less";
// @import "../public/lib/bootstrap/less/popovers.less";
// @import "../public/lib/bootstrap/less/carousel.less";
// Utility classes
@import "../public/lib/bootstrap/less/utilities.less";
@import "../public/lib/bootstrap/less/responsive-utilities.less";
If you are developing just turn everything on and when you are done with development and into performance turning you can turn off what you aren't using.
However I do the opposite - I turn all the added fluff off and then only turn on what I need as I build.
But I can't understand why it's not working, because they say the need component-animations.less
, it's on in the version you've sent me, and the transition.js and collapse.js have to be included as well... And they are... Why isn't it working? :-/
Yes! Found the missing dependency!
@import "../public/lib/bootstrap/less/list-group.less";
That fixed it...
Hey Dan I was trying to add an accordion using Collapse.js but it isn't working right... I was using this example from bootply.
The funny thing is that if I add
| <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">
to the block head from the jade file It works! But at the same time it messes up the beautiful footer! Damn! :-1:So I was hoping you could help me with this.
I already tried updating the
/public/lib/bootstrap/
with the latest version of the bootstrap repo, no luck either...I thought it would look nice on the twitter api page or as a news block at the index page...
My twitter.jade as example: