Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display actual CSS in the styleguide #36

Open
adispezio opened this issue Sep 5, 2013 · 4 comments
Open

Display actual CSS in the styleguide #36

adispezio opened this issue Sep 5, 2013 · 4 comments

Comments

@adispezio
Copy link

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
Copy link

JanDW commented Sep 8, 2013

+1

@thomasdavis
Copy link
Owner

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

@DTFagus
Copy link

DTFagus commented Dec 10, 2013

+1

1 similar comment
@webmaven
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants