You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With this naming rule, we could easier recognize what this selector does, use more flatten css selector to applying styles, avoid cascade selector error which csslint reports.
With BEM naming style, the bb-header might looks like
.bb-header /* the block */
.bb-header__subheader /* the block with element */
.bb-header__menu
.bb-header__menu--action /* the block with element and modifier */
For class inheritance, LESS can also come to help
.bb-header menu {
height: 100%;
padding: 0;
margin: 0;
}
.bb-header__menu
@import bb-header
The text was updated successfully, but these errors were encountered:
name-space : all lowercase/train-case (optional).
ComponentName : upper camel case (non-optional)
_ModifierName : upper camel case preceded by an underscore (optional)
-variant-label : all lowercase/train-case (optional)
I noticed that the css selectors does not changed a lot in https://github.com/mozilla-b2g/Gaia-UI-Building-Blocks/tree/v2/style/headers
I'd like to hear @rnowm your opinion of adopting some syntax naming rules such as BEM
http://csswizardry.com/2013/01/mindbemding-getting-your-head-round-bem-syntax/
With this naming rule, we could easier recognize what this selector does, use more flatten css selector to applying styles, avoid cascade selector error which csslint reports.
With BEM naming style, the bb-header might looks like
For class inheritance, LESS can also come to help
The text was updated successfully, but these errors were encountered: