github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

zargony / css_naked

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 1
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Rails plugin to disable stylesheets during the CSS Naked Day event. — Read more

  cancel

http://zargony.com/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Added instructions to README 
zargony (author)
Sat Feb 28 11:54:26 -0800 2009
commit  cb4ecb147d26213ff73d3526a951033d635d07d1
tree    d6616b703d1fd009555cad38dabdcec39c1dfa3c
parent  0e3d931bb07149a10137b4835824980050c882b7
css_naked /
name age
history
message
file MIT-LICENSE Loading commit data...
file README.textile
file Rakefile
file init.rb
directory lib/
directory test/
README.textile

CSS Naked Day Plugin for Rails

CSS Naked Day is an annual event where websites remove all CSS from their
site for one day to promote web standards. More information on this event
can be found on http://naked.dustindiaz.com

This plugin makes a Rails application strip off the stylesheets during the
CSS Naked Day event. It does this by modifying the stylesheet_link_tag
helper to skip including stylesheets into the layout during the event.

Install

Just install the plugin and you’re ready to go.

ruby script/plugin install git://github.com/zargony/css_naked.git

Manual usage

If you manually need to do stuff on CSS Naked Day (e.g. skipping stylesheets
you placed without using stylesheet_link_tag or adding a note for visitors
why the stylesheets are missing), you can use the css_naked? method:

<%- if css_naked? -%>
  <h3>What happened to the design?</h3>
  <p>To know more about why styles are disabled on this website visit the
  <a href="http://naked.dustindiaz.com" title="Web Standards Naked Day Host Website">
  Annual CSS Naked Day</a> website for more information.</p>
<%- end -%>

Trying it out

To see, how your site will look like without any styles, you can manually activate
the CSS Naked Day mode by overriding the css_naked? in application_helper.rb:

def css_naked? true end

Copyright © 2009 Andreas Neuhaus http://zargony.com/,
released under the MIT license

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server