bulma-railsとはざっくりいうとCSSのフレームワークです。
Sassを使えるので、とりあえずよくわからない人や初学者は使いながらりかしましょう。
GitHub - joshuajansen/bulma-rails
Contribute to joshuajansen/bulma-rails development by creating an account on GitHub.
Gemfileに追記
Gemfileに以下を追記します。
gem "bulma-rails"
CSSの拡張子を変更
以下のフォルダにcssがあるのでそれをscssに変更します。
変更前
/app/assets/stylesheets/application.css
変更後
/app/assets/stylesheets/application.scss
application.scssに追記
先ほど変更したapplication.scssに以下を追記します。
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
* vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
*= require_tree .
*= require_self
*/
@import "bulma";
以上です。
使い方はまた後日。。。
コメント