Skip to content

CSS guideline

Valentyn Dubin edited this page Mar 7, 2021 · 81 revisions

Review

CSS guideline

Review

FLOCSS

Basic concept

Foundation Layout Object CSS - CSS design concept that takes advantage of OOCSS, BEM, and SMACSS. CSS design concept often used in Japan devised by Hiroki tani(@hiloki hiloki/flocss : CSS organization methodology.

Review

// погано
class Jedi {
  constructor() {}

  getName() {
    return this.name;
  }
}

// погано
class Rey extends Jedi {
  constructor(...args) {
    super(...args);
  }
}

// добре
class Rey extends Jedi {
  constructor(...args) {
    super(...args);
    this.name = "Rey";
  }
}
//Style for layout as seen from the entire page

.l-header
  position: fixed
  top: 0
  left: 0
  z-index: 100
  width: 100%

//Style of the header part
.p-header
  display: flex
  &__logo
    width:100px
    height:50px

Clone this wiki locally