This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

CSS Merge Media merges identical media queries in your CSS

Project Description
# Copyright (c) 2012 Adrien Kohlbecker

Intro
=====

CSS Merge Media merges identical media queries in your CSS.

For example, the following CSS:

@media screen and (min-width: 480px) and (max-width:899px) {
.foo {
color:black;
}
}

@media screen and (min-width: 480px) and (max-width:899px) {
.bar {
background:red;
}
}

Is compiled to:

@media screen and (min-width: 480px) and (max-width:899px) {
.foo {
color:black;
}
.bar {
background:red;
}
}

This allows you to keep your media queries along with the base style
for each element, instead of grouping them together at the end of the
file or in a separate file (and thus turning maintenance into a
nightmare)

CSS Merge Media is based on cssutils: what can be parsed with cssutils
can be used in the script.

Installation
============

Unpack the tarball and run::

python setup.py install

Invocation
==========

Invoke the script like so::

cssmergemedia --input style.css --output style-merged.css

Changelog
=========

0.1.1 - June 13, 2012
---------------------
Fixed dependecy check on install

0.1 - June 13, 2012
-------------------

Initial release

Release History

Release History

This version
History Node

0.1.1

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
cssmergemedia-0.1.1.tar.gz (3.4 kB) Copy SHA256 Checksum SHA256 Source Jun 13, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting