webvariants/twitter-bootstrap

AddOn for SallyCMS, integrating the Twitter Bootstrap ui-framework

v1.0.0 2016-05-12 12:02 UTC

This package is auto-updated.

Last update: 2020-08-10 14:36:58 UTC


README

This addon integrates easy usage of Twitter Bootstrap in Sally.

Features

  • Bootstrap installation via Composer
  • Bootstrap LESS Compilation with lessphp
  • Adjustable Bootstrap variables and mixins
  • Helper class for generating a bootstrap navigation

Usage

Extendable bootstrap.less

The extendable wv_bootstrap.less may be imported into own .less files.

:::less
@import "wv_bootstrap.less";

The wv_bootstrap.less is identical to the original ´bootstrap.less´ but allows to override Bootstrap's variables and mixins with project specific .less files.

Add the optional less-variable @custom-variables with a relative path to the .less file containing your custom Bootstrap variable settings. Add the optional less-variable @custom-mixins with a relative path to the .less file containing your custom Bootstrap mixins. The variables have to be defined before the wv_bootstrap.less is imported.

Example

:::less
@charset "UTF-8";

@custom-variables: "custom-variables.less";
@custom-mixins: "custom-mixins.less";
@import "wv_bootstrap.less";

Original bootstrap.less

The original Bootstrap is available at bootstrap/less/ and may be imported into own .less files. You can access every single .less file that's available in Bootstrap at this path.

:::less
@import "bootstrap/less/bootstrap.less";