grunt-sandbox-css
Sandbox a CSS library by prefixing its selectors
Last updated 4 years ago by radekstepan .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install grunt-sandbox-css 
SYNC missed versions from official npm registry.

#grunt-sandbox-css Built with Grunt

Codeship Status for radekstepan/grunt-sandbox-css

Say you are loading a Foundation/Bootstrap library for a widet and don't want them affecting the rest of the page. This Grunt plugin will prefix all selectors in input CSS file with your custom one.

##Quick start

Example Gruntfile.coffee:

module.exports = (grunt) ->
    grunt.initConfig
        pkg: grunt.file.readJSON "package.json"
        
        sandbox_css:
            foundation:
                files:
                  'build/foundation.sandboxed.css': 'src/foundation.css'
                options:
                    # E.g.: .row -> .foundation .row
                    prefix: '.foundation'
                    # Selectors where we do not prefix.
                    blacklist: [ 'html', 'body' ]

    grunt.loadNpmTasks('grunt-sandbox-css')

    grunt.registerTask('default', [ 'sandbox_css' ])

Current Tags

  • 0.6.0                                ...           latest (4 years ago)

4 Versions

  • 0.6.0                                ...           4 years ago
  • 0.5.2                                ...           5 years ago
  • 0.5.1                                ...           5 years ago
  • 0.5.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 5
Dependencies (4)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |