bitovi / documentcss

A documentation/guide portal for the Live Style Guide feature of DocumentJS
https://documentcss.com/
MIT License
72 stars 7 forks source link

@font warning message #42

Closed herrjosua closed 7 years ago

herrjosua commented 7 years ago

I'm getting a warning in my terminal prompt stating that: There is no @font tag. did you mean @body ?. It is not giving a line number to fix the warning. The only thing I can think that is causing it is that I am defining LESS variables for fonts. Below is a sample of the LESS code I am using:

`@font-family-sans-serif: 'Roboto', sans-serif;'

How would I fix this?

herrjosua commented 7 years ago

I found the issue, right after I posted my question/comment. I had an inline comment between two of my font LESS variables. Removing the comment resolve the issue.

lkodai commented 7 years ago

If you'd like to create comments with @ in them, you can escape it with an additional @.

So it would look like @@font-family-sans-serif in the comment in the code, but will properly render as just "@font-family-sans-serif" in your docs.