Skip to content

maqsudtolipov/simple-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Simple CSS - styling guide

Simple CSS is a writing style for easy lookups. It follows 3 basic rules: size, position, and looks.

  1. The first part is about sizing - marginspaddingsheight, and widths.
  2. The second part is used to position the element on the screen. Use it for - positiondisplay, and their helper properties.
  3. All the rest goes here - fontscolorsborders, etc.

Example:

.note {
  max-width: 80vw;
  padding: 1rem;

  display: flex;
  align-items: center;
  position: absolute;
  bottom: 3rem;

  font-size: 1.4rem;
  background-color: #121212;
  border-radius: 3px;
}

ToDo

  • Create IDE extension for automatic sorting CSS properties
  • Create ESLint or Prettier plugin

#keepItSimple

About

Simple CSS is a writing style for easy lookups.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors