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.
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!
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.
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/*
.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!