Gemfile
gem 'dfm_web'
bundle install
application.css
*= require dfm_web/dfm_web
application.coffee (Turbolinks)
#= require dfm_web/dfm_web
$(document).on 'turbolinks:load', ->
DfmWeb.activate_dfm_web();
application.coffee (Vanilla)
#= require dfm_web/dfm_web
$(document).on 'ready page:load', ->
DfmWeb.activate_dfm_web();
application.html.erb
<body>
<%= render 'layouts/nav' %>
<%= render 'layouts/flash' %>
<%= render 'layouts/main' %>
<%= render 'layouts/footer' %>
</body>
config/initializers/assets.rb
Rails.application.config.assets.precompile += %w( dfm_web/* )
- Now using the UW look and feel.
- UW font (verlag) cannot be added to the repo per licensing requirements.
- To use it in your site add verlag.css to your host app (provided by UW).
- It will be used if available with fallback to Helvetica etc.
- Navbar img is no longer vertically centered in CSS.
- Pad your PNG/SVG with transparency.
- Image be scaled to 42px, but PNG should be at least double that.
- Javascript to do things other than run the the actual layout has been removed. Specifically:
- ajax_load
- auto_submit
- autofocus
- datepicker
- live_search
- live_table
- tablesorter
- If you used these features you'll need to pull the javascript from version 2
scaffold.css
<p id="notice"><%= notice %></p>
Anywhere in your app.
- A new manifest.js file has been added for compatibility with Sprockets 4+.
- Please report any issues or suggestions with this new configuration.
- Webpack may be incompatible at the moment.
- See DFMCH#74.
- Help wanted.
- To see the Kitchen Sink, go to spec/dummy and run
rails server