Skip to content

patrickespake/stylesheet_by_browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stylesheet_by_browser

Ruby on Rails helper insert the stylesheet according to the browser.

Instalation

Step 1


./script/plugin install git://github.com/patrickespake/stylesheet_by_browser.git

Step 2

Then install the necessary files into your public directory by running


rake stylesheet_by_browser:install

The files will be added: chrome.css, firefox.css, ie.css, opera.css and safari.css in the directory public/stylesheets.

Step 3

Lastly, add the following line to the head element of your application view:


<%= stylesheet_by_browser %>

Now you’re all set!

Example


<%= stylesheet_by_browser %>


<%= stylesheet_by_browser :media => "all" %>


<%= stylesheet_by_browser :media => "print" %>


<%= stylesheet_by_browser :media => "screen" %>

Documentation

http://lab.patrickespake.com/stylesheet_by_browser

Uninstall


rake stylesheet_by_browser:uninstall

Copyright © 2009 Patrick Espake, released under the MIT license

Site: http://www.patrickespake.com
Blog: http://blog.patrickespake.com
Email: patrickespake@gmail.com

About

Ruby on Rails helper insert the stylesheet according to the browser.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages