-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
49 lines (26 loc) · 1.05 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
= 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, ie6.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 (c) 2009 Patrick Espake, released under the MIT license
Site: http://www.patrickespake.com
Blog: http://blog.patrickespake.com
Email: mailto:patrickespake@gmail.com