From 7c7ef6000a0a508e6378309ddac9460eb2e2b95b Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Thu, 21 Nov 2013 10:00:26 +0100 Subject: [PATCH] guide about using bootstrap less files --- docs/guide/bootstrap-widgets.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/guide/bootstrap-widgets.md b/docs/guide/bootstrap-widgets.md index 45d6c3c..5c48fa0 100644 --- a/docs/guide/bootstrap-widgets.md +++ b/docs/guide/bootstrap-widgets.md @@ -45,3 +45,22 @@ framework features. All widgets belong to `\yii\bootstrap` namespace: - NavBar - Progress - Tabs + + +Using the .less files of Bootstrap directly +------------------------------------------- + +If you want to include the [Bootstrap css directly in your less files](http://getbootstrap.com/getting-started/#customizing) +you may need to disable the original bootstrap css files to be loaded. +You can do this by setting the css property of the `BootstrapAsset` to be empty. +For this you need to configure the `assetManagner` application component as follows: + +```php + 'assetManager' => [ + 'bundles' => [ + 'yii\bootstrap\BootstrapAsset' => [ + 'css' => [], + ] + ] + ] +```