Skip to content

Add dependency for less as well as reference to bootstrap less files#1

Open
tylergannon wants to merge 2 commits intometeorbelt:masterfrom
tylergannon:master
Open

Add dependency for less as well as reference to bootstrap less files#1
tylergannon wants to merge 2 commits intometeorbelt:masterfrom
tylergannon:master

Conversation

@tylergannon
Copy link
Copy Markdown

Hi~ I installed your smart package and found it wasn't loading the less files. This revision succeeds.

using meteor/master.

cheers!
Tyler

@tylergannon
Copy link
Copy Markdown
Author

Also, the submodule was out of date. I updated it to use the 3.0.0-wip branch so that it should stay current until release.

@kylefinley
Copy link
Copy Markdown
Member

Hey Tyler

I still need to create documentation, but the way that I'm use belt-bootstrap is more like this:

styles/_bootstrap.less

// Contents of bootstrap.less with the import path modified to point to belt-bootstrap
@import "variables.less"; // Modify this for custom colors, font-sizes, etc
@import "/packages/belt-bootstrap/bootstrap/less/mixins.less";
// ... remaining imports

styles/variables.less

// Contents of variables.less
@grayDarker:            #222;
@grayDark:              #333;
// ... remaining variables

I have added the less package to my project, therefore, Meteor will compile the contents of styles/_bootstrap.less att run time. This allows me to customize styles/variables.less.

This also allows me to use bootstrap mixins like:

@import "/packages/belt-bootstrap/bootstrap/less/mixins.less";
@import "variables";

.btn-callout {
  color: #fff;
  .btn-pseudo-states(@red-color, @red-color);
}

I hope that helps -- I'm working on an example project that will help clarify the usage. but it will be a little while before it's released.

P.S. I'm using Meteor 0.6.x so I've place the belt-bootstrap in the package directory. If you are using Meteorite the location might be .meteor/meteorite/packages/belt-bootstrap

Kyle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants