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
Garbash edited this page Jun 26, 2013
·
14 revisions
General principles:
Separate look and position
Separate CSS from HTML
Apply namespaces to classes .widget-title not .widget .title
Separate components and templates. A component(E.G. dialogue-box) is composed of different templates(E.G. close window icon) This separation happens on the CSS preprocessor(LESS or SASS)
Classes without prefix are for styling and styling only - Use js- prefix if it's a js-hook.
Class naming conventions:
For layout classes use l- prefix
For component modifier use .{the component}--{the modifier}}
For sub-components use .{the component}__{the sub-component}
Bootstrap
We use bootstrap as our base css, whatever you do, don't modify the bootstrap files, if you need to add a css rule, just override it with one of our own files.