Coder Social home page Coder Social logo

mperrando / jquery-ui-themes-rails Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fatdude/jquery-ui-themes-rails

0.0 2.0 0.0 985 KB

Simple drop in for jquery themes for rails asset pipeline

License: MIT License

Ruby 2.64% CSS 96.70% JavaScript 0.01% HTML 0.65%

jquery-ui-themes-rails's Introduction

jQuery UI themes for Rails

All the pre rolled themes for jQuery UI packaged into a gem.

Install

In your Gemfile, add:

gem 'jquery-ui-themes'

and run bundle install.

Usage

In your stylesheet manifest include the following

*= require jquery-ui/<theme name>

where theme name can be one of the following:

  • black-tie
  • blitzer
  • cupertino
  • dark-hive
  • dot-luv
  • eggplant
  • excite-bike
  • flick
  • hot-sneaks
  • humanity
  • le-frog
  • mint-choc
  • overcast
  • pepper-grinder
  • redmond
  • smoothness
  • south-street
  • start
  • sunny
  • swanky-purse
  • trontastic
  • ui-darkness
  • ui-lightness
  • vader

Helper

If you want to take advantage of the Google CDN a helper is included that takes the theme name and optional version (latest used if version is not specified)

Example:

stylesheet_link_tag jqueryui_css_google_cdn('mint-choc', '1.7.2')

Rake Tasks

Includes a rake task which updates the themeroller created file with image-path and moves the new file and images into the asset folder (stylesheets/jquery-ui and images/jquery-ui respectively).

Example:

rake jquery_ui_themes:import:themeroller[jquery-ui-1.8.16.custom/css/hot-sneaks/jquery-ui-1.8.16.custom.css,hot-sneaks]

Also includes a rake task to import the files for a specific version and theme from Google CDN

Example

rake jquery_ui_themes:import:google_cdn[1.8.17,ui-lightness]

Optionally you can pass 'all' instead of a specific theme and all the current themeroller themes for that version will be imported into the assets folder.

Current theme version

The current versions of the themes are for 1.10.3 of jQuery UI. Since the jquery-rails gem is no longer including jQuery UI the plan is to sync with the version in use by the jquery-ui-rails gem, but should it be required the included rake tasks make supporting older or custom themes trivial.

Requirements

Requires Rails 3.1 and higher, or anything that uses the asset pipeline.

jquery-ui-themes-rails's People

Contributors

alphaone avatar fatdude avatar mperrando avatar rosenfeld avatar

Watchers

 avatar  avatar

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.