Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

billy-bootstrap

A Bower component containing a Billyfied Bootstrap theme.

The colors, fonts etc. match our general design.

Installation

Add billy-bootstrap to your bower.json file. Example:

{
    "dependencies": {
        "billy-bootstrap": "billysbilling/billy-bootstrap#^0.2.0"
    }
}

Install bower dependencies:

bower install

Add an import statement to your sass file:

@import "bower_components/billy-bootstrap/billy-bootstrap";

You can also add stylesheets for individual components using:

@import "bower_components/billy-bootstrap/styles/components/nav-bar";

See the styles/components folder for available components.

The bootstrap project is a dependency of billy-bootstrap. So you can include bootstrap.js in your JavaScript bundle by including the files found in your project's bower_components/bootstrap folder.

Design recipes

Application layout with fixed navigation bar

Copy images/billy-face.svg or images/billy-face.png into your project.

Add body-with-fixed-navbar to your <body> tag.

<div class="navbar navbar-default navbar-fixed-top">
    <div class="navbar-header">
        <a href="/" class="navbar-brand">
            <img src="/path/to/billy-face.svg"/>
            billy's example application
        </a>
    </div>

    <ul class="nav navbar-nav">
        <li><a href="/a">Page A</a></li>
        <li><a href="/b">Page B</a></li>
    </ul>
</div>

<div class="container-fluid">
    <!-- Content goes here -->
</div>

You can replace <img src="/path/to/billy-face.png"/> with <img src="/path/to/billy-face.svg"/>, or even use the ember-svg helper, as in {{svg "billy-face"}}.

It looks coolest if you keep the application name in all lowercase to match our logo (in this case "billy's example application").

Integration sites

See billy-minuba-webapp for an example. Check under app/templates/application.hbs and app/templates/login.hbs.

About

A Bower component containing a Billyfied Bootstrap theme.

Topics

Resources

Stars

0 stars

Watchers

26 watching

Forks

Releases

Packages

Used by

Contributors

Languages