- global structure for CSS-naming is:
.block__element-subelement-subsubelement--modificator
; .block
in CSS is page or global block of site (.header
,.footer
,.sidebar
and others);- don't use tags and id's in CSS (only classes);
- use for modification CSS-modificators only (
.block__element--modificator
) or pseudo-classes (:hover
,:active
and others); - use id's (
<div id="idName">
) and data-binds (<a data-bind="bindName">
) for JavaScript only; - don't use classes and tags in JavaScript for binds (use id's and data-binds only);
- use camelCase-style in JavaScript (for variable's and function's naming).
Last active
August 29, 2015 14:18
-
-
Save danilvalov/cefdd241ab8cfe8c4861 to your computer and use it in GitHub Desktop.
[Handsome] Guidelines for Frontend-development
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment