Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iguchi1124/honoka-rails

Mount Honoka on your Rails application!
https://github.com/iguchi1124/honoka-rails

bootstrap honoka rails sass

Last synced: 17 days ago
JSON representation

Mount Honoka on your Rails application!

Awesome Lists containing this project

README

        

# Honoka Rails

[![Build Status](https://travis-ci.org/iguchi1124/honoka-rails.svg?branch=master)](https://travis-ci.org/iguchi1124/honoka-rails)

[Honoka](https://github.com/windyakin/Honoka) is a bootstrap theme for Japanese.

honoka-rails mount Honoka on your rails application, and has been developed based on [bootstrap-sass](https://github.com/twbs/bootstrap-sass).

## Usage

honoka-rails is easy to drop into Rails with the asset pipeline.

```rb
gem 'sass-rails', '>= 3.2'
gem 'honoka-rails'
```

bundle install and restart your server to make the files available through the pipeline.

Import Bootstrap(Honoka) styles in app/assets/stylesheets/application.scss:

```
$ mv app/assets/stylesheets/application.css app/assets/stylesheets/application.scss
```

"bootstrap-sprockets" must be imported before "honoka" and "honoka/variables"

```scss
@import "bootstrap-sprockets";
@import "honoka";
```

Then, remove all the

``*= require_self`` and ``*= require_tree .`` statements from the sass file. Instead,use @import to import Sass files.

Do not use ``*= require`` in Sass or your other stylesheets will not be able to access the Bootstrap mixins or variables.

Require Bootstrap Javascripts in app/assets/javascripts/application.js:

```js
//= require jquery
//= require bootstrap-sprockets
```

bootstrap-sprockets and bootstrap should not both be included in application.js.