purezero/module_bootstrap

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.
There is no license information available for the latest version (dev-master) of this package.

CSS toolkit by Twitter.

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 74 944

Language:HTML

Type:silverstripe-theme

dev-master 2016-03-14 01:53 UTC

README

Bootstrap is a sleek, intuitive, and powerful front-end framework for faster and easier web development, created and maintained by Mark Otto and Jacob Thornton.

This is the Sass version of Bootstrap. A port of Bootstrap from Less to Sass. This project is focused on being a 1:1 port of the original. Please do not submit issues or pull requests for issues with Bootstrap itself. Those should be pushed upstream in the Less version.

To get started, check out http://getbootstrap.com!

##Usage

This is a module for better use of bootstrap in silverstripe projects.

To download use: composer require purezero/module_bootstrap

This will download the package into the themes directory of your silverstripe project. ###Just CSS and javascript

If you just need to link the code to use the css selectors, this can be done by linking the files found in the dist folder on page.php, this can be done through Requirements::javascript('themes/module_bootstrap/dist/js/bootstrap.min.js'); Requirements::css('themes/module_bootstrap/dist//css/bootstrap.min.css');

###Using SASS for variables and mixins

I am not sure on what best practise is here, but I create a new bootstrap.scss in my themes directory and import module_bootstrap/lib/_boostrap.scss into that file. So when I compile my other code it will compile bootstrap as well.

With regards to mixins and other files that would be nice in my SASS I would just import the needed files into the scss file that needs it.

Copyright and license

Copyright 2012 Twitter, Inc under the Apache 2.0 license.