skip to navigation
skip to content

hcss 0.3.1

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

Downloads ↓

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
 
File Type Py Version Uploaded on Size # downloads
hcss-0.3.1.tar.gz (md5) Source 2011-01-07 6KB 355