This simple plugin for Compass enables you to use normalize.css in your stylesheets without having to download it.
It is highly encouraged to install from the RubyGems build which can be found here.
From the command line:
$ gem install compass-normalize
You can also install the gem from your local fork:
$ git clone git://github.com/ksmandersen/compass-normalize.git
$ rake build
$ rake install
Normalize has two versions, a modern Normalize for Firefox 4+, Chrome, Safari 5+, Opera, and Internet Explorer 8+, and a legacy Normalize with support for all legacy versions of those browsers.
When creating a new project with compass:
$ compass create <my_project> -r compass-normalize --using compass-normalize
If using an existing project, edit your config.rb and add this line:
require 'compass-normalize'
To use the normalize plugin, just import and include normalize:
@import "normalize";
You can also just import parts you need:
@import 'normalize/html5';
@import 'normalize/base';
@import 'normalize/links';
@import 'normalize/typography';
@import 'normalize/lists'; // Only for legacy support (see below).
@import 'normalize/embeds';
@import 'normalize/figures';
@import 'normalize/forms';
@import 'normalize/tables';
This plugin has been re-written to use compass's native cross-browser variables to determine compatability. http://compass-style.org/reference/compass/support/
You can still create a legacy project using the following:
$ compass create <my_project> -r compass-normalize --using compass-normalize/legacy
But to just import normalize and include legacy portions of the code, set the necissary legacy-support variables to true:
$legacy-support-for-ie6: true;
$legacy-support-for-ie7: true;
$legacy-support-for-ie8: true;
$legacy-support-for-mozilla: true;
@import normalize;
You can also import any part that you want, just like the code for modern normalize.
Many thanks to Frederic Hemberger, Sam Richard and Ian Carrico who contributed greatly to this project.
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to The Unlicense
- normalize.css: Public domain