Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Latest commit

 

History

History
58 lines (44 loc) · 814 Bytes

File metadata and controls

58 lines (44 loc) · 814 Bytes

EBANX - CSS Style Guide

Rules

  1. 2 spaces - for indentation
  2. One rule per line
  3. Space between rules and brackets

Good

.rule {
  color: #fff;
}

.block,
.item {
  padding: 1em;
}

Bad

.rule{
  color: #fff;
}

.rule{ background-color: red; }

.block, .item{
  padding: 1em;
}

Table of Contents

  1. Editor Config
  2. Related

Editor Config

Create the file .editorconfig and insert at project root folder.

[*.{css}]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

Related

Those approaches are always welcome: