Code Monkey home page Code Monkey logo

dfm_web's Introduction

DfmWeb

Build Status

Install

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/* )

Notes on Version 4:

  • 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.

Notes on Version 3+:

  • 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

Things to remove from your app:

  • scaffold.css
  • <p id="notice"><%= notice %></p> Anywhere in your app.

Notes on Sprocket 4.0

  • A new manifest.js file has been added for compatibility with Sprockets 4+.
  • Please report any issues or suggestions with this new configuration.

Notes on Webpack

  • Webpack may be incompatible at the moment.

Kitchen Sink:

  • To see the Kitchen Sink, go to spec/dummy and run rails server

Large Screen:

README.png

iPad and Smaller:

README_IPAD.png

Mobile:

README_MOBILE.png

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.