rstacruz / rscss

Reasonable System for CSS Stylesheet Structure
https://ricostacruz.com/rscss
3.91k stars 176 forks source link

Clarity a reason of using dash prefix for a variant #85

Closed aaronamm closed 3 years ago

aaronamm commented 3 years ago

IMHO, the existing document in dash prefixes section makes me think if we can use an underscore to prefix a variant.

Especially "A CSS class can only start with a letter, or -." which makes me think "A variant class name can only start with a letter or -".

Actually, this section is about explaining a reason why we use a dash to prefix a variant. Therefore, I have made this PR to clarify it.

FYI, this confusion made me create this issue even though we know exactly that a variant must start with a dash -.

Thanks.

rstacruz commented 3 years ago

Very good call, thanks for the edit!