Dropcloth is a compass plugin and css neutralizer for Drupal. It provides protection for non-theme elements and practical mixins for a cleaner Drupal theming experience. Originally designed for use with Zen, Dropcloth can be used anywhere you use sass and compass.
Dropcloth is distributed as a Ruby Gem. On your computer, simply run:
$ gem install dropcloth
If you are using Compass (and you should!) then you can add it to an existing project by editing the project's configuration file, config.rb, and adding this line:
require "dropcloth"
You can then start using Dropcloth in your theme. Just add this line to one of your .sass or .scss files and theme with confidence!
@import "dropcloth";
Want only the mixins and placeholders without all the Drupal-specific stuff?
@import "dropcloth/light";
Up until version 0.2.0, Dropcloth came bundled with a css reset. We decided that you should not be locked into a css reset thus, as of v0.2.0, Dropcloth no longer provides a css reset. Fear not, there are plenty great alternatives out there:
-
If you enjoyed the reset that was previously bundled with Dropcloth, check out reset-css, the gem that resulted from this decision.
-
Something more traditional, perhaps? Check out meyer-reset.
- Enables hover effects. Includes .hover helper class as well as :focus for accessibility.
-
Styles HTML5 placeholder attributes with .placeholder class for legacy support.
-
@param (float) $opacity -- A floating decimal to be passed as the element's opacity (default: 1).
- Cross-browser selection styling.
-
Styles all <a> element children as a revlink or stdlink (see placeholders below)
-
@param (bool) $rev -- Whether the link should be reversed or not (default: false).
- Hides Drupal .block-title elements.
- Standard Link. Removes underline text-decoration on hover.
- Reverse Link. Removes underline text-decoration, but displays it on hover.
-
A more x-browser friendly grayscale filter.
-
@requires compass/css3
-
Removes effects added by %grayscale.
-
@requires compass/css3
- Hides an element the way Drupal does a la .element-invisble.
- Reverses effects of element-invisible.
- Hides an element using element-invisible, but allows it to be displayed on focus.
- Sass 3.2 or later
- Compass 0.12 or later
Available under the GPL v2 license. See LICENSE.txt.