|
|
|
|
|
by Cederfjard
4618 days ago
|
|
> Basically, it's just a naming convention which tells you something about the purpose of this particular class. In languages like Java, C#, etc. you also use naming conventions to communicate something useful. In CSS, I do the same thing. There is UpperCaseCamelCase, lowerCaseCamelCase, _withLeadingUnderscore, and x-prefixed. All of these things mean something specific. What does those four styles mean then, respectively? I'm curious. |
|
A modifier changes one or several aspects to make it more suitable for a different purpose.
You can stick subtrees into the leafs of other substrees. There is no overlap or interweaving.
So, if you look at some node, you just travel the tree up until you hit the first UpperCaseCamelCase class. That's the structure this node belongs to. It's also the name of the partial.
E.g. this is the "bricks/_Pagination.scss" partial:
The generated docs: http://i.imgur.com/YFbhWjj.pngIf there are any modifiers, a preview (with one line description) will be generated for each of them.
Apart from the reset/normalization and base styles, everything looks like that.