Code Monkey home page Code Monkey logo

bootstrap-sass's Introduction

Bootstrap for Rails

bootstrap-sass is an SASS-powered version of Twitter's Bootstrap, ready to drop right into your asset-pipeline powered Rails applications.

Enjoy.

Usage

In your gemfile:

gem 'bootstrap-sass', '~> 1.4.4'

CSS

In your SCSS file of choice:

@import "bootstrap"; /* Use this to get all of Bootstrap's @mixins and $variables */

Want to configure a variable? Thanks to bernado, this is now awesome and easy! Just define the variables you want to change before importing Bootstrap. SASS will respect your existing definition and won't overwrite it with the Bootstrap defaults.

$gridColumns: 12;
$gridColumnWidth: 60px;
$gridGutterWidth: 20px;
@import "bootstrap";

Javascript

In your Javascript manifest:

// Loads all Bootstrap javascripts
//= require bootstrap

// Alternatively, you can load individual modules
//= require bootstrap-scrollspy
//= require bootstrap-modal
//= require bootstrap-dropdown

Simples.

Versioning

We try to stick to Bootstrap versioning wherever possible. The major and minor version numbers will always represent the Twitter Bootstrap version, but no guarantees are made for the tiny version number, since waiting for Bootstrap to update so I can push out a fix sucks.

Branches

Master will usually represent the latest release of bootstrap-sass. Other branches contain experimental code, or are a relatively close mirror of other Bootstrap branches.

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.