thomasdavis / kaleistyleguide

This project aims at making sure your style sheets are fully documented whilst being synchronized with your webpages styles. To do this it actually uses your live stylesheets in so that at anytime you can review how your styleguide looks.
http://kaleistyleguide.com
The Unlicense
669 stars 108 forks source link

Display actual CSS in the styleguide #36

Open adispezio opened 11 years ago

adispezio commented 11 years ago

I have a block of CSS (ie: my reset) that I would like to display in the styleguide. Is there a way to accomplish this without rewriting the CSS in a comment?

In the following example, I'd like to output both the comment and the actual CSS to a Kalei styleguide block.

/*
### Reset body line-height to unitless 1.
*/
body {
    line-height: 1;
}

Perhaps there could be a rule where, if a code block is followed immediately by */, it outputs everything until the next code block mark preceeded by /*.

/*
### Reset body line-height to unitless 1.
```*/
body {
    line-height: 1;
}
/*```
*/

To say it differently: Print everything between

```*/

and

/*```

as a block of CSS in the styleguide.

Just one approach - but this feature would be great to have!

JanDW commented 11 years ago

+1

thomasdavis commented 10 years ago

Might switch over to a tabbed view for Example/Html/Css like http://lab.idered.pl/editr/

DTFagus commented 10 years ago

+1

webmaven commented 10 years ago

:+1: