Sanitize.css
A minimal CSS normalization library
Based on Normalize.css.
Download
- ZIP package
-
Bower:
bower install sanitize.css
CDN
Core changes
(compared to Normalize.css)
- Modules
- CSSComb support
- Improved display definitions
- Consistent element styles
- Improved vertical align of embedded content
- Responsive images
Browser support
- Chrome (latest)
- Firefox (latest)
- Opera 12+
- Safari 6+
- Internet Explorer 9+
Compile
Sanitize.css uses Grunt to compile Less code.
Dependencies
You need node.js to use Grunt.
From the command line:
- Install
grunt-cli
globally with[sudo] npm install -g grunt-cli
. - Run
npm install
from the root Sanitize.css directory to install dependencies.
When completed, you'll be able to run the various Grunt commands provided from the command line.
Modules
Modules are individual files within src/
, without a .less
extension.
- base
- display
- text
- embed
- forms
- tables
Commands
grunt [--modules="module..."]
Default: Compiles Less files.
--modules
is a space-separated list of modules. If --modules
option is
used, Grunt will only compile specified modules.
grunt watch [--modules="module..."]
Watch: Watches Less files and recompiles them when they're changed.
License
MIT © Zlatan Vasović