Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 1.14 KB

CONTRIBUTING.markdown

File metadata and controls

50 lines (39 loc) · 1.14 KB

Contribute

To contribute to this project; fork the code, make your changes and then create a pull request detailing the changes and their pros. To keep the project clean, please strive to forfill the following:

General

  • Tabs are two spaces.
  • ID attribute has first priority on a element.
  • Class attribute has second priority on a element.
    • All other attributes are attached in a alphabetical order.

CSS

  • Keep class names consitent
  • A components name should be as descriptive as possible
  • -element is a element in a component
  • _state is a state
  • Use data attributes where applicable
  • CSS properties are in alphabetical order

Example selectors:

.review.-cancel:not(._processing):disabled + .-gate

Comments

Inline comments:

/** Comment */

Multi-line comments:

/**
 * Comment
 */

Tools