Twitter's Bootstrap, bundled for Gears.
Bundled version: 3.1.1.
Install Gears, gears-less and gears-bootstrap from git:
pip install -e git+http://github.com/gears/gears.git@develop#egg=Gears
pip install -e git+http://github.com/gears/gears-less.git@develop#egg=gears-less
pip install -e git+http://github.com/yumike/gears-bootstrap.git@develop#egg=gears-bootstrap
If you use Environment.register_entry_points()
in your setup, gears-bootstrap adds itself to the environment automatically. If not, add it manually:
from gears_bootstrap import register
register(environment)
gears-bootstrap
uses gears-less
, which requires node.js to be installed in your system.
Import Bootstrap into a LESS file to get all of Bootstrap's styles, mixins and variables. For example, in css/style.less
:
@import 'bootstrap.less';
// You can override any Bootstrap variable here:
@font-size-base: 12px;
@navbar-height: 40px;
Use //= require
directive to include Bootstrap javascripts. All of them:
//= require bootstrap
Or individual modules:
//= require bootstrap/modal
//= require bootstrap/dropdown