Code Monkey home page Code Monkey logo

bootstrap-on-rails's Introduction

Bootstrap on Rails

A simpler implementation of Bootstap 3 for Rails. Only packaged assets. No bloat. Pure Less.

  • Current Bootstrap Version: 3.0.3
  • Supports Rails 3.1+ and Rails 4
  • Less only
  • Twitter Variables are easily overridable

Installation

Just add to your Gemfile

gem 'therubyracer', :platform => :ruby
gem 'less-rails'

gem 'bootstrap-on-rails'

Add a stylesheet or insert to your existing less file

@import "bootstrap/variables";

// insert your bootstrap overrides
// @linkColor: red;
// or import a variable file
// @import "variables";

@import "bootstrap/bootstrap";

// Uncomment For glyphicons + asset pipeline.
// @font-face {
//  font-family: 'Glyphicons Halflings';
//    src: asset-url("bootstrap/glyphicons-halflings-regular.eot");
//    src: asset-url("bootstrap/glyphicons-halflings-regular.eot?#iefix") format('embedded-opentype'),
//         asset-url("bootstrap/glyphicons-halflings-regular.woff") format('woff'),
//         asset-url("bootstrap/glyphicons-halflings-regular.ttf") format('truetype'),
//         asset-url("bootstrap/glyphicons-halflings-regular.svg#glyphicons-halflingsregular") format('svg');
// }
// see this for more info about glyphicons: https://github.com/jasontorres/bootstrap-on-rails/issues/3

To add the bootstrap javascript libraries, add to your application.js file

//= require bootstrap/affix
//= require bootstrap/alert
//= require bootstrap/button
//= require bootstrap/carousel
//= require bootstrap/collapse
//= require bootstrap/dropdown
//= require bootstrap/modal
//= require bootstrap/tooltip
//= require bootstrap/popover
//= require bootstrap/scrollspy
//= require bootstrap/tab
//= require bootstrap/transition

It's important to note that variables.less is taken out of bootstrap and required explicitly to support overriding variables, another motivation why I needed to do this gem.

License

Bootstrap 3 is licensed under Apache2 License.

Bootstrap on Rails is under Apache2 License too.

Jason Torres of Proudcloud.net

bootstrap-on-rails's People

Contributors

jasontorres avatar demiazz avatar timsegraves avatar kobaltz avatar

Watchers

James Cloos avatar Harvey Ico 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.