Skip to main content

hcss is a CSS compiler that that allows you to use HTML element hierarchy to define CSS rules

Project description

hcss is a CSS compiler that that allows you to use HTML element hierarchy to define CSS rules. Requires Python 2.2+. BSD-licensed.

Input

<div id="parent">
  margin: 10px;
  <div class="child">
    margin: 5px;
    border: 1px solid #000;
  </div>
</div>

Output

div#parent {
  margin: 10px;
}
div#parent > div.child {
  margin: 5px;
  border: 1px solid #000;
}

Setup

$ pip install hcss # or
$ easy_install hcss

Project details


Release history Release notifications

This version
History Node

0.3.1

History Node

0.3

History Node

0.2

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
hcss-0.3.1.tar.gz (6.8 kB) Copy SHA256 hash SHA256 Source None Jan 7, 2011

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page