LearnBoost/stylus — Issue #460: Add ifdef like support (conditional blocks of code)
Author: icetbr
Created: 2011-11-16 01:36:36+00:00
State: open

In order to keep the CSS output small while avoiding maintaining multiple versions of the same CSS or break it down into multiple files (then using @import)

Example

structure.css

```css
is_top_present false
is_bottom_present true

if is_top_present

#top
width 500px
height 40px
...

/* hack needed when there is a top present */
#header
overflow hidden
...

#content
width 500px
...

#sidebar
width: 200px
...

if is_top_present

#bottom
width: 500px
...
```