Bootstrap CSS

Use as a CSS Module for sjs-3 apps.

WARNING: do not use on any component that inlines child components, because it will pollute their CSS namespaces. Similarly, do not use on the HTML and BODY elements even if your’s is the only app on the page, because it will conflict with the Boomla frontend toolchain.


Example filesystem structure:

./app [type="sjs-3"]
./app/bootstrap [link="import"]

Example ./app

cssFile ='bootstrap/bootstrap.css');
style = response.addCssModule(cssFile);

p = ''
  + '<div class="'+style['-div']+'">'
    + '<button class="'+style.btn+' '+style['btn-primary']+'">button</button>'
  + '</div>'


Live demo