项目作者: mkhairi

项目描述 :
bootswatch ruby gems for assets pipeline
高级语言: Ruby
项目地址: git://github.com/mkhairi/bootswatch-sass.git
创建时间: 2014-11-18T08:17:12Z
项目社区:https://github.com/mkhairi/bootswatch-sass

开源协议:MIT License

下载


Bootswatch ruby gem Gem Version

Bootswatch is a collection of free themes for Bootstrap.

Installation

Add this line to your application’s Gemfile:

  1. gem 'bootstrap'
  2. gem 'bootswatch'

Bootstrap JavaScript depends on jQuery. If you’re using Rails 5.1+, add the jquery-rails gem to your Gemfile:

  1. gem 'jquery-rails'

And then execute:

  1. $ bundle

Usage

Stylesheets

in your application.scss

  1. // example override bootswatch variables
  2. $primary: #FFCF06;
  3. $secondary: #37474f;
  4. $success: #28b62c;
  5. $info: #03a9f4;
  6. $warning: #fbe42c;
  7. $danger: #ff4136;
  8. $light: #eeeeee;
  9. $dark: #444444;
  10. // end example override
  11. // import scss file
  12. @import "bootswatch/materia/variables";
  13. @import "bootstrap";
  14. @import "bootswatch/materia/bootswatch";

Make sure the file has .scss extension (or .sass for Sass syntax). If you have just generated a new Rails app, it may come with a .css file instead. If this file exists, it will be served instead of Sass, so rename it:

Javascript

Add Bootstrap dependencies and Bootstrap to your application.js:

  1. //= require jquery3
  2. //= require popper
  3. //= require bootstrap

or use individual Bootstrap components for ease of debugging

  1. //= require jquery3
  2. //= require popper
  3. //= require bootstrap-sprockets

see more on bootstrap readme

Contributing

  1. Fork it ( https://github.com/mkhairi/bootswatch/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request