Coder Social home page Coder Social logo

ember-bootstrap-4's Introduction

ember-bootstrap-4

This is not maintained.

This addon is based off ember-sass-bootstrap by ef4.

This is an Ember addon that makes Bootstrap 4 alpha available in your Ember app. Instead of just importing in the whole library, it provides as much or as little as you need, and it lets you easily customize Bootstrap's variables.

It is also bower-dependency-free, by loading bootstrap-sass via npm instead. This avoids the need for it to reach out and mess with your own bower.json file.

Installation

Bootstrap 4 switched from less to sass, so it expects that you also have ember-cli-sass installed.

Bootstrap 4 also depends on tether.js. Please install it using bower.

bower install tether
ember install ember-cli-sass
ember install ember-bootstrap-4

Usage: Stylesheets

If you want all of Bootstraps style, just say:

@import 'bootstrap';

in your app.scss file. You can customize Bootstrap's variables by setting them before importing:

$brand-primary: #ff0000;
@import 'bootstrap';

You can also choose to import only the specific pieces that you need. For example:

@import 'bootstrap/buttons';

Usage: Javascript Plugins

By default, we will include all of Bootstrap's Javascript in your application. But you can control this from your ember-cli-build.js file:

  new EmberApp(defaults, {
    bootstrap: {
      plugins: ['collapse']
    }
  });

ember-bootstrap-4's People

Contributors

bennycwong avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.